Chameleon: A Flexible Data-mixing Framework for Language Model Pretraining and Finetuning
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
- 2017Attention Is All You Needcited by 60,106
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2024The Llama 3 Herd of Modelscited by 14,486
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,798
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,053
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,870
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,843
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,379
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,133
- 2019SuperGlue: Learning Feature Matching with Graph Neural Networkscited by 1,439
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,111
24 more
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 973
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 896
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 854
- 2017Crowdsourcing Multiple Choice Science Questionscited by 751
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 182
- 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 175
- 2017FALKON: An Optimal Large Scale Kernel Methodcited by 82
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
- 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
- 2023SlimPajama-DC: Understanding Data Combinations for LLM Trainingcited by 72
- 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
- 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 47
- 2024SmallToLarge (S2L): Scalable Data Selection for Fine-tuning Large Language Models by Summarizing Training Trajectories of Small Modelscited by 44
- 2018On Fast Leverage Score Sampling and Optimal Learningcited by 40
- 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 25
- 2014Fast Randomized Kernel Methods With Statistical Guaranteescited by 21
- 2021Fast Statistical Leverage Score Approximation in Kernel Ridge Regressioncited by 14
- 2024Data, Data Everywhere: A Guide for Pretraining Dataset Constructioncited by 11
- 2018Relating Leverage Scores and Density using Regularized Christoffel Functionscited by 10
- 2024Dynamic Gradient Alignment for Online Data Mixingcited by 10
- 2019Nystr"om landmark sampling and regularized Christoffel functionscited by 8
Built on by
Citing papers per year: 2025: 1; 2026: 13.
14 papers.
Sort:
By area:
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Datacited by 10
- 2026MixAtlas: Uncertainty-aware Data Mixture Optimization for Multimodal LLM Midtrainingcited by 2
- 2026DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixturescited by 2
- 2026TANDEM: Bi-Level Data Mixture Optimization with Twin Networkscited by 2
- 2026Scaling-Aware Data Selection for End-to-End Autonomous Driving Systemscited by 1
- 2025Sampling and Loss Weights in Multi-Domain Trainingcited by 0
- 2026MaD-Mix: Multi-Modal Data Mixtures via Latent Space Coupling for Vision-Language Model Trainingcited by 0
- 2026Closed Loop Dynamic Driving Data Mixture for Real-Synthetic Co-Trainingcited by 0
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Trainingcited by 0
- 2026Towards Efficient LLMs Annealing with Principled Sample Selectioncited by 0
- 2026HERMES: A Multi-Granularity Labeling Substrate for Pre-training Data Mixturescited by 0
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweightingcited by 0
- 2026Scalable, Transferable Meta-network for Data Selection Requires a Different Loss (and Why the Obvious Choice is Problematic)1 Oct 2026
- 2026Relative Generalization Invariance of LLM Pretraining26 Sep 2026
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweighting30 Jul 2026
- 2026HERMES: A Multi-Granularity Labeling Substrate for Pre-training Data Mixtures2 Jul 2026
- 2026TANDEM: Bi-Level Data Mixture Optimization with Twin Networks3 Jun 2026
- 2026Towards Efficient LLMs Annealing with Principled Sample Selection29 May 2026
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Training29 May 2026
- 2026Closed Loop Dynamic Driving Data Mixture for Real-Synthetic Co-Training20 May 2026
- 2026DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixtures11 May 2026
- 2026Scaling-Aware Data Selection for End-to-End Autonomous Driving Systems9 Apr 2026
- 2026MixAtlas: Uncertainty-aware Data Mixture Optimization for Multimodal LLM Midtraining3 Apr 2026
- 2026MaD-Mix: Multi-Modal Data Mixtures via Latent Space Coupling for Vision-Language Model Training8 Feb 2026
2 more
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Data29 Jan 2026
- 2025Sampling and Loss Weights in Multi-Domain Training10 Nov 2025
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Datacited by 10
- 2026DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixturescited by 2
- 2026TANDEM: Bi-Level Data Mixture Optimization with Twin Networkscited by 2
- 2025Sampling and Loss Weights in Multi-Domain Trainingcited by 0
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Trainingcited by 0
- 2026Towards Efficient LLMs Annealing with Principled Sample Selectioncited by 0
- 2026HERMES: A Multi-Granularity Labeling Substrate for Pre-training Data Mixturescited by 0
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweightingcited by 0
- 2026Relative Generalization Invariance of LLM Pretrainingcited by 0
- 2026Scalable, Transferable Meta-network for Data Selection Requires a Different Loss (and Why the Obvious Choice is Problematic)cited by 0
- 2026Scalable, Transferable Meta-network for Data Selection Requires a Different Loss (and Why the Obvious Choice is Problematic)1 Oct 2026
- 2026Relative Generalization Invariance of LLM Pretraining26 Sep 2026
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweighting30 Jul 2026
- 2026HERMES: A Multi-Granularity Labeling Substrate for Pre-training Data Mixtures2 Jul 2026
- 2026TANDEM: Bi-Level Data Mixture Optimization with Twin Networks3 Jun 2026
- 2026Towards Efficient LLMs Annealing with Principled Sample Selection29 May 2026
- 2026D3: Dynamic Directional Graph-Constrained Data Scheduling for LLM Training29 May 2026
- 2026DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixtures11 May 2026
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Data29 Jan 2026
- 2025Sampling and Loss Weights in Multi-Domain Training10 Nov 2025