Speculative Encoding: AI Models That Skip the Reread

Speculative encoding is a new trick for multi-agent AI systems: one model hands its reading of a document straight to a different model, so the second one does not have to read the whole thing again. Ben Geist and Thomas Villeneuve published it on November 25 on Base Labs, Baseten's research site, and Ramp Labs has been pushing it on X since. The idea is clever. The name is a bit of a trap.
Why models keep rereading
Before a model can answer anything about a document, it runs a step called prefill. Every token goes through every layer, and the model builds its key-value (KV) cache, which is basically its working memory of the text. Prefill cost grows quadratically with context length, so long documents get expensive fast.
Now picture a small agent swarm. A Llama model reads a 32k-token contract, then hands the job to a Gemma model to check the clauses. Today that handoff happens as text, so Gemma reads the whole contract from scratch and redoes work Llama already did. It is like two colleagues sharing a file by having one of them read it aloud.
How speculative encoding works
Earlier cache-to-cache methods could map one model's KV cache into another's, but each translator was trained for one pair of models. With n models you need n(n-1) translators. Seven models means 42 of them, which is nobody's idea of a fun weekend.
Speculative encoding uses one shared 2.35B-parameter mixture-of-experts translator. It reads the source model's hidden states and predicts what the target model's hidden states would have been. The target then computes its own KV cache from those, with its own frozen weights. Each model only adds thin projections and biases on top of the shared part. The source's states get turned into a "memory" once, and any target can decode it later.
The paper covers seven models from four families: Qwen3.5 9B, Qwen3 14B, Llama 3.1 8B, Gemma 3 12B, Gemma 4 12B, Ministral 3 8B and Ministral 3 14B. All 42 directions, one network.
The numbers, with an asterisk
Here is what the authors report:
- On documents up to 8k tokens, targets keep 96.9% of their native accuracy.
- At 32k tokens, the target starts answering about 4x faster than re-prefilling from text, with over 90% of its accuracy kept.
- At 128k tokens, the full translator is 2.5x faster, but retention drops to 83%. Cutting decoder depth pushes the speedup to 7.5x for another point or two of accuracy.
The timings come from a single H200 running vLLM. Code and weights are public, with an Apache-2.0 repo and a Hugging Face checkpoint, which I respect. Every number above is still self-reported, though, and I have not found an independent replication yet.
My take
This is the right problem. Multi-agent setups burn a silly amount of compute rereading the same context, and "pass text between agents" is a habit, not a law of physics.
But that 83% at 128k is the number I would stare at. Losing 17% of accuracy on a long contract review is not a rounding error. It is a lawsuit with extra steps. For short handoffs between agents, this looks great. For long, high-stakes documents, I would keep paying for the reread until someone outside the lab confirms the results.
And the name. It sounds like speculative decoding, where a small model drafts tokens and a bigger one checks them. The paper describes a translator, not a draft-and-check loop, so don't assume one is hiding in there.
So here is my question: would you trust a model's memory of a document if it was translated out of another model's head?