arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.04380cs.SE
收藏

有保证的基于大语言模型的软件工程

Assured LLM-Based Software Engineering

Nadia Alshahwan, Mark Harman, Inna Harper, Alexandru Marginean, Shubho Sengupta, Eddy Wang

AI总结:

本文提出有保证的基于LLM的软件工程方法,通过生成-测试与语义过滤,确保LLM改进代码不回归原属性且可验证,人类仅作最终审查。

摘要:

在本文中,我们探讨了以下问题:我们如何在不依赖人类的情况下,利用大语言模型(LLMs)改进代码,同时确保改进后的代码不会使原始代码的属性发生退化,并且以可验证、可衡量的方式改进原始代码?为解决这一问题,我们提倡“有保证的基于LLM的软件工程”(Assured LLM-Based Software Engineering),这是一种受遗传改进(Genetic Improvement)启发的生成-测试方法。有保证的LLMSE应用一系列语义过滤器,丢弃未能满足上述双重保证的代码。这克服了LLM倾向于产生幻觉(hallucinate)的潜在问题,使我们能够独立于任何人类,使用LLM生成代码。人类仅扮演最终代码审查者的角色,就像他们对其他人类工程师生成的代码所做的那样。本文概述了Mark Harman于2024年4月15日(星期一)在葡萄牙里斯本举行的“神经软件工程中的可解释性、鲁棒性与基准测试国际研讨会”上的主题演讲内容。

英文摘要:

In this paper we address the following question: How can we use Large Language Models (LLMs) to improve code independently of a human, while ensuring that the improved code - does not regress the properties of the original code? - improves the original in a verifiable and measurable way? To address this question, we advocate Assured LLM-Based Software Engineering; a generate-and-test approach, inspired by Genetic Improvement. Assured LLMSE applies a series of semantic filters that discard code that fails to meet these twin guarantees. This overcomes the potential problem of LLM's propensity to hallucinate. It allows us to generate code using LLMs, independently of any human. The human plays the role only of final code reviewer, as they would do with code generated by other human engineers. This paper is an outline of the content of the keynote by Mark Harman at the International Workshop on Interpretability, Robustness, and Benchmarking in Neural Software Engineering, Monday 15th April 2024, Lisbon, Portugal.

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

↑