Research map / Large language models / Agents, code and math
Alignment with Fill-In-the-Middle for Enhancing Code Generation
Houxing Ren, Zimu Lu, Weikang Shi, Haotian Hou, Yunqiao Yang, Ke Wang, Aojun Zhou, Junting Pan, Mingjie Zhan, Hongsheng Li
CUHK MMLab · SenseTime · Beihang University · 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
- LiveCodeBench leaderboard pass@1 18.3 · rank 39 of 44 papers
- APPS leaderboard pass@1 20.1 · rank 10 of 14 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use StructureCoder instead of DPO | Qwen2.5-Coder-1.5B-Instruct · all test sets | pass@1: +1.5 points average | Improved |
| use StructureCoder instead of DPO | Qwen2.5-Coder-3B and 7B-Instruct · all test sets | pass@1: +1.6 points average | Improved |
| use StructureCoder instead of DPO | Qwen2.5-Coder-1.5B-Instruct · APPS | pass@1: 9.3 -> 9.9 | Improved |
| use StructureCoder instead of Focused-DPO | Qwen2.5-Coder-7B-Instruct · all test sets | pass@1 | No clear effect |
| use StructureCoder instead of Focused-DPO | Qwen2.5-Coder-1.5B-Instruct · all test sets | pass@1 | Improved |
| add AST-based block selection (ablation) | StructureCoder · LiveCodeBench | pass@1: 9.7 -> 10.8 | Improved |
| add curriculum ordering (ablation) | StructureCoder · LiveCodeBench | pass@1: 9.0 -> 10.8 | Improved |
| add curriculum ordering (ablation) | StructureCoder · HumanEval (Base) | pass@1: 78.7 -> 75.6 | Hurt |
| mix FIM and chat formats (alpha=0.5) (ablation) | StructureCoder · LiveCodeBench | pass@1: 8.6 -> 10.8 (vs alpha=0) | Improved |
| use FIM data instead of more epochs on DPO data (ablation) | DPO · LiveCodeBench | pass@1: 4.1 -> 10.8 | Improved |
| compute loss on suffix segment (ablation) | StructureCoder · LiveCodeBench | pass@1: 10.8 -> 8.2 | Hurt |
| compute loss on prefix segment in addition (ablation) | StructureCoder with suffix loss · LiveCodeBench | pass@1: 8.2 vs 8.1 | No clear effect |
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.
- Focused-DPO — Focused-DPO: Enhancing Code Generation Through Focused Preference Optimization on Error-Prone Points (ACL 2025) · better on 1 of 1 shared result
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 execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks (ICML 2024 · similarity 0.87)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.87)
- SelfCodeAlign: Self-Alignment for Code Generation (NeurIPS 2024 · similarity 0.87)
- What Makes Large Language Models Reason in (Multi-Turn) Code Generation? (ICLR 2025 · similarity 0.87)
- Mercury: A Code Efficiency Benchmark for Code Large Language Models (NeurIPS 2024 · similarity 0.87)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (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.