Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) frequently generate defective outputs in code generation tasks, ranging from logical bugs to security vulnerabilities. While these generation failures are often treated as model-level limitations, empirical evidence increasingly traces their root causes to imperfections within the training corpora. Yet, the specific mechanisms linking training data quality issues to generated code quality issues remain largely unmapped. This paper presents a systematic literature review of 114 primary studies to investigate how training data quality issues propagate into code generation. We establish a unified taxonomy that categorizes generated code quality issues across nine dimensions and training data quality issues into code and non-code attributes. Based on this taxonomy, we formalize a causal framework detailing 18 typical propagation mapping mechanisms. Furthermore, we synthesize state-of-the-art detection and mitigation techniques across the data, model, and generation lifecycles. The reviewed literature reveals a clear methodological shift: quality assurance is transitioning from reactive, heuristic-based post-generation filtering toward proactive, data-centric governance and closed-loop repair. Finally, we identify open challenges and outline research directions for developing reliable LLMs for code through integrated data curation and continuous evaluation. Our repository is available at https://github.com/SYSUSELab/From-Data-to-Code.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 103 of its 134 references that are in the map. First posted on arXiv 6 May 2026.
Builds on
103 of 134 references.
References · 103
- 2017Attention Is All You Needcited by 59,932
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Deduplicating Training Data Makes Language Models Bettercited by 705
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
38 more
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
- 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 153
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
- 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
- 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 78
- 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
- 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
- 2024Datasets for Large Language Models: A Comprehensive Surveycited by 69
- 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 63
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Codecited by 61
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2023A Survey on Large Language Models for Software Engineeringcited by 58
- 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
- 2024To Code, or Not To Code? Exploring Impact of Code in Pre-trainingcited by 47
- 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 46
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 45
- 2024MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generationcited by 45
- 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 43
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 39
- 2024Language Models for Code Completion: A Practical Evaluationcited by 38
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2019Exposure Bias versus Self-Recovery: Are Distortions Really Incremental for Autoregressive Text Generation?cited by 33
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 29
- 2024Bias Unveiled: Investigating Social Bias in LLM-Generated Codecited by 25
- 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Codecited by 21
- 2024On Mitigating Code LLM Hallucinations with API Documentationcited by 21
50 most cited of 103 All 103 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026The Biomimetic Architecture of Software 4.0cited by 0
- 2026The Biomimetic Architecture of Software 4.01 Jun 2026