journal article·2025

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

Publisher page

Abstract

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.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Fault Detection and Control Systems · Numerical Methods and Algorithms · Adversarial Robustness in Machine Learning

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Electrical and Information Engineering, Tianjin University, Tianjin, China

Departamento de Ingeniería de Sistemas Telemáticos, Escuela Técnica Superior de Ingeniería de Telecomunicación, Universidad Politécnica de Madrid, Madrid, Spain

School of Information and Communication Engineering, University of Electronic Science and Technology of China, Chengdu, China

Department of Electrical and Computer Engineering, Northeastern University Boston, Boston, MA, USA

Funding

Natural Science Funds of China · Spanish Agencia Estatal de Investigacion · FUN4DATE · 6G-INTEGRATION-3

References (45)

Show source-provided references
1. 10.1038/nature1453910.1038/nature14539 ↗
2. Goodfellow · 2016
3. 10.1145/306538610.1145/3065386 ↗
4. Very deep convolutional networks for large-scale image recognition
5. 10.4324/9781410605337-2910.4324/9781410605337-29 ↗
6. 10.1109/CVPR.2016.9010.1109/CVPR.2016.90 ↗
7. 10.48550/ARXIV.1706.0376210.48550/ARXIV.1706.03762 ↗
8. Language models are few-shot learners
9. 10.18653/v1/2020.emnlp-demos.610.18653/v1/2020.emnlp-demos.6 ↗
10. 10.1109/TPAMI.2022.315224710.1109/TPAMI.2022.3152247 ↗
11. 10.48550/arXiv.2010.1192910.48550/arXiv.2010.11929 ↗
12. 10.1109/ICCV48922.2021.0098610.1109/ICCV48922.2021.00986 ↗
13. 10.18653/v1/P18-103110.18653/v1/P18-1031 ↗
14. Transfer learning in natural language processing tutorial
15. 10.1007/s11431-020-1647-310.1007/s11431-020-1647-3 ↗
16. BERT: Pre-training of deep bidirectional transformers for language understanding
17. 10.18653/v1/P19-145210.18653/v1/P19-1452 ↗
18. 10.1109/TNNLS.2023.326473510.1109/TNNLS.2023.3264735 ↗
19. 10.1109/TNNLS.2021.309498710.1109/TNNLS.2021.3094987 ↗
20. 10.1109/TR.2015.241027510.1109/TR.2015.2410275 ↗
21. 10.1109/TNNLS.2021.310702910.1109/TNNLS.2021.3107029 ↗
22. 10.1109/CCWC.2018.830174910.1109/CCWC.2018.8301749 ↗
23. 10.1109/ICCE-Asia.2016.780481810.1109/ICCE-Asia.2016.7804818 ↗
24. 10.1109/LATW.2019.870454810.1109/LATW.2019.8704548 ↗
25. 10.1109/ISCA.2016.3210.1109/ISCA.2016.32 ↗
26. 10.1109/ATS47505.2019.000-810.1109/ATS47505.2019.000-8 ↗
27. 10.1109/DAC.2018.846583410.1109/DAC.2018.8465834 ↗
28. Understanding error propagation in deep learning neural network (DNN) accelerators and applications
29. 10.1109/HPEC.2018.854753210.1109/HPEC.2018.8547532 ↗
30. 10.23919/DATE48585.2020.911657110.23919/DATE48585.2020.9116571 ↗
31. 10.1016/j.microrel.2022.11449810.1016/j.microrel.2022.114498 ↗
32. 10.1109/ICESS.2019.878250510.1109/ICESS.2019.8782505 ↗
33. 10.18653/v1/2020.emnlp-main.25910.18653/v1/2020.emnlp-main.259 ↗
34. 10.18653/v1/P19-158010.18653/v1/P19-1580 ↗
35. Are sixteen heads really better than one?
36. 10.18653/v1/2020.findings-emnlp.28610.18653/v1/2020.findings-emnlp.286 ↗
37. 10.18653/v1/2020.acl-main.68610.18653/v1/2020.acl-main.686 ↗
38. 10.1109/ICASSP43922.2022.974763410.1109/ICASSP43922.2022.9747634 ↗
39. 10.1109/icta56932.2022.996311910.1109/icta56932.2022.9963119 ↗
40. ApproxABFT: Approximate algorithm-based fault tolerance for vision transformers
41. 10.1109/NANO58406.2023.1023120410.1109/NANO58406.2023.10231204 ↗
42. Code from Huggingface for sentence emotion classification
43. Code from Huggingface for question & answering
44. 10.18653/v1/P18-212410.18653/v1/P18-2124 ↗
45. Exploring the limits of transfer learning with a unified text-to-text transformer