Reproduce “D4: Improving LLM Pretraining via Document De-Duplication and Diversification” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Kushal Tirumala, Daniel Simig, Armen Aghajanyan, Ari S. Morcos
Meta AI Research introduces D4, a strategy combining semantic de-duplication and prototypicality-based selection to enhance large language model pre-training. This method enables equivalent model performance with 20% less compute and improves downstream accuracy by 2% for a 6.7B parameter model, also demonstrating benefits from intelligently repeating data.
Key insights
- Sophisticated embedding-based data selection substantially improves LLM pre-training efficiency, challenging the "more data is always better" paradigm.
- Intelligently repeating a smaller, curated dataset can yield better performance than training on new, randomly sampled data in data-limited scenarios.
- Pre-training perplexity on common web-snapshot validation sets can be negatively correlated with real-world model utility, highlighting the need for more nuanced evaluation metrics.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.