AMP:一种用于智能体内存操作的供应商中立线格式
memorywire: A Vendor-Neutral Wire Format for Agent Memory Operations
AI总结:
提出一种基于JSON-Schema 2020-12的供应商中立线格式memorywire,支持五种内存操作和四种内存类型,通过参考实现和基准测试验证其性能与兼容性。
摘要:
智能体内存框架——mem0、Letta/MemGPT、Cognee、Zep/Graphiti、MemoryOS、MemTensor——各自提供自己的SDK、存储布局和操作词汇。没有共享的线格式:每次集成都是定制的,每次迁移都从头重建内存,并且没有框架提供治理界面,让人类在写入进入长期存储之前进行审查。我们提出memorywire,一种基于JSON-Schema 2020-12的线格式,支持五种内存操作(记住、回忆、遗忘、合并、过期)和四种内存类型(语义、情景、程序、情感),并包含一个MemoryStore接口、一个扇出路由器以及一个可选的人机回环治理通道。我们描述了一个开源参考实现,包含五个后端适配器(sqlite-vec、mem0、Letta、Cognee、pgvector);一个基于100个事实/50个查询的标注语料库的微基准测试,在42个标注查询上实现了recall@5=1.000,摄入p50=37.8毫秒,回忆p50=40.6毫秒;一个对抗融合实验显示,在1-of-N秩0注入扫描(K∈{0,5,...,50})中,倒数秩融合保持recall@5=1.000,而最大融合在K≥5时下降至0.500,泄露率达80%;以及一个16场景跨适配器一致性测试套件,80个单元中通过68个,零失败。贡献不在于新算法,而在于将现有组件(RRF、FSM、STM/LTM整合、差异与批准工作流)打包成一个供应商中立的协议,并附有经验验证的参考实现,旨在与模型上下文协议协作而非竞争。
英文摘要:
Agent-memory frameworks -- mem0, Letta/MemGPT, Cognee, Zep/Graphiti, MemoryOS, MemTensor -- each ship their own SDK, storage layout, and operational vocabulary. There is no shared wire format: every integration is bespoke, every migration rebuilds memory from scratch, and no framework ships a governance surface that lets a human review writes before they enter long-term storage. We present memorywire, a JSON-Schema 2020-12 wire format for five memory operations (remember, recall, forget, merge, expire) over four memory types (semantic, episodic, procedural, emotional), with a MemoryStore interface, a fan-out router, and an optional HITL governance channel. We describe an open-source reference implementation with five backend adapters (sqlite-vec, mem0, Letta, Cognee, pgvector); a microbenchmark on a 100-fact / 50-query labelled corpus (42 with non-empty gold ids + 8 no-match probes) achieving recall@5 = 1.000 on the 42 gold-id queries with ingest p50 = 37.8 ms and recall p50 = 40.6 ms; an adversarial-fusion experiment showing Reciprocal Rank Fusion holds recall@5 = 1.000 across a 1-of-N rank-0 injection sweep (K in {0, 5, ..., 50}) where max fusion collapses to 0.500 with 80% leak at K >= 5; and a 16-scenario cross-adapter conformance suite passing 68 of 80 cells with zero failures. The contribution is not a new algorithm; it is a packaging of established components (RRF, FSMs, STM/LTM consolidation, diff-and-approve workflows) into a venue-neutral protocol with an empirically validated reference, positioned to compose with the Model Context Protocol rather than compete with it. We further show that memorywire's provenance field is the strongest lever for recovering a poisoned store, evaluated with an companion benchmark (PurgeBench).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。