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

该选哪个大语言模型?面向时间递增式老虎机的收敛感知在线模型选择

Which LLM to Play? Convergence-Aware Online Model Selection with Time-Increasing Bandits

Shanghai Jiao Tong University(上海交通大学);University of Michigan(密歇根大学);Adobe Research(奥多比研究院);Tsinghua University(清华大学)

Yu Xia, Fang Kong, Tong Yu, Liya Guo, Ryan A. Rossi, Sungchul Kim, Shuai Li

AI总结:

针对大语言模型在线选择中现有老虎机方法忽略模型微调后性能先升后敛趋势的问题,提出带收敛检测的时间递增老虎机算法TI-UCB,理论上达到对数遗憾上界,实验验证其在模型选择上更高效经济。

摘要:

随着近期大语言模型(LLM)应用热潮,聊天机器人、搜索引擎、新闻推荐等基于网络的应用规模与复杂度持续增长。由于需要在多样化候选模型中选出最优模型,同时平衡任务收益与探索成本,在线模型选择因此受到越来越多的关注。企业机构面临着诸如采用成本高昂的API式LLM还是本地微调的小型LLM的决策,需要在成本与性能之间权衡。传统选择方法通常会先评估所有候选模型再做选择,随着LLM训练与微调成本不断攀升,这类方法已逐渐不具备可行性。此外,将过多资源用于探索性能不佳的模型也并不可取。尽管近期部分研究利用在线老虎机算法来处理模型选择中的探索-利用权衡问题,但它们往往忽略了模型经迭代微调后性能先提升后收敛的变化趋势,导致预测准确性不足、模型选择结果次优。\n 本文提出了一种时间递增式老虎机算法TI-UCB,该算法能有效预测微调带来的模型性能提升,并高效平衡模型选择中的探索与利用过程。为进一步捕捉模型的收敛点,我们通过对比连续的性能提升预测值,设计了一种变化检测机制。我们从理论上证明,在典型的递增老虎机设定下,该算法能达到对数级的遗憾上界,这意味着其具备较快的收敛速度。我们还在分类模型选择与LLM在线选择任务上开展了大量实验,实验结果从实证层面验证了该方法的优势。研究结果表明,在LLM部署过程中,利用性能先升后敛的模式能实现更高效、更经济的模型选择。

英文摘要:

Web-based applications such as chatbots, search engines and news recommendations continue to grow in scale and complexity with the recent surge in the adoption of LLMs. Online model selection has thus garnered increasing attention due to the need to choose the best model among a diverse set while balancing task reward and exploration cost. Organizations faces decisions like whether to employ a costly API-based LLM or a locally finetuned small LLM, weighing cost against performance. Traditional selection methods often evaluate every candidate model before choosing one, which are becoming impractical given the rising costs of training and finetuning LLMs. Moreover, it is undesirable to allocate excessive resources towards exploring poor-performing models. While some recent works leverage online bandit algorithm to manage such exploration-exploitation trade-off in model selection, they tend to overlook the increasing-then-converging trend in model performances as the model is iteratively finetuned, leading to less accurate predictions and suboptimal model selections. In this paper, we propose a time-increasing bandit algorithm TI-UCB, which effectively predicts the increase of model performances due to finetuning and efficiently balances exploration and exploitation in model selection. To further capture the converging points of models, we develop a change detection mechanism by comparing consecutive increase predictions. We theoretically prove that our algorithm achieves a logarithmic regret upper bound in a typical increasing bandit setting, which implies a fast convergence rate. The advantage of our method is also empirically validated through extensive experiments on classification model selection and online selection of LLMs. Our results highlight the importance of utilizing increasing-then-converging pattern for more efficient and economic model selection in the deployment of LLMs.

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

↑