SpecZip: Efficient Speculative Drafter Training on Compressed Hidden-State Caches
원문 초록
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.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.
저자 비고
arXiv Comments
18 pages, 9 figures, 11 tables