ALBERTA:基于算法的Transformer架构错误韧性
ALBERTA: ALgorithm-Based Error Resilience in Transformer Architectures
AI总结:
提出ALBERTA框架,通过基于校验和的错误检测保护Transformer最脆弱的GEMM层,实现高错误覆盖率(>99%)且开销极低,并支持多种GPU架构和精度。
摘要:
视觉Transformer正越来越多地部署在对可靠性要求极高的安全关键应用中。确保其在潜在错误(如瞬态硬件错误)下执行正确性至关重要。我们提出了一种新颖的基于算法的韧性框架,称为ALBERTA,该框架能够对基于Transformer的架构进行端到端的韧性分析和保护。首先,我们的工作开发了一种高效的计算和排序Transformer层韧性的流程。我们发现,由于Transformer模型规模庞大,对最脆弱层的子集应用传统网络冗余可以提供高错误覆盖率,但开销高得不可实际。为解决这一缺陷,我们提供了一种软件导向的、基于校验和的错误检测技术,旨在保护Transformer模型中使用浮点或整数算术的最脆弱的通用矩阵乘法(GEMM)层。结果表明,我们的方法对导致不匹配的错误实现了超过99%的覆盖率,计算和内存开销分别低于0.2%和0.01%。最后,我们展示了该框架在不同数值精度下的各种现代GPU架构中的适用性。我们引入了一种高效的自校正机制,用于解决错误检测问题,每个错误的平均开销低于2%。
英文摘要:
Vision Transformers are being increasingly deployed in safety-critical applications that demand high reliability. It is crucial to ensure the correctness of their execution in spite of potential errors such as transient hardware errors. We propose a novel algorithm-based resilience framework called ALBERTA that allows us to perform end-to-end resilience analysis and protection of transformer-based architectures. First, our work develops an efficient process of computing and ranking the resilience of transformers layers. We find that due to the large size of transformer models, applying traditional network redundancy to a subset of the most vulnerable layers provides high error coverage albeit with impractically high overhead. We address this shortcoming by providing a software-directed, checksum-based error detection technique aimed at protecting the most vulnerable general matrix multiply (GEMM) layers in the transformer models that use either floating-point or integer arithmetic. Results show that our approach achieves over 99% coverage for errors that result in a mismatch with less than 0.2% and 0.01% computation and memory overheads, respectively. Lastly, we present the applicability of our framework in various modern GPU architectures under different numerical precisions. We introduce an efficient self-correction mechanism for resolving erroneous detection with an average of less than 2% overhead per error.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。