Research map / Large language models / Reasoning and chain of thought
RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generation
Qingyao Li, Wei Xia, Xinyi Dai, Kounianhua Du, Weiwen Liu, Yasheng Wang, Ruiming Tang, Yong Yu, Weinan Zhang
Shanghai Jiao Tong University · Huawei Technologies
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- HumanEval leaderboard pass@1 94.51 · rank 19 of 261 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add block-level analysis feedback (ablation) | RethinkMCTS (GPT-3.5-turbo) · HumanEval | pass@1: 86.6 -> 89.1 | Improved |
| Add block-level analysis feedback (ablation) | RethinkMCTS (GPT-3.5-turbo) · APPS | pass@1 / pass rate | No clear effect |
| Add verbal feedback (ablation) | RethinkMCTS · APPS and HumanEval | pass@1 | Improved |
| Use rethink instead of reflection (ablation) | RethinkMCTS (GPT-4o-mini) · APPS Intro. | pass@1: 54 -> 59 | Improved |
| Use rethink instead of reflection (ablation) | RethinkMCTS (GPT-4o-mini) · HumanEval | avg. token cost: 57027 -> 36678 | Improved |
| Add rethink operation to the tree (ablation) | RethinkMCTS (GPT-4o-mini) · HumanEval | success rate of searched codes: 48.30 -> 53.29 | Improved |
| Spend budget on more rethink operations instead of more rollouts | RethinkMCTS · APPS and HumanEval | pass@1 | Improved |
| Search over thoughts instead of tokens, lines or code (ablation) | MCTS (GPT-3.5-turbo) · APPS and HumanEval | pass@1 | Improved |
| Give perfect-public-test nodes a score above 1.0 (weights 1.0, 0.2) instead of 0.8, 0.2 (ablation) | RethinkMCTS (GPT-4o-mini) · HumanEval | pass@1: 94.5 -> 92.7 | Hurt |
| Replace self-evaluation with LLM-generated unit tests (ablation) | RethinkMCTS (GPT-4o-mini) · APPS Inter. | pass@1: 49 -> 44 | Hurt |
| Use RethinkMCTS instead of Base(16) on GPT-3.5-turbo | RethinkMCTS · APPS + HumanEval average | pass@1: 47.84 -> 52.15 | Improved |
| Add block-level analysis and rethink | RethinkMCTS (GPT-4o-mini) · APPS Intro. | token consumption: PG-TD 27827 -> RethinkMCTS 123207 input tokens (APPS Intro.) | Hurt |
Later papers that compared with this method
4 later accepted papers report RethinkMCTS as a baseline in their results tables; 4 of them report a better number on most of the results they share with it.
- LogitsCoder: Towards Efficient Chain-of-Thought Path Search via Logits Preference Decoding for Code Generation (EMNLP 2026 · better on 13 of 13 shared results)
- AdverMCTS: Combating Pseudo-Correctness in Code Generation via Adversarial Monte Carlo Tree Search (ICML 2026 · better on 8 of 8 shared results)
- Policy of Thoughts: Scaling LLM Reasoning via Test-time Policy Evolution (EMNLP 2026 · better on 2 of 2 shared results)
- CodePRM: Execution Feedback-enhanced Process Reward Model for Code Generation (ACL 2025 · better on 10 of 10 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in test-time compute scaling
When does spending more compute at inference pay off, and how should it be spent?
- The gain depends on a verifier that is itself unreliable. · 36 papers state it
- Tested on math and code with checkable answers. · 28 papers state it
- Search and voting act on final answers, not steps. · 10 papers state it
Closest papers by meaning
- ReMCTS: Reflect-Enhanced Monte Carlo Tree Search Strategy for Code Generation (EMNLP 2026 · similarity 0.92)
- RPM-MCTS: Knowledge-Retrieval as Process Reward Model with Monte Carlo Tree Search for Code Generation (AAAI 2026 · similarity 0.90)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.89)
- CodePRM: Execution Feedback-enhanced Process Reward Model for Code Generation (ACL 2025 · similarity 0.88)
- Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation (ICML 2025 · similarity 0.87)
- CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules (ICLR 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.