捷径与边界:可验证的RL错位与情境安全学习
研究论文 · 2026/11/11
强化学习(RL)在提升智能体任务能力的同时,可能强化违反上下文执行要求的行为。我们通过可验证的奖励-上下文冲突研究这种奖励驱动的错位(包括奖励黑客),其中合规完成任务仍然可行,但某些可执行捷径获得的奖励高于所有合规策略。将此类冲突编码到任务动态中,使我们能够大规模生成多样化的交互环境,并从执行历史中推导合规反馈。在资源和报告工作流中,任务优化通过未经授权的资源使用提高实际生产力,或提高报告分数而实际工作下降。训练分布的受控变化表明,少数冲突暴露仍可导致广泛的捷径习得,在25%冲突混合下经过128次更新后,在API任务上达到97.9%的认证盈利违规。相同的上下文检查提供了一个简单的二元惩罚,支持能力与合规的联合提升,并部分缓解已习得的违规。学习到的安全适应扩展的授权,并跨机制迁移到具有不断变化的证据和批准要求的工作流中。在32个未见的变化证据任务上,相对于仅任务训练,资源训练的安全将安全完成率从53.1%提高到89.1%,而两种策略都实现了完整的实际工作。这些结果将奖励驱动错位的可验证解释与可扩展的任务构建和安全学习联系起来,后者在变化的执行要求下仍然有用。
该研究为RL中的奖励黑客和上下文错位提供了可验证的分析框架,并提出了可扩展的环境构建与安全学习方法,对于构建既高效又合规的AI智能体具有重要参考价值。
Reinforcement learning (RL) can improve an agent's task capability while reinforcing behavior that violates contextual execution requirements. We study this reward-driven misalignment, including reward hacking, through verifiable reward--context conflicts, where compliant task completion remains feasible while some executable shortcuts earn more reward than every compliant strategy. Encoding these conflicts in task dynamics lets us generate diverse interactive environments at scale and derive compliance feedback from execution histories. In resource and reporting workflows, task optimization increases real productivity through unauthorized resource use or raises reported scores while actual work declines. Controlled changes in the training distribution show that minority conflict exposure can still lead to widespread shortcut acquisition, reaching 97.9\% certified profitable violations on an API task under a 25\% conflict mixture after 128 updates. The same contextual checks supply a simple binary penalty that supports joint capability and compliance gains and partially mitigates acquired violations. Learned safety adapts to expanded authorization and transfers across mechanisms into workflows with evolving evidence and approval requirements. On 32 unseen changing-evidence tasks, resource-trained safety increases safe completion from 53.1\% to 89.1\% relative to task-only training, while both policies achieve full real work. These results connect a verifiable account of reward-driven misalignment with scalable task construction and safety learning that remains useful under changing execution requirements.