Data Dependency-Aware Code Generation from Enhanced UML Sequence Diagrams
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) excel at generating code from natural language (NL) descriptions. However, the plain textual descriptions are inherently ambiguous and often fail to capture complex requirements like intricate system behaviors, conditional logic, and architectural constraints; implicit data dependencies in service-oriented architectures are difficult to infer and handle correctly. To bridge this gap, we propose a novel step-by-step code generation framework named UML2Dep by leveraging unambiguous formal specifications of complex requirements. First, we introduce an enhanced Unified Modeling Language (UML) sequence diagram tailored for service-oriented architectures. This diagram extends traditional visual syntax by integrating decision tables and API specifications, explicitly formalizing structural relationships and business logic flows in service interactions to rigorously eliminate linguistic ambiguity. Second, recognizing the critical role of data flow, we introduce a dedicated data dependency inference (DDI) task. DDI systematically constructs an explicit data dependency graph prior to actual code synthesis. To ensure reliability, we formalize DDI as a constrained mathematical reasoning task through novel prompting strategies, aligning with LLMs' excellent mathematical strengths. Additional static parsing and dependency pruning further reduce context complexity and cognitive load associated with intricate specifications, thereby enhancing reasoning accuracy and efficiency.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 32 references that are in the map. First posted on arXiv 5 Aug 2025.
Builds on
11 of 32 references.
References · 11
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024GPT-4o System Cardcited by 4,467
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024Model Generation with LLMs: From Requirements to UML Sequence Diagramscited by 11
- 2025Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Modelscited by 7
- 2023Coding by Design: GPT-4 empowers Agile Model Driven Developmentcited by 6
- 2024Assessing GPT-4-Vision's Capabilities in UML-Based Code Generationcited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Class Model Generation from Requirements using Large Language Models ↗
- 2025NOMAD: A Multi-Agent LLM System for UML Class Diagram Generation from Natural Language Requirements
- 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs
- 2026Why Do LLMs Fail at OCL Generation? A Graph Reasoning Perspective
- 2026Code2UML: Agentic LLMs with context engineering for scalable software visualization
- 2025RE-oriented Model Development with LLM Support and Deduction-based Verification
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap