提出新采样方法缓解大模型对奖励模型的过拟合问题。
Evaluation of Best-of-N Sampling Strategies for Language Model Alignment
- 通过鲁棒优化框架设计改进的采样策略,增强对奖励模型扰动的抗性。
- 实验表明新方法在两个数据集上均提升真实目标性能,尤其在长文本生成中更优。
- 适合关注大模型对齐与奖励模型泛化能力的研究者参考。
Best-of-N(BoN)采样结合奖励模型已被证明是解码阶段对齐大型语言模型与人类偏好的有效策略。然而,该方法易受奖励劫持影响:因奖励模型仅为真实目标的不完美代理,过度优化其得分可能导致真实目标性能下降。先前工作提出正则化BoN(RBoN),通过引入正则项缓解此问题,并实证显示其优于传统BoN(Jinnai et al., 2024)。但该研究基于启发式设计,缺乏对正则化机制为何有效的理论分析。本文从鲁棒优化视角分析正则化策略的影响,指出其本质为在代理奖励的可能扰动集合中最大化最差情况表现。尽管理论保障不直接适用于RBoN,但其可视为一种实用实现。本文进一步提出随机化正则化BoN(SRBoN),一种具有理论保证的最坏情况下的代理奖励优化方法。在AlpacaFarm和Anthropic的hh-rlhf数据集上进行实证评估,验证不同正则化因素对真实代理奖励的提升作用。此外,还提出一种简化的句子长度正则化BoN方法,在实验中表现优于现有方法。
原文摘要 · Abstract (English)
Best-of-N (BoN) sampling with a reward model has been shown to be an effective strategy for aligning Large Language Models (LLMs) with human preferences at the time of decoding. BoN sampling is susceptible to a problem known as reward hacking. Since the reward model is an imperfect proxy for the true objective, an excessive focus on optimizing its value can lead to a compromise of its performance on the true objective. Previous work proposes Regularized BoN sampling (RBoN), a BoN sampling with regularization to the objective, and shows that it outperforms BoN sampling so that it mitigates reward hacking and empirically (Jinnai et al., 2024). However, Jinnai et al. (2024) introduce RBoN based on a heuristic and they lack the analysis of why such regularization strategy improves the performance of BoN sampling. The aim of this study is to analyze the effect of BoN sampling on regularization strategies. Using the regularization strategies corresponds to robust optimization, which maximizes the worst case over a set of possible perturbations in the proxy reward. Although the theoretical guarantees are not directly applicable to RBoN, RBoN corresponds to a practical implementation. This paper proposes an extension of the RBoN framework, called Stochastic RBoN sampling (SRBoN), which is a theoretically guaranteed approach to worst-case RBoN in proxy reward. We then perform an empirical evaluation using the AlpacaFarm and Anthropic's hh-rlhf datasets to evaluate which factors of the regularization strategies contribute to the improvement of the true proxy reward. In addition, we also propose another simple RBoN method, the Sentence Length Regularized BoN, which has a better performance in the experiment as compared to the previous methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。