Research map / Large language models / Agents, code and math
Code Reffix: A Benchmark for Reflection-Guided Code Repair with Large Language Models
Zaiyuan Di, Jianting Chen, Yunxiao Yang, Xiaoying Gao, Li Yang, Zhihao Wang, Yang Xiang
Tongji University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
6improved
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 |
|---|---|---|---|
| fine-tune small models on oracle reflections to generate reflections (Ref-Only) | Qwen2.5-Coder-7B (Qwen-Reffix) · Code Reffix eval, self-reflection | repair pass rate (%): 15.36 -> 24.23 | Improved |
| fine-tune on oracle reflections (Ref-Only) | DeepSeek-Coder-6.7B (DeepSeek-Reffix) · Code Reffix eval, self-reflection | repair pass rate (%): 9.56 -> 24.23 | Improved |
| fine-tune on oracle reflections (Ref-Only) | DeepSeek-Coder-6.7B (DeepSeek-Reffix) · Code Reffix eval, direct repair | repair pass rate (%): 10.24 -> 7.85 | Hurt |
| replace self-generated reflection with oracle reflection (ablation) | Qwen2.5-14B · Code Reffix eval, all | repair pass rate (%): 26.62 -> 61.09 | Improved |
| replace self-generated reflection with oracle reflection (ablation) | Gemini-3-Flash · Code Reffix eval, all | repair pass rate (%): 56.66 -> 62.46 | Improved |
| add self-generated reflection before repair (vs direct repair) (ablation) | Qwen2.5-14B · Code Reffix eval, hard codes | repair pass rate change (%): -10.52 | Hurt |
| add self-generated reflection before repair (vs direct repair) (ablation) | GPT-4o · Code Reffix eval, all | repair pass rate change (%): -8.20 | Hurt |
| add self-generated reflection before repair (vs direct repair) (ablation) | small open-source models (Open-Source General avg.) · Code Reffix eval, all | repair pass rate change (%): +1.16 avg. | No clear effect |
| joint SFT of repair and reflection instead of reflection-only (ablation) | Qwen2.5-Coder-7B and DeepSeek-Coder-6.7B · Code Reffix eval | repair pass rate (%) | Mixed |
| add more reflect-repair-verify rounds (ablation) | DeepSeek-V3.2 · Code Reffix eval, self-reflection | repair pass rate (%): 49.49 -> 61.77 -> 65.87 (k=1,2,3) | Improved |
| higher embedding similarity of generated reflection to oracle reflection | 14 LLMs plus 2 fine-tuned models · Code Reffix eval | correlation with Avg. G: Pearson 0.69 (p<0.01), Spearman 0.74 (p<0.01) | 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
- Debug or Regenerate? Test-Guided Selection for LLM Code Repair (EMNLP 2026 · similarity 0.91)
- From Bugs to Fixes: Self-Evolving Hierarchical Knowledge Graphs for LLM-Based Code Repair (EMNLP 2026 · similarity 0.89)
- Is Self-Repair a Silver Bullet for Code Generation? (ICLR 2024 · similarity 0.88)
- Code Repair with LLMs gives an Exploration-Exploitation Tradeoff (NeurIPS 2024 · similarity 0.88)
- CoRe: Benchmarking LLMs’ Code Reasoning Capabilities through Static Analysis Tasks (NeurIPS 2025 · similarity 0.86)
- AuPair: Golden Example Pairs for Code Repair (ICML 2025 · 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.