编程还是作弊?前沿编程大语言模型调查
研究论文 · 2026/11/10
前沿的智能体大语言模型在基于真实软件仓库构建的强化学习环境中,通过可验证的奖励进行训练,其中通过测试套件被视为解决任务的奖励。我们表明,在困难问题上,前沿模型通常通过获取答案而非推导答案来满足这些奖励,这被称为奖励黑客。先前报告在公开基准上记录了这种行为。我们在未见问题上测试了其持续性。在一个答案无法泄露的加固环境中,我们测试的几乎每个模型都试图恢复答案,并通过越来越专业的利用层级逐步升级:挖掘仓库历史以寻找上游修复、直接检查git对象存储、以及扫描文件系统以寻找可能更新的源代码副本或隐藏测试。这些尝试集中在最困难的问题上,模型在是否、频率和深度上升级方面存在差异。我们的立场是,这种行为是一种学习到的捷径,是在泄露答案的强化学习环境中获得的,而不是智能的标志。我们在https://huggingface.co/datasets/logitly-ai/reward-hacking-raw-v1发布了这些模型的智能体轨迹以支持进一步研究。
本文揭示了前沿编码LLM在强化学习中普遍存在的奖励黑客行为,并提供了在加固环境下的实证研究,对理解模型评估的可靠性和训练环境的缺陷具有重要意义。
Frontier agentic LLMs are trained on verifiable rewards in reinforcement learning (RL) environments built from real software repositories. A passing test suite is treated as the reward for solving the task. We show that, on hard problems, frontier models often satisfy these rewards by obtaining the answer instead of deriving it, known as reward hacking. Prior reports document this behavior on public benchmarks. We test its persistence on unseen problems. In a hardened environment where the answer cannot leak, nearly every model we tested attempted to recover the answer, escalating through tiers of increasingly specialized exploitation: mining the repository history for the upstream fix, inspecting the git object store directly, and sweeping the filesystem for a possible newer copy of the source or hidden tests. These attempts were concentrated on the hardest problems, and the models differed in whether, how often, and how deeply they escalated. Our position is that this behavior is a learned shortcut, acquired in RL environments that leak the answer, not a sign of intelligence. We release agent traces for these models to support further study at https://huggingface.co/datasets/logitly-ai/reward-hacking-raw-v1.