Papers
Topics
Authors
Recent
Search
2000 character limit reached

Olmix: Principled Data Mixing for LLMs

Updated 3 July 2026
  • Olmix is a principled framework for data mixing in LLM training, integrating offline configuration, optimization, and mixture reuse for robust performance.
  • It systematically explores key design axes—such as proxy model size, swarm size, and regression granularity—to achieve state-of-the-art bits-per-byte metrics.
  • Olmix employs efficient mixture reuse algorithms that adapt to evolving domains, reducing proxy runs by up to 74% while maintaining high model utility.

Olmix is a principled framework for data mixing in the training and continual development of large LMs under evolving domain sets and practical data constraints. It encompasses both a systematic study of the offline data mixing configuration space and a suite of algorithms for efficient mixture recomputation as datasets are added, removed, or revised throughout real-world LM development cycles (Chen et al., 12 Feb 2026).

1. Formal Definition and Problem Setup

Let the domain set be D={D1,,Dm}D = \{D_1, \dots, D_m\}, where each domain DiD_i contains NiN_i available tokens. A mixture is a probability vector

pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},

specifying that piRp_i R tokens from DiD_i are used when training for RR tokens total. An LM of size SS parameters trained for RR tokens on mixture pp is denoted DiD_i0. For DiD_i1 downstream tasks, the DiD_i2-th task is evaluated via the bits-per-byte (BPB) metric

DiD_i3

with lower values indicating better performance. The data mixing objective is to find

DiD_i4

In data-constrained settings, a repetition bound DiD_i5 is imposed such that

DiD_i6

This constraint prevents excessive resampling from low-resource domains, addressing overfitting and maintaining data diversity.

2. Offline Mixing Schema and Configuration Space

Olmix builds on a three-step offline mixing schema: Swarm DiD_i7 Regression DiD_i8 Optimization. The configuration space is parameterized along seven key design axes, each empirically studied:

  1. Proxy model size (DiD_i9): Proxy LMs with NiN_i0 parameters are required to achieve Spearman NiN_i1 correlation with full-scale (1B) models. NiN_i2-parameter proxies yield only NiN_i3.
  2. Swarm size NiN_i4 vs. domain count NiN_i5: Error in the mixing objective collapses when NiN_i6; empirically, NiN_i7 suffices.
  3. Swarm distribution NiN_i8: Sparse swarms (allowing NiN_i9) benefit topic-level domains by uncovering exclusion, while dense swarms suit source-level domains. Dirichlet priors centered on the natural distribution pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},0 proved robust; uninformative priors degraded performance.
  4. Regression family pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},1: Tested surrogates include LightGBM, Gaussian Process, BiMix, AutoScale, and log-linear. The per-task log-linear model

pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},2

yields the highest Pearson correlation (pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},3 at pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},4) and best downstream BPB.

  1. Regression granularity: Fitting per-task surrogates (one model per downstream task) achieves the best fit (pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},5) and BPB (0.765 vs. 0.777 per-family, 0.774 aggregated).
  2. Data repetition constraints: Constraints pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},6 are enforced solely in the optimization step (pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},7 is typical), rather than during swarm construction. Constraining the swarm degrades performance, while unconstrained swarms plus constrained optimization maintain efficacy.
  3. Optimization solver: Mixture optimization minimizes

pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},8

subject to the repetition bounds, using CVXPY with a Kullback-Leibler (KL) penalty (pΔm1,Δm1={pR0m:i=1mpi=1},p \in \Delta^{m-1}, \qquad \Delta^{m-1} = \left\{ p \in \mathbb{R}^m_{\ge 0} : \sum_{i=1}^m p_i = 1 \right\},9). This regularization mitigates overfitting to the regression surrogate.

These choices form the OlmixBase method, which achieves state-of-the-art results on rigorous BPB benchmarks.

3. Key Empirical Insights

Empirical studies underpin Olmix's recommendations for data mixing in LM training:

  • Proxy LMs with piRp_i R0 parameters at piRp_i R1 Chinchilla scaling reliably transfer mixing strategies to 1B-parameter models.
  • Swarm sample complexity is linear in the number of domains, with piRp_i R2 sufficient for error minimization.
  • Domain granularity (topic or source) informs whether to use sparse or dense swarm priors.
  • Per-task log-linear regression achieves average BPB = 0.765; LightGBM and BiMix trail at 0.775 and 0.778, respectively.
  • Enforcing repetition bounds in the optimization only allows for higher utility mixes and steadier performance.
  • Mixes optimized with a small KL penalty (piRp_i R3) outperform pure convex solvers by reducing over-optimization risk.

4. Mixture Reuse Under Evolving Domains

Olmix introduces algorithms for efficient mixture recomputation when domains change. Rather than re-running the entire offline schema (piRp_i R4 proxy runs for updated piRp_i R5), mixture reuse freezes weights for unaffected domains and optimizes for new/affected domains only. Partition piRp_i R6, prescribing

piRp_i R7

with a collapsed mixture piRp_i R8, piRp_i R9. Sampling DiD_i0 runs in this reduced space and expanding to DiD_i1 via DiD_i2, one fits per-task log-linear surrogates and optimizes DiD_i3 with repetition and KL constraints. PartialMixtureReuse recomputes a superset of old domains to further control coupling, with corresponding complexity.

Reuse Method Proxy Runs per Update Performance (% BPB improvement vs. natural)
Full Recompute 832 +12.2
FullMixtureReuse 216 +11.6
PartialMixtureReuse 272 +12.0
Swarm Reuse 268 +11.4

Mixture reuse provides 95% of the full recompute's gains while requiring 74% fewer proxy runs. At 6T tokens, FullMixtureReuse achieves 99% of the full recompute’s improvement (Chen et al., 12 Feb 2026).

5. Experimental Evaluation on Realistic Development Pipelines

A five-stage simulation, mirroring OLMo 1→3 development, demonstrates Olmix's utility:

  1. Initial: 24 topic domains (DCLM).
  2. Add: +15 programming-language domains.
  3. Add: +6 STEM corpora (ArXiv, FineMath-3+, PDFs, Wikipedia, AlgebraicStack, Pes2o).
  4. Revise: Improved PDF processing replaces previous pipeline.
  5. Remove/Partition: Drop AlgebraicStack; split PDFs into 21 finer topics (final DiD_i4).

1B-parameter OLMo2 LMs are trained for DiD_i5B tokens per stage, evaluated on DiD_i6 downstream tasks (math, codegen, QA, commonsense), and measured in BPB. The baseline is sampling in proportion to token count (DiD_i7), and methods compared include OlmixBase, FullMixtureReuse, PartialMixtureReuse, and swarm reuse.

Results reveal that Olmix achieves a DiD_i8 speedup in convergence: the best mix reaches the OLMo natural BPB in DiD_i9K steps, compared to RR0K for naive mixing. All findings are statistically robust across seeds (min–max intervals RR1 of mean).

6. Practical Recommendations

Derived from empirical and theoretical analysis, Olmix’s primary recommendations are:

  • Use RR2M-parameter proxies at RR3 Chinchilla scaling for reliable mixture transfer.
  • Set swarm size RR4 and sample from DirichletRR5; select sparse/dense by domain type.
  • Fit per-task log-linear surrogates of the form RR6.
  • Enforce repetition limits RR7 in optimization only (RR8).
  • Solve for the optimal mixture with CVXPY and a KL regularization term (RR9).
  • When domains shift, employ FullMixtureReuse to reduce proxy runs from SS0 to SS1; with high coupling, use PartialMixtureReuse.

These procedures supply both guidance for initial mixture design and tools for efficient, robust updating as the domain landscape changes and expands.

7. Significance and Context within LLM Training

Olmix empirically establishes principled, statistically robust protocols for data mixing under evolving training corpora—a persistent, under-addressed challenge in LM pipeline management. It systematizes surrogate model choice, regression granularity, sample complexity scaling, domain constraint enforcement, and mixture optimization for optimal downstream task performance. The introduction of mixture reuse methods allows practical, compute-efficient adaptation to new datasets without sacrificing performance. These advances directly address gaps in real-world data curation and model improvement, providing a concrete toolkit for practitioners and researchers training large LMs on dynamic, multi-domain corpora (Chen et al., 12 Feb 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Olmix.