mlsanityData to 14 Oct 2026

Learning When to Plan: Efficiently Allocating Test-Time Compute for LLM Agents

arXiv 2509.03581 ↗First posted 3 Sep 2025cs.AIcited by 20

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Training large language models (LLMs) to reason via reinforcement learning (RL) significantly improves their problem-solving capabilities. In agentic settings, existing methods like ReAct prompt LLMs to explicitly plan before every action; however, we demonstrate that always planning is computationally expensive and degrades performance on long-horizon tasks, while never planning further limits performance. To address this, we introduce a conceptual framework formalizing dynamic planning for LLM agents, enabling them to flexibly decide when to allocate test-time compute for planning. We propose a simple two-stage training pipeline: (1) supervised fine-tuning on diverse synthetic data to prime models for dynamic planning, and (2) RL to refine this capability in long-horizon environments. Experiments on the Crafter environment show that dynamic planning agents trained with this approach are more sample-efficient and consistently achieve more complex objectives. Additionally, we demonstrate that these agents can be effectively steered by human-written plans, surpassing their independent capabilities and highlighting the potential for safer and more collaborative agentic systems.

Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 55 of its 69 references that are in the map. First posted on arXiv 3 Sep 2025.

Builds on

55 of 69 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025SWEET-RL: Training Multi-Turn LLM Agents on Collaborative Reasoning Tasks19 Mar
  2. 2024BALROG: Benchmarking Agentic LLM and VLM Reasoning On Games20 Nov
  3. 2024Steering Large Language Models between Code Execution and Textual Reasoning4 Oct
  4. 2023Reasoning with Language Model is Planning with World Model24 May

Other references · 51

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  7. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  8. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  9. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  10. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  11. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  12. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
38 more
  1. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  2. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  3. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  4. 2019Dream to Control: Learning Behaviors by Latent Imaginationcited by 1,653
  5. 2018World Modelscited by 1,513
  6. 2019Mastering Atari, Go, Chess and Shogi by Planning with a Learned Modelcited by 1,353
  7. 2025s1: Simple test-time scalingcited by 1,341
  8. 2018Learning Latent Dynamics for Planning from Pixelscited by 1,264
  9. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  10. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 940
  11. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  12. 2017Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithmcited by 734
  13. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
  14. 2017Ray: A Distributed Framework for Emerging AI Applicationscited by 527
  15. 2025Stop Overthinking: A Survey on Efficient Reasoning for Large Language Modelscited by 464
  16. 2016The Option-Critic Architecturecited by 448
  17. 2024Training Language Models to Self-Correct via Reinforcement Learningcited by 426
  18. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 407
  19. 2024Automated Design of Agentic Systemscited by 407
  20. 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRscited by 377
  21. 2025Absolute Zero: Reinforced Self-play Reasoning with Zero Datacited by 344
  22. 2018TextWorld: A Learning Environment for Text-based Gamescited by 310
  23. 2023State of What Art? A Call for Multi-Prompt LLM Evaluationcited by 310
  24. 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 301
  25. 2023A Rank Stabilization Scaling Factor for Fine-Tuning with LoRAcited by 243
  26. 2021Benchmarking the Spectrum of Agent Capabilitiescited by 200
  27. 2025Plan-and-Act: Improving Planning of Agents for Long-Horizon Taskscited by 195
  28. 2025Towards System 2 Reasoning in LLMs: Learning How to Think With Meta Chain-of-Thoughtcited by 109
  29. 2023Why think step by step? Reasoning emerges from the locality of experiencecited by 103
  30. 2024Chain of Thoughtlessness? An Analysis of CoT in Planningcited by 103
  31. 2025Learning What Reinforcement Learning Can't: Interleaved Online Fine-Tuning for Hardest Questionscited by 97
  32. 2024Procedural Knowledge in Pretraining Drives Reasoning in Large Language Modelscited by 41
  33. 2017Learning to Repeat: Fine Grained Action Repetition for Deep Reinforcement Learningcited by 39
  34. 2022Chain of Thought Imitation with Procedure Cloningcited by 30
  35. 2023Thought Cloning: Learning to Think while Acting by Imitating Human Thinkingcited by 30
  36. 2024Controlling Large Language Model Agents with Entropic Activation Steeringcited by 29
  37. 2023Enabling Intelligent Interactions between an Agent and an LLM: A Reinforcement Learning Approachcited by 28
  38. 2025Discovering Temporal Structure: An Overview of Hierarchical Reinforcement Learningcited by 22

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 19.

20 papers.

Sort:

By area:

  1. 2026Toward Efficient Agents: Memory, Tool learning, and Planningcited by 16
  2. 2026Same Signal, Opposite Meaning: Direction-Informed Adaptive Learning for LLM Agentscited by 8
  3. 2026Tycho: Active Abstraction with Programmatic World Models for ARC-AGI-3cited by 7
  4. 2026Timely Machine: Awareness of Time Makes Test-Time Scaling Agenticcited by 6
  5. 2025Re-FORC: Adaptive Reward Prediction for Efficient Chain-of-Thought Reasoningcited by 4
  6. 2026What If We Allocate Test-Time Compute Adaptively?cited by 4
  7. 2026Can LLMs Perceive Time? An Empirical Investigationcited by 3
  8. 2026A Survey on Self-Improving Test-Time Intelligence: Feedback-Driven Adapting, Learning, and Scaling at Inferencecited by 3
  9. 2026TodoEvolve: Learning to Architect Agent Planning Systemscited by 2
  10. 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generationcited by 2
  11. 2026LLM-WikiRace Benchmark: How Far Can LLMs Plan over Real-World Knowledge Graphs?cited by 1
  12. 2026From Skills to Talent: Organising Heterogeneous Agents as a Real-World Companycited by 1
8 more
  1. 2026Rethinking Agentic Reinforcement Learning In Large Language Modelscited by 1
  2. 2026When to Plan: Learning to Select Between Reactive Control and Deliberative Planningcited by 1
  3. 2026Mint-Agent: Introducing Finance-Native Agentic Foundation Modelscited by 0
  4. 2026Elastic Horizon: Discovering the Effective Interaction Frontier in Agentic Reinforcement Learningcited by 0
  5. 2026Consistent Plan-Act for Long-Horizon Agentic Taskscited by 0
  6. 2026Beyond Prediction: Steering VLM Agents with Retrospective World Modelingcited by 0
  7. 2026ForkPilot: Self-Evolving Policy for Retrospective Search in Long-Horizon Agentscited by 0
  8. 2026On the Clock: Towards Punctual and Productive Time-Budgeted AI Agentscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Planner Matters! An Efficient and Unbalanced Multi-agent Collaboration Framework for Long-horizon Planning
  2. 2023LgTS: Dynamic Task Sampling using LLM-generated sub-goals for Reinforcement Learning Agents
  3. 2025Robotouille: An Asynchronous Planning Benchmark for LLM Agents
  4. 2023AdaPlanner: Adaptive Planning from Feedback with Language Models
  5. 2025FutureWeaver: Planning Test-Time Compute for Multi-Agent Systems with Modularized Collaboration
  6. 2023Improving Planning with Large Language Models: A Modular Agentic Architecture
  7. 2026Why Reasoning Fails to Plan: A Planning-Centric Analysis of Long-Horizon Decision Making in LLM Agents
  8. 2024Understanding the planning of LLM agents: A survey