mlsanityData to 14 Oct 2026

Towards Fine-tuning Pre-trained Language Models with Integer Forward and Backward Propagation

arXiv 2209.09815 ↗First posted 20 Sep 2022cs.LGcited by 3

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2016Layer Normalizationcited by 5,669
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2017Mixed Precision Trainingcited by 1,156
  7. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
  8. 2019Q8BERT: Quantized 8Bit BERTcited by 300
  9. 2021I-BERT: Integer-only BERT Quantizationcited by 255
  10. 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 178
  11. 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 148
  12. 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 141
5 more
  1. 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
  2. 2019Towards Unified INT8 Training for Convolutional Neural Networkcited by 79
  3. 2019Efficient 8-Bit Quantization of Transformer Neural Machine Language Translation Modelcited by 59
  4. 2021Distribution Adaptive INT8 Quantization for Training CNNscited by 28
  5. 2022Is Integer Arithmetic Enough for Deep Learning Training?cited by 12

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 1.

3 papers.