Ramp Labs Researchers Propose One Translator for 42 Cross-Model Cache Routes

TLDR AITLDR AI·Original
Operator Bae ChangHyun

Key point

Ramp Labs researchers proposed speculative encoding, a 2.35B-parameter translator for 42 cache-translation directions across 7 models.

1 / 7

Details

  • Ramp Labs researchers Ben Geist and Thomas Villeneuve proposed speculative encoding: one 2.35B-parameter network translates hidden states across 7 models in 42 directions, and the receiving model uses its frozen weights to produce a K/V cache, allowing it to skip prefill.
  • Across 12 tasks and 42 directions, translated caches retained an average 96.9% of target native-cache accuracy on documents up to 8,192 tokens; the worst direction retained 93.1%. Retention was 97.4% on tasks absent from training and 96.5% on training tasks.
  • On long documents, the researchers reported over 90% accuracy and a 4× faster start to answering at 32k tokens. Full-depth retention fell from 92% at 32k to 83% at 128k; at 128k, speedups were 2.5× for full depth, 6.1× for L′=8, and 7.5× for L′=4.
  • A question-conditioned compressor reduced cache size by up to 128×: at 32k and 64k tokens, retention fell by no more than 2 points; at 128k, compressed caches outperformed the full translated cache, with a 4.3-point gain at 64× compression.

How it works

  • A shared transformer encoder-decoder reads source-model hidden states and predicts target hidden states. Model- and layer-specific projections and biases adapt the shared architecture; the target model’s frozen weights turn its predicted hidden states into a K/V cache.
  • The translator attends to all source layers but only the last 8 tokens along the token axis. Its mixture-of-experts setup uses 1 always-on expert and routes each hidden state to 2 of 8 other experts.
  • The 7 evaluated models span Qwen3.5 9B, Qwen3 14B, Llama 3.1 8B, Gemma 3 12B, Gemma 4 12B, and Ministral 3 8B and 14B. All base models are frozen.

Training and evaluation

  • Training has 2 stages: 17k steps align translated and native caches with scale-normalized mean squared error; 8k steps then match their next-token distributions using teacher-forced questions and answers.
  • General evaluation used 2,395 questions across 12 tasks and 3 seeds. Long-document tests used 20 documents per direction and length, with 8 multiple-choice questions per document at 32k, 64k, and 128k tokens.
  • The compressor uses SnapKV attention scores to select cache positions, then distillation improves the selection; at 128k, L′=8 and L′=4 translators saw 4.0–5.1-point retention gains with 64× compression.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.