arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.14261cs.SEcs.AI
收藏

Copilot评估基准:评估LLM引导的软件编程

Copilot Evaluation Harness: Evaluating LLM-Guided Software Programming

Microsoft(微软公司)

Anisha Agarwal, Aaron Chan, Shubham Chandel, Jinu Jang, Shaun Miller, Roshanak Zilouchian Moghaddam, Yevhen Mohylevskyy, Neel Sundaresan, Michele Tufano

AI总结:

本文提出Copilot评估基准,通过静态与执行成功指标全面评估LLM在IDE中代码生成、文档、测试、修复及工作区理解等任务上的表现,为优化LLM引导的IDE提供依据。

摘要:

将大型语言模型(LLMs)集成到开发环境(IDEs)中已成为现代软件开发的焦点。诸如OpenAI GPT-3.5/4和Code Llama等LLMs有潜力通过充当智能的、聊天驱动的编程助手来显著提高开发者生产力。然而,直接使用开箱即用的LLMs不太可能在任何给定场景下都达到最优效果。相反,每个系统都需要对LLM进行调整,使其符合自身的一组启发式规则,以确保最佳性能。在本文中,我们介绍了Copilot评估基准:一套用于评估LLM引导的IDE交互的数据和工具,涵盖各种编程场景和语言。我们提出的指标比以往最先进的评估系统更稳健、信息密度更高。我们设计并计算了静态和基于执行的成功指标,这些指标涵盖广泛的开发者任务场景,包括从自然语言生成代码(generate)、从代码生成文档(doc)、测试用例生成(test)、缺陷修复(fix)以及工作区理解和查询解析(workspace)。这些成功指标旨在评估LLM在给定IDE及其相应参数空间内的性能。我们通过使用这些指标评估三种常见LLM所获得的经验,可以为LLM引导的IDE中未来场景的开发和验证提供参考。

英文摘要:

The integration of Large Language Models (LLMs) into Development Environments (IDEs) has become a focal point in modern software development. LLMs such as OpenAI GPT-3.5/4 and Code Llama offer the potential to significantly augment developer productivity by serving as intelligent, chat-driven programming assistants. However, utilizing LLMs out of the box is unlikely to be optimal for any given scenario. Rather, each system requires the LLM to be honed to its set of heuristics to ensure the best performance. In this paper, we introduce the Copilot evaluation harness: a set of data and tools for evaluating LLM-guided IDE interactions, covering various programming scenarios and languages. We propose our metrics as a more robust and information-dense evaluation than previous state of the art evaluation systems. We design and compute both static and execution based success metrics for scenarios encompassing a wide range of developer tasks, including code generation from natural language (generate), documentation generation from code (doc), test case generation (test), bug-fixing (fix), and workspace understanding and query resolution (workspace). These success metrics are designed to evaluate the performance of LLMs within a given IDE and its respective parameter space. Our learnings from evaluating three common LLMs using these metrics can inform the development and validation of future scenarios in LLM guided IDEs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑