MIGRO:一种用于语言模型的解耦且可移植的长期记忆系统
MIGRO: A Decoupled and Portable Long-Term Memory System for Language Models
AI总结:
提出MIGRO解耦长期记忆系统,通过非对称保真等设计实现跨语言模型的记忆共享,在LoCoMo、BEAM等基准上较基线显著降低存储并提升质量。
摘要:
语言模型不断迭代,但用户交互过程中积累的观测、修订和上下文应保持可用。每个新模型都需能够检索过往证据、跟踪修订并添加新观测。我们提出MIGRO,一种解耦的长期记忆系统,将经验视为跨连续语言模型共享的持久状态。MIGRO遵循简单原则:精确保留历史证据、近似组织证据、仅在明确问题后决定检索内容,我们将此称为“带延迟选择性的非对称保真度”。共享语义索引支持检索,而精确记录则保留观测及其历史关系。由于不同模型的词汇表和分词方式存在差异,宿主特定接口会将选中的证据转换为接收模型可使用的输入。可逆编码可减少归档存储,同时支持精确恢复。共享状态及其访问接口允许连续宿主读取并扩展积累的经验。在匹配的LoCoMo状态上,MIGRO的得分比最强质量基线高7.3%,且私有内存使用量减少99.3%;在交接后,通过扩展继承状态,持续写入可保留99.9%的全历史重建质量;在百万token级的BEAM历史上,MIGRO的平均私有存储使用量比最紧凑基线减少57.5%。MIGRO兼具高回答质量、跨宿主的持续记忆增长以及低存储成本,代码可在该https URL获取。
英文摘要:
Language models evolve, but the observations, revisions, and context accumulated through user interactions should remain usable. Each new model must be able to retrieve past evidence, track revisions, and add new observations. We present MIGRO, a decoupled long-term memory system that treats experience as a persistent state shared across successive language models. MIGRO follows a simple principle: preserve historical evidence exactly, organize it approximately, and decide what to retrieve only when the question is known. We call this asymmetric fidelity with deferred selectivity. A shared semantic index supports retrieval, while exact records retain observations and their historical relationships. Because models differ in vocabulary and tokenization, host-specific interfaces convert selected evidence into inputs the receiving model can use. Reversible encoding reduces archival storage while enabling exact recovery. The shared state and its access interfaces let successive hosts read and extend the accumulated experience. On matched LoCoMo states, MIGRO scores 7.3% higher and uses 99.3% less private memory than the strongest quality baseline. After handoff, continued writing retains 99.9% of full-history rebuilding quality by extending the inherited state. On million-token BEAM histories, MIGRO uses 57.5% less private storage on average than the most compact baseline. MIGRO combines high answer quality, continued memory growth across hosts, and low storage cost. Code is available at https://github.com/zOUMINGXI/MIGRO.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。