Research map / Large language models / Agents, code and math
ReMCTS: Reflect-Enhanced Monte Carlo Tree Search Strategy for Code Generation
Wang Huifei, Huang Xinying, Sun Yiheng, Yifan Yuan
Shenzhen University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
8improved
1no clear effect
3hurt
1mixed
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add ReMCTS search with visible tests (known) | Direct no_tests · HumanEval and MBPP-Sanitized, 5 models | hidden solve rate: 69.37% -> 77.56% pooled (2,050 -> 2,292 of 2,955) | Improved |
| add ReMCTS search without tests (no_tests) | Direct no_tests · Qwen3-14B HumanEval | hidden solve rate: 82.93 -> 78.66 | Hurt |
| add ReMCTS search without tests (no_tests) | Direct no_tests · Qwen3-14B MBPP | hidden solve rate: 66.98 -> 60.42 | Hurt |
| add ReMCTS search without tests (no_tests) | Direct no_tests · DeepSeek-V4-Flash HumanEval | hidden solve rate: 80.49 -> 95.12 | Improved |
| give visible-test feedback to ReMCTS (known vs no_tests) | ReMCTS · HumanEval and MBPP-Sanitized | hidden solve rate: TG-no_tests +3.66 to +14.03 pp across 10 pairs | Improved |
| use ReMCTS instead of Best-of-32 | Qwen3-8B · MBPP-Sanitized no_tests | hidden solve rate: 59.95 -> 66.74 | Improved |
| use ReMCTS instead of Reflexion-16 | Qwen3-32B · MBPP-Sanitized no_tests | hidden solve rate: 69.09 -> 70.49 | Improved |
| use Reflexion-style instead of ReMCTS with visible tests | Qwen3-8B/32B/DeepSeek-V4-Flash · MBPP known | hidden solve rate: Reflexion-style 81.97, 86.89, 94.15 (higher than ReMCTS) | Hurt |
| add global memory retrieval (ablation) | ReMCTS · 12 settings (avg.) | hidden solve rate: 0.97 points on average | Improved |
| add global memory retrieval (ablation) | ReMCTS · DeepSeek MBPP-known | hidden solve rate: 12 vs. 10 paired, p = 0.83 | No clear effect |
| add path reflection memory (ablation) | ReMCTS · 12 settings | hidden solve rate: 5-win/4-tie/3-loss | Mixed |
| raise min_accept_iterations from 1 to 3 (ablation) | ReMCTS no_tests · 10 no_tests combinations | hidden solve rate: +1.55 points on average; 7 of 10 improve | Improved |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generation (EMNLP 2025 · similarity 0.92)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.88)
- RPM-MCTS: Knowledge-Retrieval as Process Reward Model with Monte Carlo Tree Search for Code Generation (AAAI 2026 · similarity 0.88)
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis (ICLR 2023 · similarity 0.87)
- CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer (ICML 2026 · similarity 0.87)
- Code Repair with LLMs gives an Exploration-Exploitation Tradeoff (NeurIPS 2024 · similarity 0.87)
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.