Scholay

学术搜索 · AI 审稿 · LaTeX 协作

On the Dependability of Bidirectional Encoder Representations from Transformers (BERT) to Soft Errors

作者:Zhen Gao, Ziye Yin, Jingyan Wang, Rui Su, Jie Deng, Qiang Liu, Pedro Reviriego, Shanshan Liu, Fabrizio Lombardi · 发表于:IEEE Transactions on Nanotechnology · 年份:2025 · DOI:10.1109/tnano.2025.3531721 · 被引用次数:9 · 研究领域:Fault Detection and Control Systems、Numerical Methods and Algorithms、Adversarial Robustness in Machine Learning

Transformers are widely used in natural language processing and computer vision, and Bidirectional Encoder Representations from Transformers (BERT) is one of the most popular pre-trained transformer models for many applications. This paper studies the dependability and impact of soft errors on BERT implemented with different floating-point formats using two case studies: sentence emotion classification and question answering. Simulation by error injection is conducted to assess the impact of errors on different parts of the BERT model and different bits of the parameters. The analysis of the results leads to the following findings: 1) in both single and half precision, there is a Critical Bit (CB) on which errors significantly affect the performance of the model; 2) in single precision, errors on the CB may cause overflow in many cases, which leads to a fixed result regardless of the input; 3) in half precision, the errors do not cause overflow but they may still introduce a large accuracy loss. In general, the impact of errors is significantly larger in single-precision than half-precision parameters. Error propagation analysis is also considered to further study the effects of errors on different types of parameters and reveal the mitigation effects of the activation function and the intrinsic redundancy of BERT.