speculative decoding
Inference interview questions tagged speculative decoding, across every topic.
20 questions · 7 unlocked for you
Concepts behind "speculative decoding"
Concept pages for the mechanisms these questions lean on.
Foundational
Speculative Decoding: The Algebra and the ProofDerive expected tokens per verification pass, include the cost of drafting and verification, and prove the rejection sampler preserves the target distribution. Then distinguish the linear-layer roofline crossover from the actual speedup boundary.🌳 Decoding Algorithms
Advanced
Draft Heads: Medusa, EAGLE and Multi-Token PredictionMedusa, EAGLE and multi-token prediction all draft from the target's hidden states instead of running a separate model. This page prices each design in bytes per draft step, explains why Medusa's acceptance decays with position while EAGLE's holds up, and shows how tree verification lowers the batch size where speculation stops paying.🌳 Decoding Algorithms🔒 Premium