arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.07808cs.AI
收藏

指令层级失效之处:诊断与修复推理语言模型的故障

Where Instruction Hierarchy Breaks: Diagnosing and Repairing Failures in Reasoning Language Models

NVIDIA(英伟达)

Sanjay Kariyappa, G. Edward Suh

AI总结:

提出白盒诊断框架,将指令层级失效定位为指令识别、冲突解决和响应实现三个环节,并设计两种免训练自监控机制,将违规率降低81-99%。

摘要:

部署在智能体工作流中的推理语言模型必须遵循指令层级:当来自不同来源的指令冲突时,模型应服从最高权限的适用指令。现有基准主要端到端地衡量这种行为,询问最终响应是否合规。然而,不合规的响应可能源于几种不同的故障:模型可能无法识别上下文中的相关指令,无法解决已识别指令之间的冲突,或者在推理中正确解决了冲突但仍产生违规响应。我们引入了一个白盒诊断框架,将指令层级失效定位为指令识别、冲突解决和响应实现,使故障更具可解释性。我们在IHEval和IHChallenge的长上下文改编版本上评估了三个推理模型——Gemma-4-31B-IT、Qwen3.6-35B-A3B和Claude Sonnet 4.6,发现主要故障模式因模型、任务和上下文长度而异。基于模型在明确提示时通常能检测冲突并输出违规的观察,我们提出了两种免训练的自监控机制:用于生成前低延迟冲突检测的并行输入监控器,以及用于响应级审查和修复的顺序输出监控器。在Gemma-4-31B-IT、Claude Sonnet 4.6和GPT-5.3上,最强的监控器将规则遵循违规率降低了81-99%,其中GPT-5.3在静态攻击下降低86%,在自适应攻击下降低45%。

英文摘要:

Reasoning language models deployed in agentic workflows must follow an instruction hierarchy: when instructions from different sources conflict, the model should obey the highest-privilege applicable instruction. Existing benchmarks largely measure this behavior end-to-end, asking whether the final response is compliant. However, a non-compliant response can arise from several distinct failures: the model may fail to identify the relevant instructions in context, fail to resolve conflicts among identified instructions, or correctly resolve the conflict in its reasoning while still producing a violating response. We introduce a white-box diagnostic framework that localizes instruction hierarchy failures into instruction identification, conflict resolution, and response realization, making failures more interpretable. We evaluate three reasoning models--Gemma-4-31B-IT, Qwen3.6-35B-A3B, and Claude Sonnet 4.6--on long-context adaptations of IHEval and IHChallenge, and find that the dominant failure mode varies across models, tasks, and context length. Building on the observation that models can often detect conflicts and output violations when explicitly prompted, we propose two training-free self-monitoring mechanisms: a parallel input monitor for low-latency conflict detection before generation, and a sequential output monitor for response-level review and repair. Across Gemma-4-31B-IT, Claude Sonnet 4.6, and GPT-5.3, the strongest monitor reduces rule-following non-compliance by 81-99%, with GPT-5.3 reductions of 86% under static attacks and 45% under adaptive attacks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑