Accelerating CPU Speculative Decoding via Unified Graph Execution and Transactional KV Isolation
Zhangdie Yuan
Key points
From the paper's conclusion- We introduce SubTernary, an execution framework that eliminates these costs through Unified Graph Caching and Transactional KV-Cache Isolation.
Abstract
Speculative decoding accelerates LLM inference, but deploying it on CPUs introduces severe systems bottlenecks: context-swapping latency between draft and target graphs, and memory allocation overhead during KV cache rollbacks. We introduce SubTernary, an execution framework that eliminates these costs through Unified Graph Caching and Transactional KV-Cache Isolation. By compiling both models into a single memory arena with a persistent thread pool and routing speculative tokens to a static scratchpad for zero-copy pointer resets, SubTernary avoids dynamic reallocation and thread synchronization entirely. We integrate a 256-bit AVX2 ternary SIMD kernel as a low-bit case study. Ablations reveal our systems runtime drives 35.0% of the throughput gains, while the ternary kernel adds 6.0%. SubTernary achieves a $1.35\times$ speedup over llama.cpp speculative decoding and $3.99\times$ over autoregressive decoding, maintaining $O(1)$ rollback latency.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Resource-Efficient Speculative Decoding for Long-Context LLM ServingarXiv · 2026
- Callo: Serving Cache-Miss Requests with Speculative Decoding on Invalidated KV under Prefill-Decode DisaggregationarXiv · 2026
- BitNest: Bit-Nested Speculative Decoding for Memory-Efficient LLM Inference AccelerationarXiv · 2026
- DualPace: Decoupled Scheduling and Cooperative GPU--CPU Decoding for LLM ServingarXiv · 2026
- SpecPilot: Autonomous Algorithm Discovery and Systems Optimization for Speculative DecodingarXiv · 2026
- Conjugate Compilation: Self-Improving Agentic Co-Compilation for Speculative DecodingarXiv · 2026