Skip to main content
QUICK REVIEW

[论文解读] The Current Challenges of Software Engineering in the Era of Large Language Models

Cuiyun Gao, Xing Hu|arXiv (Cornell University)|Dec 19, 2024
Software System Performance and ReliabilityComputer Science被引用 3
一句话总结

本文基于与24位来自学术界和工业界的软件工程及人工智能专家的结构化讨论,识别出大语言模型时代软件工程(LLM4SE)七个领域中的26项关键挑战。挑战涵盖需求、编码到漏洞管理与模型训练等阶段,为构建可信、高效且可靠的LLM驱动的软件开发提供了全面的研究路线图。

ABSTRACT

With the advent of large language models (LLMs) in the artificial intelligence (AI) area, the field of software engineering (SE) has also witnessed a paradigm shift. These models, by leveraging the power of deep learning and massive amounts of data, have demonstrated an unprecedented capacity to understand, generate, and operate programming languages. They can assist developers in completing a broad spectrum of software development activities, encompassing software design, automated programming, and maintenance, which potentially reduces huge human efforts. Integrating LLMs within the SE landscape (LLM4SE) has become a burgeoning trend, necessitating exploring this emergent landscape's challenges and opportunities. The paper aims at revisiting the software development life cycle (SDLC) under LLMs, and highlighting challenges and opportunities of the new paradigm. The paper first summarizes the overall process of LLM4SE, and then elaborates on the current challenges based on a through discussion. The discussion was held among more than 20 participants from academia and industry, specializing in fields such as software engineering and artificial intelligence. Specifically, we achieve 26 key challenges from seven aspects, including software requirement & design, coding assistance, testing code generation, code review, code maintenance, software vulnerability management, and data, training, and evaluation. We hope the achieved challenges would benefit future research in the LLM4SE field.

研究动机与目标

  • 系统识别并分类大语言模型(LLMs)在软件开发生命周期(SDLC)中集成到软件工程(LLM4SE)时的当前挑战。
  • 应对大语言模型在软件开发中快速采用与对其局限性和风险缺乏系统性理解之间的日益扩大的差距。
  • 为研究人员和从业者提供科研路线图与可操作的见解,以提升基于LLM的软件工程的可靠性、效率与可信度。
  • 探索LLM4SE中数据准备、模型训练、评估与部署方面的特定挑战,而不仅限于应用层面的任务。

提出的方法

  • 在第九届CCF美丽湖研讨会期间,组织了一场长达四小时的主题研讨会,参与专家共24人,来自学术界与工业界,专长为软件工程与人工智能。
  • 将讨论划分为六个主题会话,覆盖SDLC的主要阶段:需求与设计、编码辅助、测试、代码审查、维护与漏洞管理。
  • 系统性地收集并分类挑战,划分为七个主题领域,特别关注应用层面与基础模型层面的问题。
  • 从技术、伦理与实践三个维度评估挑战,包括模型幻觉、可解释性、数据质量与系统复杂性。
  • 将研究发现整合为一份包含26项挑战的结构化清单,附有详细描述与真实LLM4SE应用中的实例。
  • 提出科研路线图,突出未来方向,包括改进的评估框架、动态环境中的鲁棒性,以及关键系统中的可信度。

实验结果

研究问题

  • RQ1在软件开发生命周期(SDLC)的各个阶段中,将大语言模型应用于实践的关键挑战是什么?
  • RQ2诸如模型幻觉、数据质量与系统复杂性等问题如何影响LLM生成软件的可靠性与可信度?
  • RQ3在生产系统中,使用LLM进行漏洞检测、根本原因分析与事后故障处理的主要障碍是什么?
  • RQ4如何在确保可解释性与一致性的前提下,有效训练与评估LLM以执行软件工程任务?
  • RQ5在数据准备、模型微调与评估方面,存在哪些基础性挑战,阻碍了LLM4SE在工业环境中的采纳?

主要发现

  • 共识别出LLM4SE七个领域中的26项关键挑战,涵盖需求规范、代码生成、测试、代码审查、维护、漏洞管理与模型训练。
  • 代码生成方面的挑战包括幻觉现象、自然语言与代码之间语义对齐不足,以及LLM推理能力有限。
  • 在漏洞管理方面,挑战包括检测沉默修复、从问题报告中识别漏洞,以及确保模型在多样化代码库中的泛化能力。
  • 对于软件维护,LLM在处理复杂服务依赖关系与大规模系统日志解释方面仍存在困难,尽管通过缓存与知识增强已有所改善。
  • 模型可靠性因长推理时间、高计算成本与差的可解释性而受损,尤其是在故障诊断与根本原因分析中。
  • 本研究强调亟需更优的评估框架,特别是置信度估计与外部知识集成,以减少幻觉并提升LLM4SE输出的可信度。

阅读本论文

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

在 Nubint 中阅读本论文

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