TL;DR
DUCHESS is a novel LLM serving system designed to slash the high token costs and latencies associated with multi-branch reasoning algorithms (like self-consistency) without sacrificing accuracy. By using a lightweight classifier to predict branch correctness directly from internal LLM layer activations, DUCHESS dynamically terminates, forks, or continues reasoning paths in parallel.
What Problem Does This Paper Address?
Advanced inference-time reasoning techniques, such as Chain-of-Thought (CoT) and multi-branch self-consistency, have dramatically boosted LLM performance on complex math, coding, and logic tasks. Instead of generating a single answer, these methods generate multiple parallel reasoning paths ("branches") and vote on the final output.
However, this accuracy boost comes at a steep price: a massive increase in token generation, which drives up computational costs and per-request latency. Prior attempts to fix this either prune single branches blindly (which hurts accuracy) or introduce heavy auxiliary models or reinforcement learning loops that add significant system overhead. DUCHESS tackles this cost-accuracy-latency trilemma by introducing intelligent, low-overhead orchestration within the branches of a single request.
Methods
DUCHESS operates at two levels: intra-request branch orchestration and inter-request scheduling.
1. Per-Branch Correctness Prediction
At every $i$-th token generated (e.g., every 16 tokens), DUCHESS extracts the hidden activations from a middle layer of the LLM. A lightweight Multi-Layer Perceptron (MLP) probing model uses these activations to predict the probability that the current branch will yield a correct answer.
2. Intra-Request Branch Orchestration
Based on the MLP's predictions, DUCHESS dynamically applies one of three actions to each active branch:
- Early Termination: If a branch is highly likely to be correct, generation stops early, and a short "probe" prompt extracts the final answer.
- Selective Branch-out: If a branch is highly promising, DUCHESS duplicates it to explore alternative paths, maximizing efficiency by reusing the existing KV cache.
- Continuation: If the branch's outcome is still uncertain, it continues decoding normally.
Additionally, at the request level, DUCHESS terminates the entire job as soon as a clear majority consensus is reached among the branches, eliminating delays caused by slow "straggler" paths.
3. Inter-Request Scheduling
When handling a pool of multiple requests, DUCHESS can optionally use early prompt activations to predict the overall difficulty of a task, prioritizing easier requests first to minimize average queuing delays (Shortest Job First).
Datasets
The authors evaluated DUCHESS using the DeepSeek-R1-Distill-Llama-8B model across three popular reasoning benchmarks:
- GSM8K: Grade school math problems.
- MMLU: A diverse multi-task language understanding benchmark.
- MATH: Complex competition-level mathematics problems.
Key Insights and Ideas
- The "Sweet Spot" of LLM Layers: The authors discovered that the middle layers of the LLM contain the richest information for predicting reasoning success. For the 8B model, layer 14 yielded the highest prediction accuracy, allowing the system to accurately forecast a branch's success long before it finishes generating tokens.
- Curbing "Overthinking": Interestingly, early termination doesn't just save tokens; it can actually improve final accuracy. In harder datasets like MMLU and MATH, stopping a branch early corrected over 20% of paths that would have otherwise failed due to the LLM "overthinking" or wandering off-track.
- Parallelism-Friendly Pruning: Unlike sequential adaptive consistency methods that generate branches in small batches (ruining hardware parallelization), DUCHESS maintains a full, constant pool of active branches, keeping GPU utilization high.
Key Results
- Dominating the Pareto Frontier: DUCHESS consistently outperforms standard self-consistency and other baselines. It reduces token usage by 42% to 63% at matched accuracy.
- Massive Latency Reductions: When serving requests via vLLM, DUCHESS cuts mean, median, and tail (P95) latencies by 57–81%, 58–85%, and 52–84% respectively under standard First-Come-First-Served scheduling.
- Negligible Overhead: Because the MLP predictor is so small, its inference overhead accounts for a mere 0.02% to 0.07% of the total request processing time, and it occupies less than 41 MB of GPU memory.
Limitations and Future Work
- Branch Dependencies: When DUCHESS forks a branch, the resulting sub-branches share a common ancestor. Currently, the request-level termination policy treats all branch votes as independent, which could be optimized by accounting for these shared lineages.
- Scheduling Generalization: The complexity-aware inter-request scheduling was primarily validated on the MATH dataset, which natively includes difficulty labels for training. The authors plan to extend this difficulty-aware scheduling to datasets without explicit labels in future work.
Summary updated