大型语言模型的IDE内校准在大规模场景下是否有效?
Does In-IDE Calibration of Large Language Models work at Scale?
AI总结:
本研究通过大规模真实交互数据和多阶段设计研究,发现基于Platt缩放的通用后验校准无法提升IDE中代码生成模型的置信度可靠性,而个性化校准效果依赖数据量,且开发者偏好颜色编码的非数字可靠性指示器。
摘要:
将大型语言模型引入集成开发环境(IDE)正在彻底改变软件工程,但这对人工智能生成代码的实用性和可靠性提出了挑战。对内部模型置信度的后验校准旨在使概率与可接受性度量对齐。先前的研究表明校准可以改善对齐,但大规模证据有限。在这项工作中,我们研究了将代码模型的校准应用于IDE内上下文的可行性。我们研究了问题的两个方面:(1)实现置信度校准和提高代码生成模型可靠性的技术方法,以及(2)向开发者有效传达可靠性信号的人本设计原则。首先,我们开发了一个可扩展且灵活的校准框架,该框架可用于使用任何数据集为开源模型获取校准权重,并评估校准器是否改善了模型置信度与开发者接受行为之间的对齐。通过对多种编程语言超过2400万次真实开发者交互的大规模分析,我们发现基于Platt缩放的通用后验校准模型平均而言并未提高模型置信度信号的可靠性。我们还发现,虽然将校准动态个性化到单个用户可能有效,但其有效性高度依赖于用户交互数据的数量。其次,我们进行了一项多阶段设计研究,涉及3位专家设计师和153位专业开发者,结合了基于场景的设计、半结构化访谈和调查验证,揭示了在编辑器内代码生成工作流中,通过非数字、颜色编码的指示器呈现可靠性信号的明确偏好。
英文摘要:
The introduction of large language models into integrated development environments (IDEs) is revolutionizing software engineering, yet it poses challenges to the usefulness and reliability of Artificial Intelligence-generated code. Post-hoc calibration of internal model confidences aims to align probabilities with an acceptability measure. Prior work suggests calibration can improve alignment, but at-scale evidence is limited. In this work, we investigate the feasibility of applying calibration of code models to an in-IDE context. We study two aspects of the problem: (1) the technical method for implementing confidence calibration and improving the reliability of code generation models, and (2) the human-centered design principles for effectively communicating reliability signal to developers. First, we develop a scalable and flexible calibration framework which can be used to obtain calibration weights for open-source models using any dataset, and evaluate whether calibrators improve the alignment between model confidence and developer acceptance behavior. Through a large-scale analysis of over 24 million real-world developer interactions across multiple programming languages, we find that a general, post-hoc calibration model based on Platt-scaling does not, on average, improve the reliability of model confidence signals. We also find that while dynamically personalizing calibration to individual users can be effective, its effectiveness is highly dependent on the volume of user interaction data. Second, we conduct a multi-phase design study with 3 expert designers and 153 professional developers, combining scenario-based design, semi-structured interviews, and survey validation, revealing a clear preference for presenting reliability signals via non-numerical, color-coded indicators within the in-editor code generation workflow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。