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 speedup over llama.cpp speculative decoding and over autoregressive decoding, maintaining rollback latency.
Create a lesson
Related papers
BS-Spec: BFP-Based Bit-Sharing for Self-Speculative LLM Decoding with LUT-Driven Mixed-Precision Acceleration
Shared title terminologycs.ARJiwoo Kim, Gunho Park, Sunwoo Yoo et al.
Chimera: A Configurable LLM Decode Accelerator Architecture with Compute-Memory-Floorplan Co-Design for HBM-Equipped Multi-Die FPGAs
Shared title terminologycs.ARZhiheng Chen, Yifan Zhang, Yu-An Chou et al.
Vector-Space Projection and Unified Complex-Valued Acceleration for Scaling Matrix-Based Brain-Inspired Representations
Shared title terminologycs.ARWilliam Youngwoo Chung, Hyunwoo Oh, Calvin Yeung et al.
Efficient VLA Inference via Retrieval-Based Speculation and Hardware Acceleration
Shared title terminologycs.ARZhengyang Cheng, He Zhu, Zeyu Guo et al.
Should You Split Decode? Disaggregation Across Future Models and Accelerators
Shared title terminologycs.ARRamyad Hadidi
Accelerating LLM Decoding with In-DRAM Parallelism
Shared title terminologycs.ARKevin Xu, Tatsuya Kubo, Daichi Tokuda et al.