RAG in a Trenchcoat: When Minimal Memory Is Enough for Agentic Systems, and When It Isn’t

Jingyu Liu, Zongze Li, Zhen Xu, Zhanhui Zhou, Tahseen Rabbani, Dawn Song, Ce ZhangNeurIPS 2026

TL;DR

Over the past two years, AI agent memory systems have grown remarkably complex, layering temporal knowledge graphs, reflection passes, and OS-style paging over basic retrieval. Yet when researchers built BRIDGE—a deliberately minimal "RAG in a trenchcoat"—it matched or beat these elaborate architectures on standard memory benchmarks. The twist? That’s not because minimal RAG is the ultimate memory system, but because standard benchmarks only test passive recall rather than whether an agent actually uses its memory when doing real work.

What Problem Does This Paper Address?

Imagine telling your coding assistant during a post-mortem, "By the way, we banned eval() after last week's security incident." Three weeks later, you ask it to build a dynamic math parser. You don't mention eval(). A genuinely useful assistant remembers the ban on its own and avoids it.

The authors call this always-on, applied memory. While modern agentic memory frameworks claim to enable this kind of behavior, the benchmarks we use to evaluate them mostly ask trivia questions about the past ("What function did the team ban?"). Because current evaluations test retrieval rather than action, we have no idea if complex memory primitives actually earn their keep—or where different memory designs secretly break.

Methods

To test whether standard benchmarks can tell simple and complex systems apart, the authors built BRIDGE, a minimalist baseline with no graph databases, supersession layers (mechanisms that explicitly overwrite outdated facts), or reflection loops. Instead, it combines three classic information-retrieval primitives:

  1. Chained observation notes: Conversation chunks (up to 2,000 tokens) are summarized into XML notes by an LLM that also sees the 10 most recent notes for global context. Both the raw text and the summary note are saved.
  2. Hybrid retrieval: Queries search via both dense sentence embeddings (cosine similarity) and lexical keyword matching (BM25 over notes + raw text), fused via Reciprocal Rank Fusion to pick the top 10 blocks.
  3. Chronological two-tier rendering: Of those 10 blocks, the top 3 semantic matches are shown as full raw text, and the remaining 7 as compact summaries. Crucially, all 10 are re-sorted into chronological order before the LLM reads them, preserving the timeline of events.

Datasets

First, the authors evaluate BRIDGE on three standard recall-heavy benchmarks: LongMemEval-S, BEAM (100K), and EverMemBench.

Second, to test applied memory, they introduce five adversarial probes (initially 20 scenarios each in software engineering, later expanded with 87 scenarios across clinical, legal, and finance domains, plus 80 harder difficulty variants). Crucially, the user's final prompt never mentions the rule or pattern it depends on, and outputs are graded by a cross-vendor LLM judge to avoid self-preference bias.

Table 1: The five probes, each with an example from the benchmark. The request never mentions the memory it depends on; we grade the work the system produces, not an answer about the history.

Key Insights and Ideas

  • Standard benchmarks are blind to memory architecture: Because existing evaluations mostly score question-answering over history, a minimal hybrid RAG pipeline looks just as good as heavyweight graph and atomic-fact systems.
  • Facts vs. Form is a fundamental trade-off: Once agents must act on unprompted memories, no single architecture wins everywhere. Atomic-fact extractors (like LangMem, which distill chats into discrete database rows) excel at explicit rules because each rule gets its own clean entry—but they fail at pattern induction because distilling text into atomic facts strips away the shape of demonstrated code or workflows. Block-summary systems (like BRIDGE) preserve the holistic shape of past sessions, winning pattern induction, but bury brief rules inside broader paragraph summaries.
  • Retrieving a memory is not the same as using it: Why did BRIDGE fail to apply explicit rules? Surprisingly, it wasn't a retrieval failure. BRIDGE retrieved the exact block containing the rule in 20 out of 20 scenarios (and as raw text in 12 of its 13 failures!). The reader LLM simply glossed over a passing remark buried inside 10 blocks of context. Adding one lightweight prompt step to hoist standing rules to a labeled box at the top of the context closed almost the entire gap.

Key Results

  • Parity (and wins) on standard benchmarks: Running at just ~5–7K prompt tokens per query (17–154× fewer than full-context baselines), BRIDGE matches prior SOTA within 95% confidence intervals on LongMemEval-S (85% vs. EmergenceMem's 86%) and BEAM 100K (0.370 three-run mean vs. LIGHT's 0.345). On EverMemBench, it beats the best published memory baseline (MemOS) by 5.7 to 6.3 points across readers.
EverMemBench accuracy across two reader models, where minimal BRIDGE outperforms MemOS across overall averages.
  • Opposite winners on adversarial probes: Comparing BRIDGE, LangMem, Mem0, and Graphiti reveals a sharp split. On Rule Application ($\text{RA}^+$), LangMem crushes BRIDGE (80% vs. 35%). On Procedural Pattern Induction (PI-P), the tables turn completely: BRIDGE leads LangMem by 33 points (88% vs. 55%).
  • Presentation fixes rule application: When competing near-miss filler sessions are added (Level 3 difficulty), LangMem's lead on $\text{RA}^+$ vanishes (42.9% vs. BRIDGE's 43.8%). Furthermore, simply extracting standing rules from BRIDGE's already-retrieved notes and displaying them at the top jumps BRIDGE's $\text{RA}^+$ score from 52.6% to 94.7% on a diagnostic run—matching the full-history Oracle (90.0%) without changing storage or retrieval at all.

Limitations and Future Work

The authors are candid about scope: the core probe suite is small (20 scenarios per probe, meaning a single scenario shifts scores by 5%), relies on synthetically generated histories (though audited against leaks), and tests static input–output turns rather than live, tool-wielding agents over months of deployment. Additionally, routing queries between fact-based and form-based memory views failed when looking only at the user's request (49–61% accuracy, no better than guessing), because real-world requests carry no signal that a hidden rule applies. Future systems—and benchmarks—will need to look beyond storage and retrieval, routing and formatting memories dynamically based on what was retrieved rather than what was asked.

Summary updated

Abstract

Agentic memory research has accumulated extraction, supersession, reflection, and graph synthesis on top of retrieval-augmented generation. However, we found that almost none of those primitives earn their cost in our tested memory benchmarks: we show this with Bridge, a deliberately minimal RAG memory with chained observation notes, hybrid BM25 with cosine retrieval, and chronological rendering, which reaches parity within bootstrap CI with the prior SOTA on LongMemEval-S and BEAM, and beats the best memory baseline on EverMemBench by $5.7$--$6.3$ points at matched reader. It runs at ~5-7K reader-prompt tokens per query, using a single LLM call for each ingestion or query. We argue that this parity is itself the result: standard benchmarks score what memory retrieves, not what memory enables when the agent acts. To test the latter, we introduce five adversarial probes (Rule Application $\pm$, Pattern Induction style / procedural, Dynamic Multi-turn) judged at generation time by a cross-vendor verification chain, where each query can only be solved by applying a remembered rule or pattern it never mentions. Across 5 probes $\times$ 20 scenarios, no architecture wins universally: atomic-fact extractors (LangMem) win rule application, while Bridge's block-summary memory wins pattern induction. This result holds across four domains, three graders, and three reader families. Each design fails where the other wins, for reasons a recall benchmark cannot see: atomic-fact extractors discard the form a demonstrated pattern takes, while block-summary memory retrieves the rule but the reader does not act on it, a gap that presenting the rule more prominently largely closes. What separates memory designs is not what they retrieve but what they enable an agent to do, and that is what agentic memory should be evaluated on.
BibTeX
@inproceedings{liu2026rag,
  author = {Jingyu Liu and Zongze Li and Zhen Xu and Zhanhui Zhou and Tahseen Rabbani and Dawn Song and Ce Zhang},
  title = {{RAG in a Trenchcoat: When Minimal Memory Is Enough for Agentic Systems, and When It Isn’t}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aUiKcKSG3t},
}

Loading related content...

Figure