TL;DR
RIME (Retrieval-Induced Memory Evolution) is a novel framework that improves how LLM agents handle long-term dialogue memory by "asking before remembering." Instead of blindly compressing entire conversations, it uses self-generated questions to extract specific evidence for memory formation and selectively revisits original dialogue snippets at inference time if the compressed memory falls short.
What Problem Does This Paper Address?
Language agents need long-term memory to stay coherent across multiple sessions. Currently, most systems handle this in two ways: they either compress the whole conversation into a summary (monolithic compression) or retrieve relevant bits at query time.
The authors identify a major "information loss" gap: when you compress a long interaction in one pass, you inevitably discard details that might seem trivial now but become crucial for a future query. If the agent only relies on this "lossy" compressed memory, it can't answer specific questions. Conversely, falling back to the entire raw history every time is prohibitively expensive in terms of computation and token costs.
Methods
RIME introduces two primary innovations, shifting the paradigm from simple compression to evidence-centered integration.
1. Retrieval-Based Memory Formation
Instead of summarizing a session, RIME "interrogates" the current dialogue using six generic categories (e.g., plans, activities, factual details).
- Question-Guided Recall: The system uses these questions to retrieve the most relevant turns from the current session.
- Context Expansion: It doesn't just take the turns; it pulls in surrounding dialogue to ensure the context is clear.
- Historical Grounding & Reconciliation: It retrieves relevant past memories and uses an LLM to reconcile them with new evidence. The LLM performs four operations: ADD new facts, UPDATE existing ones, DELETE errors, or NOOP (no operation) if the memory is already up-to-date.
2. Selective Memory Use
At inference time, RIME employs a two-tier strategy:
- Tier 1: It tries to answer the user's query using only the compressed semantic memories.
- Tier 2: If the agent can't find a confident answer (returns "NONE"), it triggers a selective retrieval of the original source dialogue turns and their local context. This allows the agent to recover "lost" details without needing to process the entire conversation history.
Datasets
The authors evaluated RIME using LoCoMo, a benchmark specifically designed for very long-term conversational memory. The evaluation involved 1,540 non-adversarial questions across four categories: single-hop, multi-hop, temporal, and open-domain.
Key Insights and Ideas
- Retrieval as a Writing Tool: Traditionally, retrieval is a "read-time" operation. RIME shows that using retrieval during the writing process (memory formation) helps the model focus on high-value evidence that might otherwise be buried in a long transcript.
- The "Safety Net" of Raw Text: By treating compressed memory as the primary but not exclusive source, RIME balances efficiency with accuracy. The selective fallback to raw dialogue acts as a high-fidelity safety net.
- Efficiency vs. Deliberation: The paper demonstrates that "deliberative" baselines (which look at huge chunks of history) are often overkill. Selective access to source turns provides a much cheaper path to high performance.
Key Results
RIME was tested against several strong baselines (like Mem0, A-MEM, and Nemori) using two advanced LLM backbones: Qwen3-235B-A22B and GPT-5.6 Sol.
- Superior Accuracy: RIME consistently achieved the highest scores across LLM-Judge, F1, and BLEU-1 metrics. For instance, on the Qwen3 backbone, RIME hit a Judge score of 81.82, significantly outperforming the next best deliberative baseline, D-Mem (78.60).
- Token Efficiency: Perhaps most impressively, RIME achieved these results while using substantially fewer query-time tokens. Compared to A-MEM (63.19K tokens) and Nemori (20.92K tokens), RIME required only 5.11K tokens per query.
Ablation studies confirmed that the "question-guided" approach is superior to simply adding instructions to a standard compression prompt.
Limitations and Future Work
While RIME shows significant improvements, the authors note a few areas for consideration:
- Trigger Frequency: The selective source retrieval is triggered more often by some models than others (16.8% for Qwen vs. 6.0% for GPT-5.6), suggesting that the effectiveness of the "fallback" depends heavily on the underlying LLM's ability to recognize when it doesn't know an answer.
- Fixed Questions: The current implementation uses a fixed set of six generic questions. Future work could explore dynamically generating formation questions based on the specific domain or user interaction style.
Summary updated