Recent research has advanced techniques for creating efficient, high-quality datasets to train coding-focused LLMs, emphasizing data curation and model-assisted filtering. Here are key developments:
1. Automated Data Curation with CLEAR
CLEAR (Confidence-based LLM Evaluation And Rectification) [2] automates dataset curation by identifying low-quality training examples via LLM-derived confidence scores. It filters or corrects data without requiring stronger LLMs (e.g., works with GPT-3.5/Llama2), improving fine-tuned model performance across tasks. While not coding-specific, its framework is adaptable to code datasets.
2. Model-Based Filtering in DataComp-LM
DataComp-LM [3] demonstrates that model-based filtering (e.g., using classifiers to select high-quality text) is critical for building efficient datasets. Their baseline dataset trains a 7B model to outperform larger models like Llama 2 7B on language tasks. This approach could extend to code data by training classifiers on code-specific quality signals.
3. Distilling Step-by-Step Rationales
Google’s distilling step-by-step method [1] extracts LLM-generated rationales to train smaller models with 80% less data. For coding tasks, this could reduce dataset size while preserving logical reasoning steps critical for code generation.
4. DS²: Diversity-Aware Data Selection
DS² [8] corrects biases in LLM-rated data scores and promotes diversity in selected samples. A curated 3.3% subset of data matched human-aligned datasets in performance, challenging the "more data is better" paradigm. This is particularly relevant for code datasets, where redundancy (e.g., boilerplate code) is common.
5. LIMO: High-Quality Small Datasets
Though not coding-specific, LIMO [6] shows that 817 carefully curated examples can unlock advanced reasoning in small models, achieving 94.8% accuracy on MATH. This "less-is-more" principle applies to code tasks, where targeted examples could teach syntax or debugging patterns efficiently.
6. DatologyAI’s Curated Training
DatologyAI’s pipeline [5][7] combines model-based filtering, embedding analysis, and synthetic data to improve training efficiency. Their curated datasets enabled 7.7x faster training and smaller models (1.3B params) outperforming larger baselines, a strategy adaptable to code-focused LLMs.
Key Trends:
- Model-Driven Curation: Leveraging smaller models or classifiers to filter/rank data (e.g., [1][3][8]).
- Synthetic Data Integration: Generating targeted examples to fill knowledge gaps ([5][7]).
- Diversity Emphasis: Avoiding redundant samples while ensuring coverage of edge cases ([8][3]).
These methods collectively demonstrate that small, curated datasets—augmented by intelligent filtering and synthetic data—can rival or surpass larger, less-refined corpora for training efficient coding models.