Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

DoGE: Domain Reweighting with Generalization Estimation

About

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.

Simin Fan, Matteo Pagliardini, Martin Jaggi• 2023

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningWinoGrande
Accuracy53.2
1581
Commonsense ReasoningHellaSwag
HellaSwag Accuracy29.2
897
Commonsense ReasoningPIQA
Accuracy58.5
757
Physical Commonsense ReasoningPIQA
Accuracy62
724
Language ModelingLAMBADA
Accuracy11.7
412
Code GenerationHumanEval
pass@115.651
329
Language UnderstandingMMLU
MMLU Accuracy28.117
307
Common Sense ReasoningCOPA
Accuracy64.8
288
Commonsense ReasoningOBQA
Accuracy27.1
187
Sentiment AnalysisSST-2 (test)
Accuracy88.3
162
Showing 10 of 39 rows

Other info

Follow for update