Research map / Large language models / Instruction and fine-tuning
Fine-tuning Language Models for Joint Rewriting and Completion of Code with Potential Bugs
Dingmin Wang, Jinman Zhao, Hengzhi Pei, Samson Tan, Sheng Zha
University of Oxford · Amazon
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
5improved
5hurt
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 for joint rewriting and completion (one-pass M1) | CodeGen-16B · b-MBPP | pass@1 (%): 13.1 -> 37.2 | Improved |
| add second-phase iterative refinement training (M2 over M1) (ablation) | CodeGen-2B · b2-MBPP | pass@1 (%): 10.4 -> 14.2 | Improved |
| add iterative refinement (M2 over M1) (ablation) | StarCoder · b-FixEval | pass@1 (%): 30.1 -> 31.8 | Improved |
| fine-tuned M2 vs removal -> completion on large models | CodeGen-16B · b-FixEval | pass@1 (%): 28.2 -> 31.2 | Improved |
| fine-tuned M2 vs removal -> completion, measured by BLEU alignment with prefix | CodeGen-16B · four buggy benchmarks | BLEU (%) | Improved |
| fine-tuned M2 on clean prefixes vs naive completion | CodeGen-16B · r-FixEval | pass@1 (%): 50.2 -> 45.9 | Hurt |
| fine-tuned M2 on clean prefixes vs naive completion | CodeGen-2B · r-HumanEval | pass@1 (%): 54.9 -> 52.1 | Hurt |
| rewriting -> completion post-hoc on clean prefixes | CodeGen-16B · r-FixEval | pass@1 (%): 50.2 -> 32.7 | Hurt |
| completion -> rewriting post-hoc on clean prefixes | CodeGen-16B · r-HumanEval | pass@1 (%): 63.4 -> 24.2 | Hurt |
| buggy vs clean partial code with naive completion | CodeGen-16B · b-FixEval, b-HumanEval, b-MBPP | pass@100 (%) | Hurt |
Open problems in fine-tuning for reasoning data
Do reasoning fine-tuning methods keep working on larger models, open-ended tasks and beyond plain SFT?
- Tested only on models of 14B parameters or fewer, not 70B-scale. · 22 papers state it
- Gains are shown on math and verifiable tasks, not open-ended ones. · 15 papers state it
- The method depends on what the base model already knows. · 7 papers state it
Closest papers by meaning
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.87)
- Code Repair with LLMs gives an Exploration-Exploitation Tradeoff (NeurIPS 2024 · similarity 0.87)
- SelfCodeAlign: Self-Alignment for Code Generation (NeurIPS 2024 · similarity 0.87)
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.86)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.86)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 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.