AdaTree boosts language model speed by adapting to server conditions
AdaTree: Serving-Aware Adaptive Tree Construction for Speculative Decoding
Machine LearningDistributed, Parallel, and Cluster Computing
Summary
Generating text with large language models can be slow, so scientists use smaller 'draft' models to guess words quickly and then check them with the bigger model. The authors found that existing methods using a tree structure to guess words don’t always work well because the best setup changes depending on how busy the server is and what kind of requests it gets. To fix this, they created AdaTree, a tool that watches the server and picks the best tree setup to speed up word generation. AdaTree uses decision trees to predict which way of organizing guesses will be fastest, making the whole process more efficient.
What this means in practice
- •For llm serving engineers: Improve throughput of language model services by dynamically optimizing decoding strategies to handle varying request loads and inputs.
- •For real-time translation teams: Enhance the speed of real-time translation systems by selecting efficient token proposal strategies that adapt to fluctuating user requests.
Authors
Soohyun Cha, Jungi Lee, Jaewoong Sim
Abstract
Speculative decoding accelerates generative inference of large language models (LLMs) by using a small draft model to propose multiple candidate tokens, which are then verified in parallel with the target model in a single decoding iteration. While the state-of-the-art method of tree-based speculative decoding helps improve generation throughput over non-speculative inference, deploying it in LLM serving systems often yields suboptimal performance due to dynamically changing serving conditions. In particular, our analysis shows that the optimal tree configuration---the one that maximizes performance---varies with two key serving conditions: request rate and per-request characteristics. Based on the analysis, we present AdaTree, a plug-in component for LLM serving systems that dynamically adapts tree configurations to varying serving conditions. AdaTree predicts model execution time and acceptance length across different tree configurations and selects the one that maximizes speculative decoding efficiency. To capture the non-linear relationship between tree configuration and model execution time, AdaTree employs decision trees as its core modeling primitive. Our evaluation shows that AdaTree consistently outperforms both chain-based and static tree-based speculative decoding across diverse serving conditions.