arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.14971cs.LGcs.AI
收藏

FastMix: 通过梯度下降实现快速数据混合优化

FastMix: Fast Data Mixture Optimization via Gradient Descent

University of Hong Kong(香港大学);Tencent(腾讯);Chinese University of Hong Kong(香港中文大学)

Haoru Tan, Sitong Wu, Yanfeng Chen, Jun Xia, Ruobing Xie, Bin Xia, Xingwu Sun, Xiaojuan Qi

AI总结:

提出FastMix框架,将数据混合选择重新表述为双层优化问题,通过联合优化混合系数和模型参数,实现高效、可扩展的数据混合发现,在预训练和后训练中均优于基线方法且大幅降低搜索成本。

摘要:

虽然大规模和多样化的数据集推动了大型模型的最新进展,但确定预训练和后训练的最佳数据混合仍然是一个重要的开放问题。我们通过FASTMIX应对这一挑战,这是一个新颖的框架,在仅训练单个代理模型的同时自动发现数据混合。FASTMIX不依赖预定义的启发式方法或资源密集型模拟,而是联合优化混合系数和模型参数,显著提高了相对于先前方法的效率和可扩展性。FASTMIX的核心是将混合选择重新表述为一个双层优化问题。在这种重新表述下,我们证明优化混合比例在数学上等价于在均匀源采样下分配每个源的损失权重。这将混合系数直接嵌入到可微分的迭代优化目标中,从而能够对混合和模型进行高效的基于梯度的优化。为了解决优化问题,FASTMIX实现了一个近似迭代优化过程,交替进行(i)根据当前混合比例对采样的数据更新模型参数(内循环)和(ii)基于验证反馈更新混合比例(外循环)。在预训练和后训练中,FASTMIX均优于基线方法,同时大幅降低了搜索成本。代码见 https://github.com/hrtan/fastmix

英文摘要:

While large and diverse datasets have driven recent advances in large models, identifying the optimal data mixture for pre-training and post-training remains a significant open problem. We address this challenge with FASTMIX, a novel framework that automates data mixture discovery while training only a single proxy model. Instead of relying on predefined heuristics or resource-intensive simulations, FASTMIX jointly optimizes mixture coefficients and model parameters, substantially improving efficiency and scalability over prior approaches. At the core of FASTMIX is a reformulation of mixture selection as a bilevel optimization problem. Under this reformulation, we show that optimizing mixture ratios is mathematically equivalent to assigning per-source loss weights under uniform source sampling. This embeds the mixture coefficients directly into the differentiable iterative optimization objective, enabling efficient, gradient-based optimization of both mixture and model. To solve the optimization problem, FASTMIX implements an approximate iterative optimization procedure, alternating between (i) updating model parameters on data sampled according to current mixture ratios (inner loop) and (ii) updating mixture ratios based on validation feedback (outer loop). Across pre- and post-training, FASTMIX outperforms baselines while drastically reducing search cost. Code (https://github.com/hrtan/fastmix)

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

↑