A one-hour audio clip currently takes over six minutes to transcribe on a 16GB T4 GPU using OpenAI’s Whisper, even with flash attention, half-precision, and chunking already in place. That’s the problem Hugging Face’s Sanchit Gandhi tackles in a new technical walkthrough, and the solution is elegant: speculative decoding cuts that time roughly in half while mathematically guaranteeing identical outputs.

The core idea comes from a Google paper by Yaniv Leviathan and colleagues. A small, fast assistant model — like Whisper tiny — auto-regressively generates candidate tokens. A larger main model, like Whisper large-v2, then verifies those candidates in a single forward pass rather than generating each token itself. Any tokens that match get accepted; the first mismatch gets corrected, and everything after gets discarded. The assistant model picks up from there. Since the assistant handles most of the grunt work and the main model only needs to verify, the whole pipeline moves substantially faster.

The trick works because most tokens are easy. Gandhi notes that 70-80% of predicted tokens fall into this category, which is why a faster but less accurate assistant model is the right trade-off. The assistant should be at least 3x faster than the main model. There’s one hard constraint: both models must share the exact same tokenizer and vocabulary. That means multilingual Whisper large-v2 needs a multilingual assistant like tiny, while English-only medium.en requires tiny.en. Whisper large-v3 is currently the outlier — its expanded vocabulary makes it incompatible with earlier checkpoints.

What makes this genuinely useful rather than just clever is the verification step. Because the main model checks every candidate token, the final output is mathematically identical to running the big model alone. No re-tuning, no quality trade-offs, no surprises. For anyone running Whisper in production — transcription services, meeting note tools, accessibility features — this is effectively a free 2x speed-up. The implementation is available in Hugging Face Transformers as the assisted generation strategy, with a Google Colab provided for the code-inclined. If large-v3 ever gets a compatible assistant model, expect this to become the default configuration.