GrepMem, MIRIX-2.0 & What Moves a LoCoMo Score?
Read first: Scaling Long-Horizon LLM Agent via Context-Folding · ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization · Is Complex Agentic Memory Always Needed? Naive RAG Is Stronger Than We Thought
TL;DR. November 2026 sharpened the central tension in agent memory. On one side, GrepMem (2611.25123) throws away vector indexes and lossy summaries in favor of an append-only plain-text log plus regex search, training a 9B model with RL to score 95–97% on ContextBench where lossy baselines cap out at 21%. On the other side, MIRIX-2.0 (2611.12068) pushes structured multi-agent memory to 91.4% on LoCoMo and 72.6% on LongMemEval-S. Sitting right between them is an essential methodological warning: What Moves a LoCoMo Score? (2611.19199) audits 1,540 LoCoMo questions and shows that changing only the judge moves scores by up to 7.2 points, and changing only the answer prompt moves them by up to 9 points.
1. GrepMem: Forget Freely, Grep Later (2611.25123)
Section titled “1. GrepMem: Forget Freely, Grep Later (2611.25123)”Most long-horizon memory methods—such as Context-Folding and ReSum—compress past turns into shorter summaries to keep the active context window small. That compression is lossy: the summarizer must guess, mid-trajectory, which facts will matter later. Once an identifier, constraint, or exact phrase is dropped, no downstream reasoning step can recover it.
GrepMem (arXiv 2611.25123, Nov 18, 2026, Ziyan Yang, Taiwei Shi, Jieyu Zhao) takes the opposite architectural bet:
- Lossless storage, zero index. Every interaction is written verbatim to an append-only plain-text log. There is no vector database, no graph extraction pipeline, and no write-time summary store.
- Regex tool over raw history. Instead of keeping old turns in working context, the agent can discard them freely and issue regex queries against the plain-text log whenever past details are needed.
- RL-trained retrieval policy. A Qwen3.5-9B model is trained with reinforcement learning to decide what to search for and how to formulate effective regex patterns.
Reported results highlight how expensive lossy write-time compression is on detail-sensitive benchmarks:
| Benchmark | GrepMem (Qwen3.5-9B, RL) | Baseline comparison |
|---|---|---|
| ContextBench | 95–97% | At most 21% for lossy baselines |
| BCP-Multi | +8.8 points over baseline | SUPO summarization baseline |
GrepMem directly extends the skepticism in Naive RAG vs Complex Agentic Memory: before building a multi-stage extraction and embedding stack, ask how far a lossless text log plus a learned search policy goes.
2. MIRIX-2.0: Multi-Agent Memory System (2611.12068)
Section titled “2. MIRIX-2.0: Multi-Agent Memory System (2611.12068)”At the structured end of the spectrum, MIRIX-2.0 (arXiv 2611.12068, Nov 9, 2026, Wei-Chieh Huang et al., GitHub) coordinates specialized memory agents rather than relying on a flat text log. Its reported headline numbers span three memory benchmarks:
- LoCoMo: 91.4%
- LongMemEval-S: 72.6% (+14.3 points over the strongest baseline)
- MetaClaw-Bench: 49.2%
Structured multi-agent memory aims at queries where raw lexical grep is awkward—abstract longitudinal preferences, cross-session synthesis, and multi-aspect episodic recall—while paying higher orchestration complexity and the risk of write-time distortion.
3. What Moves a LoCoMo Score? (2611.19199)
Section titled “3. What Moves a LoCoMo Score? (2611.19199)”Before taking any single-number LoCoMo leaderboard delta at face value, read What Moves a LoCoMo Score? Memory Context, Answer Prompts and Judges (arXiv 2611.19199, Nov 14, 2026, Nikhil Kumar Jha and Amitoj Cheema).
Auditing 1,540 questions, the authors hold the underlying memory system fixed and isolate evaluation-pipeline components:
| Component varied (everything else fixed) | Maximum observed LoCoMo score swing |
|---|---|
| Judge model / judging setup only | Up to 7.2 points |
| Answer prompt only | Up to 9 points |
The implication for reading memory papers is blunt: a 5-to-9-point lead copied across two papers on LoCoMo is well within prompt-and-judge variance. Even a genuine architectural improvement (like MIRIX-2.0’s +14.3 margin on LongMemEval-S or GrepMem’s massive ContextBench jump over lossy baselines) needs matched prompts, matched judges, and non-saturated benchmarks before cross-paper comparisons mean anything. This mirrors the broader harness-sensitivity lesson in How LLMs Are Evaluated.
4. Companion diagnostics: evidence links and compaction boundaries
Section titled “4. Companion diagnostics: evidence links and compaction boundaries”Two additional November 2026 papers sharpen how memory systems fail and how to measure them:
- WikiTrace: Don’t Just Trust Your Memory (arXiv 2611.14320, Nov 10, 2026; Yukyeong Lee, Jinheon Baek, Sung Ju Hwang, KAIST; GitHub) targets memory-induced degradation—cases where stale or distorted memory summaries actively mislead the agent—using evidence-linked memory that grounds abstractions back to source spans.
- CompAct-Bench (arXiv 2611.25673, Nov 19, 2026; Jiayi Chen et al., 11 authors) isolates working-context compaction directly by inserting compaction boundaries into already-successful trajectories and measuring the downstream drop in task completion.
Connections
Section titled “Connections”- Lossy compaction counterpoints: Context-Folding & AgentFold and ReSum.
- Simple-vs-complex memory: Naive RAG vs Complex Agentic Memory, MemGPT, and Structured Memory.
- Programmatic offloading: Recursive Language Models, Harness Generalization, and Harness-S & SIM.
- Judge fragility: How LLMs Are Evaluated and Privilege-Separated Grading & Benchmark Loopholes.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
LoCoMo evaluates 1,540 questions. Suppose System A reports 91.4% and System B reports 86.0% in separate papers that did not align their judge or answer prompt. (a) Compute the raw score gap and the naive binomial standard error of a 90% accuracy estimate over 1,540 independent questions. (b) Compare that sampling uncertainty against the What Moves a LoCoMo Score? (2611.19199) findings that changing only the judge moves scores by up to 7.2 points and changing only the answer prompt moves them by up to 9 points. What can and cannot be concluded from the 5.4-point cross-paper gap?
What a strong answer covers
- Raw gap is 91.4 − 86.0 = 5.4 percentage points.
- Binomial SE at p = 0.90, n = 1,540 is sqrt(0.90 × 0.10 / 1540) ≈ 0.00764, or about 0.76 percentage points (95% CI half-width ≈ 1.5 points, even before clustering by conversation).
- Evaluation-harness sensitivity (up to 7.2 points from judge alone and up to 9 points from answer prompt alone) is roughly 9.5–12× the binomial SE (or ≈ 5–6× the 95% CI half-width) and exceeds the entire 5.4-point gap.
- Therefore a cross-paper 5.4-point advantage on LoCoMo cannot be attributed to the memory architecture unless both systems are evaluated under the exact same answer prompt, judge, and memory-context formatting.
- Mechanism
GrepMem (2611.25123) replaces lossy summarization and vector indexes with an append-only plain-text log plus a regex search tool, training a Qwen3.5-9B model with RL to reach 95–97% on ContextBench versus at most 21% for lossy baselines. Explain mechanically why lossy compaction fails so sharply on exact-recall tasks and what the RL policy must learn to make unindexed regex grep work.
What a strong answer covers
- Lossy compaction summarizes past turns before knowing what future queries will ask for, irreversibly discarding identifiers, numbers, or phrasing that look minor at compression time.
- An append-only plain-text log preserves every raw observation verbatim at zero write-time compression loss, letting the agent forget freely from its active window without losing ground truth.
- RL trains the 9B model to craft selective regex patterns (anchoring on rare tokens, entities, or structural markers), iterate when a query returns too many or zero matches, and budget active context.
- The 95–97% vs at most 21% ContextBench gap and the +8.8 point win over SUPO summarization on BCP-Multi reflect lossless storage plus learned search policy rather than better summarization.
- Critique
Read MIRIX-2.0 (2611.12068: 91.4% on LoCoMo, 72.6% on LongMemEval-S at +14.3 over the strongest baseline, 49.2% on MetaClaw-Bench) alongside What Moves a LoCoMo Score? (2611.19199) and GrepMem (2611.25123). Critique which benchmark claims are most vulnerable to evaluation confounds, and identify the query regimes where GrepMem itself is structurally weak.
What a strong answer covers
- LoCoMo near 91% is both close to saturation and highly sensitive to answer prompts (up to 9 points) and judges (up to 7.2 points), so small leaderboard margins there are fragile.
- MIRIX-2.0's +14.3 point margin on LongMemEval-S (72.6%) and its 49.2% MetaClaw-Bench result provide stronger headroom, though judge and prompt parity still must be verified across baselines.
- GrepMem relies on regex matching over plain text, so it weakens when queries use heavy semantic paraphrasing, cross-lingual synonyms, or implicit aggregations across hundreds of scattered mentions.
- Without an index, scan latency scales linearly with raw log size, which becomes a bottleneck over multi-month or multi-gigabyte histories.
- What if…
CompAct-Bench (2611.25673) evaluates working-context compaction by inserting compaction boundaries into successful trajectories and measuring downstream task completion. Design an ablation using this setup to compare (1) lossy summarization (SUPO / ReSum), (2) GrepMem (append-only log + regex), and (3) evidence-linked structured memory (MIRIX-2.0 / WikiTrace). Specify which trajectory properties will separate the three methods.
What a strong answer covers
- Vary where the compaction boundary sits relative to when a critical detail appears and when it is needed later, testing both exact-string lookups and paraphrased reasoning dependencies.
- Lossy summarization should degrade sharply whenever an unexpected exact detail (code symbol, ID, constraint) sits before the boundary.
- GrepMem should preserve near-perfect completion on exact-match and regex-recoverable dependencies across boundaries, but drop on purely semantic or multi-hop synthesis tasks unless it issues many grep rounds.
- Structured evidence-linked memory (MIRIX-2.0 / WikiTrace) should handle semantic abstraction better while preserving pointers back to raw evidence to curb memory-induced degradation.
- Hold the base model, answer prompt, and judge fixed across all three arms to avoid LoCoMo-style measurement artifacts.
- Design
You are building the long-term memory layer for an autonomous research and coding assistant that runs for months across codebases, PDFs, and chat sessions. Decide how to combine or choose between GrepMem-style raw append-only logs, MIRIX-2.0-style multi-agent structured memory, and WikiTrace-style evidence links. Specify your storage layout, retrieval routing, and benchmark-audit checks.
What a strong answer covers
- Keep an append-only raw event log as the lossless source of truth (GrepMem principle) so no detail is ever permanently destroyed by a bad summary.
- Layer structured summaries or multi-agent memory stores (MIRIX-2.0) on top for fast semantic recall, user-preference tracking, and synthesis, attaching explicit pointers back to raw log spans (WikiTrace principle) to limit memory-induced degradation.
- Route exact-identifier, error-message, and regex-friendly lookups directly to grep/ripgrep over the log, and semantic or longitudinal queries to the structured layer with raw-span verification.
- Evaluate every memory iteration with a frozen answer prompt, fixed judge (plus a second independent judge), and paired per-question diffs so gains are never confused with prompt or judge drift.
- Connect
Connect GrepMem (append-only plain-text log + RL-trained regex search) to Recursive Language Models (2512.24601) and to classic IR debates between linear scan and inverted/dense indexing. When does "forget freely, grep later" behave as an RLM over time, and at what scale does classic IR indexing become unavoidable?
What a strong answer covers
- Both RLMs and GrepMem externalize long context out of the attention window and let the model write programmatic lookup operations (Python/regex) on demand instead of compressing everything up front.
- RLMs operate over a large static input handed to a single task, whereas GrepMem turns an agent's own growing trajectory into an append-only external store across time.
- In IR terms, GrepMem is a full linear regex scan with zero index-build or update overhead—fast and exact for megabytes of plain text, mirroring why ripgrep beats heavyweight indexes on local repos.
- Once logs reach gigabytes, multi-user scale, or non-lexical semantic queries, an inverted index (BM25) or hybrid dense/lexical retriever is needed to keep latency sub-linear and recover vocabulary mismatches.