Suffix cache reuse for hybrid attention lifts edited-turn hit rate 29.9% to 58.1%, cutting prefix-reuse FLOPs to 7.14/Q
RulinShao · x · 2026-10-02
Rulin Shao shares implementation details of Suffix Cache Reuse for hybrid attention (interleaved full and linear attention layers) built on SGLang:
- Hit-rate decomposition: context editing in CLMs tanks cache hit rate from 73.9% to 29.9% on edited turns.
- Fix: instead of discarding unmatched suffix cache, reuse it — adding 28.2% more hit rate on edited turns and dropping total prefix-reuse FLOPs from 10.98/Q to 7.14/Q at matched performance.
- Takeaway: the cache space allows more fancy manipulations beyond token space; a readable blog post is coming.
The efficiency metric accounts for re-prefill cost of un-hit KV cache, so the "CLMs are cheaper" claim already factors in lower hit rates.
Related event: Meta Open-Sources Suffix Cache Reuse to Boost Agent Inference Efficiency(4 posts)→
More from Infra
- Baseten's 'Inference Engineering' book back in print, free copies at re:Invent — philipkiely · 2026-11-29
- Debate: inference demand makes H100s more valuable while NVDA stock heads south — teortaxesTex · 2026-11-29
- Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9% — WaroftanksPro · 2026-11-29
- Leopold's $880K-per-H100 revenue claim vs "Nvidia has zero moat" draws flak — teortaxesTex · 2026-11-29
- JITEngine from Berkeley ecosystem synthesizes custom Mac LLM inference engines, up to 2.7x faster — CShorten30 · 2026-11-29
- Dev Uses Neon to Build 'ultra' CLI That Wraps Google Colab GPUs — andrew_n_carr · 2026-11-29