Predictive Scheduling for Efficient Inference-Time Reasoning in Large Language Models

Aneesh Muppidi, Katrina Brown, Rana Shahout

TL;DR

This paper introduces "Predictive Scheduling," a novel framework that optimizes LLM inference by predicting the optimal reasoning length or difficulty for each query before generation. By using lightweight predictors and a greedy allocation strategy, they achieve significant accuracy gains (up to 7.9%) with the same token budget, making LLM deployments more efficient and cost-effective.

What Problem Does This Paper Address?

Large Language Models (LLMs) excel at complex reasoning tasks, often by generating multiple "chain-of-thought" (CoT) traces. However, a major bottleneck is inference-time cost. The current practice of using a fixed token budget for every query is inefficient: easy queries are over-computed, wasting tokens and increasing latency, while hard queries might not receive enough tokens, leading to incorrect answers. This results in unnecessary expenses and suboptimal performance, especially for production LLM services. The authors aim to solve this by intelligently allocating the token budget based on predicted query complexity.

Methods

The core of "Predictive Scheduling" lies in its two-pronged approach:

  1. Predicting Reasoning Length/Difficulty:
    • MLP-based Predictors: They train lightweight Multi-Layer Perceptrons (MLPs) on intermediate hidden states from specific transformer layers. A key finding is that middle layers (specifically layers 12-17) of the LLM's transformer architecture contain the most informative signals for predicting reasoning length.
  2. LoRA Fine-tuned Classifier: They also use a more parameter-efficient approach by fine-tuning a LoRA adapter on the raw question text. This model classifies queries into discrete difficulty categories (easy, medium, hard).
  3. Greedy Batch Allocation:
    • Once predictions are made (either continuous early-stopping probabilities or discrete difficulty labels), a greedy algorithm dynamically distributes a fixed total token budget across all queries in a batch. It iteratively assigns additional token "windows" to queries that are predicted to yield the highest marginal accuracy gain, aiming to maximize overall accuracy within the budget.

Datasets

The primary dataset used for training and evaluation is GSM8K. This is a benchmark of grade-school math word problems, consisting of natural language questions, step-by-step solutions, and a final numerical answer. The authors processed this dataset to generate early-stopping probability vectors and difficulty labels for their predictors.

Key Insights and Ideas

  • Middle Layers are Goldmines: The most surprising insight is that specific middle layers (12-17) of the transformer architecture hold the richest signals for predicting reasoning complexity. This suggests a sophisticated internal representation of problem structure and difficulty emerges in these layers, balancing syntactic and semantic information.
  • Difficulty vs. Length Prediction: While predicting the exact optimal reasoning length (continuous probability) is challenging, classifying problems into discrete difficulty categories (easy, medium, hard) using linguistic cues from the question text is surprisingly effective for allocation. This suggests that for resource allocation, a coarser granularity might be more robust and less prone to noise.
  • Linguistic Cues for Difficulty: The LoRA-based classifier demonstrates that linguistic patterns in problem statements (e.g., keywords like "prove" vs. "calculate") are strong indicators of reasoning difficulty, even if not precise enough for exact length prediction.
  • Adaptive Allocation Pays Off: The core idea that dynamically allocating resources based on predicted needs significantly outperforms static, uniform allocation is strongly validated.

Key Results

  • Accuracy Gains: Predictive Scheduling achieves up to 7.9 percentage points of absolute accuracy gain over uniform budgeting on the GSM8K benchmark, at an identical token cost.
  • Closing the Gap: This approach closes over 50% of the gap to an "oracle" strategy that has perfect foresight into optimal stopping points.
  • Layer Performance: MLPs trained on middle transformer layers (12-17) achieve the highest test correlation (0.742) for predicting early stopping performance.
  • Difficulty Classification Accuracy: The LoRA-based difficulty classifier achieves 66.3% accuracy, significantly outperforming a few-shot approach (41.6%).
  • Allocation Strategy: Difficulty-based allocation consistently outperforms size-based (length prediction) allocation across various token budgets.

Limitations and Future Work

  • Prediction Accuracy: While significant improvements are shown, the gap to the oracle strategy indicates room for improvement in the accuracy of early stopping predictions, especially at higher token budgets where prediction errors become more consequential.
  • Hybrid Approaches: The authors suggest combining the strengths of hidden-state features and linguistic pattern recognition for even better predictions.
  • Multi-Trace Aggregation: Extending Predictive Scheduling to more complex reasoning methods like self-consistency or tree-of-thoughts is a promising direction.
  • Uncertainty Estimation: Integrating uncertainty estimation could help guard against misallocation, particularly in high-budget scenarios.
  • Deployment: The framework is presented as a practical path for latency-sensitive, cost-efficient LLM deployments, and future work could focus on real-world deployment.

Summary updated

BibTeX
@inproceedings{muppidi2025predictive,
  author = {Aneesh Muppidi and Katrina Brown and Rana Shahout},
  title = {{Predictive Scheduling for Efficient Inference-Time Reasoning in Large Language Models}},
  booktitle = {ES-FoMo-III @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=Mn3lrAWy20},
}
Figure