通过注意力蒸馏提升奖励模型抗干扰能力
Alleviating Attention Hacking in Discriminative Reward Modeling through Interaction Distillation
- 用教师模型引导奖励模型学习更精准的注意力交互模式
- 实验显示新方法在稳定性与泛化性上优于现有最优方案
- 适合关注大模型训练鲁棒性的研究者和工程师
奖励模型(RM)是大语言模型强化学习中人类反馈(RLHF)的核心组件,负责为生成结果提供奖励信号。然而,主流的判别式奖励建模在词元级交互方面存在不足,导致其判断信号容易受上下文注意力错配的影响。这源于两个根本缺陷:(1) 当前偏好建模采用仅解码器架构,单向因果注意力机制使提示-响应序列内部出现前向衰减的序列内注意力;(2) 独立的孪生编码范式导致优选与劣选序列间缺乏词元级跨序列注意力。为解决这一“注意力劫持”问题,我们提出“交互蒸馏”——一种通过注意力层级优化实现更充分判别式奖励建模的新训练框架。该方法引入以交互为基础的自然语言理解模型作为教师,通过全面注意力提供精细的词元交互模式,并通过注意力对齐目标指导奖励模型模拟教师的交互模式。大量实验表明,相比针对数据噪声优化的先进方法,交互蒸馏能提供更稳定、更具泛化性的奖励信号,凸显注意力劫持是判别式奖励模型更根本的局限。
原文摘要 · Abstract (English)
The reward model (RM), as the core component of reinforcement learning from human feedback (RLHF) for large language models (LLMs), responsible for providing reward signals to generated responses. However, the mainstream discriminative reward modeling is inadequate in terms of token-level interaction, making its judgment signals vulnerable to being hacked by misallocated attention to context. This stems from two fundamental limitations: (1) Current preference modeling employs decoder-only architectures, where the unidirectional causal attention mechanism leads to forward-decaying intra-sequence attention within the prompt-response sequence. (2) The independent Siamese-encoding paradigm induces the absence of token-level inter-sequence attention between chosen and rejected sequences. To address this "attention hacking", we propose "Interaction Distillation", a novel training framework for more adequate discriminative reward modeling via attention-level optimization. The method introduces an interaction-based natural language understanding model as the teacher to provide sophisticated token interaction patterns via comprehensive attention, and guides the reward modeling to simulate teacher model's interaction pattern through an attentional alignment objective. Through extensive experiments, interaction distillation has demonstrated its ability to provide more stable and generalizable reward signals compared to state-of-the-art RM optimization methods that target data noise, highlighting the attention hacking constitute a more fundamental limitation in discriminative RM.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。