Optimizing Prompt Sequences using Monte Carlo Tree Search for LLM-Based Optimization
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have demonstrated remarkable capabilities in code generation and structured reasoning; however, their performance often degrades on complex tasks that require consistent multi-step planning. Recent work has explored combining LLMs with Monte Carlo Tree Search (MCTS), yet existing approaches primarily focus on generating heuristic-based code for optimization or target simpler tasks where correctness alone is sufficient. In this work, we propose MCTS-OPS, a novel neural-symbolic framework that formulates prompt selection as a sequential decision process guided by MCTS. Our method explores and refines multi-step prompt sequences for the goal of improving code generation quality and enhancing the problem-solving capabilities of LLMs in general optimization. Experiments on network optimization show significant improvement over the baselines, both in the success rate of executing the generated code and in the optimization results with the specified objective and constraints (2~4× higher reward and 3× lower standard deviation). Moreover, it improves the chance of attaining the optimal solution by about 10% of cases, compared to baseline methods in hard problems. These results highlight the promise of combining symbolic planning with LLMs for robust, high-quality code generation in complex domains.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 26 of its 38 references that are in the map. First posted on arXiv 8 Aug 2025.
Builds on
26 of 38 references.
References · 26
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 431
- 2023Describe, Explain, Plan and Select: Interactive Planning with Large Language Models Enables Open-World Multi-Task Agentscited by 398
- 2024ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Searchcited by 344
- 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
14 more
- 2024Accessing GPT-4 level Mathematical Olympiad Solutions via Monte Carlo Tree Self-refine with LLaMa-3 8Bcited by 158
- 2025Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Designcited by 109
- 2023SayCanPay: Heuristic Planning with Large Language Models using Learnable Domain Knowledgecited by 49
- 2024A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Taskscited by 47
- 2023Plan, Eliminate, and Track -- Language Models are Good Teachers for Embodied Agentscited by 32
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generationcited by 26
- 2024When Large Language Model Meets Optimizationcited by 22
- 2024Modeling Other Players with Bayesian Beliefs for Games with Incomplete Informationcited by 17
- 2025Network Diffuser for Placing-Scheduling Service Function Chains with Inverse Demonstrationcited by 11
- 2024MCP-Solver: Integrating Language Models with Constraint Programming Systemscited by 10
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Taskscited by 8
- 2025Lipschitz Lifelong Monte Carlo Tree Search for Mastering Non-Stationary Taskscited by 8
- 2025From Token to Line: Enhancing Code Generation with a Long-Term Perspectivecited by 4
- 2023Advantage Actor-Critic with Reasoner: Explaining the Agent's Behavior from an Exploratory Perspectivecited by 3
Built on by
Citing papers per year: 2025: 3; 2026: 6.
9 papers.
- 2026Clawdrain: Exploiting Tool-Calling Chains for Stealthy Token Exhaustion in OpenClaw Agentscited by 14
- 2026Agent Alpha: Tree Search Unifying Generation, Exploration and Evaluation for Computer-Use Agentscited by 12
- 2025InSPO: Unlocking Intrinsic Self-Reflection for LLM Preference Optimizationcited by 11
- 2025MALinZero: Efficient Low-Dimensional Search for Mastering Complex Multi-Agent Planningcited by 5
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlookcited by 5
- 2025Perception Graph for Cognitive Attack Reasoning in Augmented Realitycited by 4
- 2026ET-Agent: Incentivizing Effective Tool-Integrated Reasoning Agent via Behavior Calibrationcited by 4
- 2026Interactive Critique-Revision Training for Reliable Structured LLM Generationcited by 2
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selectioncited by 1
- 2026Interactive Critique-Revision Training for Reliable Structured LLM Generation8 May 2026
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlook26 Mar 2026
- 2026Clawdrain: Exploiting Tool-Calling Chains for Stealthy Token Exhaustion in OpenClaw Agents1 Mar 2026
- 2026Agent Alpha: Tree Search Unifying Generation, Exploration and Evaluation for Computer-Use Agents3 Feb 2026
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selection30 Jan 2026
- 2026ET-Agent: Incentivizing Effective Tool-Integrated Reasoning Agent via Behavior Calibration11 Jan 2026
- 2025InSPO: Unlocking Intrinsic Self-Reflection for LLM Preference Optimization29 Dec 2025
- 2025MALinZero: Efficient Low-Dimensional Search for Mastering Complex Multi-Agent Planning8 Nov 2025
- 2025Perception Graph for Cognitive Attack Reasoning in Augmented Reality30 Aug 2025