mlsanityData to 13 Oct 2026

Chameleon: A Flexible Data-mixing Framework for Language Model Pretraining and Finetuning

arXiv 2505.24844 ↗First posted 30 May 2025cs.LG cs.CLcited by 14

Not on the map. Why?

Abstract (arXiv)

Training data mixtures greatly impact the generalization performance of large language models. Existing domain reweighting methods often rely on costly weight computations and require retraining when new data is introduced. To this end, we introduce a flexible and efficient data mixing framework, Chameleon, that employs leverage scores to quantify domain importance within a learned embedding space. We first construct a domain affinity matrix over domain embeddings. The induced leverage scores determine a mixture that upweights domains sharing common representations in embedding space. This formulation allows direct transfer to new data by computing the new domain embeddings. In experiments, we demonstrate improvements over three key scenarios: (i) our computed weights improve performance on pretraining domains with a fraction of the compute of existing methods; (ii) Chameleon can adapt to data changes without proxy retraining, boosting few-shot reasoning accuracies when transferred to new data; (iii) our method enables efficient domain reweighting in finetuning, consistently improving test perplexity on all finetuning domains over uniform mixture. Our code is available at https://github.com/LIONS-EPFL/Chameleon.

Key facts. Cited by 14 papers in the map (data through 13 Oct 2026). Builds on 36 of its 60 references that are in the map. First posted on arXiv 30 May 2025.

Builds on

36 of 60 references.

References · 36

  1. 2017Attention Is All You Needcited by 60,106
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2024The Llama 3 Herd of Modelscited by 14,486
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,798
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,053
  7. 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,870
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,843
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,379
  10. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,133
  11. 2019SuperGlue: Learning Feature Matching with Graph Neural Networkscited by 1,439
  12. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,111
24 more
  1. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 973
  2. 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 896
  3. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 854
  4. 2017Crowdsourcing Multiple Choice Science Questionscited by 751
  5. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  6. 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
  7. 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
  8. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 182
  9. 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 175
  10. 2017FALKON: An Optimal Large Scale Kernel Methodcited by 82
  11. 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
  12. 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
  13. 2023SlimPajama-DC: Understanding Data Combinations for LLM Trainingcited by 72
  14. 2024The Ultimate Guide to Fine-Tuning LLMs from Basics to Breakthroughs: An Exhaustive Review of Technologies, Research, Best Practices, Applied Research Challenges and Opportunitiescited by 64
  15. 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 47
  16. 2024SmallToLarge (S2L): Scalable Data Selection for Fine-tuning Large Language Models by Summarizing Training Trajectories of Small Modelscited by 44
  17. 2018On Fast Leverage Score Sampling and Optimal Learningcited by 40
  18. 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 25
  19. 2014Fast Randomized Kernel Methods With Statistical Guaranteescited by 21
  20. 2021Fast Statistical Leverage Score Approximation in Kernel Ridge Regressioncited by 14
  21. 2024Data, Data Everywhere: A Guide for Pretraining Dataset Constructioncited by 11
  22. 2018Relating Leverage Scores and Density using Regularized Christoffel Functionscited by 10
  23. 2024Dynamic Gradient Alignment for Online Data Mixingcited by 10
  24. 2019Nystr"om landmark sampling and regularized Christoffel functionscited by 8

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 1; 2026: 13.

14 papers.

Sort:

By area: