mlsanityData to 7 Oct 2026

Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code

arXiv 2605.05267 ↗First posted 6 May 2026cs.SE cs.AIcited by 1

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  8. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
  9. 2024A Survey on Large Language Models for Code Generationcited by 646
  10. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  11. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  12. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
38 more
  1. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  2. 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 153
  3. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  4. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
  5. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
  6. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
  7. 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
  8. 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
  9. 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 78
  10. 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
  11. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  12. 2024Datasets for Large Language Models: A Comprehensive Surveycited by 69
  13. 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 63
  14. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
  15. 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Codecited by 61
  16. 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
  17. 2023A Survey on Large Language Models for Software Engineeringcited by 58
  18. 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
  19. 2024To Code, or Not To Code? Exploring Impact of Code in Pre-trainingcited by 47
  20. 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 46
  21. 2023Large Language Models and Simple, Stupid Bugscited by 45
  22. 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 45
  23. 2024MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generationcited by 45
  24. 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 43
  25. 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
  26. 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
  27. 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 39
  28. 2024Language Models for Code Completion: A Practical Evaluationcited by 38
  29. 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
  30. 2019Exposure Bias versus Self-Recovery: Are Distortions Really Incremental for Autoregressive Text Generation?cited by 33
  31. 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
  32. 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
  33. 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 29
  34. 2024Bias Unveiled: Investigating Social Bias in LLM-Generated Codecited by 25
  35. 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
  36. 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
  37. 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Codecited by 21
  38. 2024On Mitigating Code LLM Hallucinations with API Documentationcited by 21

50 most cited of 103 All 103 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.