arXiv:2610.37390cs.LGOct 2026

Manuscript Offprint

arXiv:2610.37390

LinMix: Data Mixing as Linear Domain Attribution

Hubert Baniecki, Przemyslaw Biecek, Martin Pawelczyk

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Language model performance depends strongly on the mixture of domains in the pretraining data corpus. Popular data mixing methods select these domain weights by training many small proxy models on random mixes and then fitting a regression model to predict performance from the mix. We recognize this practice as a domain attribution problem, where the regression measures each domain's contribution to the target metric. Through this lens, the standard Dirichlet sampling of proxy data mixes is a poor regression design that requires tuning and cannot support a linear fit for hundreds of domains. Building on classical optimal experimental design, we introduce LINMIX, which samples mixes at the vertices of the capped simplex so that each domain is at its cap or absent. This hyperparameter-free vertex sampling decorrelates domain effects, enabling an interpretable linear model whose coefficients are the domain attributions. The optimal mix given by LINMIX provably keeps only domains with positive attribution values and requires no search over candidate mixes. We further establish the optimality of vertex sampling, and prove that Dirichlet sampling inflates the attribution error when its mixes concentrate around the prior data mix. Pretraining experiments with 1B-parameter OLMo2 and 4B Qwen3.5 language models show that LINMIX outperforms Dirichlet-based data mixing across reasoning, code, and math benchmarks, with relative gains of 46% on MBPP and 14% on GSM8K. At 288 fine-grained domains, only vertex sampling supports a linear fit, and LINMIX improves benchmark accuracy by 11% on average over the best nonlinear baseline.

Models and Data Code

1 Introduction

The composition of a pretraining dataset, drawn from an ever-growing data corpus, is one of the most decisive factors governing the downstream capabilities of large foundation models (Gadre et al., 2023; Team Olmo, 2025). Given the impressive gains in model training efficiency and benchmark performance obtained by curating an optimal dataset, data mixing has emerged as a well-founded optimization problem. Naturally, a source dataset can be split into the so-called domain subsets based on their web origin (e.g., GitHub, arXiv, Fan et al., 2024), semantic type (e.g., code, math, Li et al., 2024), or statistical profile (e.g., by clustering data representations, Diao et al., 2025). Data mixing is then commonly formulated as a domain-weighting problem, where each domain receives a fraction of the target model's token budget and the model is pretrained on the resulting mixture (Xie et al., 2023; Li et al., 2024; Thudi et al., 2025; Xie et al., 2025; Tan et al., 2026).

In this work, we study regression-based data mixing (Liu et al., 2025; Wettig et al., 2025; Ye et al., 2025; Chen et al., 2026), which consists of two stages: (i) training a swarm of small proxy models on randomly sampled mixes, and (ii) selecting the target mix by optimizing a regression model fit to predict performance from the mix. This procedure improves both the benchmark performance and the training efficiency of language models, yet two of its design choices remain poorly understood and

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Attributing Model Behavior at Scale.

Figure

Figure 1: Data mixing for language model pretraining with linear domain attribution. We show that an interpretable linear regression model suffices for data mixing under vertex sampling.

are addressed ad hoc in practice. First, it is unclear from which distribution the proxy mixes should be drawn, a question we frame as the classic problem of regression design (Kiefer and Wolfowitz, 1959), where the sampled mixes govern how much a fixed budget of proxy runs reveals about each domain's effect. Second, we show that popular methods do not scale to hundreds of fine-grained domains, where their Dirichlet sampling and optimization hyperparameters lack working defaults and require per-setup heuristic tuning, which becomes increasingly difficult as the number of domains increases.

Domain attribution. In parallel, data attribution quantifies how much a model's behavior depends on its training data (Koh and Liang, 2017; Ghorbani and Zou, 2019). We formalize regression-based data mixing as a form of data attribution, in which domains replace individual training samples. A linear fit to the proxy runs thus yields a domain-level datamodel (Ilyas et al., 2022), whose coefficients measure each domain's marginal contribution to the target outcome. Consequently, a reliable regression design identifies these interpretable domain weights, an objective this work addresses from first principles.

Contributions. We introduce LINMIX as a simple and effective data mixing method whose vertex proxy sampling scheme enables selection of the optimal mix for language model pretraining via an interpretable linear model ( §3§3). Figure 1 illustrates its design. Pretraining experiments with 1B-parameter OLMo2 and 4B Qwen3.5 language models demonstrate that LINMIX outperforms data mixing methods relying on Dirichlet sampling across reasoning, code, and math benchmarks ( §4§4). Furthermore, our theoretical analysis reveals fundamental limitations of Dirichlet-based mixing ( §5§5). Beyond requiring heuristic hyperparameter tuning, it severely inflates attribution error whenever proxy mixes concentrate around the prior or when the prior becomes skewed (Theorem 1). Finally, we formally establish the theoretical optimality of vertex sampling in LINMIX (Theorem 2).

References (100)

Couldn't load all references. Reload the page to try again.