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

基于大语言模型的实时故障注入:一种智能故障测试用例生成方法

LLMs-Powered Real-Time Fault Injection: An Approach Toward Intelligent Fault Test Cases Generation

Technische Universität Clausthal(Clausthal工业大学)

Mohammad Abboush, Ahmad Hatahet, Andreas Rausch

AI总结:

本文提出一种利用大语言模型生成实时故障测试用例的方法,通过分析功能安全需求提高测试效率和安全性。

摘要:

故障注入(FI)是评估汽车软件系统(ASSs)安全性和实时验证的常用方法。根据ISO 26262标准,故障被人工引入以分析安全属性并验证安全机制。然而,当前FI方法和工具需要手动识别故障类型、位置和时间,这在系统复杂时变得昂贵且耗时。为此,本文提出一种新的大语言模型(LLMs)辅助故障测试用例(TCs)生成方法,用于实时FI测试。通过验证各种LLMs生成故障TCs的能力,证明了使用gpt-4o模型的优越性。该方法在FSRs分类和故障TCs生成方面分别达到88%和97.5%的F1分数。生成的故障TCs在硬件在环系统上实时执行,以高保真汽车系统模型作为案例研究。该方法优化了实时测试过程,降低了成本并提高了复杂安全关键ASSs的安全属性。

英文摘要:

A well-known testing method for the safety evaluation and real-time validation of automotive software systems (ASSs) is Fault Injection (FI). In accordance with the ISO 26262 standard, the faults are introduced artificially for the purpose of analyzing the safety properties and verifying the safety mechanisms during the development phase. However, the current FI method and tools have a significant limitation in that they require manual identification of FI attributes, including fault type, location and time. The more complex the system, the more expensive, time-consuming and labour-intensive the process. To address the aforementioned challenge, a novel Large Language Models (LLMs)-assisted fault test cases (TCs) generation approach for utilization during real-time FI tests is proposed in this paper. To this end, considering the representativeness and coverage criteria, the applicability of various LLMs to create fault TCs from the functional safety requirements (FSRs) has been investigated. Through the validation results of LLMs, the superiority of the proposed approach utilizing gpt-4o in comparison to other state-of-the-art models has been demonstrated. Specifically, the proposed approach exhibits high performance in terms of FSRs classification and fault TCs generation with F1-score of 88% and 97.5%, respectively. To illustrate the proposed approach, the generated fault TCs were executed in real time on a hardware-in-the-loop system, where a high-fidelity automotive system model served as a case study. This novel approach offers a means of optimizing the real-time testing process, thereby reducing costs while simultaneously enhancing the safety properties of complex safety-critical ASSs.

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

↑