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 2026
TL;DR. Efficient Agent Memory Management via EventTree Partitioning and Progressive Merging
Abstract. Agent memory systems have demonstrated significant potential in tasks such as long-term dialogue, personalized assistants, and video understanding. However, as inference progresses, continuously accumulated memory imposes substantial storage and retrieval burdens. To address this issue, we propose MemForest, a general memory compression framework adaptable to various agent memory systems. Specifically, MemForest leverages both global semantic similarity and local temporal continuity of memory events to partition the historical memory into a set of event-centric independent units. For each independent unit, the framework constructs a maximum spanning tree structure, referred to as an EventTree, and performs progressive merging by iteratively selecting high-weight edges, thereby effectively compressing redundant memory nodes and reducing storage overhead. In addition, we introduce an anchor-guided propagation retrieval mechanism, which retrieves more relevant memory nodes from the temporal neighborhoods of key memory nodes, thereby enabling more accurate memory retrieval. Extensive experiments demonstrate the effectiveness of MemForest. Under the unimodal Mem0 framework, across three benchmarks (LoCoMo, LongMemEval, and PersonaMem), MemForest preserves 97.1% of the original performance while compressing 50% of historical memory, achieving a 1.89× retrieval speedup. Under the multimodal M3-Agent framework, across two benchmarks (M3-Bench-robot and M3-Bench-web), MemForest retains 99.7% of the original performance under a 50% compression ratio, while achieving a 2.24× retrieval speedup. Our code is available in the supplementary materials, and all data will be released on GitHub.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:50 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
MemForest is a post-processing framework that compresses an agent's accumulated long-term memory to cut storage and retrieval latency, and it can be retrofitted onto existing memory systems. It first partitions memory nodes into event-centric groups using both global semantic similarity and local temporal continuity, then progressively merges redundant nodes within each group by building a maximum spanning tree and using an LLM to summarize the most-similar pairs until a target compression ratio is reached. A separate retrieval add-on, Anchor-Guided Propagation Retrieval (AGPR), re-ranks results using the temporal neighborhoods of high-similarity "anchor" nodes.
Strength: 1. The problem tackles a practically important problem. 2. Good coverage of experiments and systematic ablation study.
Weakness:
- Reviewers question the technical novelty (MZ5e Originality 1; KAdn-W4, YhvN-W1 Originality 2). The pipeline composes standard parts, and the paper does not clearly differentiate MemForest from existing hierarchical clustering, graph compression, temporal RAG, or memory-summarization methods.
- The theoretical analysis does not match the implemented method (all three reviewers: MZ5e, KAdn/W-implied, YhvN-W1/Q1).
- AGPR's contribution is entangled with the compression method, and it carries much of the headline result (MZ5e, YhvN-W3). AGPR is a generic temporal re-ranker that is essentially orthogonal to compression. The headline results are therefore driven mostly by bolting on AGPR, not by the compression algorithm that is the paper's major contribution.
- Some result margins are within plausible noise.
Position: The paper has two borderline-rejects (one confident) against a confident borderline-accept, with all reviewers saying "Quality: not good" but strong experimental coverage. A well-targeted rebuttal could move this to accept. In priority order, if the author can show the following in the rebuttal, then I am in favor of accepting: a) Cleanly isolate AGPR from compression, b) Add statistical significance; c) Bridge the theory–implementation gap empirically or modify the theory accordingly.
Final justification
The authors addressed my meta-review on three points: isolate AGPR from the compression method, add statistical evidence, and connect the theory to the implementation. The AGPR breakdown is the most useful addition. When applied to the uncompressed baselines, DART, ToMe, and MemForest at 50% compression, AGPR adds roughly the same amount to every method, which confirms it is a generic temporal re-ranker.
After discussion the scores are 4, 3, and 4: MZ5e raised from 3 to 4 on the condition that AGPR gains are no longer attributed to compression, KAdn holds at 3 on novelty. The novelty is modest, since the pipeline composes KMeans, a maximum spanning tree, LLM summarization, and temporal re-ranking. This is raised by three reviewers as well.
But given this paper offers consistent gains over pruning and merging baselines across two frameworks, five benchmarks, and three ratios, with thorough ablations, I think that clears the bar for a poster.
I recommend acception.
Read meta-review
Meta-review
MemForest is a post-processing framework that compresses an agent's accumulated long-term memory to cut storage and retrieval latency, and it can be retrofitted onto existing memory systems. It first partitions memory nodes into event-centric groups using both global semantic similarity and local temporal continuity, then progressively merges redundant nodes within each group by building a maximum spanning tree and using an LLM to summarize the most-similar pairs until a target compression ratio is reached. A separate retrieval add-on, Anchor-Guided Propagation Retrieval (AGPR), re-ranks results using the temporal neighborhoods of high-similarity "anchor" nodes.
Strength: 1. The problem tackles a practically important problem. 2. Good coverage of experiments and systematic ablation study.
Weakness:
- Reviewers question the technical novelty (MZ5e Originality 1; KAdn-W4, YhvN-W1 Originality 2). The pipeline composes standard parts, and the paper does not clearly differentiate MemForest from existing hierarchical clustering, graph compression, temporal RAG, or memory-summarization methods.
- The theoretical analysis does not match the implemented method (all three reviewers: MZ5e, KAdn/W-implied, YhvN-W1/Q1).
- AGPR's contribution is entangled with the compression method, and it carries much of the headline result (MZ5e, YhvN-W3). AGPR is a generic temporal re-ranker that is essentially orthogonal to compression. The headline results are therefore driven mostly by bolting on AGPR, not by the compression algorithm that is the paper's major contribution.
- Some result margins are within plausible noise.
Position: The paper has two borderline-rejects (one confident) against a confident borderline-accept, with all reviewers saying "Quality: not good" but strong experimental coverage. A well-targeted rebuttal could move this to accept. In priority order, if the author can show the following in the rebuttal, then I am in favor of accepting: a) Cleanly isolate AGPR from compression, b) Add statistical significance; c) Bridge the theory–implementation gap empirically or modify the theory accordingly.
Final justification
The authors addressed my meta-review on three points: isolate AGPR from the compression method, add statistical evidence, and connect the theory to the implementation. The AGPR breakdown is the most useful addition. When applied to the uncompressed baselines, DART, ToMe, and MemForest at 50% compression, AGPR adds roughly the same amount to every method, which confirms it is a generic temporal re-ranker.
After discussion the scores are 4, 3, and 4: MZ5e raised from 3 to 4 on the condition that AGPR gains are no longer attributed to compression, KAdn holds at 3 on novelty. The novelty is modest, since the pipeline composes KMeans, a maximum spanning tree, LLM summarization, and temporal re-ranking. This is raised by three reviewers as well.
But given this paper offers consistent gains over pruning and merging baselines across two frameworks, five benchmarks, and three ratios, with thorough ablations, I think that clears the bar for a poster.
I recommend acception.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes MemForest, a post-processing compression framework for agent memory that partitions memory nodes into event-centric groups (using semantic similarity + temporal continuity), then progressively merges within each group via maximum spanning trees. An Anchor-Guided Propagation Retrieval (AGPR) mechanism supplements similarity-based retrieval with temporal neighborhood information. On Mem0 and M3-Agent across five benchmarks, MemForest retains 97.1%/99.7% of original performance at 50% compression with 1.89x/2.24x retrieval speedups.
Strengths and weaknesses
Strengths:
[S1] Well-motivated problem formulation. The two-axis characterization of memory events (global semantic similarity across distant windows + local temporal continuity within adjacent windows) is grounded in a concrete LoCoMo example (Figure 1b) and directly motivates the design.
[S2] Thorough experimental coverage. Two agent frameworks (Mem0, M3-Agent), five benchmarks, three compression ratios, six baselines from both pruning and merging families. Results are consistent and the inclusion of both performance retention and retrieval speedup is useful.
[S3] Systematic ablations. Tables 3-9 and Figures 5-6 validate each component individually. The parameter sensitivity analysis across seven hyperparameters is helpful for practitioners.
Weaknesses:
[W1] Limited technical novelty. The core components (KMeans, MST, LLM summarization) are standard. The dual-score (Eq. 3) is a weighted combination of cosine similarity and a binary window indicator. The theoretical bound (Eq. 15) assumes embedding interpolation, but actual merging uses LLM-generated text then re-encoding. The gap between the theoretical model and the implementation is not discussed.
[W2] LLM merging quality is under-analyzed. Compression is done by prompting GPT-4o-mini (Appendix C), yet failure modes are barely studied. Table 12 compares three LLMs at 50% only. At 70% compression, where nodes undergo multiple sequential merges, does information loss compound?
[W3] AGPR feels orthogonal to compression. It is a temporal re-ranking method that could apply independently of MemForest. The ablations show MemForest without AGPR already works well. Separating the contributions more clearly would help.
[W4] LLM-as-judge evaluation without human validation. GPT-4o-mini/GPT-4o judge answer quality, but reliability is not checked against humans. At 30% compression (Table 1), gaps between methods are 1-2 points, likely within evaluation noise.
Minor comments:
- The notation switches between for historical memory and for center nodes, which can be confusing since appears without prior definition.
- Figure 2 is dense and hard to parse at the resolution provided. The three sub-figures try to convey too much information simultaneously.
- The claim "general memory compression framework" in the contributions may overstate the scope, since the framework has only been tested on two specific systems.
Questions
-
The theoretical analysis assumes merged embeddings are normalized interpolations of the originals (Eq. 11), but the actual merging uses an LLM to generate new text which is then re-encoded. Have you measured the empirical gap between these two representations? If the LLM-generated merge produces an embedding that deviates from the interpolation model, the theoretical bound in Eq. 15 may not hold in practice.
-
At 70% compression, each surviving memory node is the result of multiple sequential merges. Have you observed compounding information loss in practice? Specifically, does the distribution of per-node quality degrade faster than the aggregate metrics suggest?
-
The AGPR mechanism uses exponential decay based on temporal distance to anchor nodes (Eq. 9). Have you considered other decay functions, or is there a reason to prefer exponential? The parameter sensitivity analysis covers , , and but not the functional form of the decay.
-
How sensitive is the framework to the choice of embedding model? You use text-embedding-3-small for Mem0 and text-embedding-3-large for M3-Agent. If these embeddings do not cluster well by event, the entire partitioning step would degrade.
Limitations
The authors discuss limitations in Appendix F, including dependence on LLM merging quality, the need for pre-defined compression ratios, and potential challenges with heterogeneous memory types. These are honest and appropriate.
Formatting concerns
N/A
3 comments
Rebuttal
Dear Reviewer YhvN,
Thank you for carefully reading our paper and for providing a series of valuable comments. We have consolidated the Weaknesses, Questions, and minor comments you raised into the following 7 points and address them individually below. We also commit to incorporating the relevant clarifications and additional details into the camera-ready version.
Q1: On the technical novelty and the gap between the theoretical analysis and the actual LLM merging process (Weakness 1, Question 1)
A1: First, regarding the novelty of our method, we would like to clarify that although KMeans and maximum spanning trees are established algorithms, the novelty of MemForest lies in introducing a new event-level post-hoc compression framework for continuously growing agent memory. The framework jointly leverages global semantic similarity and local temporal continuity to partition memories into EventTrees, performs progressive merging within each event, and uses AGPR to compensate for the loss of temporal context caused by compression. Therefore, MemForest is not a simple combination of existing techniques, but a new memory compression framework specifically designed for the characteristics of agent memory.
Second, regarding the gap between the theoretical analysis and the actual implementation, in Section 4, Theoretical Analysis, we model the embedding of a new node obtained by merging two memory nodes as a normalized interpolation of the embeddings of the two original nodes. To validate this modeling assumption, we randomly sampled 1,000 pairs of memory nodes from each of the five datasets evaluated in the paper and computed the cosine similarity between the embedding obtained by re-encoding the LLM-merged text and the interpolated embedding. Specifically, we varied the interpolation coefficient from 0.1 to 0.9 in increments of 0.1 and selected the interpolated result with the highest cosine similarity, thereby testing whether the representation produced by LLM-based merging can be approximated by an interpolation between the two original node embeddings. As shown in the table below, approximately 90% of the node pairs achieve a cosine similarity above 0.8, indicating that this idealized modeling assumption is reasonably well supported in practice.
| Cosine similarity | Count | Proportion |
|---|---|---|
| > 0.9 | 1,976 | 39.5% |
| > 0.8 | 4,469 | 89.4% |
| > 0.6 | 4,894 | 97.9% |
Q2: On the accumulation of information loss during LLM-based merging (Weakness 2, Question 2)
A2: Thank you for this valuable comment. We acknowledge that, at a high compression ratio of 70%, memory nodes undergo more rounds of merging, and information loss may accumulate progressively. In the field of compression, completely avoiding information loss is unrealistic; therefore, our goal is to preserve key historical information as much as possible while substantially reducing storage and retrieval costs.
As shown in Tables 1 and 2, at a 70% compression ratio, MemForest still retains 93.3% and 98.5% of the original performance on Mem0 and M3-Agent, respectively, while consistently outperforming the other baselines. These results demonstrate that MemForest remains effective and robust under high-compression settings. In future work, we will further investigate error accumulation across multiple rounds of merging to reduce information loss at high compression ratios.
Q3: On disentangling the contributions of AGPR and the memory compression method (Weakness 3)
A3: Thank you for raising this important question. In the original paper, we designed MemForest and AGPR as two functionally distinct modules. MemForest is an offline compression module that reduces the number of memory nodes through EventTree partitioning and progressive merging, thereby primarily improving storage and retrieval efficiency. In contrast, AGPR is a retrieval-enhancement module applied at query time. It does not participate in memory compression; instead, it treats highly relevant nodes as anchors and uses information from their temporal neighborhoods to recalibrate the retrieval scores of candidate memories, thereby compensating for the local temporal context that may be weakened after compression. The two modules are therefore fully orthogonal and complementary, and each can also be used independently.
Q4: On the reliability of LLM-based evaluation, human validation, and evaluation noise (Weakness 4)
A4: Thank you for raising this important question. First, using LLM-as-a-judge to evaluate response quality is a common practice in existing agent memory research. To ensure a fair comparison, we strictly follow the original evaluation prompts and settings of Mem0 and M3-Agent without any modifications.
Second, to assess the reliability of the automatic evaluation, we randomly sampled 100 questions from LoCoMo for manual review and found only one misclassified case. For the question “Where has Melanie camped?”, the reference answer was “beach, mountains, and forest.” The model response omitted “forest,” but the LLM judge still marked it as correct. This indicates that LLM-as-a-judge may indeed introduce occasional errors; nevertheless, the overall agreement between manual and automatic evaluation reached 99%.
In addition, we conducted three independent runs, and the standard deviation on LoCoMo was only 0.12, indicating that the evaluation results are stable and that minor judging noise does not affect the main conclusions of this work. Due to space constraints, we were unable to report the per-run results and standard deviations for all experiments. Should the reviewer request them, we will provide these additional results during the discussion period.
Q5: On the choice of different decay functions (Question 3)
A5: We further evaluated two alternative temporal decay functions: linear decay and stepwise decay. For stepwise decay, every five memory nodes form an interval, and the propagation strength is reduced to half that of the preceding interval after each interval. The results on LoCoMo and M3-Bench-robot are shown below.
The experiments indicate that exponential and linear decay achieve comparable performance. We adopt exponential decay primarily because its smooth decreasing form better reflects classical memory-forgetting patterns; with an appropriately tuned decay coefficient, linear decay can achieve similar results. In contrast, stepwise decay performs worse, possibly because its discrete changes cannot finely distinguish the temporal distances between nodes within the same interval and introduce discontinuous score changes at interval boundaries.
| Method | LoCoMo | M3-Bench-robot |
|---|---|---|
| Mem0 + Exponential Decay | 60.3 | 37.2 |
| Mem0 + Linear Decay | 60.3 | 36.9 |
| Mem0 + Stepwise Decay | 60.0 | 34.1 |
Q6: On the sensitivity of the framework to different embedding models (Question 4)
A6: First, we use text-embedding-3-small for Mem0 and text-embedding-3-large for M3-Agent to remain consistent with the default settings of their original frameworks. Second, due to the time constraints of the rebuttal, we further replaced the embedding model in Mem0 with text-embedding-3-large and evaluated it on LoCoMo at a 50% compression ratio. As shown below, MemForest still substantially outperforms the other methods, demonstrating good robustness to changes in the embedding model.
| Method | Accuracy |
|---|---|
| Mem0 | 64.1 |
| + DART | 56.4 |
| + ToMe | 60.7 |
| + MemForest | 63.5 |
Due to the time and space constraints of the rebuttal, we have not yet evaluated additional datasets, compression ratios, or baseline methods. Should the reviewer wish to see further results, we will provide the corresponding experiments during the discussion period.
Q7: On the remaining minor comments
A7: Regarding the minor comments you raised, such as the repeated definitions of certain symbols and the dense presentation of Figure 2, we will revise and improve these issues in the camera-ready version to enhance the clarity and readability of the paper. We sincerely appreciate your careful feedback.
In addition, to further evaluate the generalizability of our framework, we conducted supplementary experiments on the MemOS memory framework. Due to the time constraints of the rebuttal, we selected the LoCoMo dataset and set the compression ratio to 50%. As shown below, at the same compression ratio, MemForest retains substantially more of the original performance than the other baselines, further demonstrating its effectiveness and generalizability across different memory frameworks.
| Method | Accuracy |
|---|---|
| MemOS | 72.3 |
| + DRAT | 62.9 |
| + ToMe | 68.1 |
| + MemForest | 70.7 |
Due to the limited rebuttal period, we have not yet evaluated additional datasets and baseline methods. Should the reviewer wish to see further results, we will provide the corresponding experiments during the discussion period.
Sincere reply to reviewer YhvN
Dear Reviewer YhvN,
We sincerely thank you for your valuable comments and constructive suggestions on our manuscript. In response to the concerns you raised, we have conducted additional experiments and analyses(Q1-Q7), and we plan to incorporate corresponding revisions and improvements in the camera-ready version. As the rebuttal phase is coming to an end, we would greatly appreciate your feedback on whether our additional results and clarifications have adequately addressed your concerns. If you could kindly take a moment to review our updates and provide further guidance, we would be truly grateful. Your feedback will help us make more targeted and meaningful improvements to the final version. Thank you again for your time and insightful advice. We wish you all the best in your work!
Best, authors
Sincere reply to reviewer YhvN
Dear Reviewer YhvN,
Thank you again for your valuable comments and constructive suggestions on our manuscript. Following your recommendations, we have conducted the additional experiments and analyses (Q1–Q7) and provided detailed responses and clarifications to address your concerns. We will also incorporate these improvements into the camera-ready version.
As the rebuttal period is coming to an end, we would greatly appreciate it if you could kindly review our updated responses and results when possible. We sincerely hope that these additional experiments and clarifications have addressed your concerns, and we would be grateful if these improvements could be taken into consideration in your final assessment.
Thank you very much for your time and careful review.
Best regards, Authors
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes MemForest, a general memory compression framework for agent memory systems, aiming to reduce the storage and retrieval burden caused by continuously growing historical memory. The method partitions memory into event-centric units using both global semantic similarity and local temporal continuity, then constructs an EventTree for each unit and progressively merges redundant memory nodes via maximum spanning tree based compression. To improve retrieval over compressed memory, the paper further introduces an anchor-guided propagation retrieval mechanism that leverages temporal neighborhoods of key memory nodes. Experiments on both unimodal (Mem0) and multimodal (M3-Agent) settings show that MemForest can preserve most of the original performance while significantly reducing memory size and improving retrieval speed.
Strengths and weaknesses
Strengths:
1.The paper tackles a practically important bottleneck in agent memory systems: as memory grows over time, both storage cost and retrieval latency increase. This is a timely and relevant problem for long-horizon agents, and the motivation is clearly presented for both unimodal and multimodal settings.
2.The use of global semantic similarity together with local temporal continuity is intuitive, and the overall idea is easy to understand.
3.The paper includes comparisons against two memory-system baselines as well as several classical clustering/compression methods.
Weaknesses: 1.The paper presents a large number of quantitative results, but lacks sufficient visualizations that could help readers better understand the method and validate the core motivation.
2.The roles of global semantic similarity and local temporal continuity are not supported by enough quantitative analysis. While the intuition is plausible, stronger empirical evidence would be helpful.
3.The gains from AGPR on top of Mem0 are quite limited, and on several individual metrics the performance even decreases. This weakens the claim that AGPR consistently improves retrieval quality.
4.The level of technical novelty appears relatively modest.
5.The paper does not seem to provide quantitative comparisons with some mainstream or classical memory-based methods beyond the selected baselines. This makes it harder to assess the broader relative advantage of the proposed approach.
Questions
(1) The paper uses GPT-4o-mini to merge memory nodes. What is the total budget or API cost required for this merging process in the full set of experiments?
(2) In Eq. (2), the hyperparameter w controls the temporal scope of local continuity. Since this is a manually specified window, it seems likely to introduce noise when the temporal extent of events varies. Have the authors conducted any analysis of how sensitive the method is to this design choice, or how robust it is under different event durations?
Limitations
yes
Final justification
I still find the novelty and insights of this work to be somewhat limited. While the ideas of global similarity and local continuity are interesting, their current implementation appears rather straightforward, and the paper does not yet provide sufficiently intuitive visualizations or analyses to clearly illustrate how these two components function in practice. As a result, it remains difficult to disentangle their respective effects. Therefore, I will maintain my previous score.
Formatting concerns
No major concerns
4 comments
Rebuttal
Dear Reviewer KAdn,
Thank you for your valuable and important comments. We have consolidated the Weaknesses and Questions you raised into the following 7 points and address them individually below. We also commit to incorporating the relevant clarifications and additional details into the camera-ready version.
Q1: On additional visualization analyses (Weakness 1)
A1: We have provided an initial EventTree constructed by MemForest in Appendix E. To further illustrate the progressive merging process, we compress this EventTree by 20%, as shown below.
Memory 18 (merged from Memories 9 and 10): The user is passionate about rights and community support.
Memory 19 (merged from Memories 4 and 13): Believes in building a more inclusive and understanding world by advancing equality and inclusivity.
Memory 20 (merged from Memories 6 and 14): Values advocating for trans rights, raising awareness, and standing up for equality.
Due to space constraints, we present only one visualization example at a relatively low compression ratio. Should the reviewer wish to see additional examples or merging processes at higher compression ratios, we will provide them during the discussion period.
Q2: On the quantitative validation of global semantic similarity and local temporal continuity (Weakness 2)
A2: In fact, Tables 3, 5, and 7 of the paper already report ablation studies at different compression ratios, where either global semantic similarity or local temporal continuity is removed. The results show that removing either component leads to performance degradation to varying degrees, demonstrating that both are important for EventTree partitioning.
We also provide corresponding case studies in Figure 1 and Appendix E. Taking Appendix E as an example, without global semantic similarity, Node 1 cannot be grouped into the same EventTree as Nodes 9 and 10, which are temporally distant but semantically related. Conversely, without local temporal continuity, Nodes 7 and 8, which are temporally adjacent but have relatively low semantic similarity, are also unlikely to be grouped into the same EventTree as the other relevant nodes.
Q3: On the benefits of AGPR (Weakness 3)
A3: Thank you for raising this important question. The limited gains from AGPR, and occasional slight performance degradation, mainly occur under the Mem0 framework. For example, at a 30% compression ratio, performance on LongMemEval decreases by 0.4 percentage points.
We further analyzed why AGPR yields more substantial improvements on M3-Agent. M3-Agent is designed for multimodal streaming videos, whose duration typically exceeds 30 minutes, with each video containing at least approximately 2,000 memory nodes. In contrast, the unimodal benchmarks used by Mem0 generally contain only a few hundred memory nodes per sample, and the evidence relevant to each question is relatively concentrated. Therefore, the additional retrieval gains provided by AGPR are more limited in these settings.
To validate this hypothesis, we selected the Meeting Room subset of M3-Bench-robot, which contains 6 videos and 68 questions, and fed the memories constructed by M3-Agent into the Mem0 framework for retrieval. As shown below, introducing AGPR substantially improves retrieval performance. This result suggests that the benefits of AGPR primarily depend on memory scale and the degree to which relevant information is dispersed, rather than being limited by a particular underlying retrieval framework.
| Baseline | Accuracy |
|---|---|
| Mem0 | 45.6% |
| Mem0 + AGPR | 54.4% |
Q4: On the technical novelty of the proposed method (Weakness 4)
A4: Regarding the originality of our method, we would like to further clarify that although KMeans and maximum spanning trees are established algorithms, the novelty of MemForest lies in introducing a new event-level post-hoc compression framework for continuously growing agent memory. The framework jointly leverages global semantic similarity and local temporal continuity to partition memories into EventTrees, performs progressive merging within each event, and uses AGPR to compensate for the loss of temporal context caused by compression. Therefore, MemForest is not a simple combination of existing techniques, but a new memory compression framework specifically designed for the characteristics of agent memory.
Q5: On comparisons with mainstream memory compression methods (Weakness 5)
A5: Current memory compression approaches still primarily rely on coarse-grained summarization, where long-term historical memories are arranged chronologically and jointly summarized by an LLM. For comparison, we implemented this approach on the LoCoMo dataset: the historical memories were first compressed through direct summarization, and the resulting summary was then split into memory chunks, yielding a final compression ratio of approximately 42%. As shown below, this method performs substantially worse than MemForest at a 50% compression ratio and only slightly better than random pruning, indicating that directly summarizing a long history can cause considerable information loss.
| Method | Compression ratio | Accuracy |
|---|---|---|
| Mem0 | 0% | 60.2 |
| + Random Pruning | 50% | 43.1 |
| + LLM Summary | 42% | 48.2 |
| + MemForest | 50% | 58.4 |
The prompt used for coarse-grained summarization is as follows:
You will be given a sequence of long-term historical memories arranged in chronological order. These memories have been accumulated through continuous interactions between an agent and a user. Your task is to compress the entire memory history into a concise global summary while preserving as much important information as possible.
Please strictly follow the requirements below:
1. Summarize the entire memory history according to the chronological order of the original memories.
2. Preserve as much important information as possible that may affect subsequent retrieval and question answering, including but not limited to:
- people and their relationships;
- locations;
- dates, times, and the chronological order of events;
- events, actions, and experiences;
- the user's preferences, interests, habits, and personal characteristics;
- goals, plans, commitments, and decisions;
- changes in states, opinions, preferences, or interpersonal relationships over time;
- causal relationships and dependencies between events.
3. Preserve the original details of any specific information that may be useful for answering future questions. Do not replace explicit people, locations, events, times, or attributes with vague or overly general descriptions.
4. When multiple memories describe the same fact or event, merge them into a concise statement and remove unnecessary repetition, while retaining all supplementary information.
5. When different memories describe distinct events, keep these events distinguishable and do not conflate their participants, locations, times, causes, processes, or outcomes.
6. If the memories contain updates or changes over time, preserve both the earlier state and the subsequent change, and explicitly describe their temporal relationship.
7. Do not omit or downplay information solely because it appears earlier in the memory history.
8. Do not introduce external knowledge, subjective speculation, additional interpretations, or unsupported conclusions beyond the original memories.
9. If there are apparent contradictions among the memories, do not resolve them unless the original memories provide sufficient evidence. When necessary, preserve the different statements together with their corresponding temporal contexts.
10. The final summary should be self-contained and capable of replacing the original memory history for subsequent information retrieval and question answering.
The historical memories are provided below:
{memory_history}
In addition, our baseline StreamMeCo is a compression framework specifically designed for M3-Agent. The results in Table 2 show that MemForest achieves better performance. Moreover, StreamMeCo relies on a specific graph-based memory structure, whereas MemForest does not require the underlying memory to have a predefined graph structure, making it more broadly applicable. To the best of our knowledge, MemForest is the first framework for general agent memory that performs event-level fine-grained partitioning and selective compression of historical memories.
Q6: On the budget and computational overhead of LLM-based memory merging (Question 1)
A6: Regarding the budget and computational overhead of the merging process, we have provided the relevant details in Appendix D.5. For the LoCoMo dataset, which is approximately 100 MB in size and contains more than 6,000 memory nodes, the API cost of completing the merging process is about USD 0.1, resulting in low overall overhead. Moreover, the process can be performed offline and supports parallel execution; under a concurrent setting, the entire merging process can be completed in approximately one minute.
Q7: On the sensitivity and robustness of the temporal-window hyperparameter (Question 2)
A7: Regarding the sensitivity to the temporal window coefficient , we provide a detailed analysis in Appendix D.4. The results show that the model achieves the best performance when . A smaller temporal window may miss important temporally related memories, whereas a larger window may introduce irrelevant information and additional noise.
Sincere reply to reviewer KAdn
Dear Reviewer KAdn,
We would like to express our sincere appreciation for your valuable comments and insightful suggestions regarding our manuscript. In response to the issues and concerns you highlighted, we have carried out additional experiments and analyses (Q1–Q7), and we will incorporate the corresponding revisions and improvements into the camera-ready version. As the rebuttal period is approaching its conclusion, we would greatly appreciate it if you could take the time to review our updated responses and supplementary results, and let us know whether they have sufficiently addressed your concerns. Any further feedback or suggestions you may provide would be highly valuable and will help us refine the final version of our manuscript in a more targeted and effective manner. Once again, we sincerely thank you for your time, effort, and thoughtful feedback. We greatly appreciate your guidance and wish you continued success in your work.
Best, authors
Thank the reviewer for the careful response. Nevertheless, I still consider the novelty and insights of this work to be limited. The concepts of global similarity and local continuity are interesting, but the implementation seems rather naive, and it is difficult to convey a more intuitive understanding through visualizations, which makes it hard to disentangle the actual effects of these two designs. Therefore, I decide to maintain my previous score.
Sincere reply to reviewer KAdn
We sincerely appreciate your valuable suggestions for our paper. We will incorporate these additional analyses and experiments in the camera-ready version. Once again, we express our sincere gratitude to you!
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 1/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes MemForest, a general-purpose post-processing-based memory compression framework, to address the problem of long-term memory in LLM agents expanding linearly with dialogue and video streams, which places strain on both storage and retrieval latency. Drawing inspiration from research on human memory, the authors propose “compression at the event level” and identify the simultaneous utilization of two characteristics, Global Semantic Similarity and Local Temporal Continuity, as a core observation. MemForest consists of the following three modules:
- EventTree Semantic-Temporal Partitioning: After coarse clustering into approximately initial event units using KMeans, nodes are reassigned to event units that maximize the combination of global similarity and local temporal continuity.
- EventTree Progressive Merging: For each event unit, a maximum spanning tree is constructed using Kruskal’s algorithm from a complete graph where cosine similarity serves as edge weight; the two ends of the edge with the maximum weight are then summarized and merged using an LLM, while penalizing the weight based on node degree. This process is repeated until the target compression ratio is reached.
- Anchor-Guided Propagation Retrieval: AGPR selects the top \lambda k anchor nodes from the top Lk candidates, assign propagation scores using a time-lagged kernel, and return the top-k results.
Evaluation is conducted under the Mem0 framework on LoCoMo, LongMemEval, and PersonaMem-32k, and under the M3-Agent framework on M3-Bench-robot and M3-Bench-web. Under 50% compression, MemForest maintains 97.1% of the original Mem0 performance while achieving a 1.89× retrieval speedup, and maintains 99.7% of the original M3-Agent performance while achieving a 2.24× retrieval speedup. With AGPR, MemForest further improves performance under the M3-Agent framework and reaches 120.7% of the original baseline performance.
Strengths and weaknesses
Problem Setting (Significance)
The strength of this paper lies in its focus on an important and practical problem. In agents with long-term memory, the continuous increase in the number of memory nodes leads to increased retrieval latency and storage costs; therefore, compression methods that can be retrofitted to existing memory systems have clear practical value. The proposed method is also relatively modular, and its structure, comprising EventTree partitioning, progressive merging, and AGPR retrieval, is easy to understand. Other commendable aspects include the evaluation conducted on both Mem0 and M3-Agent, the presentation of results at compression rates of 30%, 50%, and 70%, and the inclusion of ablation studies on partitioning strategies, merging strategies, and degree terms.
Readability (Clarity)
Clarity is generally good. The flow of the method is explained relatively clearly using figures and mathematical expressions. However, there is insufficient explanation regarding when recompression occurs in an online environment where memory continues to grow, the wall-clock time of the compression process, and how the number of LLM API calls increases as the system scales. Additionally, while some hyperparameters are used with fixed values, the tuning burden when transferring the method to different memory systems or datasets remains unclear.
Weaknesses
Gap between theory and implementation (Quality)
The theoretical analysis treats the memory embedding after merging as a normalized linear interpolation of the two embeddings, but in the actual implementation, the LLM summarizes the two memories in natural language and re-embeds them. As a result, there is a significant gap between the subject of the analysis and the merging operation in the implementation. While the theory is useful for explaining the intuition behind the process, it does not directly guarantee information retention in the implemented LLM-based merging procedure. Furthermore, there is a lack of fidelity evaluations regarding the possibility that LLM merging may omit, mix up, or generate hallucinations.
Evaluation (Quality)
In terms of evaluation, although the paper reports both MemForest without AGPR and MemForest with AGPR, the contribution of AGPR is still not fully isolated from the contribution of the compression method itself. In particular, for M3-Agent, AGPR alone improves the uncompressed baseline from 39.1 to 46.0 (+6.9 points, 17.6% relative improvement). Therefore, additional comparisons, such as applying AGPR to the main compression baselines or reporting performance retention relative to an “uncompressed + AGPR” baseline, would make the source of the gains clearer.
Reproducibility (Quality)
There are also concerns regarding reproducibility and statistical reliability. While the authors state that all results are averages of three runs, the main tables do not show standard deviations, confidence intervals, or significance tests. Since variability is particularly important in experiments involving LLM evaluation and LLM merging, relying solely on averages is hardly sufficient. Furthermore, since the study relies on GPT-4o-mini, GPT-4o, and OpenAI embedding models, details such as API versions, temperature settings, evaluation prompts (those for merging are provided in Appendix C, but those for evaluation are not presented), and error handling can significantly influence the results.
Combination of Existing Methods (Originality)
While the EventTree framework is practical, it also appears to be a natural combination of existing elements such as KMeans, semantic similarity, time windows, maximum spanning trees, LLM summarization, and temporal neighborhood propagation retrieval. It is necessary to more clearly demonstrate how it differs from existing hierarchical clustering, graph compression, temporal RAG, and memory-based summarization methods.
Questions
-
Can the authors present additional results that further isolate the effects of the compression method itself from those of AGPR? Specifically, please provide a comparison of AGPR combined with all compression baselines; a performance retention rate relative to the “uncompressed + AGPR” baseline; and a detailed comparison between MemForest without AGPR and MemForest with AGPR. This analysis would help determine whether the improvements stem from the compression algorithm or the retrieval mechanism.
-
Can the authors present standard deviations, confidence intervals, or significance tests for their key results? In particular, an average over three runs alone is insufficient to assess the variability in LLM evaluation and LLM merging. If the results are shown to be statistically robust and the differences from the main baselines are significant, the Quality score may improve.
Limitations
Yes
Final justification
I thank the authors for their detailed rebuttal and the additional experimental results.
Of the two conditions I explicitly set for raising my rating, statistical reliability (Question 2) was generally met, and the experiment required to demonstrate contribution separation (Question 1) was provided. While the provided breakdown confirmed my concerns, it also made clear that the paper's more limited and essential claim, achieving higher performance retention than existing methods at the same compression ratio in a form that can be retrofitted to existing memory systems, is statistically supported. The novelty of the method remains modest, and the design for online operation, as well as a direct comparison with the latest deletion-plus-compression hybrid systems, remain unresolved. However, the authors responded sincerely to the questions I posed in a manner that allowed for a clear response, and as a result, I believe the evaluable core of the paper has been clarified.
Based on the above, I am raising the Rating from 3 to 4 and the Quality from 2 to 3. However, this is conditional on the authors rewriting their claims in the camera-ready version so that improvements derived from AGPR are not presented as results of compression, and on clearly specifying the conditions for triggering compression in an online environment.
Formatting concerns
None
3 comments
Rebuttal
Dear Reviewer MZ5e,
Thank you for your valuable and insightful comments. We have consolidated the Weaknesses, Questions and other related comments you raised into the following 5 points and address them individually below. We also commit to incorporating the relevant clarifications and additional details into the camera-ready version.
Q1: On the gap between theoretical analysis and practice and the fidelity of LLM merging (Weakness 1)
A1: First, in Section 4, Theoretical Analysis, we model the embedding of a new node obtained by merging two memory nodes as a normalized interpolation of the embeddings of the two original nodes. To validate this assumption, we randomly sampled 1,000 pairs of memory nodes from each of the five datasets evaluated in the paper and computed the cosine similarity between the embedding obtained by re-encoding the LLM-merged text and the interpolated embedding. Specifically, we varied the interpolation coefficient from 0.1 to 0.9 in increments of 0.1 and selected the interpolated result with the highest cosine similarity, thereby testing whether the representation produced by LLM-based merging can be approximated by an interpolation between the two original node embeddings. As shown in the table below, approximately 90% of the node pairs achieve a cosine similarity above 0.8, indicating that this idealized modeling assumption is reasonably well supported in practice.
| Cosine similarity | Count | Proportion |
|---|---|---|
| > 0.9 | 1,976 | 39.5% |
| > 0.8 | 4,469 | 89.4% |
| > 0.6 | 4,894 | 97.9% |
Second, to evaluate the fidelity of LLM-based merging, we randomly sampled 100 memory-merging examples from the LoCoMo dataset and conducted a manual evaluation. We focused on whether key information, such as people, locations, and time, was preserved, as well as whether any information omissions or hallucinations occurred. As shown in the table below, for this constrained summarization task, in which each input contains only two short memories, GPT-4o-mini can already perform the merging reliably, with very few cases of information omission or hallucination. GPT-5.2 provides no substantial improvement, whereas the smaller Qwen2.5-7B model performs comparatively worse. This result is also consistent with the observation reported in Table 12 of Appendix D.6.
| Model | Manual evaluation pass rate |
|---|---|
| GPT-4o-mini | 98% |
| GPT-5.2 | 99% |
| Qwen2.5-7B | 87% |
Furthermore, our analysis shows that all samples that failed the manual evaluation were caused by information omission. For example, when performing a merge, Qwen2.5-7B sometimes omitted the qualifier “LGBTQ” from “the LGBTQ community” and referred to it only as “the community.” We did not observe any cases of factual conflation, contradiction, or hallucination.
Q2: On disentangling the contributions of AGPR and the memory compression method (Weakness 2, Question 1)
A2: Tables 1 and 2 of the original paper already report the gains from AGPR on Mem0 and M3-Agent, as well as MemForest results with and without AGPR. Due to rebuttal time and space constraints, we selected DART, a strong pruning-based method, and ToMe, a strong merging-based method, and conducted additional experiments combining each of them with AGPR. All results are summarized below at a fixed 50% compression ratio.
As shown, AGPR consistently improves performance to varying degrees under both memory frameworks. Meanwhile, even without AGPR, MemForest preserves the original performance after compression more effectively than the other baselines.
| Method | LoCoMo | LongMemEval | PersonaMem | M3-Bench-robot | M3-Bench-web |
|---|---|---|---|---|---|
| Mem0/M3-Agent | 60.2 | 55.2 | 67.9 | 30.3 | 47.9 |
| + AGPR | +0.1 | -0.6 | +0.7 | +6.9 | +6.9 |
| + DART | 51.9 | 41.4 | 64.3 | 29.1 | 43.1 |
| + DART + AGPR | +0.5 | +0.3 | +0.9 | +5.7 | +4.9 |
| + ToMe | 54.7 | 50.8 | 65.9 | 30.9 | 46.1 |
| + ToMe + AGPR | +0.5 | +0.8 | +0.5 | +5.2 | +7.7 |
| + MemForest | 58.4 | 51.8 | 67.6 | 31.6 | 46.5 |
| + MemForest + AGPR | +0.6 | +1.2 | +0.4 | +6.7 | +9.6 |
Due to space constraints, we do not include experiments with additional compression ratios and baselines here. We would be happy to provide these results during the discussion period if requested.
In addition, we analyzed why AGPR yields larger gains on M3-Agent. M3-Agent processes multimodal videos typically longer than 30 minutes, with over 2,000 memory nodes per video, whereas Mem0 benchmarks usually contain only a few hundred nodes and more concentrated evidence, leaving less room for retrieval enhancement.
To verify this, we used the Meeting Room subset of M3-Bench-robot (6 videos and 68 questions) and retrieved M3-Agent memories with Mem0. AGPR substantially improved performance, indicating that its gains mainly depend on memory scale and evidence dispersion, rather than on limitations of the original Mem0 framework.
| Baseline | Accuracy |
|---|---|
| Mem0 | 45.6% |
| Mem0 + AGPR | 54.4% |
Q3: On the statistical significance of the experimental results and the evaluation prompts (Weakness 3, Question 2)
A3: Thank you for this important suggestion. Tables 1 and 2 of the original submission report the mean results over three independent runs. To further assess the statistical stability of our experiments, we report the standard deviation for each dataset at a 50% compression ratio in the table below. Overall, the results exhibit only minor variation and are relatively stable. LongMemEval shows the smallest variation, while M3-Bench-robot exhibits slightly larger fluctuations. Nevertheless, its standard deviations remain small, indicating that our main conclusions are unlikely to be substantially affected by random variation.
| Method | LoCoMo | LongMemEval | PersonaMem | M3-Bench-robot | M3-Bench-web |
|---|---|---|---|---|---|
| Mem0/M3-Agent | 0.12 | 0.00 | 0.38 | 0.61 | 0.40 |
| + Random Pruning | 0.31 | 0.20 | 0.57 | 0.72 | 0.50 |
| + KMeans | 0.17 | 0.00 | 0.32 | 0.52 | 0.46 |
| + DART | 0.10 | 0.00 | 0.26 | 0.61 | 0.46 |
| + Random Merging | 0.26 | 0.20 | 0.47 | 0.66 | 0.57 |
| + ToMe | 0.17 | 0.00 | 0.26 | 0.35 | 0.40 |
| + MemForest | 0.10 | 0.00 | 0.32 | 0.26 | 0.30 |
Due to space constraints, we currently report the standard-deviation analysis only at the 50% compression ratio. If requested, we will provide results for additional compression ratios, together with confidence intervals and statistical significance analyses, during the discussion period.
Regarding the LLM-based evaluation prompts, we strictly follow the official evaluation settings of the original memory frameworks, Mem0 and M3-Agent, without any modifications, and set the temperature to 0. Due to space constraints, we did not reproduce the full prompts in our submission; they can be found in the original Mem0 and M3-Agent papers and their official implementations.
Q4: On the originality of the proposed method and its distinctions from existing methods (Weakness 4)
A4: Regarding the originality of our method, we would like to further clarify that although KMeans and maximum spanning trees are established algorithms, the novelty of MemForest lies in introducing an event-level post-hoc compression framework for continuously growing agent memory. The framework jointly models global semantic similarity and local temporal continuity to construct EventTrees, performs progressive merging within each event, and uses AGPR to compensate for the loss of temporal context caused by compression. Therefore, MemForest is not a simple combination of existing techniques, but a new compression framework specifically designed for the characteristics of agent memory.
Compared with hierarchical clustering, MemForest not only organizes and partitions memories, but also merges nodes within each event at a controllable compression ratio while preserving retrieval performance as much as possible. Unlike graph compression methods, MemForest does not rely on a pre-constructed knowledge graph. Instead, it temporarily constructs an EventTree based on the relationships among memory nodes to determine the merging order, allowing it to be readily integrated into different agent memory frameworks. Compared with time-aware RAG, MemForest operates on the continuously accumulated historical memory internal to an agent, rather than temporally relevant documents from an external knowledge base. After compression, AGPR uses the temporal neighborhoods of key nodes to recover local contextual information. Finally, existing memory compression methods often summarize the entire memory globally, which can discard older information or mix information from different events. In contrast, MemForest treats events as the basic compression units, jointly models global semantic relationships across time and local temporal continuity, and selectively merges redundant nodes, enabling more fine-grained and targeted compression.
Q5: On the time and cost of the compression process (corresponding to the Readability/Clarity section)
A5: Thank you for raising this important concern. First, users can initiate memory compression once a sufficiently large amount of memory has accumulated. Second, we have reported the API cost in Appendix D.5. For the LoCoMo dataset, which is approximately 100 MB in size and contains more than 6,000 memory nodes, the API cost of completing the merging process is about USD 0.1, resulting in low overall overhead. Moreover, the process can be performed offline and supports parallel execution; under a concurrent setting, the entire merging process can be completed in approximately one minute. Given the low cost, adapting the method to different datasets or memory systems also incurs only limited additional overhead.
Sincere reply to reviewer MZ5e
Dear Reviewer MZ5e,
We sincerely thank you for your valuable comments and constructive suggestions on our manuscript. In response to the concerns you raised, we have conducted additional experiments and analyses(Q1-Q5), and we plan to incorporate corresponding revisions and improvements in the camera-ready version. As the rebuttal phase is coming to an end, we would greatly appreciate your feedback on whether our additional results and clarifications have adequately addressed your concerns. If you could kindly take a moment to review our updates and provide further guidance, we would be truly grateful. Your feedback will help us make more targeted and meaningful improvements to the final version. Thank you again for your time and insightful advice. We wish you all the best in your work!
Best, authors
Sincere reply to reviewer MZ5e
Dear Reviewer MZ5e,
Thank you again for your valuable comments and suggestions. Following your recommendations, we have completed the additional experiments and analyses (Q1–Q5) and provided detailed clarifications to address your concerns.
As you mentioned in your original review that addressing these issues would lead to a higher evaluation, we hope that our additional results and responses have sufficiently resolved your concerns. We would greatly appreciate it if you could take these improvements into consideration in your final assessment.
Thank you very much for your time and consideration.
Best regards, Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Sincere Response to Area Chair mrob
Dear Area Chair mrob,
Thank you very much for carefully reviewing our paper and for providing a clear and constructive summary. We would like to emphasize that the three key concerns have been addressed in our rebuttal: we reported standard deviations to assess result stability, further clarified the independent contributions of AGPR and compression through existing ablations, and empirically validated the assumptions connecting the theory to the implementation.
We sincerely appreciate the opportunity to clarify these issues. As these were the main conditions for a favorable decision, we respectfully hope you will reconsider the paper and support its acceptance.
Best regards, Authors