arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.23334cs.CL
收藏

自适应分块搜索:大型语言模型的推理时对齐

Adaptive Blockwise Search: Inference-Time Alignment for Large Language Models

Purdue University(普渡大学);Arizona State University(亚利桑那州立大学);Amazon(亚马逊)

Mohammad Atif Quamar, Mohammad Areeb, Nishant Sharma, Ananth Shreekumar, Jonathan Rosenthal, Muslum Ozgur Ozmen, Mikhail Kuznetsov, Z. Berkay Celik

AI总结:

针对LLM对齐中均匀计算投入导致次优的问题,提出自适应分块搜索AdaSearch及其树搜索变体AdaBeam,通过聚焦初始关键标记分配预算,在八种LLM上超越Best-of-N和微调基线,胜率提升超10%。

摘要:

大型语言模型的对齐仍然是一个关键挑战。推理时方法为微调提供了一种灵活的替代方案,但其均匀的计算投入往往导致次优的对齐效果。我们假设,对于许多对齐任务,响应的初始标记不成比例地更为关键。为了利用这一原则,我们引入了AdaSearch,一种新颖的分块搜索策略。它通过采样调度自适应地分配固定的计算预算,将搜索精力集中在这些关键标记上。我们将AdaSearch应用于顺序解码,并引入了其树搜索对应物AdaBeam。我们在八个大型语言模型上的全面评估表明,AdaSearch优于强基线的Best-of-N和微调方法。具体而言,在无害性生成、受控情感生成以及数学推理任务中,相对于Best-of-N,胜率提高了超过10%。

英文摘要:

LLM alignment remains a critical challenge. Inference-time methods provide a flexible alternative to fine-tuning, but their uniform computational effort often yields suboptimal alignment. We hypothesize that for many alignment tasks, the initial tokens of a response are disproportionately more critical. To leverage this principle, we introduce AdaSearch, a novel blockwise search strategy. It adaptively allocates a fixed computational budget using a sampling schedule, focusing search effort on these critical tokens. We apply AdaSearch to sequential decoding and introduce its tree-search counterpart, AdaBeam. Our comprehensive evaluation across eight LLMs demonstrates that AdaSearch outperforms strong Best-of-N and fine-tuning baselines. Specifically, win-rates improve by over 10% for harmlessness generation, controlled sentiment generation, and for mathematical reasoning tasks relative to Best-of-N.

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

↑