atlas

Research map / Architectures and efficiency / Quantization

OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models

ICLR 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 14 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes OmniQuant, a differentiable block-wise post-training quantization method that learns weight clipping (LWC) and equivalent transformations (LET) for LLMs, achieving near-QAT accuracy at PTQ cost.

Problem

Post-training quantization of LLMs relies on hand-crafted quantization parameters, which degrade badly in low-bit settings (W2A16, W4A4), while QAT is too costly for LLMs.

Approach

Freeze full-precision weights and learn a small set of quantization parameters with block-wise error minimization: learnable weight clipping strengths (gamma, beta) for weights and learnable channel-wise scaling/shifting equivalent transformations applied to linear layers and attention, all fusable into the quantized model so no extra parameters or compute are added at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add LWC to LET (ablation)LLaMA-7B W4A4 · LLaMA-7B W4A4average perplexity: 16.97 -> 12.87Helped
replace LET with SmoothQuant while retaining LWC (ablation)LLaMA-7B W4A4 · LLaMA-7B W4A4average perplexity: 12.87 -> 15.80Hurt
replace learnable weight clipping with grid-searched weight clipping (ablation)LET + LWC · LLaMA-7B W4A4average perplexity: 12.87 -> 15.82Hurt
remove LWC (ablation)OmniQuant · LLaMA-13B W4A4perplexity: 10.87 -> 20.75Hurt
remove LET (ablation)OmniQuant · LLaMA-13B W4A4perplexity: 10.87 -> 5.4e3Hurt
remove LET (ablation)OmniQuant · OPT-13B W4A4perplexity: 11.65 -> 7.8e3Hurt
remove channel-wise shifting from LET (ablation)OmniQuant · LLaMA-13B W4A4perplexity: 10.87 -> 11.47Hurt
remove attention transformation from LET (ablation)OmniQuant · LLaMA-13B W4A4perplexity: 10.87 -> 11.34Hurt
remove LET from [ln1, (q_proj, k_proj, v_proj)] (ablation)OmniQuant · LLaMA-7B W4A4average accuracy: 52.65 -> 46.79Hurt
initialize LET scaling as 1 instead of the standard initialization (ablation)OmniQuant · LLaMA-7B W4A4average perplexity: 12.87 -> 13.64Hurt
quantize Softmax output to 4-bit instead of 16-bit (ablation)OmniQuant · LLaMA-7B W4A4average accuracy: 52.65 -> 48.52Hurt
train LWC and LET iteratively by iteration instead of simultaneously (ablation)OmniQuant · LLaMA-7B W4A4average accuracy: 52.65 -> 50.91Hurt

Surprising findings

Limitations

Experimental setup

Datasets: WikiText2

Benchmarks: WikiText2 PTB C4 PIQA ARC BoolQ HellaSwag Winogrande Vicuna-Bench

Metrics: perplexity zero-shot accuracy win rate memory tokens/s

Baselines: RTN GPTQ AWQ SmoothQuant Outlier Suppression+ RPTQ LLM-QAT

Builds on: SmoothQuant Outlier Suppression+ GPTQ AWQ BRECQ

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy