Research map / Large language models / Reasoning and chain of thought
PaT: Planning-after-Trial for Efficient Test-Time Code Generation
Youngsik Yoon, Sungjae Lee, Seockbean Song, Siwei Wang, Wei Chen, Jungseul Ok
Pohang University of Science and Technology · Microsoft Research Asia
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| plan only after a failed trial (PaT) instead of planning first (FunCoder) | Qwen3-4B · HumanEval/MBPP average | Pass@1: 81.18 -> 83.13 (cost 8.31 -> 4.85) | Improved |
| plan only after a failed trial instead of planning first | Qwen3-32B · HumanEval/MBPP average | Pass@1: 87.66 -> 88.37 (cost 8.93 -> 5.09) | Improved |
| use PaT instead of FunCoder on hard benchmark | Qwen3-4B · xCodeEval (All) | Pass@1: 29.00 -> 34.20 (cost 12.95 -> 17.93) | Improved |
| use PaT instead of FunCoder | Llama-3.1-8B-Instruct · xCodeEval (All) | Pass@1: 11.80 -> 15.00 (cost 5.46 -> 8.42) | Improved |
| use PaT instead of FunCoder | Qwen3-32B · xCodeEval (All) | Pass@1: 42.40 -> 43.00 (cost 7.87 -> 6.00) | Improved |
| use a Qwen3-32B planner with Qwen3-8B generator instead of Qwen3-8B alone (ablation) | PaT · HumanEval/MBPP average | Pass@1: 85.58 -> 87.39 (cost 0.25 -> 0.31) | Improved |
| use a Qwen3-32B planner with Qwen3-4B generator instead of Qwen3-4B alone (ablation) | PaT · HumanEval/MBPP average | Pass@1: 83.13 -> 84.78 (cost 0.14 -> 0.18) | Improved |
| use Qwen3-8B generator + 32B planner instead of homogeneous Qwen3-32B (ablation) | PaT · HumanEval/MBPP average | Pass@1: 88.37 -> 87.39 (-0.98), cost 1.00 -> 0.31 | No clear effect |
| use Best-of-N instead of Standard | Qwen3-4B · HumanEval/MBPP average | Pass@1: 76.05 -> 76.95 | No clear effect |
| use CodeT instead of Standard | Qwen3-8B · xCodeEval (All) | Pass@1: 27.20 -> 25.20 | Hurt |
| use CodeT instead of Standard | Llama-3.1-8B-Instruct · xCodeEval (All) | Pass@1: 5.80 -> 5.80 | No clear effect |
| use PaT with heterogeneous 4B+32B instead of FunCoder with 32B | Qwen3 · HumanEval mean latency | seconds: 63.56 -> 11.90 | 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.
- CodeT — CodeT: Code Generation with Generated Tests (ICLR 2023) · better on 2 of 2 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
- Planning in Natural Language Improves LLM Search for Code Generation (ICLR 2025 · similarity 0.89)
- Every Rollout Counts: Optimal Resource Allocation for Efficient Test-Time Scaling (NeurIPS 2025 · similarity 0.88)
- What If We Allocate Test-Time Compute Adaptively? (ICML 2026 · similarity 0.88)
- Variation in Verification: Understanding Verification Dynamics in Large Language Models (ICLR 2026 · similarity 0.88)
- CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer (ICML 2026 · similarity 0.88)
- Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning (NeurIPS 2025 · similarity 0.88)
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.