LinMix:作为线性域归因的数据混合
LinMix: Data Mixing as Linear Domain Attribution
AI总结:
LinMix将数据混合视为线性域归因问题,采用无超参数的顶点采样方法,在288个细粒度域下,使1B参数OLMo2和4B参数Qwen3.5语言模型在多基准测试中优于基于Dirichlet的混合方法,平均提升11%。
摘要:
语言模型的性能强烈依赖于预训练数据语料库中的域混合情况。流行的数据混合方法通过在随机混合上训练多个小型代理模型,再拟合回归模型以从混合中预测性能,来选择这些域权重。我们将这种实践视为一个域归因问题,其中回归衡量每个域对目标指标的贡献。从这个角度来看,代理数据混合的标准Dirichlet采样是一种糟糕的回归设计,需要调参且无法支持对数百个域进行线性拟合。基于经典的最优实验设计,我们引入了LinMix,它在有界单纯形的顶点处采样混合,使得每个域要么处于其上限,要么不存在。这种无超参数的顶点采样使域效应去相关,从而得到一个可解释的线性模型,其系数即为域归因。LinMix给出的最优混合可证明仅保留具有正归因值的域,且无需在候选混合上进行搜索。我们进一步确立了顶点采样的最优性,并证明当Dirichlet采样的混合集中在先前的数据混合附近时,会放大归因误差。使用1B参数的OLMo2和4B参数的Qwen3.5语言模型进行的预训练实验表明,LinMix在推理、代码和数学基准测试中均优于基于Dirichlet的数据混合,在MBPP上的相对提升为46%,在GSM8K上为14%。在288个细粒度域的情况下,只有顶点采样支持线性拟合,且LinMix的基准测试准确率比最佳非线性基线平均提高了11%。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。