DoGE: Domain Reweighting with Generalization Estimation
Abstract
DOGE optimizes ___domain sampling for LLM pretraining to enhance generalization to target and out-of-___domain tasks.
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 6 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.
Get this paper in your agent:
hf papers read 2310.15393 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper