Towards Fine-tuning Pre-trained Language Models with Integer Forward and Backward Propagation
Not on the map. Why?
Abstract (arXiv)
The large number of parameters of some prominent language models, such as BERT, makes their fine-tuning on downstream tasks computationally intensive and energy hungry. Previously researchers were focused on lower bit-width integer data types for the forward propagation of language models to save memory and computation. As for the backward propagation, however, only 16-bit floating-point data type has been used for the fine-tuning of BERT. In this work, we use integer arithmetic for both forward and back propagation in the fine-tuning of BERT. We study the effects of varying the integer bit-width on the model's metric performance. Our integer fine-tuning uses integer arithmetic to perform forward propagation and gradient computation of linear, layer-norm, and embedding layers of BERT. We fine-tune BERT using our integer training method on SQuAD v1.1 and SQuAD v2., and GLUE benchmark. We demonstrate that metric performance of fine-tuning 16-bit integer BERT matches both 16-bit and 32-bit floating-point baselines. Furthermore, using the faster and more memory efficient 8-bit integer data type, integer fine-tuning of BERT loses an average of 3.1 points compared to the FP32 baseline.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 17 of its 19 references that are in the map. First posted on arXiv 20 Sep 2022.
Builds on
17 of 19 references.
References · 17
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2016Layer Normalizationcited by 5,669
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2017Mixed Precision Trainingcited by 1,156
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2021I-BERT: Integer-only BERT Quantizationcited by 255
- 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 178
- 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 148
- 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 141
5 more
- 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
- 2019Towards Unified INT8 Training for Convolutional Neural Networkcited by 79
- 2019Efficient 8-Bit Quantization of Transformer Neural Machine Language Translation Modelcited by 59
- 2021Distribution Adaptive INT8 Quantization for Training CNNscited by 28
- 2022Is Integer Arithmetic Enough for Deep Learning Training?cited by 12
Built on by
Citing papers per year: 2023: 2; 2024: 1.
3 papers.
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
- 2024Bias Mitigation in Fine-tuning Pre-trained Models for Enhanced Fairness and Efficiencycited by 3
- 2023Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Modelscited by 2
- 2024Bias Mitigation in Fine-tuning Pre-trained Models for Enhanced Fairness and Efficiency1 Mar 2024
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessment19 Dec 2023
- 2023Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Models14 Dec 2023