scimeatlas

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

EMNLP 2025Large language models › Reasoning and chain of thoughtapproach: Efficient LLM servingopen problems in this approach11 citations (OpenAlex)

University of Illinois, Urbana Champaign · Amazon · Meta

Read the paperPlace an idea next to itCheck your own paper ↗

15measured effects
12improved
1no clear effect
2hurt

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 changedWhereMeasuredEffect
add horizon-length prediction (HLP) auxiliary loss to FIM trainingDeepSeek-Coder-Base 1.3B · SAFIMPass@1 average: 47.7 -> 50.0Improved
add HLPStarCoder2 7B · RepoEvalEM average: 18.77 -> 23.28Improved
add HLPDeepSeek-Coder-Base 6.7B · SAFIMPass@1 average: 61.4 -> 61.9Improved
add HLPDeepSeek-Coder-Base 1.3B · Defects4Jpatches fixed: 33 -> 39Improved
add HLPDeepSeek-Coder-Base 6.7B · CRUXEval-Oaccuracy: 39.2 -> 39.6Improved
add HLPDeepSeek-Coder-Base 1.3B · 'correct code but incorrect order' failures on SAFIM Algofailure rate: 9.91% -> 6.68% (avg)Improved
replace HLP with multi-token prediction (next 4 tokens) (ablation)DeepSeek-Coder-Base 1.3B · SAFIMPass@1 average: 47.7 -> 46.7Hurt
apply HLP to every middle token instead of first token only (ablation)HLP · SAFIMPass@1 average: 48.5 -> 50.0Improved
normalize the HLP target to (M-t)/M instead of raw M-t (ablation)HLP · SAFIMPass@1 average: 34.9 -> 50.0Improved
use a two-layer MLP hlp_head instead of a linear head (ablation)HLP · SAFIMPass@1 average: 50.0 -> 49.7No 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.5Hurt

Open problems this paper states

Open problems in efficient LLM serving

Do efficient-serving and inference-saving methods hold up on larger models, other hardware and real workloads?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy