SplitVerify: CPU-GPU Speculative Verification for Exact Long-Context Decoding
Abstract
When a long context's KV cache exceeds GPU memory capacity, it must be offloaded to host memory and transferred over PCIe, which often becomes the performance bottleneck. Speculative decoding amortizes this transfer cost across multiple drafted tokens. However, some existing systems either transfer the entire offloaded KV cache to the GPU for each verification step or perform approximate attention on the CPU. The former leaves the CPU underutilized, despite its ability to read KV cache 6-12 times faster than PCIe, while the latter compromises model accuracy. We observe that speculative decoding's verification phase creates an opportunity for efficient CPU attention by increasing memory reuse: verification processes tokens at a time, allowing the CPU to reuse each fetched KV block across multiple query tokens. In this paper, we present SplitVerify, which partitions each layer's verification attention between the host CPU and GPU, allowing the CPU to attend to a portion of the offloaded KV cache in place. We develop a simple cost model to determine when CPU-GPU partitioning is beneficial and how to optimally divide attention computation between the two processors. Since SplitVerify modifies only the verification phase, it is compatible with any drafter and preserves exactness by computing full attention over the entire KV cache. On A100 and H100 servers with 128K-token contexts, SplitVerify achieves up to 2.5 times higher decoding throughput than our reimplementation of SpecStream and up to 4.3 times higher throughput than TriForce, using TriForce's own evaluated model.
Create a lesson
Metadata
- Categories
- cs.DC, cs.LG
- Comments
- 15 pages, 7 figures, 9 tables
Related papers
AscMLA: Unlocking FP4 Efficiency for Long-Context MLA Decoding through Asymmetric Scaling
Shared title terminologycs.DCZechun Zhou, Zhiyong Zheng, Xiaomin Zhang et al.
KVSeal: Serving Long-Context LLMs with Losslessly Compressed KV Caches
Shared title terminologycs.DCHangyu Liang, Zeyu Mi
Asymmetric Speculative Decoding: Unlocking In-Context Learning in Draft Models
Shared title terminologycs.DCGuang Huang, Zeyi Wen
CGSpec: Consistency-Guided Speculative Decoding with Overlap-Aware Verification Scheduling for Edge-Cloud Inference
Shared title terminologycs.DCYuanbing Ouyang, Xiaoli Liu, Shirong Wei et al.
Twindex: Index Cache Offloading with Coarse-to-Fine Selection for Long-Context Sparse-Attention Serving
Shared title terminologycs.DCYuxuan Xia, Jiakun Fan, Han Meng et al.
Tree Speculative Decoding with In-Call KV Repair on a Commercial Static-Graph NPU
Shared title terminologycs.DCSungwon Woo, Seyeon Kim