atlas

Research map / Large language models / Language, safety and interpretability

What Makes Quantization for Large Language Model Hard? An Empirical Study from the Lens of Perturbation

AAAI 2024 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 6 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.

Studies LLM post-training uniform quantization through a "lens of perturbation" using artificial perturbations, then proposes a simple non-uniform quantization (x^{1/3} transform before uniform quantization) that reduces degradation at W4A16 and W8A8.

Problem

Understanding why zero-shot post-training uniform quantization degrades LLM performance, especially for activations, and how to make LLM quantization more robust.

Approach

View quantization as additive perturbations to weights and activations; artificial perturbation experiments show larger-magnitude values tolerate larger perturbations while smaller values are sensitive, motivating a non-uniform quantizer that applies a nonlinear transform (x^{1/3}) before uniform quantization and its inverse afterward.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use non-uniform rather than uniform 8-bit weight-and-activation quantizationLLaMA-7B · Wikitext-2perplexity: 100.81 -> 22.28Helped
Use non-uniform rather than uniform 8-bit weight-and-activation quantizationLLaMA-7B · C4perplexity: 20.05 -> 7.68Helped
Use non-uniform rather than uniform 8-bit weight-and-activation quantizationLLaMA-7B · Lambadaaccuracy: 86.03 -> 88.52Helped
Use non-uniform rather than uniform 4-bit weight quantizationLLaMA-7B · Wikitext-2perplexity: 25.05 -> 20.92Helped
Use non-uniform rather than uniform 4-bit weight quantizationLLaMA-7B · C4perplexity: 9.12 -> 8.23Helped
Use non-uniform rather than uniform 4-bit weight quantizationLLaMA-7B · MMLU 4-shotaverage score: 33.92 -> 35.83Helped
Use non-uniform rather than uniform 4-bit weight quantizationLLaMA-7B · Wikitext-2 and C4perplexity: Wikitext-2: 20.92 vs 20.77; C4: 8.23 vs 8.03Mixed
Make perturbation magnitude positively correlated with value magnitudeBLOOM and LLaMA models · LambadaaccuracyHelped
Make perturbation magnitude negatively correlated with value magnitudeBLOOM and LLaMA models · LambadaaccuracyHurt
Change the perturbation sampling distribution among Gaussian, uniform, and RademacherBLOOM and LLaMA models · LambadaaccuracyNo clear effect
Clip values above the thresholdLLMs · Lambada, Wikitext-2, and C4performanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: Lambada Wikitext-2 C4 MMLU

Benchmarks: Lambada Wikitext-2 C4 MMLU

Metrics: accuracy perplexity

Baselines: RTN (uniform quantization) GPTQ AWQ

Builds on: LLM.int8() GPTQ AWQ

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