← Wednesday, November 25 deck

11Research1 source posting

Ramp Labs Introduces Speculative Encoding, One 2.35B Model That Translates Context Between Seven AI Models and Cuts Long Document Latency up to 7.5x

Multi-agent swarms shouldn't have to read context more than once. Introducing speculative encoding, one 2.35B MoE that directly translates between any model's hidden states. Across 7 models, it keeps 96.9% of base accuracy and cuts prefill latency by up to 7.5× on long documents.

Opening frame of the video: the words Speculative Encoding above the Ramp and Baseten logos on a white background.

Context

Why it matters

If the results hold up, agents and routers built from different model families could hand each other long documents without every model reading them again, cutting the time and compute that multi agent systems spend on context.

Before a language model can use text it receives, it has to run every token through its layers to build a memory of the text, a step called prefill whose cost grows quickly with length. When agents from different model families pass context to each other as text, each one repeats that work. Ramp Labs is the AI research group at the finance company Ramp.

Deep dive

Ramp Labs introduced speculative encoding on November 25, a single 2.35 billion parameter mixture of experts network that translates one model's hidden states directly into another model's, so the receiving model can build its memory of a document without reading the text itself. The launch video carries both the Ramp and Baseten logos, and the article names Ben Geist and Thomas Villeneuve as the researchers.

According to the article, the translator covers all 42 directions between 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. Earlier cache translation methods trained one translator per pair of models, so the number of translators grew with the square of the number of models.

On documents up to 8,192 tokens, Ramp Labs says the receiving model keeps 96.9% of its native accuracy on average across 12 tasks, with a worst direction of 93.1%. Because the translator's cost grows linearly with length while prefill grows quadratically, the gains rise with longer inputs. At 128,000 tokens, the fastest settings start answering 6.1 and 7.5 times faster than prefill while giving up one to two points of retention. Retention at full depth falls from 92% at 32,000 tokens to 83% at 128,000, which the team says it hopes to improve.

A second component compresses the translated memory to what a specific question needs, up to 128 times smaller, while staying within two points of the full translated cache at 32,000 and 64,000 tokens. Ramp Labs released checkpoints and inference code for vLLM. The results come from the team's own tests, and the lead post had about 115,000 views when this deck was updated.

What to expect next

With code and checkpoints public, other researchers can now test whether the accuracy figures hold on their own tasks and on larger models than the 8B to 14B range covered here. Watch for serving platforms to adopt cross model context sharing for routers and agent swarms, and for Ramp Labs to address the drop in retention on very long documents that it flagged in the article.