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

arXiv:2605.05267 · cs.SE, cs.AI · Submitted 2026-05-06 · Read on arXiv

cs.SE, cs.AI

Submitted: 2026-05-06

Updated: 2026-10-17

Comments: 49 pages, 16 figures, 5 tables

License: http://creativecommons.org/licenses/by/4.0/

The gist: Large language models (LLMs) frequently generate defective code, ranging from logical bugs to security vulnerabilities.

Terminology

Abstract

Large language models (LLMs) frequently generate defective code, ranging from logical bugs to security vulnerabilities. Training-data quality is one contributor to these outcomes alongside model architecture, optimization and alignment, prompting and inference context, and decoding. However, the literature connecting specific training data quality issues to observable generated code quality issues has not been synthesized systematically. We review 114 included papers and establish taxonomies of eight generated-code quality dimensions and two broad groups of training-data issues. We then synthesize 12 recurring relationship families between training-data issues and generated-code outcomes, tracing each to its supporting papers, evidence basis, and limitations. We also synthesize detection and mitigation techniques across the data, model, and generation lifecycle. The findings position data curation as one layer of code-generation quality assurance coordinated with model- and inference-level controls, and identify provenance and controlled attribution as open research needs. Our repository is available at https://github.com/SYSUSELab/From-Data-to-Code.

Related papers