On the Effectiveness of Training Data Optimization for LLM-based Code Generation: An Empirical Study
Shiqi Kuang, Zhao Tian, Tao Xiao, Dong Wang, Junjie Chen

TL;DR
This empirical study systematically evaluates five training data optimization techniques and their combinations, revealing that data synthesis and refactoring significantly improve code generation quality in LLMs.
Contribution
First large-scale empirical evaluation of training data optimization techniques for LLM-based code generation, providing practical insights and guidance.
Findings
Data synthesis improves functional correctness and reduces code smells.
Most technique combinations do not enhance correctness but improve code quality.
Data synthesis combined with data refactoring yields the best overall performance.
Abstract
Large language models (LLMs) have achieved remarkable progress in code generation, largely driven by the availability of high-quality code datasets for effective training. To further improve data quality, numerous training data optimization techniques have been proposed; however, their overall effectiveness has not been systematically evaluated. To bridge this gap, we conduct the first large-scale empirical study, examining five widely-used training data optimization techniques and their pairwise combinations for LLM-based code generation across three benchmarks and four LLMs. Our results show that data synthesis is the most effective technique for improving functional correctness and reducing code smells, although it performs relatively worse on code maintainability compared to data refactoring, cleaning, and selection. Regarding combinations, we find that most combinations do not…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Natural Language Processing Techniques
