Deep-Context-Awareness-Based LLM Code Generation and Accurate-Defect-Repair Integrated Architecture
DOI: 10.23977/jaip.2025.080217 | Downloads: 9 | Views: 231
Author(s)
Jiashun Guo 1
Affiliation(s)
1 USANA Health Sciences, Beijing, 100036, China
Corresponding Author
Jiashun GuoABSTRACT
In response to the issues of context fragmentation and delayed defect repair in large language model (LLM) code generation, this paper proposes a deep context-aware generation-repair fusion architecture. Through a bidirectional collaborative mechanism, it achieves a paradigm shift towards "generation as correctness." This architecture innovatively constructs multi-granularity context encoding models, dynamically integrating code structure, developer intent, and project-level constraints. It combines a neural-symbolic collaboration framework to deeply couple LLM's generative capabilities with the reliability of formal verification. The —— generation module is implemented using graph attention networks to achieve cross-file semantic association, while the repair module accurately locates and fixes defects through probabilistically guided patch search and hierarchical verification strategies. The architecture supports multi-objective optimization and human feedback reinforcement learning (RLHF), balancing code quality, performance, and security requirements, and generates traceable decision chains to ensure ethical compliance. This study provides a new generation of solutions for automated software engineering that combines efficiency and credibility, and lays the technical foundation for future directions such as multimodal context expansion and quantized code analysis.
KEYWORDS
Deep context awareness; LLM code; precise defect repair; fusion frameworkCITE THIS PAPER
Jiashun Guo, Deep-Context-Awareness-Based LLM Code Generation and Accurate-Defect-Repair Integrated Architecture. Journal of Artificial Intelligence Practice (2025) Vol. 8: 125-133. DOI: http://dx.doi.org/10.23977/jaip.2025.080217.
REFERENCES
[1] Xizao Wang, Tianqi Shen, Xiangrong Bin, et al. LLM-enabled Datalog Code Translation Technology and Incremental Program Analysis Framework[J/OL]. Journal of Software,1-21[2025-04-30].
[2] Wang ZP, He TK, Zhao RY, et al. Exploring the capability of large language models in code optimization tasks and improvement methods[J/OL]. Journal of Software,1-24[2025-04-30].
[3] Xie Mengfei, Fu Jianming, Yao Renyi. Research on fuzzy testing of multimedia native libraries based on LLM[J]. Information Network Security, 2025,25(03):403-414.
[4] HUANG Tianbo, LI Chengyang, LIU Yongzhi, et al. LIME-based sample generation technique for malicious code countermeasures[J]. Journal of Beijing University of Aeronautics and Astronautics,2022,48(02):331-338.
[5] Chu Leyang, Wang Hao, Chen Xiangdong. Artificial intelligence education for youth oriented to large language model[J]. China Electrochemical Education,2024,(04):32-44.
Downloads: | 15023 |
---|---|
Visits: | 473665 |
Sponsors, Associates, and Links
-
Power Systems Computation
-
Internet of Things (IoT) and Engineering Applications
-
Computing, Performance and Communication Systems
-
Advances in Computer, Signals and Systems
-
Journal of Network Computing and Applications
-
Journal of Web Systems and Applications
-
Journal of Electrotechnology, Electrical Engineering and Management
-
Journal of Wireless Sensors and Sensor Networks
-
Journal of Image Processing Theory and Applications
-
Mobile Computing and Networking
-
Vehicle Power and Propulsion
-
Frontiers in Computer Vision and Pattern Recognition
-
Knowledge Discovery and Data Mining Letters
-
Big Data Analysis and Cloud Computing
-
Electrical Insulation and Dielectrics
-
Crypto and Information Security
-
Journal of Neural Information Processing
-
Collaborative and Social Computing
-
International Journal of Network and Communication Technology
-
File and Storage Technologies
-
Frontiers in Genetic and Evolutionary Computation
-
Optical Network Design and Modeling
-
Journal of Virtual Reality and Artificial Intelligence
-
Natural Language Processing and Speech Recognition
-
Journal of High-Voltage
-
Programming Languages and Operating Systems
-
Visual Communications and Image Processing
-
Journal of Systems Analysis and Integration
-
Knowledge Representation and Automated Reasoning
-
Review of Information Display Techniques
-
Data and Knowledge Engineering
-
Journal of Database Systems
-
Journal of Cluster and Grid Computing
-
Cloud and Service-Oriented Computing
-
Journal of Networking, Architecture and Storage
-
Journal of Software Engineering and Metrics
-
Visualization Techniques
-
Journal of Parallel and Distributed Processing
-
Journal of Modeling, Analysis and Simulation
-
Journal of Privacy, Trust and Security
-
Journal of Cognitive Informatics and Cognitive Computing
-
Lecture Notes on Wireless Networks and Communications
-
International Journal of Computer and Communications Security
-
Journal of Multimedia Techniques
-
Automation and Machine Learning
-
Computational Linguistics Letters
-
Journal of Computer Architecture and Design
-
Journal of Ubiquitous and Future Networks