arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2607.01104cs.LGcs.AIcs.CL
收藏

CausalMix: 数据混合作为语言模型训练的因果推断

CausalMix: Data Mixture as Causal Inference for Language Model Training

Tsinghua University(清华大学);Ant Group(蚂蚁集团);Renmin University of China(中国人民大学)

Zinan Tang, Yukun Zhang, Shaomian Zheng, Zhuoshi Pan, Qizhi Pei, Dingnan Jin, Qing Cui, Jun Zhou, Yujun Wang, Biqing Huang

AI总结:

提出CausalMix框架,将数据混合优化视为因果推断问题,通过条件平均处理效应估计最优混合比例,在7B模型上提升多任务性能,并具备可解释性。

摘要:

在大语言模型(LLM)训练中,数据混合对模型性能起着关键作用。近期方法通过代理模型优化混合权重,但它们依赖于静态数据分布的假设。因此,当底层数据池发生变化时,这些方法需要从头开始进行昂贵的重新训练。这一局限性限制了它们从小规模设置无缝扩展到更大数据池和模型规模的能力。在本文中,我们提出CausalMix来解决这一局限性,将数据混合优化视为一个因果推断问题。我们将数据池的统计特征作为协变量,领域混合作为处理变量。在Qwen2.5-0.5B上拟合因果模型以估计条件平均处理效应(CATE)后,我们外推得到800K数据池的最优混合比例,并将其应用于训练7B模型。此外,我们成功地将该框架推广到Qwen3-4B-Base上的长思维链数据。通过利用因果建模隔离混杂偏差,CausalMix动态推断状态依赖的最优数据混合。大量实验表明,CausalMix引导的混合在多个下游任务上持续提升性能,优于RegMix及其他基线方法。此外,我们使用CATE解释器对学习到的混合策略进行可视化分析。总体而言,CausalMix为优化LLM数据混合提供了一个因果且可解释的框架。

英文摘要:

In Large Language Model (LLM) training, data mixing plays a pivotal role in determining model performance. Recent methods optimize mixture weights via proxy models, but they rely on the assumption of static data distributions. As a result, when the underlying data pool shifts, these methods require costly retraining from scratch. This limitation restricts their ability to scale seamlessly from small settings to larger data pools and model sizes. In this paper, we propose CausalMix to address this limitation by casting data mixture optimization as a causal inference problem. We formulate the statistical features of the data pool as covariates and the domain mixture as the treatment. After fitting a causal model on 512 runs of Qwen2.5-0.5B to estimate the Conditional Average Treatment Effect (CATE), we extrapolate the optimal mixture for an 800K data pool and apply it to train a 7B model. Furthermore, we successfully generalize the framework to long chain-of-thought data on Qwen3-4B-Base. By leveraging causal modeling to isolate confounding biases, CausalMix infers state-dependent data mixtures offline, with the selected mixture fixed during each training run. Extensive experiments show that the mixture guided by CausalMix achieves competitive performance across downstream tasks compared with other baselines. The CATE Interpreter visualizes the learned mixing strategy. Overall, CausalMix offers a causal and interpretable framework for optimizing LLM data mixtures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑