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

通过微调大语言模型进行汤普森采样

Thompson Sampling via Fine-Tuning of LLMs

IBM Research – Zurich(IBM瑞士研究院);Department of Computer Science, ETH Zürich(苏黎世联邦理工学院计算机科学系)

Nicolas Menet, Aleksandar Terzić, Michael Hersche, Andreas Krause, Abbas Rahimi

AI总结:

通过微调大语言模型实现高效汤普森采样,提升贝叶斯优化的样本和计算效率。

摘要:

在大规模非结构化离散空间中进行贝叶斯优化常常受到最大化获取函数的计算成本的阻碍,因为缺乏梯度。我们提出了一种可扩展的替代方法,基于汤普森采样,通过直接参数化候选方案产生最大奖励的概率来消除最大化获取函数的需要。我们的方法,即通过微调的汤普森采样(ToSFiT),利用提示条件下的大语言模型中嵌入的先验知识,并逐步将其适应到后验分布。理论上,我们推导出一种汤普森采样变分形式的新 regret 绑定,其性能与标准方法的强保证相匹配。我们的分析揭示了仔细适应最大性后验概率的关键作用——这一原理构成了我们的 ToSFiT 算法的基础。实验上,我们在三个多样化的任务上验证了我们的方法:FAQ 回答优化、热稳定蛋白质搜索和量子电路设计。在涵盖上下文贝叶斯优化、强化学习和进化搜索的方法集合中,ToSFiT 表现出最先进的样本效率和计算效率。

英文摘要:

Bayesian optimization in large unstructured discrete spaces is often hindered by the computational cost of maximizing acquisition functions due to the absence of gradients. We propose a scalable alternative based on Thompson sampling that eliminates the need for acquisition function maximization by directly parameterizing the probability that a candidate yields the maximum reward. Our approach, Thompson Sampling via Fine-Tuning (ToSFiT) leverages the prior knowledge embedded in prompt-conditioned large language models, and incrementally adapts them toward the posterior. Theoretically, we derive a novel regret bound for a variational formulation of Thompson Sampling that matches the strong guarantees of its standard counterpart. Our analysis reveals the critical role of careful adaptation to the posterior probability of maximality -- a principle that underpins our ToSFiT algorithm. Empirically, we validate our method on three diverse tasks: FAQ response refinement, thermally stable protein search, and quantum circuit design. Within a collection of methods covering in-context Bayesian optimization, reinforcement learning, and evolutionary search, ToSFiT exhibits both state-of-the-art sample efficiency and computational efficiency.

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

↑