EMNLP Findings2020
Extremely Low Bit Transformer Quantization for On-Device Neural Machine Translation
Insoo Chung, Byeongwook Kim, Yoonjung Choi, Se Jung Kwon, Yongkweon Jeon, Baeseong Park, Sangha Kim, Dongsoo Lee
摘要
The deployment of widely used Transformer architecture is challenging because of heavy computation load and memory overhead during inference, especially when the target device is limited in computational resources such as mobile or edge devices. Quantization is an effective technique to address such challenges. Our analysis shows that for a given number of quantization bits, each block of Transformer contributes to translation quality and inference computations in different manners. Moreover, even inside an embedding block, each word presents vastly different contributions. Correspondingly, we propose a mixed precision quantization strategy to represent Transformer weights by an extremely low number of bits (e.g., under 3 bits). For example, for each word in an embedding block, we assign different quantization bits based on statistical property. Our quantized Transformer model achieves 11.8× smaller model size than the baseline model, with less than -0.5 BLEU. We achieve 8.3× reduction in run-time memory footprints and 3.5× speed up (Galaxy N10+) such that our proposed compression strategy enables efficient implementation for on-device NMT.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- BiQGEMM: matrix multiplication with lookup table for binary-coding-based quantized DNNs 引用了 And the Bit Goes Down: Revisiting the Quantization of Neural Networks
- BiQGEMM: matrix multiplication with lookup table for binary-coding-based quantized DNNs 引用了 Fully Quantized Transformer for Machine Translation
- FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables 引用了 BiQGEMM: matrix multiplication with lookup table for binary-coding-based quantized DNNs
- FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables 引用了 LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models
- FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up Tables 引用了 SqueezeLLM: Dense-and-Sparse Quantization
- LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models 引用了 BiQGEMM: matrix multiplication with lookup table for binary-coding-based quantized DNNs
- LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models 引用了 SqueezeLLM: Dense-and-Sparse Quantization
- Understanding Int4 Quantization for Language Models: Latency Speedup, Composability, and Failure Cases 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
引用它的顶会 Paper7
- SqueezeLLM: Dense-and-Sparse QuantizationSehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong 等ICML 2024 · 306 次引用
- LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language ModelsGunho Park, Baeseong Park, Minsub Kim, Sungjae Lee 等ICLR 2024 · 134 次引用
- Understanding Int4 Quantization for Language Models: Latency Speedup, Composability, and Failure CasesXiaoxia Wu, Cheng Li, Reza Yazdani Aminabadi, Zhewei Yao 等ICML 2023 · 41 次引用
- Mokey: enabling narrow fixed-point inference for out-of-the-box floating-point transformer modelsAli Hadi Zadeh, Mostafa Mahmoud, Ameer Abdelhadi, Andreas MoshovosISCA 2022 · 36 次引用
- FIGLUT: An Energy-Efficient Accelerator Design for FP-INT GEMM Using Look-Up TablesGunho Park, Hyeokjun Kwon, Jiwoo Kim, Jeongin Bae 等HPCA 2025 · 10 次引用
它引用的 Paper4
- HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney 等ICCV 2019 · 645 次引用
- And the Bit Goes Down: Revisiting the Quantization of Neural NetworksPierre Stock, Armand Joulin, Rémi Gribonval, Benjamin Graham 等ICLR 2020 · 157 次引用
- Fully Quantized Transformer for Machine TranslationGabriele Prato, Ella Charlaix, Mehdi RezagholizadehEMNLP Findings 2020 · 62 次引用
- BiQGEMM: matrix multiplication with lookup table for binary-coding-based quantized DNNsYongkweon Jeon, Baeseong Park, Se Jung Kwon, Byeongwook Kim 等SC 2020 · 31 次引用
相关 Paper
- Hypoformer: Hybrid Decomposition Transformer for Edge-friendly Neural Machine TranslationSunzhu Li, Peng Zhang, Guobing Gan, Xiuqing Lv 等EMNLP 2022 · 3 次引用
- CARVQ: Corrective Adaptor with Group Residual Vector Quantization for LLM Embedding CompressionDayin Gou, Sanghyun Byun, Nilesh Malpeddi, Gabrielle De Micheli 等EMNLP Findings 2025 · 1 次引用
- Lite Transformer with Long-Short Range AttentionZhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin 等ICLR 2020 · 379 次引用
- MobileQuant: Mobile-friendly Quantization for On-device Language ModelsFuwen Tan, Royson Lee, Lukasz Dudziak, Shell Xu Hu 等EMNLP Findings 2024 · 13 次引用
- 8-bit Transformer Inference and Fine-tuning for Edge AcceleratorsJeffrey Yu, Kartik Prabhu, Yonatan Urman, Robert M. Radway 等ASPLOS 2024 · 26 次引用
