PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 29, 20240 citationsOpen Access

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

View Full Paper
ASAaditya K. SinghYYYang YuKTKushal Tirumala

Key Points

Key points are not available for this paper at this time.

Abstract

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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Singh et al. (2024) studied this question.

synapsesocial.com/papers/68e62acbb6db6435875bd51bhttps://doi.org/10.48550/arxiv.2407.00434
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning2024 · 5 citations
  2. 2On the Effectiveness of Training Data Optimization for LLM-based Code Generation: An Empirical Study2026 · 1 citations
  3. 3Pruning as a Domain-specific LLM Extractor2024
  4. 4To Code, or Not To Code? Exploring Impact of Code in Pre-training2024 · 3 citations
  5. 5Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs2024 · 1 citations