Infini Memory: Maintainable Topic Documents for Long-Term LLM Agent Memory

Suozhao Ji, Baodong Wu, Zehao Wang, Lei Xia, Qingping Li, Ruisong Wang, Wenbo Ding, Zhenhua Zhu, Boxun Li, Guohao Dai, Yu WangarXiv 2026

TL;DR

Infini Memory reimagines long-term LLM agent memory not as flat vector embeddings or rigid knowledge graphs, but as a dynamic library of topic-structured text documents. By combining buffered writing, periodic consolidation, and an iterative, tool-guided retrieval strategy, it mitigates common pitfalls like memory fragmentation and conflict, achieving state-of-the-art performance on long-term memory benchmarks.

What Problem Does This Paper Address?

Long-term LLM agents need persistent memory to track changing facts across multiple sessions. Existing approaches usually store memories as isolated snippets (vector databases), compressed summaries, or knowledge graphs. The authors identify four recurring failure modes in these systems:

  1. Memory Fragmentation: Related facts are scattered across independent records.
  2. Memory Conflict: Outdated and new facts coexist without reconciliation due to append-style storage.
  3. Compression Loss: Summarization strips away vital temporal, source, and contextual cues.
  4. Insufficient Retrieval: Standard top-$k$ or vector similarity retrieval returns isolated fragments lacking the local context needed for multi-hop reasoning.
Figure 1: Four recurring challenges in long-term agent memory maintenance: (1) related evidence is scattered across isolated records; (2) old and new versions of the same fact coexist without reconciliation; (3) summa- rization loses temporal, source, and contextual cues; (4) single-shot retrieval returns fragments insufficient for multi-hop reasoning.

Methods

Infini Memory addresses these issues by treating memory as a lifecycle maintenance problem with three main components:

  • Topic-Structured Documents: Memory is organized into plain-text documents centered around specific topics (e.g., user preferences, ongoing projects). Each entry contains explicit metadata signatures (<seq, time, source>) to preserve temporal order and provenance.
  • Buffered Writing and Consolidation: To avoid the high overhead of updating the entire library after every interaction, new memories are appended to a short-term buffer called CURRENT. When thresholds are met, this buffer is normalized and consolidated into the main topic library via automated planning, splitting overgrown documents, and merging small, similar ones.
Figure 3: Memory writing and consolidation pipeline.
  • Agentic Retrieval: Instead of a single-shot top-$k$ vector lookup, the system introduces an agentic reader (Infini Memory-A). The LLM acts as a search agent, iteratively invoking text-processing tools (grep, search, read_lines) to inspect intermediate results, expand local context, and assemble evidence before answering. A simpler hybrid variant (Infini Memory-H) combining summary selection and BM25 is also proposed.
Figure 5: Agentic retrieval variant. The LLM agent it- eratively calls memory tools (grep, grep_doc, search, list_docs, read_lines) to search, verify, and expand evidence across topic documents and the CURRENT buffer before generating the final answer.

Datasets

The authors evaluate Infini Memory on MemoryAgentBench, a comprehensive benchmark designed to test four core long-term memory capabilities: Accurate Retrieval (AR), Test-Time Learning (TTL), Long-Range Understanding (LRU), and Selective Forgetting (SF). They also utilize LongMemEval ($S^*$), a reconstructed multi-session dialogue variant, to perform detailed ablation studies.

Key Insights and Ideas

  • Text as a First-Class Memory Substrate: Moving away from vector embeddings or complex graph databases simplifies infrastructure. It makes the memory state entirely human-readable, editable, and portable using ordinary document storage and lexical indexing.
  • Write-Time Consolidation vs. Read-Time Reasoning: Grouping and reconciling facts at write-time (during consolidation) solves single-hop conflicts easily. However, multi-hop selective forgetting remains hard because a reasoning chain might span multiple documents updated at different times, highlighting a structural limit of write-time processing.
  • The Importance of Local Context: Retrieval shouldn't just return a matching sentence; it needs to recover the surrounding "heading block" or line ranges to preserve the temporal and causal relationships necessary for accurate reasoning.

Key Results

  • On MemoryAgentBench, Infini Memory-A achieved an overall score of 64.7%, outperforming the strongest baseline (HippoRAG-v2 at 45.5%) by 19.2 percentage points.
  • It led across all four benchmark capabilities, notably scoring 81.2% on Accurate Retrieval (+12.5% over baseline) and 58.0% on Selective Forgetting (+26.5% over baseline).
  • Ablation studies on LongMemEval ($S^*$) showed that disabling structural maintenance (split/merge operations) caused accuracy to drop from 76.0% to 69.3%, underscoring the value of active document management.
Ablation results on LongMemEval

Limitations and Future Work

  • Test-Time Computation: Agentic retrieval requires multiple iterative tool calls and LLM tokens, making it computationally heavier and slower than single-shot retrieval.
  • Multi-Hop Consistency: The system struggles with multi-hop selective forgetting because the write-time consolidation process operates on individual topic documents and cannot easily enforce cross-document consistency. Future work could explore mechanisms to handle these distributed reasoning chains.

Summary updated

BibTeX
@misc{ji2026infini,
  author = {Suozhao Ji and Baodong Wu and Zehao Wang and Lei Xia and Qingping Li and Ruisong Wang and Wenbo Ding and Zhenhua Zhu and Boxun Li and Guohao Dai and Yu Wang},
  title = {{Infini Memory: Maintainable Topic Documents for Long-Term LLM Agent Memory}},
  year = {2026},
  eprint = {2606.10677},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.10677},
}
Figure