paper-with-me

Papers

Extremely Low Bit Transformer Quantization for On-Device Neural Machine Translation

2020-09-16 · Findings of the Association for Computational Linguistics 2020 · 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$\times$ smaller model size than the baseline model, with less than -0.5 BLEU. We achieve 8.3$\times$ reduction in run-time memory footprints and 3.5$\times$ speed up (Galaxy N10+) such that our proposed compression strategy enables efficient implementation for on-device NMT.

📄 PDF Abstract BibTeX arXiv:2009.07453

Code (0)

등록된 구현이 없습니다.

Tasks

Machine TranslationNMTQuantizationTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

Neural Machine Translation with 4-Bit Precision and Beyond

2019-09-13 · Alham Fikri Aji, Kenneth Heafield

Neural Machine Translation (NMT) is resource intensive. We design a quantization procedure to compress NMT models better for devices with limited hardware capability. Because most neural network parameters are near zero,…

Machine TranslationNMTQuantizationTranslation

Compressing Neural Machine Translation Models with 4-bit Precision

2020-07-01 · WS 2020 7 · Alham Fikri Aji, Kenneth Heafield

Neural Machine Translation (NMT) is resource-intensive. We design a quantization procedure to compress fit NMT models better for devices with limited hardware capability. We use logarithmic quantization, instead of the m…

Machine TranslationNMTQuantizationTranslation

Fully Quantized Transformer for Machine Translation

2019-10-17 · Findings of the Association for Computational Linguistics 2020 · Gabriele Prato, Ella Charlaix, Mehdi Rezagholizadeh

State-of-the-art neural machine translation methods employ massive amounts of parameters. Drastically reducing computational costs of such methods without affecting performance has been up to this point unsuccessful. To …

Machine TranslationQuantizationTranslation

Pieces of Eight: 8-bit Neural Machine Translation

2018-04-13 · NAACL 2018 6 · Jerry Quinn, Miguel Ballesteros

Neural machine translation has achieved levels of fluency and adequacy that would have been surprising a short time ago. Output quality is extremely relevant for industry purposes, however it is equally important to prod…

Machine TranslationQuantizationTranslation

HQ-DiT: Efficient Diffusion Transformer with FP4 Hybrid Quantization

2024-05-30 · Wenxuan Liu, Sai Qian Zhang

Diffusion Transformers (DiTs) have recently gained substantial attention in both industrial and academic fields for their superior visual generation capabilities, outperforming traditional diffusion models that use U-Net…

Quantization