MemForest通过分层时间索引实现记忆并行构建,显著提升长对话中信息更新速度。
MemForest: An Efficient Agent Memory System with Hierarchical Temporal Indexing

- 将记忆构建拆分为独立并发操作,打破串行瓶颈
- 在LongMemEval-S上达到81.8%准确率,构建速度为EverMemOS的6倍
- 适合需要低延迟记忆更新的长期交互式AI系统
记忆是长上下文大模型智能体的关键组件,支持跨交互的持久状态。现有系统常在写入路径中采用序列自回归提取或状态依赖维护,导致新证据查询延迟。为此,我们提出MemForest,将智能体记忆重构为高效写入的时间数据管理问题。该框架通过并行提取打破串行瓶颈,将记忆构建解耦为独立并发操作。我们进一步引入MemTree——一种分层时间索引,以时间有序树结构组织记忆,将全局重写替换为局部脏路径刷新。脏摘要可在节点和树间并行刷新。端到端处理开销与输入内容成正比;对平衡树而言,结构插入和层级刷新深度仅呈对数增长。我们在LongMemEval-S和LoCoMo两个长上下文基准上评估了MemForest,使用Qwen3-4B、Qwen3-30B和Gemma-4-12B-IT模型。在Qwen3-30B下,MemForest在LongMemEval-S上达到81.8%的通过率,输入归一化构建速率是EverMemOS的6.0倍;在LoCoMo类别1至4中达84.09%,仅比EverMemOS低0.13个百分点,在匹配对话中构建速率高达其9.5倍。结果表明,MemForest在保持高回答质量的同时显著降低记忆新鲜度延迟。
原文摘要 · Abstract (English)
Memory is a fundamental component for long-context LLM agents, supporting persistent state across interactions through a continuous serve-and-update lifecycle. Despite substantial prior work, many stateful systems retain sequential autoregressive extraction or state-dependent maintenance on the write path, delaying when new evidence becomes queryable. To address these challenges, we present MemForest, a memory framework that reformulates agent memory as a write-efficient temporal data-management problem. MemForest breaks the sequential bottleneck via parallel extraction, decoupling memory construction into concurrent, independent operations. We further introduce MemTree, a hierarchical temporal index that organizes memory as time-ordered trees and replaces global rewrites with localized dirty-path refresh. Dirty summaries can be refreshed in parallel across nodes and trees. End-to-end work remains proportional to incoming content; the logarithmic bound applies only to structural insertion and level-dependent refresh depth in balanced trees. We evaluate MemForest on two long-context benchmarks, LongMemEval-S and LoCoMo. Experiments use Qwen3-4B, Qwen3-30B, and Gemma-4-12B-IT. With Qwen3-30B, MemForest reaches 81.8 percent pass at 1 on LongMemEval-S, while its input-normalized build rate is 6.0 times that of EverMemOS. On LoCoMo categories 1 to 4, it reaches 84.09 percent, within 0.13 percentage points of EverMemOS; on a matched conversation, its build rate is 9.5 times higher. These results show that MemForest reduces memory-freshness latency while retaining strong answer quality.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。