Research map / Large language models / Reasoning and chain of thought
Planning-Aware Code Infilling via Horizon-Length Prediction
Yifeng Ding, Hantian Ding, Shiqi Wang, Qing Sun, Varun Kumar, Zijian Wang
University of Illinois, Urbana Champaign · Amazon · Meta
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 |
|---|---|---|---|
| add horizon-length prediction (HLP) auxiliary loss to FIM training | DeepSeek-Coder-Base 1.3B · SAFIM | Pass@1 average: 47.7 -> 50.0 | Improved |
| add HLP | StarCoder2 7B · RepoEval | EM average: 18.77 -> 23.28 | Improved |
| add HLP | DeepSeek-Coder-Base 6.7B · SAFIM | Pass@1 average: 61.4 -> 61.9 | Improved |
| add HLP | DeepSeek-Coder-Base 1.3B · Defects4J | patches fixed: 33 -> 39 | Improved |
| add HLP | DeepSeek-Coder-Base 6.7B · CRUXEval-O | accuracy: 39.2 -> 39.6 | Improved |
| add HLP | DeepSeek-Coder-Base 1.3B · 'correct code but incorrect order' failures on SAFIM Algo | failure rate: 9.91% -> 6.68% (avg) | Improved |
| replace HLP with multi-token prediction (next 4 tokens) (ablation) | DeepSeek-Coder-Base 1.3B · SAFIM | Pass@1 average: 47.7 -> 46.7 | Hurt |
| apply HLP to every middle token instead of first token only (ablation) | HLP · SAFIM | Pass@1 average: 48.5 -> 50.0 | Improved |
| normalize the HLP target to (M-t)/M instead of raw M-t (ablation) | HLP · SAFIM | Pass@1 average: 34.9 -> 50.0 | Improved |
| use a two-layer MLP hlp_head instead of a linear head (ablation) | HLP · SAFIM | Pass@1 average: 50.0 -> 49.7 | No clear effect |
| vary HLP weight lambda from 0 to 0.01-0.5 (ablation) | HLP · SAFIM (100k steps) | Pass@1: 47.40% -> 48.98% (lambda 0.01), 49.34% (lambda 0.5) | Improved |
| apply HLP on FIM data only (ablation) | DeepSeek-Coder-Base 1.3B · HumanEval (L2R) | Pass@1: 26.3 -> 25.5 | Hurt |
Open problems this paper states
- “Pre-training experiments are restricted to models up to 7B parameters because of compute budget.” → Tested only on models of 12B parameters or fewer. (an open problem in efficient LLM serving)
Open problems in efficient LLM serving
Do efficient-serving and inference-saving methods hold up on larger models, other hardware and real workloads?
- Measured on one GPU type or one server only. · 21 papers state it
- Tested only on models of 12B parameters or fewer. · 13 papers state it
- Predictors and latency models need per-model profiling and lose accuracy off-distribution. · 13 papers state it
Closest papers by meaning
- From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion (ICML 2026 · similarity 0.87)
- Planning in Natural Language Improves LLM Search for Code Generation (ICLR 2025 · similarity 0.87)
- Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks (ICML 2024 · similarity 0.86)
- CodePlan: Unlocking Reasoning Potential in Large Language Models by Scaling Code-form Planning (ICLR 2025 · similarity 0.85)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.85)
- Let the Code LLM Edit Itself When You Edit the Code (ICLR 2025 · similarity 0.85)
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.