SpecZip: Efficient Speculative Drafter Training on Compressed Hidden-State Caches
Minsub Kim, Jaeeun Kil, Sungjae Lee, Jiwon Ryu, Jeongtae Lee, Hanbae Seo, Hoseung Kim, Sunghwan Shim, Jaegwang Lee, Hyunjoon Jeong, Junhee Yoo, Sunghyeon Woo
Abstract
Recent speculative-decoding drafters such as EAGLE-3 and DFlash learn from the hidden states of the target model. Offline training computes and caches these hidden states once, and therefore needs 2-3x less GPU time than online training, which recomputes the hidden states at every step. For a standard training corpus, however, the BF16 cache takes 34-55 TB and does not fit on the local disk of an 8-GPU node. The cache can be compressed with methods developed for KV caches, but quantizers that spread bits equally across dimensions substantially shorten the acceptance length of the drafter. We trace this loss to two properties of the cache. First, as in a KV cache, 99% of the variance of target hidden states lies in 32% of the principal components, and compression must therefore allocate bits by variance. Second, unlike a KV cache, the cache is training data: the drafter learns without the low-variance components but receives the full hidden states at serving, causing a train-serve mismatch. Based on these observations, we propose SpecZip, a system for training drafters on a compressed cache. SpecZip compresses the cache with PCA and reverse water-filling (PCA-RWF), which allocates bits by variance without per-token scales and thus keeps more components at the same size, and can additionally project the removed components out of the first layer of the drafter. Because SpecZip decodes only the kept components on the GPU and overlaps the decoding with training, decompression adds almost no time to a training step. A 16x cache of 2.2-3.4 TB fits on a single node, and DFlash drafters trained on this cache retain 99-101% of the BF16 acceptance length across four targets, including a 122B Mixture-of-Experts (MoE) model. SpecZip thus enables offline training from a single local disk, with 1.95-3.25x higher training throughput than online training.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL, cs.DC
- Comments
- 18 pages, 9 figures, 11 tables
Related papers
Borrowed Models & Synthetic Pre-Training: Efficient Alternatives to Domain-Specific Foundation Models
Shared title terminologycs.LGJianhao Wu, Vinicius Mikuni, Benjamin Nachman et al.
A-Train: Agentic End-to-End Optimization for Efficient ML Training
Shared title terminologycs.LGHao Mark Chen, Jiakun Fan, Dongsheng Yang et al.
Compressing Collections of Trees with Decision Equivalence
Shared title terminologycs.LGHayden McTavish, Jon Donnelly, Margo Seltzer et al.
Temporal Expert Caching for Accelerating Inference in MoE Diffusion Language Models
Shared title terminologycs.LGVikhyath Kothamasu, Sandeep Kumar, Deepika Palagani
Sample Efficient Ranking of Language Models Using Pairwise Comparisons
Shared title terminologycs.LGSomnath Basu Roy Chowdhury, Rahul Kidambi, Avinava Dubey et al.
Auditing Adversarial Robustness with Training-time Canaries
Shared title terminologycs.LGYoojin Jung, Sebastian Szyller