Research map / Large language models / Reasoning and chain of thought
ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generation
Houxing Ren, Mingjie Zhan, Zhongyuan Wu, Aojun Zhou, Junting Pan, Hongsheng Li
CUHK MMLab · SenseTime · The Chinese University of Hong Kong · Shanghai AI Laboratory
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 80.5 · rank 87 of 261 papers
- MBPP leaderboard pass@1 81.5 · rank 39 of 165 papers
This paper tried a common change: Chain-of-thought prompting
apply ReflectionCoder with CoT as reflection sequence · MATH · pass@1: 9.6 -> 13.6 Improved
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add reflection sequence data (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 65.9 -> 75.0 | Improved |
| add distillation on reflection data (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 69.5 -> 75.0 | Improved |
| add dynamic masking to distillation (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 70.7 -> 75.0 | Improved |
| keep reflection sequences in training data (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 66.5 -> 75.0 | Improved |
| add GPT-4 reflection data to self-generated data (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 71.3 -> 75.0 | Improved |
| add self-generated DeepSeek data to GPT-4 data (ablation) | ReflectionCoder (Code Llama-7B) · MBPP | pass@1: 69.6 -> 72.2 | Improved |
| use block mask instead of random mask (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 72.0 -> 75.0 | Improved |
| mix three mask strategies instead of block mask only (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval+ | pass@1: 68.9 -> 65.9 | Hurt |
| mask execution blocks first (EAC) rather than analysis first (CAE) (ablation) | ReflectionCoder (Code Llama-7B) · HumanEval | pass@1: 71.3 -> 75.0 | Improved |
| add self-generated data from DeepSeek-Coder-33B stage (ablation) | ReflectionCoder (DeepSeek-Coder-33B) · HumanEval | pass@1: 80.5 -> 82.9 | Improved |
| fine-tune on self-generated reflection sequences vs reflection at test time | Llama-3.1-8B-Instruct · HumanEval | pass@1: 70.1 -> 74.4 | Mixed |
| add distillation and test-time reflection together | Llama-3.1-8B-Instruct (self-distilled) · MBPP | pass@1: 73.0 -> 72.2 | No clear effect |
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
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.86)
- Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling (NeurIPS 2026 · similarity 0.85)
- Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation (ICML 2025 · similarity 0.85)
- Self-Infilling Code Generation (ICML 2024 · similarity 0.85)
- CyclicReflex: Improving Reasoning Models via Cyclical Reflection Token Scheduling (ICLR 2026 · similarity 0.84)
- Chain of Execution Supervision Promotes General Reasoning in Large Language Models (NeurIPS 2025 · similarity 0.84)
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.