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

最佳中的更优N:通过上下文学习生成预对齐响应

Best-of-Better-$N$: Generating Pre-Aligned Responses with In-Context Learning

JPMorganChase Global Technology Applied Research(摩根大通全球技术应用研究)

Eric Lei, Hsiang Hsu, Chun-Fu Chen

AI总结:

提出Best-of-Better-$N$框架应对响应质量限制问题,利用检索高奖励示例及重写步骤,通过上下文学习使预训练模型输出分布向高奖励区域转移,在安全对齐和数学推理基准测试中有更好表现。

摘要:

推理时对齐方法如Best-of-$N$受响应质量限制。本文提出Best-of-Better-$N$(BoBN),基于上下文学习的生成框架。利用检索相关高奖励示例,引入重写步骤,通过上下文学习使预训练变压器输出分布向高奖励区域转移,在多个基准测试中表现良好。

英文摘要:

Inference-time alignment methods, such as Best-of-$N$, offer a flexible alternative to training-based alignment by using reward models to select high-quality responses generated by a reference LLM. However, the efficacy of these methods is inherently limited by the response quality: if the reference LLM assigns negligible probability to high-reward responses, no selection strategy will succeed in finding aligned outputs. In this work, we propose Best-of-Better-$N$ (BoBN), an in context learning-based generation framework to address this challenge. Our method utilizes retrieval from high-reward examples relevant to the input query and task. Crucially, we introduce a restyling step where retrieved responses are rewritten by the reference LLM to align with the target task's format and style. These restyled examples are used in-context to shift the sampling distribution toward the high-reward region. We analytically characterize how in-context learning shifts the output distribution of pretrained transformers toward the high-reward region, resulting in provable benefits on the target task. We then evaluate BoBN on safety alignment and mathematical reasoning benchmarks across several reference LLMs. BoBN's higher-quality responses enable better performance to be achieved when the number of responses $N$ is fixed, and smaller $N$ required to achieve a target performance.

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

↑