工具执行凭证而非零知识证明:面向AI智能体的实用幻觉检测 Tool Receipts, Not Zero-Knowledge Proofs: Practical Hallucination Detection for AI Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-03-09
👁️ 预览文献
💡 AI 中文简介
AI智能体通过工具调用执行任务时经常产生幻觉,如编造工具执行、错误陈述输出数量等。现有可验证推理方法依赖零知识证明,虽提供密码学保证但每次查询需数分钟证明时间,不适合交互式智能体。本文提出NabaOS轻量级验证框架,受印度认识论启发,将LLM响应中的每个声明按认识来源分类,并生成HMAC签名的工具执行凭证,实时交叉验证检测幻觉。在包含1800个场景、四种语言、六类注入幻觉的新基准NyayaVerifyBench上,NabaOS检测出94.2%的伪造工具引用、87.6%的数量错误陈述和91.3%的虚假缺失声明,验证开销低于15毫秒。对于深度委托任务,通过独立重新获取可捕获78.4%的URL伪造。与zkLLM等五种方法对比,NabaOS在交互式智能体场景下实现了最佳的成本-延迟-覆盖率权衡。
领域人工智能/自然语言处理/智能体验证
适合谁读需要一定专业背景(了解LLM智能体、幻觉检测、密码学基础)
核心贡献1. 提出基于认识论分类(pramana)的轻量级验证框架NabaOS,利用HMAC签名工具执行凭证实时检测幻觉;2. 构建多语言多类型幻觉基准NyayaVerifyBench,并证明凭证验证在交互式场景下优于零知识证明。
关键数据检测率:伪造工具引用94.2%,数量错误87.6%,虚假缺失91.3%;验证开销<15ms/响应;深度委托URL伪造检测78.4%;对比zkLLM(180s/查询,近乎完美覆盖),NabaOS以<15ms实现94.2%覆盖。
推荐理由如果你关心AI智能体如何在实际应用中快速、低成本地识别幻觉,这篇论文提供了比零知识证明更实用的方案,数据扎实,值得一读。
关键词["幻觉检测", "AI智能体", "工具调用验证", "认识论分类", "HMAC凭证", "可验证推理"]

原文摘要

查看英文原文摘要

AI agents that execute tasks via tool calls frequently hallucinate results - fabricating tool executions, misstating output counts, or presenting inferences as facts. Recent approaches to verifiable AI inference rely on zero-knowledge proofs, which provide cryptographic guarantees but impose minutes of proving time per query, making them impractical for interactive agents. We propose NabaOS, a lightweight verification framework inspired by Indian epistemology (Nyaya Shastra), which classifies every claim in an LLM response by its epistemic source (pramana): direct tool output (pratyaksha), inference (anumana), external testimony (shabda), absence (abhava), or ungrounded opinion. Our runtime generates HMAC-signed tool execution receipts that the LLM cannot forge, then cross-references claims against these receipts to detect hallucinations in real time. We evaluate on NyayaVerifyBench, a new benchmark of 1,800 agent response scenarios across four languages with injected hallucinations of six types. NabaOS detects 94.2% of fabricated tool references, 87.6% of count misstatements, and 91.3% of false absence claims, with <15ms verification overhead per response. For deep delegation (agents performing multi-step web tasks), our cross-checking protocol catches 78.4% of URL fabrications via independent re-fetching. We compare against five approaches: zkLLM (cryptographic proofs, 180s/query), TOPLOC (locality-sensitive hashing), SPEX (sampling-based proof of execution), tensor commitments, and self-consistency checking. NabaOS achieves the best cost-latency-coverage trade-off for interactive agents: 94.2% coverage at <15ms versus zkLLM's near-perfect coverage at 180,000ms. For interactive agents, practical receipt-based verification provides better cost-benefit than cryptographic proofs, and epistemic classification gives users actionable trust signals rather than binary judgments.