Efficient Code LLM Training via Distribution-Consistent and Diversity-Aware Data Selection

Weijie Lyu, Sheng-Jun Huang, Xuan Xia
7/3/2025
cs.CL

No official code found. Best implementation: Kyle-Lyu/efficode-finetune (2 stars, last commit 2025-05-09).

Abstract

Recent advancements in large language models (LLMs) have significantly improved code generation and program comprehension, accelerating the evolution of software engineering. Current methods primarily enhance model performance by leveraging vast amounts of data, focusing on data quantity while often overlooking data quality, thereby reducing training efficiency. To address this, we introduce an approach that utilizes a parametric model for code data selection, aimed at improving both training efficiency and model performance. Our method optimizes the parametric model to ensure distribution consistency and diversity within the selected subset, guaranteeing high-quality data. Experimental results demonstrate that using only 10K samples, our method achieves gains of 2.4% (HumanEval) and 2.3% (MBPP) over 92K full-sampled baseline, outperforming other sampling approaches in both performance and efficiency. This underscores that our method effectively boosts model performance while significantly reducing computational costs.

View on arXivView PDF

Code Implementations(1)

Efficient Code LLM Training via Distribution-Consistent and Diversity-Aware Data Selection

20Shell, PythonMay 9, 20251 years ago

Cite this paper

@article{lyu2025efficient,
  title  = {Efficient Code LLM Training via Distribution-Consistent and Diversity-Aware Data Selection},
  author = {Weijie Lyu and Sheng-Jun Huang and Xuan Xia},
  year   = {2025},
  eprint = {2507.02378},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.02378v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.02378.svg)](https://codeofpaper.com/paper/2507.02378)

Discussion