arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.08351cs.LGcs.AI
收藏

数据与模型配置的协同优化:大语言模型的鸡与蛋困境

Rethinking Bayesian Optimization for Co-Optimizing LLM Training Configurations

National University of Singapore(新加坡国立大学);Agency for Science, Technology and Research (A*STAR)(科技研究局)

Zhiliang Chen, Alfred Wei Lun Leong, Shao Yong Ong, Apivich Hemachandra, Gregory Kang Ruey Lau, Chuan-Sheng Foo, Zhengyuan Liu, Nancy F. Chen, Bryan Kian Hsiang Low

AI总结:

JoBS通过联合优化数据和模型配置,利用性能预测器提升大语言模型训练效率,有效降低优化成本。

摘要:

在训练大语言模型(LLMs)时,对数据和模型配置进行联合优化是一个经典的鸡与蛋困境:下游任务的最佳训练数据配置(例如数据混合)取决于所选模型配置(例如模型架构),反之亦然。然而,联合优化数据和模型配置往往被视为不可行,现有方法只关注数据或模型优化,而未考虑它们的相互作用。我们引入了JoBS,一种利用缩放定律启发的性能预测器来辅助贝叶斯优化(BO)高效联合优化LLM训练数据和模型配置的方法。JoBS将一部分优化预算用于学习一个LLM性能预测器,该预测器能从少量训练步骤中预测训练配置的潜力。剩余的预算用于完全使用预测器进行BO,从而有效摊销完整训练运行的成本。我们研究了JoBS的平均遗憾并设计了最优的预算分配以最小化遗憾。在相同优化预算下,JoBS在多样化的LLM任务中优于现有的多保真度BO基线以及数据和模型优化方法。

英文摘要:

Fine-tuning an LLM to maximize performance on a downstream task requires finding the optimal data and model configuration. This is a black-box optimization problem that Bayesian optimization (BO) addresses by sequentially evaluating training configurations and using observed performance feedback to adaptively guide the search towards better configurations. However, directly applying BO to the joint data-model space suffers from two fundamental challenges: the prohibitive cost of full LLM training at each iteration, and the large number of BO iterations required for effective exploration due to the high problem dimensionality. This paper introduces JoBS, a BO-based approach that co-optimizes data and model configurations without requiring a full training run at every iteration. JoBS allocates an initial portion of the optimization budget to learn a scaling-law-inspired performance predictor that estimates fully trained LLM performance from only a small number of training steps. The remaining budget is then used to run BO with this predictor, eliminating the need for full training runs and enabling JoBS to explore significantly more data and model configurations within the same budget. We analyze JoBS's average regret and derive the optimal budget allocation between predictor learning and BO iterations. Empirically, JoBS outperforms independent data and model optimization methods and existing multi-fidelity BO baselines across a diverse set of downstream tasks. Our code is available at https://github.com/chenzhiliang94/BO-for-LLMs.

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

↑