谁来验证工具?格式扭曲如何误导智能体及其验证器
Who Verifies the Tools? How Warped Formatters Mislead Agents and Their Verifiers
AI总结:
该研究发现工具输出格式扭曲会误导智能体和验证器,修正格式细节可减少错误主张,其审计提示能发现开源智能体系统的格式缺陷,相关修复已合并。
摘要:
智能体和验证器通常依赖工具输出的文本,即便工具计算正确,该文本也可能歪曲工具的实际操作。我们在纽约皮尔苏茨基研究所使用的生产级RAG研究系统中观察到这种情况:工具输出格式扭曲误导智能体向用户提供错误或不完整信息。每个工具都正确执行了自身任务,但其输出省略了搜索限制、结果上限或标识符命名空间。我们还重现了代码审查中发现的未标注估算值(该估算值在发布前被拦截)。我们研究了这些格式扭曲是否误导智能体和验证器,以及修正措辞的帮助程度。我们向智能体提供两种格式版本的工具结果:一种存在关键省略,另一种明确说明所有缺失细节。仅这一差异就改变了智能体的主张和验证器的接受度。四类失败类型中,三类的无依据智能体主张大幅减少。在一项测试中,验证器从90次接受错误答案变为90次全部拒绝错误答案。对照实验显示,一旦向验证器提供缺失事实并要求其判断正确性,验证器就能发现错误。我们在探索性演示中纳入了针对Codex和Claude Code的审计提示,该提示基于我们自身系统缺陷的先验知识编写。当指向我们系统的旧版本时,它重新发现了仍存在的缺陷,并找出了12个我们未编目的新缺陷。当指向OpenClaw和Hermes这两个最知名的开源智能体系统时,它发现两者均存在格式扭曲。我们已提交PR修复这两个系统,其中OpenClaw的修复已合并。从业者如今可在自身系统上运行相同提示。
英文摘要:
Agents and verifiers often rely on the text a tool prints, and that text can misrepresent what the tool did. We saw such misrepresentations in a production RAG research system used by the Pilsudski Institute in New York, where tool output formatters misled an agent into giving wrong or incomplete information to users. Each tool did its job correctly, but its output omitted search limits, result caps, or identifier namespaces. Within this same production system, we studied whether faulty formatters mislead agents and verifiers and how much repaired wording helps. We fed tool results to agents using two formatter versions: one with key omissions and one with all missing details clearly stated. That difference alone changed what the agents claimed and what the verifiers accepted. Unsupported agent claims dropped substantially for three of the four failure types. In one test, verifiers went from accepting incorrect answers 90 out of 90 times to rejecting them 90 out of 90 times. A control showed the verifiers could catch the errors once they were given the missing facts and asked to judge correctness. We include the audit prompt we used with Codex and Claude Code in an exploratory demonstration, written with prior knowledge of our own system's defects. When pointed at an old version of our own system, it rediscovered the defects that were still live and surfaced twelve more we had not catalogued. When pointed at OpenClaw and Hermes, two of the best-known open-source agentic systems, it found warped formatters in both. We opened PRs to fix both, and the OpenClaw fix has already been merged. Practitioners can run the same prompt on their own systems today.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。