atlas

Research map / Architectures and efficiency / Quantization

AffineQuant: Affine Transformation Quantization for Large Language Models

ICLR 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 1 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 AffineQuant, a PTQ method for LLMs that learns an invertible affine transformation (with translation) per linear layer, kept invertible via a gradual mask grounded in the Levy-Desplanques theorem.

Problem

Existing equivalent-transformation PTQ methods for LLMs restrict optimization to scaling (and shifting) between pre- and post-quantization weights, leaving large quantization error especially at low bit widths and small models.

Approach

Generalizes scale/shift equivalent transforms to a full learnable affine matrix A applied as A·W with A^{-1} on activations, and keeps A strictly diagonally dominant (hence invertible) during optimization by gradually unfreezing off-diagonal elements via a gradual mask with stability factor alpha.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace diagonal-only scaling with learnable affine transformationAffineQuant on LLaMA2-7B · C4, W4A4perplexity: 18.02 -> 15.76Helped
replace diagonal-only scaling with learnable affine transformationAffineQuant on LLaMA-30B · six zero-shot tasks, W4A4average accuracy: 56.63 -> 58.61Helped
use gradual mask rather than updating all affine-matrix parameters from the outset (ablation)AffineQuant on OPT-125M · WikiText2, w3a16perplexity: 53.52 -> 32.10Helped
use gradual mask rather than updating all affine-matrix parameters from the outset (ablation)AffineQuant on OPT-125M · C4, w3a16perplexity: 62.17 -> 29.97Helped
use gradual mask (ablation)AffineQuant on LLaMA-7B · WikiText2, w2a16perplexity: NaN -> 9.53Helped
use gradual mask (ablation)AffineQuant on LLaMA-7B · C4, w2a16perplexity: NaN -> 14.89Helped
decrease the stability factor α toward 1e-4 (ablation)AffineQuant on OPT-125M · WikiText2, w2a16g128perplexity: 42.08 -> 76.78Hurt
use double precision instead of float precision (ablation)AffineQuant on OPT-125M · w2a16g64perplexity: 42.91 -> 42.43Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText2 C4 PTB

Benchmarks: WikiText2 C4 PTB PIQA ARC-e WinoGrande BoolQ ARC-c HellaSwag

Metrics: perplexity zero-shot accuracy average accuracy merge error memory utilization runtime

Baselines: RTN GPTQ AWQ OmniQuant SmoothQuant FlexRound

Builds on: OmniQuant SmoothQuant AWQ Outlier Suppression+ Levy-Desplanques theorem

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