Lune

ICLR2025Top-tier venue

Learning How Hard to Think: Input-Adaptive Allocation of LM Computation

Mehul Damani, Idan Shenfeld, Andi Peng, Andreea Bobu, Jacob Andreas

Abstract

Computationally intensive decoding procedures--including search, reranking, and self-critique--can improve the quality of language model (LM) outputs in problems spanning code generation, numerical reasoning, and dialog. Existing work typically applies the same decoding procedure for every input to an LM. But not all inputs require the same amount of computation to process. Can we allocate decoding computation adaptively, using more resources to answer questions whose answers will be harder to compute? We present an approach that predicts the distribution of rewards given an input and computation budget, then allocates additional computation to inputs for which it is predicted to be most useful. We apply this approach in two decoding procedures: first, an adaptive best-of-k procedure that dynamically selects the number of samples to generate as input to a reranker; second, a routing procedure that dynamically responds to a query using a decoding procedure that is expensive but accurate, or one that is cheaper but less capable. Across a suite of programming, mathematics, and dialog tasks, we show that accurate computation-allocation procedures can be learned, and reduce computation by up to 50% at no cost to response quality, or improve quality by up to 10% at a fixed computational budget.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

22 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Rethinking the Role of Prompting Strategies in LLM Test-Time Scaling: A Perspective of Probability Theory cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • Rethinking the Role of Prompting Strategies in LLM Test-Time Scaling: A Perspective of Probability Theory cites Improving Factuality and Reasoning in Language Models through Multiagent Debate
  • Rethinking the Role of Prompting Strategies in LLM Test-Time Scaling: A Perspective of Probability Theory cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Strategic Scaling of Test-Time Compute: A Bandit Learning Approach cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • Strategic Scaling of Test-Time Compute: A Bandit Learning Approach cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Think or Not? Exploring Thinking Efficiency in Large Reasoning Models via an Information-Theoretic Lens cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Improving Factuality and Reasoning in Language Models through Multiagent Debate cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Dynamic Scaling of Unit Tests for Code Reward Modeling cites Scaling Laws for Reward Model Overoptimization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers22

  1. Think or Not? Exploring Thinking Efficiency in Large Reasoning Models via an Information-Theoretic LensXixian Yong, Xiao Zhou, Yingying Zhang, Jinlin Li et al.NeurIPS 2025 · 44 citations
  2. Dynamic Scaling of Unit Tests for Code Reward ModelingZeyao Ma, Xiaokang Zhang, Jing Zhang, Jifan Yu et al.ACL 2025 · 21 citations
  3. Rethinking the Role of Prompting Strategies in LLM Test-Time Scaling: A Perspective of Probability TheoryYexiang Liu, Zekun Li, Zhi Fang, Nan Xu et al.ACL 2025 · 12 citations
  4. Strategic Scaling of Test-Time Compute: A Bandit Learning ApproachBowen Zuo, Yinglun ZhuICLR 2026 · 9 citations
  5. Dropping Just a Handful of Preferences Can Change Top Large Language Model RankingsJenny Y. Huang, Yunyi Shen, Dennis Wei, Tamara BroderickICLR 2026 · 8 citations

Builds on9

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  3. Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran et al.NeurIPS 2023 · 5,068 citations
  4. Improving Factuality and Reasoning in Language Models through Multiagent DebateYilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum et al.ICML 2024 · 1,562 citations
  5. Scaling Laws for Reward Model OveroptimizationLeo Gao, John Schulman, Jacob HiltonICML 2023 · 963 citations

Related papers

  1. Scaling Evaluation-Time Compute with Reasoning Models as EvaluatorsSeungone Kim, Ian Wu, Jinu Lee, Xiang Yue et al.ACL Findings 2026
  2. Entropy-informed Decoding: Adaptive Information-Driven BranchingBenjamin Patrick Evans, Sumitra Ganesh, Leo ArdonICML 2026
  3. A Reward-Guided Dual-Phase Framework for Adaptive Inference-Time ReasoningYingqian Cui, Zhenwei Dai, Pengfei He, Bing He et al.ACL Findings 2026
  4. Compute Where it Counts: Self Optimizing Language ModelsYash Akhauri, Mohamed AbdelfattahICML 2026
  5. Adaptive Test-Time Compute Allocation with Evolving In-Context DemonstrationsBowen Zuo, Dongruo Zhou, Yinglun ZhuACL Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines