将故障注入大规模应用于PyTorch模型——PyTorchFI的扩展以实现验证效率
Large-Scale Application of Fault Injection into PyTorch Models -- an Extension to PyTorchFI for Validation Efficiency
AI总结:
本文提出基于PyTorchFI的PyTorchALFI框架,支持大规模、可复用且高效的故障注入测试,以量化神经网络对硬件故障的容忍度与静默数据错误,从而提升验证效率并融入机器学习开发流程。
摘要:
硬件中的瞬态或永久性故障可能导致神经网络(NN)的输出出错,且不留下用户可追踪的错误痕迹,即静默数据错误(SDE)。另一方面,现代神经网络也具有固有的冗余性,能够容忍特定故障。为了建立安全论证,有必要区分并量化这两种类型的损坏。为了研究硬件(HW)故障对软件(SW)的总体影响,尤其是对神经网络模型的影响,近年来已经建立了多种故障注入(FI)方法。当前的故障注入方法侧重于注入故障的方法论,但往往无法满足大规模故障注入测试的需求,即需要在短时间内分析基于特定故障模型的大量故障位置。测试结果需要简洁、可重复且具有可比性。为了满足这些要求,并使故障注入成为机器学习开发周期中的默认组成部分,我们引入了一个名为PyTorchALFI(面向PyTorch的应用级故障注入)的新型故障注入框架,该框架基于PyTorchFI构建。PyTorchALFI提供了一种高效的方式来定义随机生成且可复用的故障集合并将其注入PyTorch模型,能够定义复杂的测试场景、增强数据集并生成测试关键绩效指标(KPI),同时将无故障、有故障和修改后的神经网络紧密耦合。在本文中,我们详细介绍了测试场景的定义、软件架构,并给出了若干示例,说明如何使用这一新框架对故障位置和数量进行迭代更改、比较不同的模型修改以及分析测试结果。
英文摘要:
Transient or permanent faults in hardware can render the output of Neural Networks (NN) incorrect without user-specific traces of the error, i.e. silent data errors (SDE). On the other hand, modern NNs also possess an inherent redundancy that can tolerate specific faults. To establish a safety case, it is necessary to distinguish and quantify both types of corruptions. To study the effects of hardware (HW) faults on software (SW) in general and NN models in particular, several fault injection (FI) methods have been established in recent years. Current FI methods focus on the methodology of injecting faults but often fall short of accounting for large-scale FI tests, where many fault locations based on a particular fault model need to be analyzed in a short time. Results need to be concise, repeatable, and comparable. To address these requirements and enable fault injection as the default component in a machine learning development cycle, we introduce a novel fault injection framework called PyTorchALFI (Application Level Fault Injection for PyTorch) based on PyTorchFI. PyTorchALFI provides an efficient way to define randomly generated and reusable sets of faults to inject into PyTorch models, defines complex test scenarios, enhances data sets, and generates test KPIs while tightly coupling fault-free, faulty, and modified NN. In this paper, we provide details about the definition of test scenarios, software architecture, and several examples of how to use the new framework to apply iterative changes in fault location and number, compare different model modifications, and analyze test results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。