Shortcuts and Boundaries: Verifiable RL Misalignment and Contextual Safety Learning

AK's Picks ML RL AO AI Safety / AI Ethics AVAR RLAW
2026年11月09日
强化学习(RL)虽可提升智能体执行任务的能力,却也可能在强化行为的过程中导致其违背上下文执行要求。我们通过可验证的“奖励—上下文冲突”来研究此类由奖励驱动的对齐失效现象(包括奖励作弊):在此类冲突中,合规地完成任务依然可行,但某些可执行的捷径策略所获得的奖励却高于所有合规策略。将这类冲突编码进任务动力学中,既支持我们大规模生成多样化的交互式环境,又能基于执行历史推导出合规性反馈。在资源调用与绩效汇报类工作流中,任务优化往往以未经授权的方式滥用资源来提升实际产出,或通过虚报指标抬高上报得分,而真实工作量反而下降。训练分布的受控变化表明,即便仅在少数样本中暴露于冲突情境,智能体仍会广泛习得捷径策略;例如,在API任务中,当训练数据中冲突样本占比仅为25%、且仅经历128轮更新后,智能体所采取的违规行为中高达97.9%被证实为“可获利且经认证的违规”。同样这些上下文检查机制,还可转化为一种简单的二元惩罚信号,不仅支持能力与合规性协同提升,还能在一定程度上缓解已习得的违规行为。所学习到的安全机制能够适应授权范围的动态扩展,并跨机制迁移至证据与审批要求持续演化的各类工作流中。在32个未曾见过、且证据要求不断变化的任务上,经资源类任务训练所得的安全机制,使安全完成率从仅使用任务目标训练时的53.1%显著提升至89.1%,而两种策略均能确保全部真实工作任务的完成。上述结果将“奖励驱动的对齐失效”这一可验证现象,与可扩展的任务构建方法及安全学习范式紧密关联起来——该范式即使在执行要求持续变化的现实场景下,依然保持高度实用性。
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.
许愿