Skip to main content
QUICK REVIEW

[论文解读] Large Language Models for Software Engineering: Survey and Open Problems

Angela Fan, Beliz Gokkaya|arXiv (Cornell University)|Oct 5, 2023
Software Engineering ResearchComputer Science被引用 31
一句话总结

对大语言模型(LLMs)在软件工程中的应用进行综述,概述机会、未解问题,以及需要混合的 SE–LLM 方法以确保可靠性与评估。

ABSTRACT

This paper provides a survey of the emerging area of Large Language Models (LLMs) for Software Engineering (SE). It also sets out open research challenges for the application of LLMs to technical problems faced by software engineers. LLMs' emergent properties bring novelty and creativity with applications right across the spectrum of Software Engineering activities including coding, design, requirements, repair, refactoring, performance improvement, documentation and analytics. However, these very same emergent properties also pose significant technical challenges; we need techniques that can reliably weed out incorrect solutions, such as hallucinations. Our survey reveals the pivotal role that hybrid techniques (traditional SE plus LLMs) have to play in the development and deployment of reliable, efficient and effective LLM-based SE.

研究动机与目标

  • 调查LLMs在软件工程中的新兴应用,覆盖编码、需求、设计、修复、重构、性能、文档和分析。
  • 确定关键挑战(如幻觉、oracle 问题)以及在可靠的基于LLM的SE中自动化测试和回归 oracle 的作用。
  • 强调将传统SE技术与LLMs相结合的混合架构在可靠部署中的价值。
  • 讨论提示、解释与评估方法学,以实现基于LLM的软件工程的稳健科学评估。

提出的方法

  • 回顾并综合现有关于在多种 SE 活动中使用 LLMs 的文献。
  • 将 LLM 分类(仅编码器、编码器-解码、仅解码器)以及带示例与参数的代码生成模型进行分类。
  • 讨论在需求工程、设计和代码生成中通过 LLMs 的开放问题与机会。
  • 考察提示工程、输出解释以及混合方法作为更可靠的 SE 解决方案的途径。
  • 解决经验评估问题,包括基于LLM的代码生成的正确性、鲁棒性、确定性和安全性。
Figure 1: A mapping between software development activities, research domains, and the paper structure
Figure 1: A mapping between software development activities, research domains, and the paper structure

实验结果

研究问题

  • RQ1LLMs 被应用于哪些主要的软件工程任务?它们的有效性有哪些证据?
  • RQ2在将 LLM 应用于 SE 时存在哪些关键的未解问题和研究空白,包括幻觉、评估和 oracle 挑战?
  • RQ3如何设计混合的 SE–LLM 方法以提高 SE 任务的可靠性、鲁棒性和性能?
  • RQ4提示工程与解释生成在改善基于 LLM 的 SE 结果中扮演何种角色?
  • RQ5考虑执行中的非确定性及变异性,应如何对基于 LLM 的 SE 进行科学评估?

主要发现

  • LLMs 使从编码到文档和分析的广泛 SE 应用成为可能,但新兴属性引入了可靠性挑战。
  • 自动回归 oracle 与传统测试技术是验证 LLM 生成的 SE 成果的核心;提示工程与解释是活跃的研究领域。
  • 代码生成与完成显示出快速进展;混合方法(计划、API 搜索、测试生成与排序)可提升结果。
  • 对基于 LLM 的代码生成的经验评估强调正确性、鲁棒性、确定性与安全性方面的担忧,需要来自 SBSE 和经验SE 的成熟评估方法。
  • 越来越多的证据表明混合系统和人在环的方法有助于缓解幻觉并确保安全部署。
Figure 2: Trends in number of arXiv preprints. The blue line denotes the number of preprints categorised under “CS”. The orange line denotes the number of preprints in AI (cs.AI), Machine Learning (cs.LG), Neural and Evolutionary Computing (cs.NE), Software Engineering (cs.SE), and Programming Langu
Figure 2: Trends in number of arXiv preprints. The blue line denotes the number of preprints categorised under “CS”. The orange line denotes the number of preprints in AI (cs.AI), Machine Learning (cs.LG), Neural and Evolutionary Computing (cs.NE), Software Engineering (cs.SE), and Programming Langu

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。