paper-with-me

홈 › Papers

Quantization Aware Training, ERNIE and Kurtosis Regularizer: a short empirical study

2021-06-24 · Andrea Zanetti

Pre-trained language models like Ernie or Bert are currently used in many applications. These models come with a set of pre-trained weights typically obtained in unsupervised/self-supervised modality on a huge amount of data. After that, they are fine-tuned on a specific task. Applications then use these models for inference, and often some additional constraints apply, like low power-budget or low latency between input and output. The main avenue to meet these additional requirements for the inference settings, is to use low precision computation (e.g. INT8 rather than FP32), but this comes with a cost of deteriorating the functional performance (e.g. accuracy) of the model. Some approaches have been developed to tackle the problem and go beyond the limitations of the PTO (Post-Training Quantization), more specifically the QAT (Quantization Aware Training, see [4]) is a procedure that interferes with the training process in order to make it affected (or simply disturbed) by the quantization phase during the training itself. Besides QAT, recently Intel-Habana Labs have proposed an additional and more direct way to make the training results more robust to subsequent quantization which uses a regularizer, therefore changing the loss function that drives the training procedure. But their proposal does not work out-of-the-box for pre-trained models like Ernie, for example. In this short paper we show why this is not happening (for the Ernie case) and we propose a very basic way to deal with it, sharing as well some initial results (increase in final INT8 accuracy) that might be of interest to practitioners willing to use Ernie in their applications, in low precision regime.

📄 PDF Abstract BibTeX arXiv:2106.13035

Code (0)

등록된 구현이 없습니다.

Tasks

Quantization

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
ERNIE ERNIE is a transformer-based model consisting of two stacked modules: 1) textual encoder and 2) knowledgeable encoder, which is responsible to integrate extra token-oriented…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
AWARE We propose to theoretically and empirically examine the effect of incorporating weighting schemes into walk-aggregating GNNs. To this end, we propose a simple, interpretable, and…
Weight Decay 설명 없음
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

CCQ: Convolutional Code for Extreme Low-bit Quantization in LLMs

2025-07-09 · Zhaojing Zhou, Xunchao Li, Minghao Li, Handi Zhang 외 arxiv

The rapid scaling of Large Language Models (LLMs) elevates inference costs and compounds substantial deployment barriers. While quantization to 8 or 4 bits mitigates this, sub-3-bit methods face severe accuracy, scalabil…

KurTail : Kurtosis-based LLM Quantization

2025-03-03 · Mohammad Sadegh Akhondzadeh, Aleksandar Bojchevski, Evangelos Eleftheriou, Martino Dazzi

One of the challenges of quantizing a large language model (LLM) is the presence of outliers. Outliers often make uniform quantization schemes less effective, particularly in extreme cases such as 4-bit quantization. We …

GPULanguage ModelingLanguage ModellingLarge Language Model+2

Beyond Outliers: A Study of Optimizers Under Quantization

2025-09-27 · Georgios Vlassis, Saleh Ashkboos, Alexandra Volkova, Torsten Hoefler 외 arxiv

As new optimizers gain traction and model quantization becomes standard for efficient deployment, a key question arises: how does the choice of optimizer affect model performance in the presence of quantization? Despite …

Mitigating the Impact of Outlier Channels for Language Model Quantization with Activation Regularization

2024-04-04 · Aniruddha Nrusimha, Mayank Mishra, Naigang Wang, Dan Alistarh 외

We consider the problem of accurate quantization for language models, where both the weights and activations are uniformly quantized to 4 bits per parameter, the lowest bitwidth format natively supported by GPU hardware.…

GPULanguage ModelingLanguage ModellingQuantization

Designing strong baselines for ternary neural network quantization through support and mass equalization

2023-06-30 · Edouard Yvinec, Arnaud Dapogny, Kevin Bailly

Deep neural networks (DNNs) offer the highest performance in a wide range of applications in computer vision. These results rely on over-parameterized backbones, which are expensive to run. This computational burden can …

Quantization