Dynamic Stashing Quantization for Efficient Transformer Training

Guo Yang, Daniel Lo, Robert Mullins, Yiren Zhao


Abstract
Large Language Models (LLMs) have demonstrated impressive performance on a range of Natural Language Processing (NLP) tasks. Unfortunately, the immense amount of computations and memory accesses required for LLM training makes them prohibitively expensive in terms of hardware cost, and thus challenging to deploy in use cases such as on-device learning. In this paper, motivated by the observation that LLM training is memory-bound, we propose a novel dynamic quantization strategy, termed Dynamic Stashing Quantization (DSQ), that puts a special focus on reducing the memory operations, but also enjoys the other benefits of low precision training, such as the reduced arithmetic cost. We conduct a thorough study on two translation tasks (trained-from-scratch) and three classification tasks (fine-tuning). DSQ reduces the amount of arithmetic operations by 20.95× and the number of DRAM operations by 2.55× on IWSLT17 compared to the standard 16-bit fixed-point, which is widely used in on-device learning.
Anthology ID:
2023.findings-emnlp.489
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2023
Month:
December
Year:
2023
Address:
Singapore
Editors:
Houda Bouamor, Juan Pino, Kalika Bali
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
7329–7336
Language:
URL:
https://aclanthology.org/2023.findings-emnlp.489
DOI:
10.18653/v1/2023.findings-emnlp.489
Bibkey:
Cite (ACL):
Guo Yang, Daniel Lo, Robert Mullins, and Yiren Zhao. 2023. Dynamic Stashing Quantization for Efficient Transformer Training. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 7329–7336, Singapore. Association for Computational Linguistics.
Cite (Informal):
Dynamic Stashing Quantization for Efficient Transformer Training (Yang et al., Findings 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.findings-emnlp.489.pdf