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

贝叶斯优化增强语言模型:优化采集函数

Bayesian Optimization for Enhanced Language Models: Optimizing Acquisition Functions

Fuzhou University(福州大学);Xi’an Jiaotong-Liverpool University(西安交通大学利物浦大学);Dalian University of Technology(大连理工大学)

Zishuo Bao, Yibo Liu, Changyutao Qiu

AI总结:

针对语言模型微调中超参数优化忽视采集函数选择的问题,提出结合模型融合与双层贝叶斯优化的方法,在GLUE任务上使用RoBERTa-base验证,微调性能提升达2.7%。

摘要:

随着不同语言模型架构的兴起,微调对于下游任务变得愈发重要。模型变得复杂,为微调寻找合适的超参数变得困难。尽管贝叶斯优化(BO)已被尝试用于超参数调优,但大多数现有方法忽略了这样一个事实:BO依赖于对采集函数的谨慎选择,采集函数是BO的关键组成部分,指导优化过程中探索与利用的程度;不同的采集函数对训练损失和验证性能的敏感度不同;现有方法往往无论训练和验证性能是否对采集函数敏感,都直接应用某种采集函数。本工作引入了{Bilevel-BO-SWA},一种模型融合方法结合双层BO策略,以改进大型语言模型的微调。我们将EI和UCB等采集函数的混合应用于嵌套优化循环中,内层循环执行训练损失的最小化,而外层循环针对验证指标进行优化。在GLUE任务上使用RoBERTa-base进行的实验表明,当使用EI和UCB时,泛化性能有所提升,微调性能最高可提升2.7%。

英文摘要:

With the rise of different language model architecture, fine-tuning is becoming even more important for down stream tasks Model gets messy, finding proper hyperparameters for fine-tuning. Although BO has been tried for hyperparameter tuning, most of the existing methods are oblivious to the fact that BO relies on careful choices of acquisition functions, which are essential components of BO that guide how much to explore versus exploit during the optimization process; Different acquisition functions have different levels of sensitivity towards training loss and validation performance; existing methods often just apply an acquisition function no matter if the training and validation performance are sensitive to the acquisition function or not. This work introduces{Bilevel - BO - SWA}, a model fusion approach coupled with a bilevel BO strategy to improve the fine - tunning of large language models. Our work on mixture of acquisition functions like EI and UCB into nested opt loops, where inner loop perform minimization of training loss while outer loops optimized w.r.t. val metric. Experiments on GLUE tasks using RoBERTA - base show that when using EI and UCB, there is an improvement in generalization, and fine - tuning can be improved by up to 2.7%.

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

↑