atlas

Research map / Label-efficient and robust learning / Domain adaptation and generalization

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

ICML 2025 · Label-efficient and robust learning › Domain adaptation and generalization · approach: Mixture and distillation for domain shift · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Chameleon, a data-mixing method that computes domain weights from kernel ridge leverage scores over proxy-model domain embeddings, enabling cheap pretraining mixtures, transfer to new domains without proxy retraining, and finetuning mixtures.

Problem

Domain reweighting for LLM pretraining and finetuning is costly because existing methods (DoReMi, DoGE) need proxy-model optimization and retraining whenever domains change, and they are mostly limited to pretraining.

Approach

Build a linear-kernel domain affinity matrix from mean proxy-model hidden embeddings per domain and use kernel ridge leverage scores as domain importance: inverse KRLS (Christoffel-like density) for pretraining weights, and KRLS directly for finetuning weights, with no proxy optimization loop.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use inverse KRLS domain weights instead of uniform mixing for pretrainingChameleon · SlimPajama-627B test domainsAverage PPL: 24.20 -> 22.31Helped
Use inverse KRLS domain weights instead of uniform mixing for pretrainingChameleon · SlimPajama downstream tasksAverage accuracy: 37.9 -> 39.6Helped
Use inverse KRLS domain weights instead of uniform mixing for pretrainingChameleon · SlimPajama-627B test domains, 1.2B modelAverage PPL: 16.86 -> 15.03Helped
Use inverse KRLS domain weights instead of uniform mixing for pretrainingChameleon · SlimPajama downstream tasks, 1.2B modelAverage accuracy: 40.5 -> 41.5Helped
Transfer weights to new domains using the existing proxy rather than retraining a proxyChameleon · Pile new domainsAverage PPL: 23.05 -> 19.94Helped
Transfer weights to new domains using the existing proxy rather than retraining a proxyChameleon · Pile downstream tasksAverage accuracy: 38.2 -> 39.7Helped
Use KRLS weights rather than uniform domain weights for fine-tuningChameleon · Wiki40b, 7 Latin languagesAverage PPL: 9.43 -> 8.58Helped
Use KRLS weights rather than uniform domain weights for fine-tuningChameleon · Stack dataset, 7 programming languagesAverage PPL: 22.02 -> 17.18Helped
Use KRLS weights rather than inverse KRLS weights for fine-tuning (ablation)Chameleon · Wiki40b and Stack fine-tuningtest perplexityHelped
Derive domain weights from a proxy trained for 2k steps (ablation)Chameleon · SlimPajama-627B test domainsAverage PPL: 26.34 -> 22.31Helped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama-627B Pile Wiki40b Stack-dedup

Benchmarks: SlimPajama per-domain perplexity Pile per-domain perplexity ARC-E COPA HellaSwag Lambada LogiQA MultiRC OpenBookQA PiQA QQP RACE

Metrics: perplexity accuracy GPU hours FLOPs

Baselines: Uniform DoReMi DoGE RegMix Data Mixing Laws Human (Pile)

Builds on: DoReMi DoGE RegMix kernel ridge regression leverage scores

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy