mlsanityData to 14 Oct 2026

Optimizing Prompt Sequences using Monte Carlo Tree Search for LLM-Based Optimization

arXiv 2508.05995 ↗First posted 8 Aug 2025cs.LGcited by 9

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

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  5. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  7. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  8. 2024A Survey on Large Language Models for Code Generationcited by 658
  9. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 431
  10. 2023Describe, Explain, Plan and Select: Interactive Planning with Large Language Models Enables Open-World Multi-Task Agentscited by 398
  11. 2024ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Searchcited by 344
  12. 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
14 more
  1. 2024Accessing GPT-4 level Mathematical Olympiad Solutions via Monte Carlo Tree Self-refine with LLaMa-3 8Bcited by 158
  2. 2025Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Designcited by 109
  3. 2023SayCanPay: Heuristic Planning with Large Language Models using Learnable Domain Knowledgecited by 49
  4. 2024A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Taskscited by 47
  5. 2023Plan, Eliminate, and Track -- Language Models are Good Teachers for Embodied Agentscited by 32
  6. 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generationcited by 26
  7. 2024When Large Language Model Meets Optimizationcited by 22
  8. 2024Modeling Other Players with Bayesian Beliefs for Games with Incomplete Informationcited by 17
  9. 2025Network Diffuser for Placing-Scheduling Service Function Chains with Inverse Demonstrationcited by 11
  10. 2024MCP-Solver: Integrating Language Models with Constraint Programming Systemscited by 10
  11. 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Taskscited by 8
  12. 2025Lipschitz Lifelong Monte Carlo Tree Search for Mastering Non-Stationary Taskscited by 8
  13. 2025From Token to Line: Enhancing Code Generation with a Long-Term Perspectivecited by 4
  14. 2023Advantage Actor-Critic with Reasoner: Explaining the Agent's Behavior from an Exploratory Perspectivecited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 6.

9 papers.