SilentGuard:将决策从模型移到工具调用框架,防止LLM Agent遭遇API静默失败
Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures
SilentGuard将判断权从模型移到执行工具调用的harness,用任何正确API都必须满足的不变量检验每次返回结果,并扣留违反不变量的值。在15个公开研究API中有11个存在静默失败,计数被夸大最高达691倍;现有修复手段仍让超过70%的答案出错。在7个开源模型上,SilentGuard将目标故障的错误答案从74.0%降至1.7%,三个前沿模型上从70.2%降至0.5%,无故障任务无损失。
arXiv:2611.20595v1 Announce Type: new Abstract: LLM agents answer questions by calling APIs and trusting the results. An API can fail silently. It ignores part of a request, such as a misnamed filter, yet returns HTTP 200 and a plausible but wrong result. Current fixes, such as checklists, reviewer models and LLM judges, ask the model to catch it. But models often see the problem and answer anyway. We present SilentGuard, which moves the decision from the model to the harness running tool calls. It tests each result against invariants that any correct API must satisfy and withholds values that break one. We find silent failures in 11 of 15 public research APIs, with counts inflated up to 691 times. Current fixes leave over 70% of answers wrong, and agents report 77.4% of counts a judge flags. Across 7 open models, SilentGuard cuts wrong answers on its target faults from 74.0% to 1.7%, with no loss on fault-free tasks. On three frontier models they fall from 70.2% to 0.5%. A warning from the same check leaves 70.1% wrong, so enforcement is the key. On new fault types, the harness alone cuts wrong answers from 61.1% to 24.5%. It avoids wrong answers by abstaining rather than recovering.
来源:arXiv (AI + Vision + Imaging) · arxiv.org