SENAI:迈向软件工程原生的生成式人工智能
SENAI: Towards Software Engineering Native Generative Artificial Intelligence
AI总结:
针对现有代码生成大模型忽略软件工程基础原则的问题,本文提出将软件工程知识融入大模型,并基于布鲁姆分类法构建评估框架,推动软件工程原生生成式AI发展。
摘要:
大语言模型(Large Language Models,LLM)已极大推动了代码生成领域的发展,展现出生成功能正确的代码片段的能力。然而,面向代码的生成式AI的进展忽略了软件工程(Software Engineering,SE)的基础原则,如模块化、单一职责,以及内聚、耦合等对构建可维护、可扩展、健壮的软件系统至关重要的概念。从预训练到使用基准测试进行评估的全流程管线中,均缺失这些概念。\n本愿景论文主张将SE知识整合到LLM中,以提升其遵循既定SE知识理解、分析、生成代码及其他SE制品的能力。研究旨在提出一个新方向,让LLM超越单纯的功能准确性,执行需要遵循SE原则和最佳实践的生成任务。此外,鉴于这些对话式模型的交互特性,我们提出使用Bloom's Taxonomy(布鲁姆分类法)作为框架,评估其内化SE知识的程度。与线性探测等现有方法相比,所提出的评估框架提供了一种合理且更全面的评估技术。软件工程原生的生成式模型不仅将克服当前模型存在的缺陷,还将为下一代能够处理现实世界软件工程任务的生成式模型铺平道路。
英文摘要:
Large Language Models have significantly advanced the field of code generation, demonstrating the ability to produce functionally correct code snippets. However, advancements in generative AI for code overlook foundational Software Engineering (SE) principles such as modularity, and single responsibility, and concepts such as cohesion and coupling which are critical for creating maintainable, scalable, and robust software systems. These concepts are missing in pipelines that start with pre-training and end with the evaluation using benchmarks. This vision paper argues for the integration of SE knowledge into LLMs to enhance their capability to understand, analyze, and generate code and other SE artifacts following established SE knowledge. The aim is to propose a new direction where LLMs can move beyond mere functional accuracy to perform generative tasks that require adherence to SE principles and best practices. In addition, given the interactive nature of these conversational models, we propose using Bloom's Taxonomy as a framework to assess the extent to which they internalize SE knowledge. The proposed evaluation framework offers a sound and more comprehensive evaluation technique compared to existing approaches such as linear probing. Software engineering native generative models will not only overcome the shortcomings present in current models but also pave the way for the next generation of generative models capable of handling real-world software engineering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。