Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning

About

Recent work targeting large language models (LLMs) for code generation demonstrated that increasing the amount of training data through synthetic code generation often leads to exceptional performance. In this paper we explore data pruning methods aimed at enhancing the efficiency of model training specifically for code LLMs. We present techniques that integrate various clustering and pruning metrics to selectively reduce training data without compromising the accuracy and functionality of the generated code. We observe significant redundancies in synthetic training data generation, where our experiments demonstrate that benchmark performance can be largely preserved by training on only 10% of the data. Moreover, we observe consistent improvements in benchmark results through moderate pruning of the training data. Our experiments show that these pruning strategies not only reduce the computational resources needed but also enhance the overall quality code generation.

Yun-Da Tsai, Mingjie Liu, Haoxing Ren• 2024

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH
Accuracy11.32
882
ReasoningBBH
Accuracy64.17
770
Code GenerationHumanEval
pass@186.6
329
Code GenerationHumanEval+
Pass@181.7
122
Mathematical ReasoningGSM8K (val)
Accuracy60.05
115
Code GenerationBigCodeBench Full
Pass@152.3
91
Code GenerationBigCodeBench Hard
Pass@129.7
73
Code GenerationMBPP
Pass@1 Accuracy83.3
55
Code GenerationMBPP+
Pass@174.1
48
Complex ReasoningBBH (val)
Accuracy64.05
42
Showing 10 of 12 rows

Other info

Follow for update