atlas

Research map / Architectures and efficiency / Quantization

Towards Next-Level Post-Training Quantization of Hyper-Scale Transformers

NeurIPS 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of ViTs · 2 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 AESPA, a learning-based weight-only PTQ method for LLMs that quantizes layer-wise but optimizes attention-wise reconstruction objectives with pre-computed statistics, achieving near block-wise accuracy at much lower cost.

Problem

Post-training quantization of hyper-scale Transformers is costly for block-wise reconstruction methods (e.g., BRECQ), while learning-free methods ignore cross-layer dependency inside attention and rely on nearest rounding, hurting low-bit accuracy.

Approach

Quantize each projection (Q, K, V) separately in a layer-wise manner, but use reconstruction objectives of the attention output (derived via first-order Taylor approximation and an upper bound) that are computed from pre-computed expectations such as E[X X^T], E[K^T K], E[Q^T Q], and E[X A^T A X^T], enabling efficient weight-rounding optimization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use attention-output reconstruction rather than layer-output reconstruction (ablation)OPT-125M quantization with layer-wise AdaRound · OPT-125M, W2A16perplexity: 160.7 -> 69.23Helped
Use attention-output reconstruction with separate layer-wise quantization rather than joint block-wise quantization (ablation)OPT-125M quantization · OPT-125M, W2A16perplexity: 60.38 -> 69.23Hurt
Use attention-output reconstruction rather than layer-output reconstruction (ablation)OPT-125M quantization with layer-wise AdaRound · OPT-125M, W3A16perplexity: 35.44 -> 32.89Helped
Use Hessian E[X A^T A X^T] instead of E[X X^T] (ablation)Z-Fold · WikiText-2, OPT-125M, INT2perplexity: 190.1 -> 146.4Helped
Use Hessian E[X A^T A X^T] instead of E[X X^T] (ablation)Z-Fold · PTB, OPT-125M, INT2perplexity: 331.6 -> 212.8Helped
Use Hessian E[X A^T A X^T] instead of E[X X^T] (ablation)Z-Fold · C4, OPT-125M, INT2perplexity: 125.3 -> 112.6Helped
Optimize a weight-rounding policy after determining quantization parameters, rather than use nearest roundingBLOOM models with INT2 quantization · WikiText-2, BLOOM-560Mperplexity: 65.45 -> 44.91Helped
Use attention-wise reconstruction and layer-wise quantization instead of layer-wise reconstruction (ablation)OPT-125M quantization · OPT-125M, W4A16perplexity: 29.51 -> 28.98Mixed
Quantize query and key projections simultaneously instead of separately (ablation)aespa on OPT-125M · OPT-125M quantizationquantization time: 3.5 hours; 44 times longer than the proposed aespaHurt
Use attention-wise reconstruction with layer-wise quantization instead of conventional layer-wise methodsaespa · LLaMA-7B, INT2 zero-shot tasksaverage accuracy: 39.97 -> 42.61Helped
Use attention-wise reconstruction with layer-wise quantization instead of block-wise Brecqaespa · WikiText-2, OPT-125M, INT2perplexity: 60.38 -> 71.18Hurt

Surprising findings

Limitations

Experimental setup

Datasets: C4

Benchmarks: WikiText-2 C4 PTB ARC HellaSwag MMLU

Metrics: perplexity zero-shot accuracy processing time FLOPs

Baselines: BRECQ OmniQuant AffineQuant OPTQ Z-Fold RTN AdaRound

Builds on: AdaRound BRECQ Z-Fold OPTQ

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