ECHO: Elastic Speculative Decoding with Sparse Gating for High-Concurrency Scenarios
Abstract
Lay Summary
Large language models are powerful, but generating text with them can be slow and expensive because they usually produce one small piece of text at a time. A popular way to speed this up is to let a smaller helper model guess several future pieces of text, while the main model checks which guesses are correct. This works well when the system serves only a few users, but under heavy traffic many guesses are wasted, and checking them can become the main bottleneck. We introduce ECHO, a method that makes this checking process more efficient. Instead of giving every request the same fixed amount of guessing, ECHO estimates which guesses are likely to be useful and reallocates the checking budget within a batch of requests. It stops expanding low-confidence guesses early and spends more computation on requests where extra guesses are more likely to be accepted. We implement ECHO in a production-oriented serving system and evaluate it across several large language models, including very large industrial-scale models. Our results show that ECHO can reduce wasted computation and improve generation speed, especially when many users are served at the same time. This can make large language model services faster and more cost-effective without changing the final verified outputs.