Intra-request branch orchestration for efficient LLM reasoning

Weifan Jiang, Rana Shahout, Yilun Du, Michael Mitzenmacher, Minlan Yu

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.

Figure 1: DUCHESS overflow. DUCHESS schedules requests by prioritizing easier ones when complexities can be estimated from the prompt, otherwise defaulting to First-Come-First-Served. To process a single request, at every ith token, DUCHESS predicts branch correctness from LLM activations and decides: at the branch level, whether to terminate, branch out, or continue. At a request level, the decision is made on whether to terminate the entire request once either a suitable consensus is reached or a sufficient number of answers are collected.

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.
Figure 2: LLM activations produce accurate correctness predictions. The validation and test accuracies of the proposed MLP trained on each LLM transformer layer, using DeepSeek-R1-Distill- Llama-8B model and GSM8K dataset. Layer 14 yields highest validation and test accuracies.
  • 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.
Cost-accuracy tradeoffs across GSM8K, MMLU, and MATH datasets.
  • 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

BibTeX
@misc{jiang2025intra,
  author = {Weifan Jiang and Rana Shahout and Yilun Du and Michael Mitzenmacher and Minlan Yu},
  title = {{Intra-request branch orchestration for efficient LLM reasoning}},
  year = {2025},
  eprint = {2509.24957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24957},
}
Figure