arXiv · 2610.28671
Accelerating CPU Speculative Decoding via Unified Graph Execution and Transactional KV 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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Zhangdie Yuan. 2026-10-17. Accelerating CPU Speculative Decoding via Unified Graph Execution and Transactional KV Isolation. https://arxiv.org/abs/2610.28671
Cite the original work for its findings. Save a collection to share your selection of sources.