Thinking Short and Right Over Thinking Long: Serving LLM Reasoning Efficiently and Accurately
Yuhang Wang, Youhe Jiang, Bin Cui, Fangcheng Fu
TL;DR
This work targets the efficiency-accuracy trade-off in LLM reasoning when combining Chain-of-Thought-like sequential steps with parallel branch sampling. It introduces SART, a serving framework that enforces short, high-quality thinking by employing redundant sampling with early stopping and a two-phase dynamic pruning strategy guided by a process reward model, enabling continuous batching. Empirically, SART achieves substantial speedups (up to $28.2\times$, average $15.7\times$) at comparable accuracy across multiple models and datasets, while reducing queuing delays and resource consumption. The approach enables practical, scalable deployment of reasoning-enabled LLMs, balancing latency and quality in multi-request serving scenarios.
Abstract
Recent advances in test-time scaling suggest that Large Language Models (LLMs) can gain better capabilities by generating Chain-of-Thought reasoning (analogous to human thinking) to respond a given request, and meanwhile exploring more reasoning branches (i.e., generating multiple responses and ensembling them) can improve the final output quality. However, when incorporating the two scaling dimensions, we find that the system efficiency is dampened significantly for two reasons. Firstly, the time cost to generate the final output increases substantially as many reasoning branches would be trapped in the over-thinking dilemma, producing excessively long responses. Secondly, generating multiple reasoning branches for each request increases memory consumption, which is unsuitable for LLM serving since we can only batch a limited number of requests to process simultaneously. To address this, we present SART, a serving framework for efficient and accurate LLM reasoning. The essential idea is to manage the thinking to be short and right, rather than long. For one thing, we devise a redundant sampling with early stopping approach based on empirical observations and theoretic analysis, which increases the likelihood of obtaining short-thinking responses when sampling reasoning branches. For another, we propose to dynamically prune low-quality branches so that only right-thinking branches are maintained, reducing the memory consumption and allowing us to batch more requests. Experimental results demonstrate that SART not only improves the accuracy of LLM reasoning but also enhances the serving efficiency, outperforming existing methods by up to 28.2 times and on average 15.7 times in terms of efficiency when achieving the same level of accuracy.
