mlsanityData to 7 Oct 2026

Brevity is the soul of wit: Pruning long files for code generation

arXiv 2407.00434 ↗First posted 29 Jun 2024cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Data curation is commonly considered a "secret-sauce" for LLM training, with higher quality data usually leading to better LLM performance. Given the scale of internet-scraped corpora, data pruning has become a larger and larger focus. Specifically, many have shown that de-duplicating data, or sub-selecting higher quality data, can lead to efficiency or performance improvements. Generally, three types of methods are used to filter internet-scale corpora: embedding-based, heuristic-based, and classifier-based. In this work, we contrast the former two in the domain of finetuning LLMs for code generation. We find that embedding-based methods are often confounded by length, and that a simple heuristic--pruning long files--outperforms other methods in compute-limited regimes. Our method can yield up to a 2x efficiency benefit in training (while matching performance) or a 3.5% absolute performance improvement on HumanEval (while matching compute). However, we find that perplexity on held-out long files can increase, begging the question of whether optimizing data mixtures for common coding benchmarks (HumanEval, MBPP) actually best serves downstream use cases. Overall, we hope our work builds useful intuitions about code data (specifically, the low quality of extremely long code files) provides a compelling heuristic-based method for data pruning, and brings to light questions in how we evaluate code generation models.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 13 of its 25 references that are in the map. First posted on arXiv 29 Jun 2024.

Builds on

13 of 25 references.

References · 13

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2017Billion-scale similarity search with GPUscited by 2,477
  7. 2017Decoupled Weight Decay Regularizationcited by 1,722
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  9. 2022Beyond neural scaling laws: beating power law scaling via data pruningcited by 519
  10. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  11. 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
  12. 2023Decoding Data Quality via Synthetic Corruptions: Embedding-guided Pruning of Code Datacited by 12
1 more
  1. 2024Text Quality-Based Pruning for Efficient Training of Language Modelscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 2.

4 papers.