ML-SpecQD's Quantized Multi-Level Draft for 2.7x Speed

ML-SpecQD introduces a multi-level speculative decoding framework that leverages 4-bit weight-only quantized (MXFP4) models as drafts, achieving up to 2.72x speedup over BF16 baselines by enabling close alignment between draft and target models without extensive pre-training.

The top 3

  1. ML-SpecQD's Multi-Level Draft Architecture Unpacked: ML-SpecQD employs a hierarchical speculative decoding structure, where a 4-bit MXFP4 quantized model serves as the primary draft, and a smaller, secondary draft can be introduced for further acceleration. This multi-level approach, combined with direct weight casting from the target model, maintains high token acceptance rates and reduces repeated full model inference steps.
  2. Quantization's Core Role in ML-SpecQD's Speed: ML-SpecQD achieves significant speedups by utilizing weight-only MXFP4 quantized draft models, which reduce memory footprint and computational cost by converting model weights to lower precision. This direct casting of BF16 target model weights to MXFP4 eliminates the need for extensive pre-training and leverages optimized microkernels with techniques like late scaling and VNNI for faster General Matrix Multiply (GEMM) operations.
  3. ML-SpecQD's Speed Edge Over Other Draft Architectures: ML-SpecQD delivers up to 2.72x speedup over BF16 baseline inference, with notable gains of 2.22x in Question-Answering and 2.72x in Code Generation. This compares favorably to Medusa's typical 1.8-2.5x speedup and EAGLE's 1.6x speedup over Medusa, demonstrating ML-SpecQD's competitive performance in accelerating LLM inference through its unique combination of multi-level and quantized drafting.

Sources

Open the full topic