paper-with-me

홈 › Papers

Data Dependency-Aware Code Generation from Enhanced UML Sequence Diagrams

2025-08-05 · Wenxin Mao, Zhitao Wang, Long Wang, Sirong Chen, Cuiyun Gao, Luyang Cao, Ziming Liu, Qiming Zhang, Jun Zhou, Zhi Jin 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.

📄 PDF Abstract BibTeX arXiv:2508.03379

Code (0)

등록된 구현이 없습니다.

Tasks

Mathematical ReasoningCode Generation

Similar Papers 제목 키워드 기반

Dependency-Aware Semi-Structured Sparsity of GLU Variants in Large Language Models

2024-05-03 · Zhiyu Guo, Hidetaka Kamigaito, Taro Wanatnabe

The rapid advancement in Large Language Models (LLMs) has markedly enhanced the capabilities of language understanding and generation. However, the substantial model size poses hardware challenges, affecting both memory …

Computational EfficiencyModel CompressionNetwork Pruning

Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal Dependency Parsing

2020-07-01 · WS 2020 7 · Han He, Jinho D. Choi

This paper presents our enhanced dependency parsing approach using transformer encoders, coupled with a simple yet powerful ensemble algorithm that takes advantage of both tree and graph dependency parsing. Two types of …

Dependency Parsing

Edge-Enhanced Graph Convolution Networks for Event Detection with Syntactic Relation

2020-02-25 · Findings of the Association for Computational Linguistics 2020 · Shiyao Cui, Bowen Yu, Tingwen Liu, Zhen-Yu Zhang 외

Event detection (ED), a key subtask of information extraction, aims to recognize instances of specific event types in text. Previous studies on the task have verified the effectiveness of integrating syntactic dependency…

Event DetectionRelation

Type-Aware Retrieval-Augmented Generation with Dependency Closure for Solver-Executable Industrial Optimization Modeling

2026-03-03 · Y. Zhong, R. Huang, M. Wang, Z. Guo 외 arxiv

Automated industrial optimization modeling requires reliable translation of natural-language requirements into solver-executable code. However, large language models often generate non-compilable models due to missing de…

Domain Generalization

Context-Aware Cross-Attention for Non-Autoregressive Translation

2020-11-02 · COLING 2020 8 · Liang Ding, Longyue Wang, Di wu, DaCheng Tao 외

Non-autoregressive translation (NAT) significantly accelerates the inference process by predicting the entire target sequence. However, due to the lack of target dependency modelling in the decoder, the conditional gener…

DecoderTranslation