Evaluating and Achieving Controllable Code Completion in Code LLM

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Jiajun, Cui, Zeyu, Zhang, Lei, Yang, Jian, Yang, Jiaxi, Liu, Qiang, Wang, Zilei, Hui, Binyuan, Wang, Liang, Lin, Junyang
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909997872447488
author Zhang, Jiajun
Cui, Zeyu
Zhang, Lei
Yang, Jian
Yang, Jiaxi
Liu, Qiang
Wang, Zilei
Hui, Binyuan
Wang, Liang
Lin, Junyang
author_facet Zhang, Jiajun
Cui, Zeyu
Zhang, Lei
Yang, Jian
Yang, Jiaxi
Liu, Qiang
Wang, Zilei
Hui, Binyuan
Wang, Liang
Lin, Junyang
contents Code completion has become a central task, gaining significant attention with the rise of large language model (LLM)-based tools in software engineering. Although recent advances have greatly improved LLMs' code completion abilities, evaluation methods have not advanced equally. Most current benchmarks focus solely on functional correctness of code completions based on given context, overlooking models' ability to follow user instructions during completion-a common scenario in LLM-assisted programming. To address this limitation, we present the first instruction-guided code completion benchmark, Controllable Code Completion Benchmark (C3-Bench), comprising 2,195 carefully designed completion tasks. Through comprehensive evaluation of over 40 mainstream LLMs across C3-Bench and conventional benchmarks, we reveal substantial gaps in instruction-following capabilities between open-source and advanced proprietary models during code completion tasks. Moreover, we develop a straightforward data synthesis pipeline that leverages Qwen2.5-Coder to generate high-quality instruction-completion pairs for supervised fine-tuning (SFT). The resulting model, Qwen2.5-Coder-C3, achieves state-of-the-art performance on C3-Bench. Our findings provide valuable insights for enhancing LLMs' code completion and instruction-following capabilities, establishing new directions for future research in code LLMs. To facilitate reproducibility and foster further research in code LLMs, we open-source all code, datasets, and models.
format Preprint
id arxiv_https___arxiv_org_abs_2601_15879
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Evaluating and Achieving Controllable Code Completion in Code LLM
Zhang, Jiajun
Cui, Zeyu
Zhang, Lei
Yang, Jian
Yang, Jiaxi
Liu, Qiang
Wang, Zilei
Hui, Binyuan
Wang, Liang
Lin, Junyang
Software Engineering
Computation and Language
Code completion has become a central task, gaining significant attention with the rise of large language model (LLM)-based tools in software engineering. Although recent advances have greatly improved LLMs' code completion abilities, evaluation methods have not advanced equally. Most current benchmarks focus solely on functional correctness of code completions based on given context, overlooking models' ability to follow user instructions during completion-a common scenario in LLM-assisted programming. To address this limitation, we present the first instruction-guided code completion benchmark, Controllable Code Completion Benchmark (C3-Bench), comprising 2,195 carefully designed completion tasks. Through comprehensive evaluation of over 40 mainstream LLMs across C3-Bench and conventional benchmarks, we reveal substantial gaps in instruction-following capabilities between open-source and advanced proprietary models during code completion tasks. Moreover, we develop a straightforward data synthesis pipeline that leverages Qwen2.5-Coder to generate high-quality instruction-completion pairs for supervised fine-tuning (SFT). The resulting model, Qwen2.5-Coder-C3, achieves state-of-the-art performance on C3-Bench. Our findings provide valuable insights for enhancing LLMs' code completion and instruction-following capabilities, establishing new directions for future research in code LLMs. To facilitate reproducibility and foster further research in code LLMs, we open-source all code, datasets, and models.
title Evaluating and Achieving Controllable Code Completion in Code LLM
topic Software Engineering
Computation and Language
url https://arxiv.org/abs/2601.15879