TOKI: 用于LLM智能体持久化记忆中矛盾消解的双时态算子代数
TOKI: A Bitemporal Operator Algebra for Contradiction Resolution in LLM-Agent Persistent Memory
AI总结:
提出TOKI代数,将四种矛盾消解启发式统一为双时态算子,通过隔离性、模式与溯源三个正确性定理提供写时并发控制契约,并证明审计行防御在LoCoMo任务上的有效性。
摘要:
LLM智能体的持久化记忆是一个写密集型底层:每次信念更新都是版本化写入,新声明可能与已存储的声明矛盾。生产系统使用四种消解启发式(最后写入者获胜、证据加权合并、等待确认、按规则策略),但都没有声明其假设的隔离级别或允许的写时异常。我们证明矛盾消解是写时并发控制,并明确缺失的契约。TOKI将四种启发式类型化为双行模式上的双时态算子家族,每个算子具有隔离前提条件和保留失败事实的溯源注释(审计行)。四个正确性定理在隔离性、模式和溯源之间闭合契约,将保证提升到算子流水线,并将折叠算子扩展到n元冲突集。紧致性伴随定理证明,在关系调度模型中,关键日志记录裁决法官对于重放一致性是必要的,而所有审计基线都忽略了这一点。基于八个系统的裁决矩阵定位了差距:每个在写路径上保留语言模型法官的基线至少允许三种写时异常(重放不一致、信念漂移偏斜、审计擦除)中的一种;内容寻址的引擎层比较器通过移除法官避免了这些异常,而只有TOKI在保留法官的同时排除了所有三种异常。在其单一自然工作负载切片上,审计行防御使LoCoMo提升了0.86,而消融类型化记忆层在1444个可回答的LoCoMo问题上移除了0.49的准确率;跨系统比较统计功效不足,不声称优越性。贡献在于契约:一个写时正确性规范,在隔离性、模式和溯源上被证明是可靠的,明确了每个生产启发式假设但没有任何部署系统明确声明的保证。
英文摘要:
Persistent memory for an LLM agent is a write-heavy substrate: every belief update is a versioned write, and a new claim may contradict a stored one. Production systems use four resolution heuristics (last-writer-wins, evidence-weighted merge, await-confirmation, per-rule policy), yet none declares the isolation level it assumes or the write-time anomalies it admits. We show that contradiction resolution is write-time concurrency control and make the missing contract explicit. TOKI types the four heuristics as one family of bitemporal operators over a dual-row schema, each with an isolation precondition and a provenance annotation that preserves the losing fact in an audit row. Four soundness theorems close the contract across isolation, schema, and provenance, lift the guarantees to operator pipelines, and extend the fold operators to n-ary conflict sets. A tightness companion proves that, within the relational schedule model, keyed logging of the adjudicating judge is necessary for replay consistency, which every audited baseline omits. A verdict matrix over eight systems localizes the gap: every baseline that keeps a language-model judge on the write path admits at least one of three write-time anomalies (replay inconsistency, belief-drift skew, audit erasure); a content-addressed engine-layer comparator avoids them only by removing the judge, and TOKI alone excludes all three while keeping it. On its one natural-workload slice the audit-row defence moves LoCoMo by 0.86, and ablating the typed memory layer removes 0.49 accuracy on 1,444 answerable LoCoMo questions; the cross-system comparison stays underpowered and claims no superiority. The contribution is the contract: a write-time correctness specification, proved sound across isolation, schema, and provenance, pinning the guarantee every production heuristic assumes but no deployed system makes explicit.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。