From Output to Evaluation: Does Raw Instruction-Tuned Code LLMs Output Suffice for Fill-in-the-Middle Code Generation?
Not on the map. Why?
Abstract (arXiv)
Post-processing is crucial for the automatic evaluation of LLMs in fill-in-the-middle (FIM) code generation due to the frequent presence of extraneous code in raw outputs. This extraneous generation suggests a lack of awareness regarding output boundaries, requiring truncation for effective evaluation. The determination of an optimal truncation strategy, however, often proves intricate, particularly when the scope includes several programming languages. This study investigates the necessity of post-processing instruction-tuned LLM outputs. Our findings reveal that supervised fine-tuning significantly enhances FIM code generation, enabling LLMs to generate code that seamlessly integrates with the surrounding context. Evaluating our fine-tuned textttQwen2.5-Coder (base and instruct) models on HumanEval Infilling and SAFIM benchmarks demonstrates improved performances without post-processing, especially when the middle consist of complete lines. However, post-processing of the LLM outputs remains necessary when the middle is a random span of code.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 8 of its 11 references that are in the map. First posted on arXiv 24 May 2025.
Builds on
8 of 11 references.
References · 8
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 25
- 2023Meet in the Middle: A New Pre-training Paradigmcited by 22
- 2024Planning-Aware Code Infilling via Horizon-Length Predictioncited by 6
- 2024Improving FIM Code Completions via Context & Curriculum Based Learningcited by 6
Built on by
Citing papers per year: 2026: 1.
1 paper.