mlsanityData to 14 Oct 2026

Data-efficient LLM Fine-tuning for Code Generation

arXiv 2504.12687 ↗First posted 17 Apr 2025cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have demonstrated significant potential in code generation tasks. However, there remains a performance gap between open-source and closed-source models. To address this gap, existing approaches typically generate large amounts of synthetic data for fine-tuning, which often leads to inefficient training. In this work, we propose a data selection strategy in order to improve the effectiveness and efficiency of training for code-based LLMs. By prioritizing data complexity and ensuring that the sampled subset aligns with the distribution of the original dataset, our sampling strategy effectively selects high-quality data. Additionally, we optimize the tokenization process through a "dynamic pack" technique, which minimizes padding tokens and reduces computational resource consumption. Experimental results show that when training on 40% of the OSS-Instruct dataset, the DeepSeek-Coder-Base-6.7B model achieves an average performance of 66.9%, surpassing the 66.1% performance with the full dataset. Moreover, training time is reduced from 47 minutes to 34 minutes, and the peak GPU memory decreases from 61.47 GB to 42.72 GB during a single epoch. Similar improvements are observed with the CodeLlama-Python-7B model on the Evol-Instruct dataset. By optimizing both data selection and tokenization, our approach not only improves model performance but also improves training efficiency.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 29 of its 36 references that are in the map. First posted on arXiv 17 Apr 2025.

Builds on

29 of 36 references.

References · 29

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  10. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  12. 2023LIMA: Less Is More for Alignmentcited by 1,100
17 more
  1. 2023Teaching Large Language Models to Self-Debugcited by 988
  2. 2023StarCoder: may the source be with you!cited by 799
  3. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  4. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
  5. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  6. 2023From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuningcited by 307
  7. 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 204
  8. 2024CodeGemma: Open Code Models Based on Gemmacited by 150
  9. 2023#InsTag: Instruction Tagging for Analyzing Supervised Fine-tuning of Large Language Modelscited by 109
  10. 2020Submodular Combinatorial Information Measures with Applications in Machine Learningcited by 88
  11. 2023Data Diversity Matters for Robust Instruction Tuningcited by 76
  12. 2024InsCL: A Data-efficient Continual Learning Paradigm for Fine-tuning Large Language Models with Instructionscited by 58
  13. 2023Dataset Quantizationcited by 48
  14. 2023Rethinking the Instruction Quality: LIFT is What You Needcited by 34
  15. 2024SHED: Shapley-Based Automated Dataset Refinement for Instruction Fine-Tuningcited by 19
  16. 2024RECOST: External Knowledge Guided Data-efficient Instruction Tuningcited by 18
  17. 2024AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Datacited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024CodeACT: Code Adaptive Compute-efficient Tuning Framework for Code LLMs
  2. 2024Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning
  3. 2025Every Sample Matters: Leveraging Mixture-of-Experts and High-Quality Data for Efficient and Accurate Code LLM
  4. 2023Dissecting the Runtime Performance of the Training, Fine-tuning, and Inference of Large Language Models
  5. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement
  6. 2024Improving the Ability of Pre-trained Language Model by Imparting Large Language Model's Experience ↗
  7. 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models
  8. 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation