grounded continuation: 一种线性时间的运行时验证器用于大语言模型对话
Grounded Continuation: A Linear-Time Runtime Verifier for LLM Conversations
AI总结:
本文提出一种线性时间的运行时验证器,用于检测大语言模型对话中基于已废弃前提的延续。通过显式依赖图验证,该方法在LongMemEval-KU和LoCoMo基准上表现出色,准确率显著高于基线模型。
摘要:
在长对话中,大语言模型可能生成一个听起来合理但基于已被对话放弃前提的下一句。针对部署代理的上下文操纵攻击现在积极利用这一差距。我们通过一个运行时验证器来弥补这一缺口,该验证器维护一个显式依赖图:大语言模型将每个回合分类为四种形式之一的8种更新操作(动态知识逻辑、归纳推理、意识逻辑、论证),并由符号引擎记录哪些主张依赖于哪些证据。检查延续是否被支持减少到图遍历;撤回通过相同的图传播以标记恰好失去支持的结论,具有线性每回合成本和形式冲突自由保证。在LongMemEval-KU oracle(n=78)上,验证器达到89.7%的准确率,比仅LLM基线(88.5%)高1.3个百分点,比匹配检索预算的transcript-RAG基线(87.2%)高2.6个百分点;在分歧中胜出的是正确回避,其中基线会编造。在LoCoMo的60个官方QA项目上,验证器与检索增强基线具有竞争力。除了外部基准外,我们还构建了两个多代理场景和一个50项接地测试:在15项陈旧前提子集中,验证器达到100%的准确率,比93.3%(+6.7个百分点)。这些实现了正确性-忠实度分解:结构检查通过构造是正确的,而每部署LLM提取的忠实度是我们在四个LLM家族中测量的实证问题。撤回检查在微秒级别稳定,而历史回放随着对话长度线性增长。
英文摘要:
In a long conversation, an LLM may produce a fluent continuation that rests on premises the conversation has already abandoned. Context-manipulation attacks exploit precisely this weakness. We address this problem with a runtime verifier. An LLM Interpreter maps each utterance to one or more of eight epistemic operations, and then a symbolic engine applies these operations to a dependency map that records what every claim rests on and whether it still stands. Based on the dependency map, checking whether a continuation is grounded then reduces to a walk over the map, linear in its size and requiring no LLM call. Retraction propagates through the same map with a conflict-free guarantee and flags exactly the conclusions that lose support. Our experiments with five QA models demonstrate substantial improvements in QA accuracy at a low cost per query. On ReviseQA for belief revision and MemoryAgentBench's FactConsolidation split (MemAB-FC), the verifier outperforms a retrieval baseline and raises MemAB-FC single-hop accuracy from $0.46$--$0.95$ to $0.94$--$0.98$. With the verifier, even the small 7B model overtakes unaided GPT-4o. When a GPT-4o Interpreter extracts every update from raw text rather than taking the benchmarks' structured updates, the verifier still outperforms the retrieval baseline. Moreover, on MemAB-FC, QA prompts remain compact at $97$--$174$ tokens while the full-context baseline reaches $114.5$K. Retraction queries take less than a microsecond at $2000$ turns.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。