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:
- Memory Fragmentation: Related facts are scattered across independent records.
- Memory Conflict: Outdated and new facts coexist without reconciliation due to append-style storage.
- Compression Loss: Summarization strips away vital temporal, source, and contextual cues.
- Insufficient Retrieval: Standard top-$k$ or vector similarity retrieval returns isolated fragments lacking the local context needed 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.
- 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.
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.
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