arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.03174cs.SEcs.AI
收藏

基于大语言模型的软件多样性对可靠性提升的有效性——一项实证研究

Effectiveness of LLM-based Software Diversity for Reliability Improvement -- an Empirical Study

University of Coimbra, CISUC/LASI(科英布拉大学,CISUC/LASI);Centre for Software Reliability(软件可靠性中心);Department of Informatics Engineering(信息工程系);Department of Computer Science(计算机科学系);City St George’s, University of London(伦敦城市圣乔治大学)

Gabriel Almeida, Ilir Gashi, Vladimir Stankovic, João R. Campos

AI总结:

研究大语言模型能否成为软件多样性的实用生成器及提升可靠性程度。通过扩展经典实证研究,对多种规范程序进行测试,探索大语言模型多样性多维度影响,结果表明其能助力可靠性提升。

摘要:

软件多样性作为降低共模故障风险的手段已被广泛研究。传统软件多样性获取成本高,而大语言模型的进展可能改变这一状况。本文将软件多样性的经典实证研究扩展到由大语言模型生成的代码,研究结果表明,结合大语言模型生成的程序,尤其是在异构环境中,可提高可靠性,尽管这部分受编程语言和生成设置的制约。

英文摘要:

Software diversity has been extensively studied as a means of reducing the risk of common-mode failures. Classic work showed that the central issue is whether failures of diversely redundant components overlap in ways that limit the reliability gains. Traditional software diversity is costly to obtain, since it requires multiple implementations as well as the corresponding validation, maintenance, and deployment effort. Recent advances in Large Language Models (LLMs) may change this. LLMs enable inexpensive code generation: they produce many candidate implementations of the same specification quickly, across different models, decoding settings, and programming languages. This raises a natural question: can LLMs serve as practical generators of software diversity, and how much reliability improvement can that diversity actually provide? In this paper, we extend classical empirical studies of software diversity in human-written programs to LLM-generated code. We study three specifications using both historical human-written programs and large pools of LLM-generated ones evaluated under a common compilation, sandboxing, and exhaustive test suite. We explore LLM diversity along multiple axes, including model family, generation temperature, and programming language. Reliability improvement is evaluated in a 1-out-of-2 configuration across both homogeneous and heterogeneous program populations, including within-LLM pairings and pairings across programming languages and across LLM-generated and human-written programs. The results show that combining LLM-generated programs, especially in heterogeneous settings, can yield reliability gains, although this is partly conditioned by the programming language and generation setting. Taken together, these findings suggest that LLMs provide a scalable source of comparatively low-cost programs whose diversity can be leveraged for reliability improvement.

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

↑