Research map / Large language models / Reasoning and chain of thought
Thinking Before Running! Efficient Code Generation with Thorough Exploration and Optimal Refinement
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 21.3 · rank 236 of 261 papers
- MBPP leaderboard pass@1 38.1 · rank 139 of 165 papers
- LiveCodeBench leaderboard pass@1 41.3 · rank 25 of 44 papers
- CodeContests leaderboard pass@1 40.1 · rank 5 of 15 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply ThinkCoder with n=5 refinement | LLama2-7B-Chat · avg of MBPP/HumanEval benchmarks | Pass@1: 18.7 -> 25.5 | Improved |
| apply ThinkCoder with n=5 refinement | GPT-4o · avg of MBPP/HumanEval benchmarks | Pass@1: 85.4 -> 89.0 | Improved |
| use ThinkCoder instead of MapCoder (similar config, GPT-4-Turbo) | GPT-4-Turbo · HumanEval tokens | tokens (k): 21.3 -> 0.26 at equal 93.9 Pass@1 | Improved |
| add ReST fine-tuning on ThinkCoder success trajectories | LLama2-7B · MBPP | Pass@1: 27.8 (SFT) / 14.7 (base) -> 32.3 at n=0 | Improved |
| add ReST fine-tuning | LLama2-7B · MBPP, n=5 | Pass@1: 38.1 (SFT) -> 46.1 | Improved |
| increase self-exploration budget k from 1 to 20 (ablation) | ThinkCoder · MBPP 60 samples, GPT-4 | Pass@1: 91.7 -> 96.7 (n=1) | Improved |
| increase exploration budget excessively (k=20) (ablation) | ThinkCoder · MBPP | efficiency | Hurt |
| increase refinement iterations n at k=10 or 20 (ablation) | ThinkCoder · MBPP 60 samples, GPT-4 | Pass@1: 96.7 -> 96.7 | No clear effect |
| increase tests per exploration m from 1 to 10 (ablation) | ThinkCoder · MBPP 60 tasks, Kimi | Pass@1: 80.0 -> 86.7 (verifier time 28.7s -> 364.5s) | Improved |
| raise temperature (ablation) | GPT-4-Turbo and GPT-4o · MBPP | Pass@1 | Hurt |
| raise temperature (ablation) | LLama2-7B-Chat, CodeQwen1.5-7B-Chat, Kimi · MBPP | Pass@1 | Improved |
| apply ThinkCoder to harder benchmarks | GPT-4o · LiveCodeBench | Pass@1: 22.5 -> 41.3 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- MapCoder — MapCoder: Multi-Agent Code Generation for Competitive Problem Solving (ACL 2024) · better on 3 of 3 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
- CodeDPO: Aligning Code Models with Self Generated and Verified Source Code (ACL 2025 · similarity 0.89)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.89)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.88)
- Simple Baselines are Competitive with Code Evolution (NeurIPS 2026 · similarity 0.88)
- CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules (ICLR 2024 · 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.