DEX: Parallel Depth Exploration for Speculative Decoding
Abstract
Autoregressive LLM decoding processes every generated token through the full layer stack, even though many tokens become available at intermediate depths. Existing lossless depth-adaptive methods exploit this redundancy by choosing a single non-final exit depth and verifying its drafts with the final-depth model. However, our measurements show that this selection-based strategy leaves substantial headroom: choosing an exit too late wastes computation, while choosing one too early triggers fallback and discards dependent drafts. We propose Depth Exploration Decoding (DEX), a lossless speculative decoding algorithm that replaces single-depth selection with parallel exploration over multiple candidate depths. At each commit position, DEX validates candidates against the final-depth reference, commits the final-depth token, and collapses the exploration lattice to retain only reusable branch states. This expand–commit–collapse procedure preserves equivalence to standard autoregressive decoding while reducing the latency of generating each token. Across early-exit-trained and standard LLMs, DEX outperforms representative depth-selection baselines and achieves up to 61% higher decoding speed than the strongest depth-selection baseline. Moreover, DEX improves as the explored depths become finer, showing that parallel depth exploration provides a scalable way to exploit the underused depth axis of LLM decoding.