发现大模型评分系统可被简单符号骗分,提出有效防御方法。
One Token to Fool LLM-as-a-Judge
- 用特殊符号或通用引导语作为'密钥',即可让模型误判并给高分。
- 测试显示包括GPT-o1和Claude-4在内的多个主流模型均存在此漏洞。
- 通过生成对抗样本训练新模型,显著提升抗欺骗能力且保持正常评分性能。
大型语言模型(LLMs)正被广泛用作自动化评分系统,辅助评估并为其他模型训练提供奖励信号,尤其在基于参考的设定中如可验证奖励强化学习(RLVR)。然而,我们发现即使在此参考范式下也存在关键漏洞:生成式奖励模型系统性地易受奖励劫持。我们发现,诸如冒号、句点等非单词符号,或'思考过程:'、'让我们一步步解决这个问题'等通用推理开头这类表面输入——我们称之为'主钥匙'——能持续诱发虚假正向奖励,而无需实质性推理。系统性评估表明,这一问题普遍存在,影响多种模型,包括GPT-o1和Claude-4等领先专有系统。这些结果挑战了对LLM评分器鲁棒性的固有假设,并对其可靠性构成重大威胁。为此,我们提出一种简单但有效的数据增强策略:使用截断模型输出作为对抗性负例。由此训练出的主奖励模型(Master-RMs)在抵御此类'主钥匙'攻击方面达到当前最佳鲁棒性,同时在标准评估中保持高性能。我们还补充了对模型规模、提示变化及常见推理策略下该漏洞的全面分析,为未来稳健的LLM评估研究提供指导。相关鲁棒通用领域奖励模型与合成训练数据已发布于https://huggingface.co/sarosavo/Master-RM 和 https://huggingface.co/datasets/sarosavo/Master-RM。
原文摘要 · Abstract (English)
Large language models (LLMs) are increasingly trusted as automated judges, assisting evaluation and providing reward signals for training other models, particularly in reference-based settings like Reinforcement Learning with Verifiable Rewards (RLVR). However, we uncover a critical vulnerability even in this reference-based paradigm: generative reward models are systematically susceptible to reward hacking. We find that superficial inputs, which we term ''master keys'' such as non-word symbols (e.g., '':'' or ''.'') or generic reasoning openers (e.g., ''Thought process:'' or ''Let's solve this problem step by step.''), can consistently elicit false positive rewards without any substantive reasoning. Our systematic evaluation demonstrates this is a widespread failure affecting a diverse range of models, including leading proprietary systems such as GPT-o1 and Claude-4. These results challenge the assumed robustness of LLM judges and pose a significant threat to their reliability. To address this, we propose a simple yet effective data augmentation strategy using truncated model outputs as adversarial negative examples. The resulting Master Reward Models (Master-RMs) demonstrate state-of-the-art robustness against these ''master key'' attacks while maintaining high performance in standard evaluation settings. We supplement these findings with a comprehensive analysis of the vulnerability across model scales, prompt variations, and common inference-time strategies, offering insights to guide future research on robust LLM evaluation. We release our robust, general-domain reward models and the synthetic training data at https://huggingface.co/sarosavo/Master-RM and https://huggingface.co/datasets/sarosavo/Master-RM.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。