Lune

ICML2024Top-tier venue

DOGE: Domain Reweighting with Generalization Estimation

Simin Fan, Matteo Pagliardini, Martin Jaggi

Abstract

The coverage and composition of the pretraining data significantly impacts the generalization ability of Large Language Models (LLMs). Despite its importance, recent LLMs still rely on heuristics and trial and error to increase or reduce the influence of data-domains. We propose DOmain reweighting with Generalization Estimation (DoGE), which optimizes the probability of sampling from each domain (domain weights) in a principled way. Our approach is a two-stage process consisting of (i) training a proxy model to obtain domain weights using a bi-level optimization algorithm; (ii) training a larger base model by sampling training domains according to the learned domain weights. In our experiments, we extensively show how DoGE improves the generalization of the base model to any target data mixture. On the SlimPajama dataset, our base model gets better perplexity and few-shot reasoning accuracies across 66 tasks compared to baseline methods. Moreover, aiming to generalize to out-of-domain target tasks, which is unseen in the pretraining corpus (OOD domain), DoGE can effectively identify inter-domain dependencies, and consistently achieves better test perplexity on the target domain.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

45 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Data Selection for Language Models via Importance Resampling cites Language Models are Few-Shot Learners
  • DDK: Distilling Domain Knowledge for Efficient Large Language Models cites Language Models are Few-Shot Learners
  • Skill-it! A data-driven skills framework for understanding and training language models cites Data Selection for Language Models via Importance Resampling
  • Skill-it! A data-driven skills framework for understanding and training language models cites Language Models are Few-Shot Learners
  • DreamPRM: Domain-reweighted Process Reward Model for Multimodal Reasoning cites Language Models are Few-Shot Learners
  • Scaling Laws for Optimal Data Mixtures cites Language Models are Few-Shot Learners
  • GREATS: Online Selection of High-Quality Data for LLM Training in Every Iteration cites Estimating Training Data Influence by Tracing Gradient Descent
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers45

  1. GREATS: Online Selection of High-Quality Data for LLM Training in Every IterationJiachen T. Wang, Tong Wu, Dawn Song, Prateek Mittal et al.NeurIPS 2024 · 91 citations
  2. Scaling Laws for Optimal Data MixturesMustafa Shukor, Louis Béthune, Dan Busbridge, David Grangier et al.NeurIPS 2025 · 54 citations
  3. DDK: Distilling Domain Knowledge for Efficient Large Language ModelsJiaheng Liu, Chenchen Zhang, Jinyang Guo, Yuanxing Zhang et al.NeurIPS 2024 · 50 citations
  4. DreamPRM: Domain-reweighted Process Reward Model for Multimodal ReasoningQi Cao, Ruiyi Wang, Ruiyi Zhang, Sai Ashish Somayajula et al.NeurIPS 2025 · 17 citations
  5. Meta-rater: A Multi-dimensional Data Selection Method for Pre-training Language ModelsXinlin Zhuang, Jiahui Peng, Ren Ma, Yinfan Wang et al.ACL 2025 · 15 citations

Builds on10

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Estimating Training Data Influence by Tracing Gradient DescentGarima Pruthi, Frederick Liu, Satyen Kale, Mukund SundararajanNeurIPS 2020 · 784 citations
  3. Data Selection for Language Models via Importance ResamplingSang Michael Xie, Shibani Santurkar, Tengyu Ma, Percy LiangNeurIPS 2023 · 383 citations
  4. Curriculum Learning for Natural Language UnderstandingBenfeng Xu, Licheng Zhang, Zhendong Mao, Quan Wang et al.ACL 2020 · 156 citations
  5. Skill-it! A data-driven skills framework for understanding and training language modelsMayee F. Chen, Nicholas Roberts, Kush Bhatia, Jue Wang et al.NeurIPS 2023 · 143 citations

Related papers

  1. DoReMi: Optimizing Data Mixtures Speeds Up Language Model PretrainingSang Michael Xie, Hieu Pham, Xuanyi Dong, Nan Du et al.NeurIPS 2023 · 457 citations
  2. Chameleon: A Flexible Data-mixing Framework for Language Model Pretraining and FinetuningWanyun Xie, Francesco Tonin, Volkan CevherICML 2025
  3. GRAPE: Optimize Data Mixture for Group Robust Multi-target Adaptive PretrainingSimin Fan, Maria Ios Glarou, Martin JaggiNeurIPS 2025 · 4 citations
  4. TANDEM: Bi-Level Data Mixture Optimization with Twin NetworksJiaxing Wang, Deping Xiang, Jin Xu, Mingyang Yi et al.NeurIPS 2025 · 3 citations
  5. SampleMix: A Sample-wise Pre-training Data Mixing Strategy by Coordinating Data Quality and DiversityXiangyu Xi, Deyang Kong, Jian Yang, Jiawei Yang et al.EMNLP Findings 2025
Dusk over the sea between two cliffs drawn in fine vertical lines