arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.28858cs.CLcs.AIcs.LG
收藏

OptiMer:最优分布向量合并优于数据混合用于持续预训练

OptiMer: Optimal Distribution Vector Merging Is Better than Data Mixing for Continual Pre-Training

National Institute of Information and Communications Technology(国立信息通信技术研究所)

Haiyue Song, Masao Utiyama

AI总结:

OptiMer通过后验贝叶斯优化选择最优分布向量权重,以更低的搜索成本优于数据混合和模型平均基线,为持续预训练提供更灵活的范式。

摘要:

持续预训练广泛用于适应LLM的目标语言和领域,但训练数据混合比例仍是昂贵的超参数:必须在训练前固定,次优选择会浪费数周的计算资源。本文提出OptiMer,将比例选择与训练解耦:为每个数据集训练一个CPT模型,提取每个模型的分布向量,表示该数据集引起的参数偏移,并通过贝叶斯优化搜索最优组合权重。在Gemma 3 27B上跨语言(日语、中文)和领域(数学、代码)的实验表明,OptiMer在15-35倍更低的搜索成本下持续优于数据混合和模型平均基线。关键发现揭示:1)优化权重可解释为数据混合比例,使用这些比例重新训练可提升数据混合CPT;2)相同向量池可为给定目标重新优化而无需重新训练,按需生成目标定制模型。本文确立数据混合比例选择,传统上是预训练决策,可重新表述为分布向量的后验优化,为持续预训练提供更灵活的范式。

英文摘要:

Continual pre-training is widely used to adapt LLMs to target languages and domains, yet the mixture ratio of training data remains a sensitive hyperparameter that is expensive to tune: they must be fixed before training begins, and a suboptimal choice can waste weeks of compute. In this work, we propose OptiMer, which decouples ratio selection from training: we train one CPT model per dataset, extract each model's distribution vector, which represents the parameter shift induced by that dataset, and search for optimal composition weights post-hoc via Bayesian optimization. Experiments on Gemma 3 27B across languages (Japanese, Chinese) and domains (Math, Code) show that OptiMer consistently outperforms data mixture and model averaging baselines with 15-35 times lower search cost. Key findings reveal that 1) the optimized weights can be interpreted as data mixture ratios, and retraining with these ratios improves data mixture CPT, and 2) the same vector pool can be re-optimized for a given objective without any retraining, producing target-tailored models on demand. Our work establishes that data mixture ratio selection, traditionally a pre-training decision, can be reformulated as a post-hoc optimization over distribution vectors, offering a more flexible paradigm for continual pre-training.

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

↑