↓ Skip to main content

What if MeMo could sleep?

·792 words·4 mins· loading · loading ·
Can a small model keep up with fast-changing docs by learning them in its weights? I tested MeMo-style memory against RAG on LangGraph’s docs. Code and data: github.com/salawhaaat/memo-sleep.

On July 27, 2026, a link in LangGraph’s docs moved to a new path. Three minutes and 19 seconds later, another commit moved it back. Which path is right depends on which Git revision you ask about.

Why I ran this
#

A week ago I came across a dev.to article titled “RAG is Dead. MIT Just Built Something Better.” It was about MeMo and its advice was to “train the Memory model once on your documents.” Once. But real docs don’t hold still, and the article never says what happens when they change. The paper itself is more careful than the headline: it never says RAG is dead, it handles a new corpus by merging separately trained memories, and it lists changing documents as future work. Then I remembered Google’s SLEEP article, about learning new things without forgetting old ones. What if a MeMo-style memory slept on each day’s changes? I spent Thanksgiving weekend testing it.

Result: on a 50-question LangGraph test, hybrid retrieval-augmented generation (RAG) scored 21. Consolidation, my SLEEP-style memory, scored 12. RAG won on new facts and missed all eight questions about older versions.

How I tested it
#

I updated each system at three points in the docs’ history (July 27, October 14 and November 24, 2026). The test had 50 questions on 30 facts: new facts, stable facts, renames, outdated-answer traps, and eight that ask what a page said before an update. Questions were reworded, and each asked about a specific revision.

Three memory variants shared a 4-bit Qwen3-4B base and the same versioned QA training set:

  • Fresh: retrain an adapter on all eligible QA at each window.
  • Continual: keep training one adapter on new QA plus replayed old QA.
  • Consolidation: train a temporary adapter, transfer it to a persistent one, reset.

A frozen Qwen3-4B “Executive” answered for every system. It queried a memory model, as in MeMo, or received excerpts from hybrid RAG (BM25 and MiniLM rankings fused, plus a BM25 search over Git diffs). An Executive-only run set the floor.

flowchart TB
    Docs["LangGraph snapshot and Git diff"]
    Docs --> RAG["Hybrid RAG updates its indexes"]
    Docs --> QA["Versioned training QA"]
    QA --> Fresh["Fresh fit on all eligible QA"]
    QA --> Replay["Continue training on new QA and replay"]
    QA --> Wake["Train a temporary adapter"]
    Wake --> Sleep["Transfer to persistent adapter and reset temporary slot"]
    RAG --> Exec["Same frozen Executive"]
    Fresh --> Exec
    Replay --> Exec
    Sleep --> Exec
    Only["Executive-only control"] --> Exec
    Exec --> Grade["Blind scoring on the same versioned questions"]

Results
#

Correct answers out of 50 and summed local update time for each system.

SystemCorrect / 50Time for three updates
Hybrid RAG2111.9 s
Continual fine-tuning with replay13115.0 s
MeMo with consolidation12308.7 s
Fresh MeMo adapter6297.5 s
Executive only2n/a

Consolidation beat fresh retraining by six answers for about 11 seconds more. Continual fine-tuning skipped the temporary adapter and distillation, took 37% of consolidation’s time, and scored one higher in the first grading. In the second grading that order flips. Timings are local stage times on an M1 Pro and cover different work, so they are not like for like.

It depends on what the agent asks
#

RAG leads 13 to 2 and 14 to 3 on 18 new-fact questions, and trails or ties on the other 32.

RAG’s lead sits in new facts: 13 of 18 right, against 2 of 18 for consolidation. On the other 32 questions it scored 8 to consolidation’s 10 in the first review and tied at 10 in the second. On the eight historical questions it scored 0 in both reviews. In one case it returned the current model ID with the diff in its context. The pipeline supplied the diff, but not the old value, and the Executive didn’t use it.

A second blind review of all 234 distinct answers agreed with the first on 225. On 21 extra new-fact questions RAG scored 15/21 (14/19 after dropping two with reference problems).

What I would use
#

For a docs agent, I’d start with retrieval, put the source revision in every answer, and search the requested snapshot first for history questions. If knowledge has to live in weights, continual fine-tuning with replay is the cheaper start here; consolidation showed no stable accuracy gain for its cost.

MeMo as published uses full fine-tuning of a 14B memory model and reports LoRA doing worse (Appendix O). I used LoRA on a 4B model, so this tests the idea of a memory that sleeps, not MeMo itself.

This is one corpus, one training seed and a small model, and the 95% interval for RAG versus consolidation includes zero when resampled by fact. Quote the lead together with the question mix. Details: results, sensitivity, protocol, reading list.