作为编码智能体策略门的决策模型:显式策略边界可提升检测效果并减少误报
Decision Models as Policy Gates for Coding Agents: Explicit Policy Boundaries Improve Detection and Reduce False Alarms
AI总结:
该研究将决策模型用作编码智能体的策略门,通过显式边界提升了多规则策略引擎的召回率并减少误报,发布了相关数据集、规则文本和测试工具。
摘要:
编码智能体可在人类审查前更快地破坏数据、泄露秘密或向错误对象发送消息,决策模型能否在运行时捕获这些风险?我们评估了22种托管决策模型和2种提示式通用模型,将其作为多规则策略引擎的分类器。针对2643次工具调用构建的合成数据集,基于28条规则进行盲标注,并设置了密封的保留集。在两种条件下均使用单一共享前导文本时,以示例和反例形式编写的显式边界使所有23种可用模型的召回率提升了5.5至26.1个百分点,并使21种模型的误报减少。Jev 1.14的召回率从89.3%升至98.2%,而252次干净操作中不必要的中断从30.6%降至4.8%。使用示例时,其中位延迟为120毫秒,每千次请求成本为0.46美元。当具体名称替换为通用描述时,强模型保留了召回率提升;当相同边界以散文形式编写时,3种模型基本保留了提升。在初始研究后编写的16种新场景中,后续改进使23种模型中的22种召回率提升,21种模型的不必要中断减少。我们发布了该数据集、规则文本和测试工具。
英文摘要:
Coding agents can destroy data, leak secrets and message the wrong person faster than a human can review. Could a decision model catch these risks at runtime? We evaluated 22 hosted decision models and two prompted general models as classifiers for a multi-rule policy engine. A synthetic dataset of 2,643 tool calls was labeled blind against 28 rules, with a sealed holdout. With a single shared preamble in both conditions, explicit boundaries written as examples and counterexamples raised recall by 5.5-26.1 percentage points on all 23 available models and reduced false positives on 21. Jev 1.14's recall rose from 89.3% to 98.2%, while unnecessary interruptions fell from 30.6% to 4.8% of 252 clean actions. With examples, its median latency was 120 ms at $0.46 per thousand requests. Strong models retained the recall gains when concrete names were replaced by generic descriptions; three largely retained them when the same boundaries were written as prose. On 16 new scenarios written after the initial studies, a follow-up improved recall on 22 of 23 models and reduced unnecessary interruptions on 21. We release the dataset, rule texts and harness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。