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
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.
Generative AI and Empirical Software Engineering: A Paradigm Shift
School of Computing(计算学院);Information Systems Singapore Management University Singapore, Singapore(信息系统新加坡管理大学新加坡);Department of Computer Science University of Victoria Victoria, Canada(计算机科学系维多利亚大学加拿大)
Does LLM Alignment Really Need Diversity? An Empirical Study of Adapting RLVR Methods for Moral Reasoning
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Microsoft Research(微软研究院);University of Michigan(密歇根大学);Shanghai Jiao Tong University(上海交通大学);CUHKSZ(香港中文大学(深圳));THU(清华大学)
Hidden Figures in Software Engineering: A Replication Study Exploring Undergraduate Software Students' Awareness of Distinguished Scientists from Underrepresented Groups
On the Diversity of Software Package Popularity Metrics: An Empirical Study of npm
软件系统通常利用开源软件库来重用功能。这样的库可以通过软件包管理器(如JavaScript的npm)轻松获得。由于在这样的包分发中可用的包的巨大数量,开发者通常基于其流行度来决定依赖于或贡献于软件包。此外,研究人员通常依赖流行度指标进行数据采样并为他们的研究选择合适的候选人。然而,受欢迎程度的含义是相对的,可以以多种方式定义和测量,即使在考虑相同的研究时,也可能产生不同的结果。在本文中,我们展示了在软件工程研究中流行的意义是如何不同的证据。此外,我们实证分析了不同的软件流行性措施之间的关系。作为一个案例研究,对于175 k npm包的大型数据集,我们从三个开源跟踪系统(libraries.io,npmjs.com和GitHub)中计算并提取了9个不同的流行度指标。我们发现,实际上流行度可以用不同的无关指标来衡量,每个指标都可以在特定的上下文中定义。这表明需要一个通用的框架,将使用一个投资组合的流行度度量从不同的概念。
CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Tasks
IBM Research(IBM研究院);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);IBM Worldwide Ecosystems(IBM全球生态系统)
在过去的几十年里,软件已经融入了我们社会的各个方面。随着软件开发的激增和企业应用程序的代码基础设施的老化,现在比以往任何时候都更重要的是提高软件开发生产力和现代化遗留应用程序。深度学习和机器学习算法的进步实现了许多突破,激励研究人员利用人工智能技术来提高软件开发效率。因此,快速崛起的AI for Code研究领域已经引起了新的兴趣并获得了动力。在本文中,我们提出了一个大规模数据集CodeNet,由超过1400万个代码样本和55种不同程序设计语言的约5亿行代码组成,旨在教AI编码。除了规模庞大之外,CodeNet还拥有丰富的高质量注释集,可以对各种关键编码任务进行基准测试,并帮助加速AI技术的研究,包括代码相似性和分类,各种程序设计语言之间的代码翻译,以及代码性能(运行时和内存)改进技术。此外,CodeNet为98.5%的代码样本提供了样本输入和输出测试集,这些测试集可以用作确定代码正确性的预言,并可能指导强化学习提高代码质量。作为一个可用性功能,我们在CodeNet中提供了几个预处理工具,将源代码转换为可以随时用作机器学习模型输入的表示。使用CodeNet数据集的代码分类和代码相似性实验的结果作为参考。我们希望CodeNet的规模,多样性和丰富,高质量的注释将在人工智能和软件工程的交叉点提供前所未有的研究机会。
Empirical Study of Phased Model of Software Change
软件变更是软件演化和维护的基本任务。PMSC(Phased Model for Software Change)是一个软件变更的过程模型,它是在代码中本地化的。它由几个阶段组成,涵盖了程序理解和代码修改。本文提出了一个实证研究的制定私营军事和安保服务公司,加强了使用工具JRipples。受试者是具有不同程度编程经验的研究生。实证研究结果表明,程序员与知识的PMSC和支持JRipples执行完善的软件变化,在不熟悉的软件在显着更少的时间(约一半的时间)比独立的程序员。在代码理解和实施工作方面都有了实质性的时间改进。
Diversity Drives Fairness: Ensemble of Higher Order Mutants for Intersectional Fairness of Machine Learning Software
Nanyang Technological University(南洋理工大学);Peking University(北京大学);King’s College London(伦敦国王学院);University College London(伦敦大学学院);China-Singapore International Joint Research Institute(中新国际联合研究院)