Skip to content

Choosing the data mixture: DoReMi, RegMix and proxy-model search

Skip →LR schedules, WSD and mid-training
Pretraining stage 2 #5corefrontierpaperrubric 11/122024 · ICLR 2025 · ~45 min

Qian Liu, Xiaosen Zheng, Niklas Muennighoff, …, Min Lin

Read first: Training Compute-Optimal Large Language Models · DataComp-LM: In search of the next generation of training sets for language models

Status

TL;DR. A pretraining corpus is a set of domains (web, code, books, papers, math), and the mixture says what fraction of training tokens comes from each. The mix changes downstream accuracy by several points, but you cannot afford to train many full-size models to compare mixes. This page covers three ways to choose a mix on small models. DoReMi (Xie et al., 2305.10429) trains a small proxy with Group DRO and reads off domain weights. Group distributionally robust optimization (Group DRO) alternates between an adversary that emphasizes the worst-served domain and a model that reduces the resulting weighted loss; in DoReMi the product we keep is the adversary’s average domain weights, not the proxy model. RegMix (Liu et al., 2407.01492), the main paper here, trains 512 tiny models on random mixes, fits a regression from mix to loss and picks the predicted best. Data mixing laws (Ye et al., 2403.16952) fit an explicit formula for loss as a function of the mix.

Why it matters now. Every frontier report has a mixture decision: Llama 3 used small-model experiments to set about 50% general knowledge, 25% math and reasoning, 17% code and 8% multilingual, and MAI-Thinking-1 chose its mix on a scaling ladder. The methods here are the published, reproducible versions of that search. They also show where small-scale search breaks. For IR readers, the same question appears whenever you train a retriever on many query sources.

Skip on a first read: the Group DRO derivation, the RegMix sampling details and the nested scaling laws in the mixing-law section. Read the two worked examples first.

Notation. There are kk domains D1,…,DkD_1,\dots,D_k. The weights α=(α1,…,αk)\alpha=(\alpha_1,\dots,\alpha_k) lie on the simplex Δk\Delta^k (each αi≥0\alpha_i\ge 0 and ∑iαi=1\sum_i\alpha_i=1). For the sampling model, choose a domain ii with probability αi\alpha_i, then sample a training example from it. Interpreting these weights as token fractions assumes equal-length packed examples or length-aware sampling; arbitrary variable-length documents need not produce those token fractions.

Why not grid search? With 17 domains and weights in steps of 0.1 there are (2616)=5,311,735\binom{26}{16}=5{,}311{,}735 mixtures. RegMix’s 64 different mixes for a 1B model on 25B tokens give averages from 43.7 to 47.9 across its benchmarks, and Lambada ranges from 18.9 to 33.5. The mix matters, and the space is far too large to train each candidate at full size. All three methods replace the full-size runs with small proxy runs.

DoReMi: learn the weights with a minimax proxy

Section titled “DoReMi: learn the weights with a minimax proxy”

Intuition: give more weight to domains where the model can still improve. “Can still improve” is measured against a reference model.

  1. Train a small reference model θref\theta_{\text{ref}} on default weights αref\alpha_{\text{ref}} (for the Pile, its standard weights).
  2. Train a proxy model of the same size with Group DRO. It minimises the worst weighted excess loss:
min⁡θ max⁡α∈Δk ∑i=1kαi[1∑x∈Di∣x∣∑x∈Di(ℓθ(x)−ℓref(x))]\min_\theta\ \max_{\alpha\in\Delta^k}\ \sum_{i=1}^{k}\alpha_i\left[\frac{1}{\sum_{x\in D_i}|x|}\sum_{x\in D_i}\big(\ell_\theta(x)-\ell_{\text{ref}}(x)\big)\right]

Here ℓθ(x)\ell_\theta(x) and ℓref(x)\ell_{\text{ref}}(x) are the summed token losses of the proxy and reference on document xx, and ∣x∣|x| is its length in tokens. The bracket is the excess loss of domain ii per token.

  1. Train the large model on the averaged weights αˉ\bar\alpha by ordinary resampling.

The inner max is solved online with a multiplicative-weights (exponentiated-gradient) step. At step tt, a minibatch is sampled uniformly over domains, and for each domain:

λt[i]=1∑x∈Bi∣x∣∑x∈Bi∑j=1∣x∣max⁡(ℓθ,j(x)−ℓref,j(x), 0)\lambda_t[i]=\frac{1}{\sum_{x\in B_i}|x|}\sum_{x\in B_i}\sum_{j=1}^{|x|}\max\big(\ell_{\theta,j}(x)-\ell_{\text{ref},j}(x),\,0\big) αt′=αt−1⊙exp⁡(η λt),αt=(1−c) αt′∑iαt′[i]+c u\alpha'_t=\alpha_{t-1}\odot\exp(\eta\,\lambda_t),\qquad \alpha_t=(1-c)\,\frac{\alpha'_t}{\sum_i\alpha'_t[i]}+c\,u

BiB_i is the batch’s documents from domain ii, ℓθ,j\ell_{\theta,j} is the loss on token jj, ⊙\odot is elementwise product, η=1\eta=1 is the step size, c=10−3c=10^{-3} is smoothing and uu is uniform. The proxy is then updated on the αt\alpha_t-weighted loss. The output is αˉ=1T∑t=1Tαt\bar\alpha=\frac{1}{T}\sum_{t=1}^{T}\alpha_t.

Why excess loss: noisy, high-entropy text has high loss for both models, so its excess is small; trivial text has low loss for both. Excess loss is high where the reference shows the text is learnable and the proxy has not learned it yet. Using only the proxy loss or only the reference loss did worse in the paper’s ablation.

Worked example (DoReMi, one domain triple, two steps). Domains web, code, forum; α0=(1/3,1/3,1/3)\alpha_0=(1/3,1/3,1/3).

webcodeforum
proxy / reference loss (step 1)3.4 / 2.81.3 / 1.14.0 / 3.9
λ1\lambda_1 (clipped excess)0.60.20.1
α0 eλ1\alpha_0\,e^{\lambda_1}0.60740.40710.3684
normalised (sum 1.3829)0.43920.29440.2664
α1\alpha_1 after smoothing0.43910.29440.2665
λ2\lambda_20.40.30.1
α2\alpha_20.48620.29510.2187
αˉ=(α1+α2)/2\bar\alpha=(\alpha_1+\alpha_2)/20.46260.29480.2426

(Here λ\lambda is treated as the mean of per-token clipped excess. The displayed domain-average proxy/reference losses are illustrative; in general you cannot subtract those averages and then clip. For two token differences +1+1 and −1-1, clipping before averaging gives 0.5, while clipping the average gives 0.) Forum has the highest raw loss (4.0) but the lowest excess, so it falls. Code holds roughly steady even though its excess is positive, because weights are relative.

RegMix: treat the mix as a regression input

Section titled “RegMix: treat the mix as a regression input”

Intuition: instead of learning weights inside one run, sample many mixes, train a tiny model on each, and learn a cheap function f^(α)≈\hat f(\alpha)\approx validation loss. Then search that function, not the training runs.

  1. Sample 512 mixtures from Dirichlet(λ⋅p)\text{Dirichlet}(\lambda\cdot p), where pp is the domains’ token share and λ∈[0.1,5.0]\lambda\in[0.1,5.0] varies the spread. This covers extreme mixes but stays tied to how much data each domain has. The released code also caps each weight so that no domain repeats more than a set number of epochs.
  2. Train a 1M-parameter model (non-embedding) on 1B tokens for each mix and record the target: validation loss on Pile-CC, chosen because it correlates best with downstream tasks.
  3. Fit a regressor: ridge linear regression y=ω0+∑iωixiy=\omega_0+\sum_i\omega_i x_i, or LightGBM. LightGBM is an ensemble of boosted decision trees, so it can model nonlinear effects of the weights.
  4. Simulate one million Dirichlet mixtures with the regressor (under 10 CPU seconds), and average the top 100 predicted mixtures. The paper does this for robustness; the average stays on the simplex and within any shared convex weight caps, but it is not guaranteed to lie within the region the proxy runs covered, and it does not remove error shared by the top candidates.
  5. Train the large model on that average.

The key assumption is rank invariance: the ordering of mixtures by loss is the same for the tiny proxies and the target model. RegMix only needs the order to transfer, not the loss values.

Worked example (RegMix, 6 proxy runs). Domains web, code, books (books share is 1−xweb−xcode1-x_{\text{web}}-x_{\text{code}}). The target is web validation loss. These numbers are made up for teaching; they come from the toy function y=3.30−0.9xweb−0.6xcode+0.8xcode2y=3.30-0.9x_{\text{web}}-0.6x_{\text{code}}+0.8x_{\text{code}}^2, where a little code helps.

runwebcodebookstarget losslinear fit
10.80.10.12.5282.503
20.50.40.12.7382.780
30.30.30.42.9222.956
40.60.20.22.6722.684
50.20.70.13.0923.058
60.40.10.52.8882.860

Least squares with books dropped (the three weights sum to 1, so keeping all three plus an intercept is collinear) gives y^=3.214−0.893 xweb+0.032 xcode\hat y=3.214-0.893\,x_{\text{web}}+0.032\,x_{\text{code}}. The fit ranks all six runs in the right order (Spearman ρ=1\rho=1). Its minimum on the simplex is still a corner, 100% web. With a realistic cap of 70% web, the linear model picks (0.7, 0.0, 0.3) with predicted loss 2.589; the true loss there is 2.670, while (0.7, 0.3, 0.0) gives 2.562. A model that cannot represent the quadratic code effect (not a web×code interaction) ranks the observed runs well but sends the search to the wrong place. This is why RegMix prefers LightGBM, samples near realistic mixes and averages many top candidates.

Intuition: loss falls as you add a helpful domain, with diminishing returns, and the falls combine. Ye et al. use an exponential, not a power law, because a power law diverges when a domain’s share goes to 0:

Li(r1,…,rM)=ci+kiexp⁡(∑j=1Mtij rj),L=∑isi LiL_i(r_1,\dots,r_M)=c_i+k_i\exp\Big(\sum_{j=1}^{M}t_{ij}\,r_j\Big),\qquad L=\sum_i s_i\,L_i

LiL_i is validation loss on domain ii, rjr_j is training share of domain jj, cic_i is the fitted mixture-independent floor and ki>0k_i>0 is a scale. The paper reads tij<0t_{ij}<0 as “training on jj helps ii”. On the simplex, however, increasing one share requires decreasing another: moving mass from domain hh to jj changes log⁡(Li−ci)\log(L_i-c_i) at rate tij−tiht_{ij}-t_{ih}. These contrasts, not an individual coefficient’s sign, decide whether that substitution helps (adding a constant aa to every tijt_{ij} and replacing kik_i by kie−ak_ie^{-a} leaves LiL_i unchanged). sis_i weights validation domains; if the validation set’s makeup is unknown, it is learned over implicit domains. The fitted tijt_{ij} were sparse: many domain pairs barely interact. For a two-domain check, take LA=1.5+e−2rL_A=1.5+e^{-2r} and LB=2.0+0.8e−3(1−r)L_B=2.0+0.8e^{-3(1-r)} with rr the share of A and equal validation weights. Setting the derivative to 0 gives r∗=(3−ln⁡1.2)/5≈0.564r^*=(3-\ln 1.2)/5\approx 0.564 and L=2.020L=2.020, against 2.0232.023 at 50/50.

To predict at large scale, they nest three fits: loss vs training steps, then vs model size (Chinchilla-style), then the mixing law on the predicted losses. Small models (70M to 410M) on many mixes then predict a 1B model on 100B tokens. Unlike simply transferring the best small-model mixture, the nested fits predict a new loss surface at the target size and budget, so its optimum is allowed to move with scale.

DoReMi (Pile, 280M proxy → 8B model). Average one-shot accuracy on five generative tasks improves by 6.5 points, and the baseline’s final accuracy is reached at 75k instead of 200k steps (2.6× faster). Perplexity improves on all 22 domains, including downweighted ones. The two 280M runs cost 8% of the 8B run. Weights change a lot: Pile-CC rises from 0.1121 to 0.6057, while ArXiv falls from 0.1052 to 0.0036 and PubMed Central from 0.1071 to 0.0046. Proxy size matters non-monotonically (Table 3a, worst-case/average log-perplexity of the 8B model): baseline 1.71/1.64, 70M proxy 1.63/1.53, 280M 1.46/1.40, 1B 1.58/1.54. On GLaM’s six domains, iterated DoReMi converged in 3 rounds, and round 2 already matched weights tuned on downstream tasks.

RegMix (17 Pile domains, 1B model on 25B tokens). The 512×1M proxies cost about 2% of one 1B run. Check with C≈6NDC\approx 6ND: 512×6×106×109≈3.1×1018512\times 6\times 10^{6}\times 10^{9}\approx 3.1\times10^{18} (the paper reports 3.5×10183.5\times10^{18}) against 6×109×25×109=1.5×10206\times10^{9}\times 25\times10^{9}=1.5\times10^{20}. Table 4 averages:

MixtureAvg.Search FLOPs
Human (Pile weights)45.10
DoReMi46.83.7e19
Pile-CC only46.80
PPL filtering46.21.8e19
RegMix47.33.5e18

RegMix is best on 7 of 14 tasks; HellaSwag rises from 37.4 (Human) to 44.2. DoReMi’s weights here were taken from its paper and renormalised to 17 domains, so this is not a fresh DoReMi run. At 7B on 100B tokens (App. J), RegMix averages 56.5 against 54.5, but loses on SciQ, LogiQA, QQP and MultiRC. This is an external check of the selected mixture, not an exhaustive 7B test of rank invariance across many mixtures. Similarly, DoReMi’s proxy-size ablation also changes its optimization procedure; it is not a clean two-mixture ranking reversal. With 100 FineWeb domains, LightGBM still reaches Spearman ρ=0.9953\rho=0.9953 (99.53% in the paper’s table) at 1M. RegMix also finds that domain effects are hard to guess: PhilPapers appears to help all domains, and only DM Mathematics shows a near power-law loss vs. weight relation.

Data mixing laws (RedPajama → Pile validation). The optimised mix for a 1B model on 100B tokens reaches the default mixture’s 100k-step loss in about 73k steps. At 100k steps it reaches a still lower loss that the paper estimates would need about 148k steps with the default mixture; that second comparison extrapolates the default training curve. It also beats DoReMi and DoGE. In continual pretraining of Pythia-70M on Pile plus Python, the law predicts the smallest Pile share that keeps Pile loss from rising.

The main DoReMi and RegMix experiments select a fixed mixture for training from scratch. Data mixing laws additionally fit mixtures for continual pretraining from an existing checkpoint. A mixture fitted from scratch should not be assumed to transfer to a late-stage checkpoint without a new test. Modern recipes also change the mix at the end, while the learning rate decays to 0. Annealing is the learning-rate decay; mid-training is a later training stage that may change the mixture, context length and other objectives. They often occur together, but are not synonyms. Llama 3 valued candidate datasets by annealing a half-trained 8B model over 40B tokens, assigning 30% to the candidate dataset. Separately, a diagnostic that included the GSM8k and MATH training sets reported gains of 24.0% and 6.4%, respectively, on their validation sets at 8B, but negligible gains at 405B. Those benchmark training sets were excluded from the final annealing mixture. OLMo 2 spends 5–10% of FLOPs on the Dolmino mix and chose its sources with 19 microanneals totalling 130B tokens. MAI-Thinking-1 shifts mid-training to 55% code and 35% STEM/math. Annealing tests are cheaper than from-scratch proxies because they start from a real checkpoint, but they answer a different question: what helps a trained model at the end, not what mix to learn from.

  • Rank invariance can fail. RegMix checks it only up to 1B parameters. On the site, MAI-Thinking-1 shows a STEM-heavy mix winning on held-out STEM NLL at small scale and losing to a code-heavy mix at 23B active parameters on about 20T tokens. The authors hypothesize that two high-quality but more duplicated, less diverse STEM sources contributed to the reversal; their weights were 11.8% in the STEM-heavy mixture versus 0.3% in the code-heavy mixture. The report does not isolate duplication with a controlled ablation. DoReMi’s 1B proxy chose very different weights from its 280M proxy (Pile-CC 0.1199 vs 0.6057), and the 8B model did worse with them.
  • Data limits. RegMix assumes each domain has unlimited data. A mix that upweights a small domain forces repetition; data-constrained scaling suggests about 4 epochs cost little, more do not. The released code caps sampling for this reason.
  • The target decides the answer. RegMix optimises Pile-CC loss; MMLU and GSM8K are near random at its scales. DoReMi optimises worst-case excess loss, not a downstream metric.
  • Domains are given. All methods need named domains in advance and, for RegMix, the same tokenizer for proxies and the target model. What counts as a domain changes the result.
  • Mixing interacts with filtering. DCLM found adding curated sources helped C4 but hurt the stronger DCLM-Baseline, so the best mix depends on how each domain was filtered.
  • Number check. RegMix App. F gives DoReMi’s 280M-proxy Pile-CC weight as 0.67; DoReMi’s own table says 0.6057. This page uses DoReMi’s figure.

Retriever training is also a mixture problem. Contrastive embedding models train on dozens of sources (QA pairs, search logs, title–body pairs, synthetic queries). Nomic Embed draws each batch from one source, and Gemini Embedding grid-searches its fine-tuning mixture and finds an English-only diverse-task mix (66.75 on MTEB Multilingual) beats a multilingual retrieval-only one (58.24). Treat query sources or query types as domains, held-out BEIR-style nDCG@10 or validation contrastive loss as the target, and a small encoder trained briefly as the proxy. DoReMi’s excess loss maps to a familiar idea: train more on queries where your retriever is wrong but a stronger reference retriever is right.

Re-run the two worked examples in a few lines of Python: implement the DoReMi update with math.exp and check the table, then fit the six RegMix runs by least squares and search a 0.05 grid over the simplex with and without the 70% web cap. Then refit with a xcode2x_{\text{code}}^2 feature and see the optimum move. The RegMix notebook does the real version with Dirichlet sampling and the top-k average.

You should now be able to…

  • explain why mixture weights matter and why they are searched with proxies;
  • write the DoReMi update and run it by hand;
  • describe the RegMix pipeline and its rank-invariance assumption;
  • write the data mixing law and interpret cic_i, kik_i and tijt_{ij};
  • tell a pretraining mix from an annealing mix;
  • name cases where proxy results did not transfer and how to check for them.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Run one DoReMi weight update by hand for three domains that start at uniform weights, with clipped excess losses of 0.5, 0.0 and 0.2, step size η = 1 and smoothing c = 0.001. Then explain why the domain with zero excess loss still loses weight, and what the final weights used for the large model are.

    What a strong answer covers
    • Unnormalised weights are (1/3)·e^0.5, (1/3)·e^0, (1/3)·e^0.2 = 0.5496, 0.3333, 0.4071; their sum is 1.2900.
    • Normalising gives about (0.4260, 0.2584, 0.3156); mixing in 0.1% uniform gives about (0.4259, 0.2585, 0.3156).
    • The update is multiplicative and then renormalised, so weight is relative: a domain with zero excess loss is multiplied by 1 while the others grow, so its share falls from 0.333 to about 0.26.
    • The large model is not trained on the last step's weights but on the average of the weights over all proxy training steps.
  2. Mechanism

    DoReMi upweights domains by excess loss (proxy loss minus reference loss) rather than by the proxy's raw loss. Explain what excess loss measures for a high-entropy domain, a nearly memorised domain and a learnable domain, and what the paper's ablation found when either term was used alone.

    What a strong answer covers
    • High-entropy text (noisy forums, random strings) has high loss for both models, so the difference is small and it is not upweighted even though its raw loss is highest.
    • Very easy or repetitive text has low loss for both models, so excess loss is also small; extra tokens there teach little.
    • A domain where the reference model does well but the proxy still lags has large excess loss: the gap shows there is learnable structure left.
    • Ablation: using only the proxy loss (favouring the hardest domains) or only the negative reference loss (favouring the easiest) both did worse than excess loss.
    • The idea is close to Moore–Lewis cross-entropy difference used for data selection, and to choosing training queries where a model is wrong but a stronger model is right.
  3. What if…

    RegMix makes several design choices: many tiny proxies rather than fewer longer runs, LightGBM rather than linear regression, and averaging the top 100 predicted mixtures rather than taking the single best. Using the paper's numbers, explain what each choice buys and why a linear model alone would be a risky optimiser over the simplex.

    What a strong answer covers
    • Fig. 4: more proxy runs beats more tokens per run; gains from tokens per proxy flatten around 0.25B, and 512 runs at 0.2B beat 128 runs at 0.8B.
    • Table 2 reports ρ = 0.9008, 0.8926 and 0.8801 for linear regression on 1M, 60M and 1B target models, versus 0.9845, 0.9864 and 0.9712 for LightGBM.
    • A linear function on the simplex is minimised at a corner (one domain at 100%), so a linear fit can rank observed runs well yet send the search to an untested extreme.
    • Averaging the top 100 predicted mixtures is intended to make selection more robust. It preserves the simplex and any shared convex weight caps, but does not guarantee interpolation within the training mixtures or remove shared regression error.
    • Appendix K compares 128×1B proxies with 512×1M proxies, each trained on 1B tokens: target averages are 56.4 and 56.5. This supports the cheap configuration in that comparison, but model count and size changed together, so it is not an isolated proxy-size ablation.
  4. Critique

    RegMix transfers mixture rankings from tiny models to larger ones. Distinguish the evidence from its multi-mixture rank tests, its selected-mixture 7B result, DoReMi's proxy-size ablation and MAI-Thinking-1's two-mixture reversal. Which tests directly assess rank invariance, what confound remains in each, and what intermediate-scale experiment would you run?

    What a strong answer covers
    • Support: RegMix reports high Spearman ρ across 1M, 60M, 280M and 1B models and 1B to 25B tokens, but only up to 1B, and admits that checking 3B would need 64 models on 50B tokens each.
    • DoReMi with a 280M proxy gives Pile-CC 0.6057; with a 1B proxy it gives 0.1199 and puts most weight on OpenWebText2 (0.3289). The 8B model trained on 1B-proxy weights was worse than with 280M-proxy weights.
    • DoReMi's worse 1B-proxy weights can reflect Group DRO optimization quality, as its authors suggest; this is not by itself proof that a fixed pair of mixtures reverses order with scale.
    • MAI-Thinking-1 Fig. 6: a STEM-heavy mix wins on held-out STEM NLL at small scale but loses to a code-heavy mix at 23B active parameters on about 20T tokens. The authors hypothesize that two high-quality but more duplicated, less diverse STEM sources (11.8% of the STEM-heavy mix vs 0.3% of the code-heavy mix) contributed; no controlled ablation isolates duplication.
    • Repetition and limited diversity are plausible scale-dependent failure modes, not a demonstrated universal law that small models prefer repeats. Vary duplication or source availability while holding mixture, model size and token budget controlled.
    • Mitigation: confirm the top few candidates at one or two intermediate scales and cap each domain by available tokens times a tolerable number of epochs.
  5. Design

    You train a dense retriever on a mix of query sources: web search logs, community QA, scientific claims, code search and synthetic LLM-generated queries. Adapt RegMix or DoReMi to choose the sampling weights, and say what plays the role of the target loss, the proxy model and the reference model.

    What a strong answer covers
    • Domains are query sources or query types; keep one source per batch, as Nomic and Gemini Embedding do, so in-batch negatives are not trivially easy.
    • Optimize a held-out development collection: maximize mean nDCG@10, or minimize negative nDCG or contrastive validation loss. Keep final BEIR-style test tasks untouched by mixture selection.
    • RegMix version: train many short runs of a small encoder on Dirichlet-sampled mixtures centred on source sizes, regress the target on the weights, and average the top predicted mixes.
    • DoReMi version: a reference retriever trained on the default mix, then a proxy whose per-source weights rise where its contrastive loss exceeds the reference's.
    • Check the chosen weights with a full-size run, and cap small sources so the encoder does not see them for too many epochs.
  6. Connect

    Compare data mixing laws (Ye et al.) with RegMix. Write the mixing-law functional form, explain each parameter, and say what each method assumes about how loss depends on the mixture and on scale, and how each relates to late-stage annealing mixes such as Llama 3's and OLMo 2's.

    What a strong answer covers
    • Mixing law: L_i = c_i + k_i·exp(Σ_j t_ij·r_j). Shares r_j sum to one; c_i is the fitted mixture-independent floor, k_i > 0 a scale, and replacing domain h with j is helpful when t_ij − t_ih < 0.
    • Mixing laws assume an explicit parametric form and handle scale with nested step and model-size scaling laws; RegMix assumes no form but assumes the ranking of mixtures is the same at small and large scale.
    • Mixing laws: for a 1B model, the optimised mix reached the default mix's 100k-step loss in about 73k steps, and its 100k-step loss would need about 148k default-mix steps (extrapolated); RegMix matched or beat DoReMi with about 10% of its search compute.
    • Annealing mixes are chosen at the end of training with the learning rate decaying to 0: Llama 3 valued candidate datasets by annealing a half-trained 8B model over 40B tokens with 30% weight on the candidate; OLMo 2 ran microanneals.
    • DoReMi and RegMix's main experiments select from-scratch mixtures, whereas Ye et al. also refit a mixing law for continual pretraining. For a late-stage anneal, fit or validate at the relevant checkpoint and learning-rate schedule rather than transplanting the from-scratch optimum.

Done with this page?

Status