arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.22136cs.LGcs.AIcs.CRcs.SE
收藏

StepShield:何时干预流氓代理,而非是否干预

StepShield: When, Not Whether to Intervene on Rogue Agents

University of Virginia(弗吉尼亚大学);Indian Institute of Science, Bangalore(印度科学研究院,班加罗尔);Cornell University(康奈尔大学);University of the Cumberlands(库姆伯兰兹大学);University of Arizona(亚利桑那大学);California State University, Northridge(加州州立大学,北岭分校)

Gloria Felicia, Zitha Sasindran, Jinfeng He, Michael Eniolade, Hemant Kumar, Milan Hussain Angati

AI总结:

研究代理安全检测时机问题,引入StepShield基准及早期干预率(EIR),揭示取证陷阱,指出基于规则的护栏虽召回率高但时机不佳,现有方法无法兼顾高召回、低误报和及时干预,凸显逐步骤流氓检测待解决。

摘要:

代理安全基准衡量的是监控器能否检测到危害,而非何时检测到。然而时机是干预与事后剖析的关键区别。我们引入了StepShield,这是首个将检测及时性视为头等指标的基准。在9429条基于事件的代码代理轨迹上,我们定义了早期干预率(EIR)。该指标揭示了取证陷阱,基于模式的847条规则的护栏召回率达86%,但在EIR上与随机时机无统计学差异。基于规则和语义的探测器在EIR上有4倍差距,而现有方法无法同时实现高召回率、低误报率和及时干预,说明逐步骤流氓检测仍是未解决问题。

英文摘要:

Agent safety benchmarks measure whether a monitor detects harm, not when. Yet timing is the difference between intervention and autopsy. We introduce StepShield, the first benchmark that treats detection timeliness as a first-class metric. On 9,429 incident-grounded code-agent trajectories, we define the Early Intervention Rate (EIR): the fraction of detected rogue trajectories where the alert fires within a k-step window after the divergence point, isolating timing quality from coverage. This metric exposes what we call the Forensics Trap: a pattern-based guardrail with 847 rules achieves 86% recall yet is statistically indistinguishable from random timing on EIR (0.23 vs. 0.24; p = 0.66, one-sided binomial; difference within CI), because over three-quarters of its alerts trigger on benign prefix code before any violation occurs. The 4x EIR gap between rule-based and semantic detectors is completely invisible to accuracy, recall, or F1. Our finding is structural: regex guardrails detect syntax, not intent, and therefore cannot distinguish the moment an agent turns rogue, rendering the entire deployed class of pattern-based monitors unsuited for real-time oversight. No existing method simultaneously achieves high recall, low false-positive rate, and timely intervention, establishing step-level rogue detection as genuinely unsolved.

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

↑