arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.05295cs.LGcs.CLcs.PF
收藏

动态存储Quantization用于高效的Transformer训练

Dynamic Stashing Quantization for Efficient Transformer Training

University of Cambridge(剑桥大学);Microsoft(微软);Imperial College London(帝国理工学院)

Guo Yang, Daniel Lo, Robert Mullins, Yiren Zhao

摘要:

大语言模型(LLM)在一系列自然语言处理(NLP)任务上表现出令人印象深刻的性能。不幸的是,LLM训练所需的大量计算和内存访问使得它们在硬件成本方面非常昂贵,因此在诸如设备上学习的用例中部署具有挑战性。在本文中,出于对LLM训练是内存受限的观察,我们提出了一种新的动态量化策略,称为动态Stashing量化(DSQ),它特别关注减少内存操作,但也享受低精度训练的其他好处,例如降低算法成本。我们对两个翻译任务(从头开始训练)和三个分类任务(微调)进行了深入的研究。与广泛用于器件上学习的标准16位定点相比,DSQ在IWSLT 17上将算术运算量减少了$20.95\times$,将DRAM操作数减少了$2.55\times$。

英文摘要:

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\times$ and the number of DRAM operations by $2.55\times$ on IWSLT17 compared to the standard 16-bit fixed-point, which is widely used in on-device learning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑