paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Language Models for Code Completion: A Practical Evaluation

面向代码补全的语言模型:一项实践评估
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 3/10 · 该论文属于 LLM 应用于代码任务(代码补全)的实证评估研究,与用户关注的 PL→AI(面向 ML/Agentic 程序的静态分析)和 AI→PL(LLM 改进静态分析/形式化验证)两条主线均无交集,也未涉及浮点分析或贝叶斯程序分析。其可取之处在于基于真实 IDE 插件与一年 1200+ 用户、600K 补全的工业级落地数据做在线/离线对比,符合用户对工业落地与问题驱动研究的偏好,但研究目标本身仍是 LLM 能力评估,与用户明确不感兴趣的方向重合。引用 57 inbox
Maliheh Izadi, Jonathan Katzy, Tim Van Dam, Marc Otten, Razvan Mihai Popescu, Arie Van Deursen
crossref: 2026-09-12

AI 速览

一句话:通过 IDE 插件和一年真实使用数据,定量与定性评估三个公开代码补全语言模型,并对比在线与离线表现。

该研究关注代码补全语言模型缺乏真实场景评估的问题。作者开发开源 IDE 扩展 Code4Me,在线收集 1200 多名用户、超过一年、60 万余条有效补全数据,并用六个标准指标在十二种编程语言上评估三个公开模型;随后对 1690 个真实补全请求做定性分析,探究模型表现不佳的原因,还使用合成基准数据集和两种遮蔽策略比较在线与离线性能。结果揭示真实使用与离线基准之间的差异,为代码补全模型的实践评估提供数据与方法。

问题
现有代码补全语言模型多依赖合成基准,缺乏真实开发场景中的大规模在线评估,难以反映实际可用性与失败原因。
方法
开发开源 IDE 插件 Code4Me,在线收集真实补全数据,结合六项指标、十二种语言、定性分析和在线/离线对比来评估三个公开模型。
评估
基于 1200 多名用户一年内 60 万余条有效补全,在 12 种语言上定量评估,并对 1690 个真实请求定性分析,同时用合成基准和两种遮蔽策略比较在线与离线表现。
原文摘要(Abstract)

Transformer-based language models for automatic code completion have shown great promise so far, yet the evaluation of these models rarely uses real data. This study provides both quantitative and qualitative assessments of three public code language models when completing real-world code. We first developed an open-source IDE extension, Code4Me, for the online evaluation of the models. We collected real auto-completion usage data for over a year from more than 1200 users, resulting in over 600K valid completions. These models were then evaluated using six standard metrics across twelve programming languages. Next, we conducted a qualitative study of 1690 real-world completion requests to identify the reasons behind the poor model performance. A comparative analysis of the models' performance in online and offline settings was also performed, using benchmark synthetic datasets and two masking strategies.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11273,
  title = {Language Models for Code Completion: A Practical Evaluation},
  author = {Maliheh Izadi and Jonathan Katzy and Tim Van Dam and Marc Otten and Razvan Mihai Popescu and Arie Van Deursen},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639138}
}