从好奇心到谨慎:通过悲观主义缓解最佳-N中的奖励黑客
From Curiosity to Caution: Mitigating Reward Hacking for Best-of-N with Pessimism
AI总结:
本文提出一种基于悲观主义的缓解方法,通过降低不典型响应的奖励估计来避免奖励黑客,证明其在最佳-N采样中有效。
摘要:
推理时间计算扩展已成为提升语言模型性能的强大范式,但如何最佳利用额外计算仍存疑问。BoN采样通过生成N个候选响应并选择最高评分响应来改进性能,但易受奖励黑客攻击,即随着N增加,性能下降,因选择利用奖励模型缺陷的响应而非真正提升生成质量。本文探讨了强化学习中的悲观主义原则,通过使用价值估计的下限避免不确定奖励动作。我们的方法称为谨慎,是好奇心的反面:好奇心将预测误差作为新颖性的信号进行奖励,而谨慎将预测误差作为分布不确定性信号进行惩罚。实际上,谨慎在典型响应上训练误差模型,并利用其预测误差降低不典型响应的奖励估计。广泛的经验评估显示,谨慎是一种简单且计算高效的缓解方法,显著减轻了BoN采样中的奖励黑客问题。我们还提供了一种简化线性设置的理论分析,证明谨慎在标准BoN方法上有所改进。总的来说,我们的结果不仅证明了谨慎作为缓解奖励黑客的实用解决方案,还提供了证据表明基于好奇心的方法可以成为LLM设置中的通用OOD检测技术。
英文摘要:
Inference-time compute scaling has emerged as a powerful paradigm for improving language model performance on a wide range of tasks, but the question of how best to use the additional compute remains open. A popular approach is BoN sampling, where N candidate responses are generated, scored according to a reward model, and the highest-scoring response is selected. While this approach can improve performance, it is vulnerable to reward hacking, where performance degrades as N increases due to the selection of responses that exploit imperfections in the reward model instead of genuinely improving generation quality. Prior attempts to mitigate reward hacking, via stronger reward models or heavy-handed distributional regularization, either fail to fully address over-optimization or are too conservative to exploit additional compute. In this work, we explore the principle of pessimism in RL, which uses lower confidence bounds on value estimates to avoid OOD actions with uncertain reward estimates. Our approach, termed as caution, can be seen as the reverse of curiosity: where curiosity rewards prediction error as a signal of novelty, caution penalizes prediction error as a signal of distributional uncertainty. Practically, caution trains an error model on typical responses and uses its prediction error to lower reward estimates for atypical ones. Our extensive empirical evaluation demonstrates that caution is a simple, computationally efficient approach that substantially mitigates reward hacking in BoN sampling. We also provide a theoretical analysis in a simplified linear setting, which shows that caution provably improves over the standard BoN approach. Together, our results not only establish caution as a practical solution to reward hacking, but also provide evidence that curiosity-based approaches can be a general OOD detection technique in LLM settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。