NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Shadow Price of Reasoning: Economic Perspective on Optimal Budget Allocation for LLMs

Xu Wan, Speed Zhu, Jianwei Cai, Guang Chen, XiMing Huang, Wiggin Zhou, Mingyang Sun

Introduction

Inference-time scaling has emerged as a primary driver of performance for Large Language Models (LLMs), particularly in the "System 2" era of models like OpenAI's o1 and DeepSeek-R1. Allowing a model to "think" longer by generating more reasoning tokens generally yields better answers. However, real-world deployment faces strict computational budgets. The standard practice of assigning a uniform max_new_tokens limit to every query is highly inefficient. This paper proposes treating inference compute as a scarce economic resource, introducing a framework that dynamically allocates tokens based on a global "shadow price" to maximize overall accuracy.

The S-Shaped Utility of Reasoning

The authors argue that reasoning utility follows an S-shaped curve rather than a linear progression:

  1. Strict Phase: Too few tokens yield zero utility, as the model hasn't reasoned enough to reach an answer.
  2. Surge Phase: A small increase in tokens past a certain threshold leads to a massive jump in accuracy.
  3. Ample Phase: Additional tokens provide diminishing returns, or even introduce "overthinking" errors.

A uniform token limit might leave a complex problem (e.g., an AIME math puzzle) stuck in the Strict phase, while pushing a simple problem (e.g., a grade-school math question) deep into the wasteful Ample phase.

The CLEAR Framework

To solve this inefficiency, the authors formulate budget allocation as a global constrained optimization problem and introduce CLEAR (Constrained Latent-utility Equilibrium Allocation for Reasoning). CLEAR relies on four core components:

  • Threshold Prediction: A lightweight model (DeBERTa-v3-base) is fine-tuned to predict the "emergence threshold" ($\tau$)—the minimum number of tokens a specific query likely needs to be solved.
  • The Shadow Price ($\lambda$): Borrowing from economics, the system calculates a "shadow price" for tokens, representing the marginal gain in total accuracy if the budget were increased by one token. In a batch of queries, CLEAR finds a single price that "clears the market," matching the total requested tokens to the available budget.
  • Lambert W Allocation: To navigate the complex mathematics of the S-curve, the authors derive a closed-form allocation policy using the Lambert W function. This allows instantaneous calculation of the optimal token limit for each query based on the global shadow price.
  • Rational Abandonment: The most counter-intuitive yet powerful insight is that failing on purpose can be optimal. If a query is so difficult that the token cost exceeds its potential utility, CLEAR assigns it zero tokens. This "insolvent" query is rationally abandoned, and its budget is reallocated to solvable queries near their emergence thresholds.

Experimental Setup and Key Results

The authors evaluated CLEAR across challenging reasoning and coding benchmarks, including MATH-500, AIME, HumanEval+, and MBPP+, using various synthetic traffic streams (Balanced, Mostly-Easy, Mostly-Hard, U-Shaped).

  • Massive Accuracy Gains: In highly resource-constrained settings (e.g., an average budget of 256 tokens per query), CLEAR achieved up to a 3× improvement in global accuracy compared to uniform allocation.
  • Pareto Frontier Shift: CLEAR consistently outperformed other strategies, such as proportional allocation or greedy auction styles, effectively shifting the Pareto frontier of total token cost versus mean accuracy.
  • Cross-Domain Generalization: Although the threshold predictor was trained exclusively on math datasets (GSM8K and MATH), the economic logic generalized seamlessly to code generation, yielding +3.6 to +6.5 absolute accuracy gains on coding benchmarks.
  • Robustness: The system maintained a significant lead over uniform baselines even when the threshold predictor introduced noise.

Limitations and Future Directions

While mathematically elegant and highly effective, CLEAR is dependent on its threshold predictor. If the lightweight model severely underestimates a problem's difficulty, it may allocate too few tokens, causing a Strict phase failure. Additionally, the framework assumes reasoning utility strictly follows a "Shifted-Surge" functional form, whereas real-world reasoning can be more erratic.

Future work will explore "oracle-level" allocation by improving utility modeling robustness and adapting this economic framework for multi-step, interactive reasoning where budgets can be updated dynamically mid-thought.

Summary updated

BibTeX
@inproceedings{wan2026shadow,
  author = {Xu Wan and Speed Zhu and Jianwei Cai and Guang Chen and XiMing Huang and Wiggin Zhou and Mingyang Sun},
  title = {{The Shadow Price of Reasoning: Economic Perspective on Optimal Budget Allocation for LLMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=4VKHyt93NW},
}
Figure