arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.07080cs.HC
收藏

程序员的助手:与软件开发用大语言模型的对话交互

The Programmer's Assistant: Conversational Interaction with a Large Language Model for Software Development

Steven I. Ross, Fernando Martinez, Stephanie Houde, Michael Muller, Justin D. Weisz

摘要:

大语言模型(LLM)最近已经应用于软件工程中以执行诸如在程序设计语言之间翻译代码、从自然语言生成代码以及在编写代码时自动完成代码的任务。当在开发工具中使用时,这些系统通常将每个模型调用独立于所有先前的调用进行处理,并且在用户界面中仅公开特定的有限功能。这种用户交互的方法错过了用户更深入地参与模型的机会,因为用户之前的交互的上下文以及他们的代码的上下文通知了模型的响应。我们开发了一个原型系统-程序员的助手-为了探索基于代码的会话交互的实用性,以及软件工程师对与代码流畅的LLM对话而不是调用的想法的接受程度。通过对42名具有不同编程经验水平的参与者的评估,我们发现我们的系统能够进行扩展的多轮讨论,并且它能够从LLM中获得代码生成之外的其他知识和能力。尽管最初对会话编程帮助的期望持怀疑态度,但参与者对助理能力的广度,其响应的质量及其提高生产力的潜力印象深刻。我们的工作展示了与LLM进行对话互动的独特潜力,用于软件开发等共同创造过程。

英文摘要:

Large language models (LLMs) have recently been applied in software engineering to perform tasks such as translating code between programming languages, generating code from natural language, and autocompleting code as it is being written. When used within development tools, these systems typically treat each model invocation independently from all previous invocations, and only a specific limited functionality is exposed within the user interface. This approach to user interaction misses an opportunity for users to more deeply engage with the model by having the context of their previous interactions, as well as the context of their code, inform the model's responses. We developed a prototype system -- the Programmer's Assistant -- in order to explore the utility of conversational interactions grounded in code, as well as software engineers' receptiveness to the idea of conversing with, rather than invoking, a code-fluent LLM. Through an evaluation with 42 participants with varied levels of programming experience, we found that our system was capable of conducting extended, multi-turn discussions, and that it enabled additional knowledge and capabilities beyond code generation to emerge from the LLM. Despite skeptical initial expectations for conversational programming assistance, participants were impressed by the breadth of the assistant's capabilities, the quality of its responses, and its potential for improving their productivity. Our work demonstrates the unique potential of conversational interactions with LLMs for co-creative processes like software development.

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

↑