NeurIPS 2026QuestionsPapersAreasAboutMarkdown

MemForest: Efficient Agent Memory Management via EventTree Partitioning and Progressive Merging

JunXi Wang, Jiayi Zhu, Te Sun, Chen Zhang, Siyuan Li, Xuyang Liu, Zichen Wen, Xiaobing Tu, Jinkui Ren, Xiantao Zhang, Ziqi Yuan, Linfeng Zhang

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Agent Memory Compression and Retrieval · Type: new method · Keywords: agent memory management, event partitioning, progressive merging, memory compression, retrieval efficiency

Areas: Memory › Agent Memory Systems › Agent Memory; AI Agents › Agent Capabilities › LLM Agent Memory

Summary

MemForest is a memory compression framework that partitions historical events into event-centric units and merges them via EventTree structures to reduce storage while preserving performance and speeding up retrieval.

Explained to a 5-year-old

Agents remember things like a big notebook. Over time the notebook gets too big and slow. We cut the notebook into smaller pieces based on what the events are about and when they happened. Then we connect the pieces like a tree and merge similar parts to make the notebook smaller. This helps the agent find things faster and uses less space.

Explained to a 5-year-old, longer

Imagine an assistant that talks with you for a long time and remembers everything you said. All those memories are stored in a big folder. As time goes on, the folder becomes huge and takes a long time to look through. We want a way to make the folder smaller without losing the important parts. The idea is to look at the memories and group similar ones together. We also look at when each memory happened to keep the order. Each group becomes a small box that holds related memories. Inside each box we draw lines connecting memories that are most alike, like a tree. Then we gradually join the less important memories into the bigger ones, removing repeats. This makes the whole collection much smaller while keeping the key information. To find a memory later, we start from important ones and look around them for related memories. This way the assistant can answer quickly and uses less storage space.

For a technical reader

The system groups past events into independent units using semantic and temporal cues, then builds a maximum spanning tree for each unit to identify redundant connections. By iteratively merging high-weight edges, it compresses the memory while preserving essential information. Retrieval is enhanced with an anchor-guided propagation that fetches relevant nodes from nearby temporal contexts. Experiments show the method retains over 97% of original performance while halving storage and speeding up lookups by roughly two times.

Problem

Agent memory systems accumulate large amounts of historical data, leading to high storage and retrieval costs over time. This growth hampers efficiency and scalability of long-term agents.

Method

The approach partitions historical memory events based on semantic similarity and temporal continuity into independent units, constructs a maximum spanning tree for each unit, and progressively merges nodes by selecting high-weight edges to compress redundancy. It also introduces an anchor-guided propagation retrieval to fetch relevant nodes from temporal neighborhoods.

Results

On unimodal benchmarks, the approach preserves 97.1% of original performance while compressing 50% of memory and achieving a 1.89× retrieval speedup. On multimodal benchmarks, it retains 99.7% performance under the same compression ratio and reaches a 2.24× speedup.

Contributions

It introduces a general memory compression framework that leverages semantic and temporal cues to create event-centric memory units and compress them via progressive merging, along with an anchor-guided retrieval mechanism for improved relevance. The framework is evaluated on multiple benchmarks and shows high performance retention with significant storage and speed gains.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction