atlas

Research map / Architectures and efficiency / Quantization

SpinQuant: LLM Quantization with Learned Rotations

ICLR 2025 · Architectures and efficiency › Quantization · approach: Post-training quantization of 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.

Learns orthogonal rotation matrices (via Cayley SGD on the Stiefel manifold) that are absorbed into LLM weights to remove outliers, substantially improving 4-bit weight/activation/KV-cache post-training quantization.

Problem

Post-training quantization of LLM weights, activations, and KV cache to low bit-widths suffers large errors from outliers; random rotations help but their quantization outcome varies widely (up to 13 points) across random draws.

Approach

Insert rotation matrices R1/R2 that are rotationally invariant in full precision (absorbed into weights, plus online Hadamard R3/R4 for extreme quantization), and optimize them with Cayley SGD on the Stiefel manifold to minimize the quantized network's task loss, rather than using random rotations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace random Hadamard R1,R2 with learned R1,R2 (ablation)SpinQuant on LLaMA-3.2 3B · W4A4KV4 zero-shot commonsense averageaccuracy: 49.6 -> 52.9Helped
Replace random Hadamard R1,R2,R3,R4 with learned rotations (ablation)SpinQuant on Mistral-7B · W4A4KV4 zero-shot commonsense averageaccuracy: 52.4 -> 68.6Helped
Add online Hadamard rotations R3,R4 to learned R1,R2 (ablation)SpinQuant on LLaMA-2 7B · W4A4KV4 zero-shot commonsense averageaccuracy: 56.0 -> 64.0Helped
Optimize rotations using activations-only quantization rather than weights-and-activations quantization (ablation)SpinQuant on LLaMA-2 7B · W4A4KV4 zero-shot commonsense averageaccuracy: 60.9 $_{\pm 0.6}$ -> 64.0 $_{\pm 0.3}$Helped
Optimize rotations with Cayley SGD rather than leave them random (ablation)SpinQuant on LLaMA-2 7B · W4A4 zero-shot commonsense averageaccuracy: 58.7 $_{\pm 1.0}$ -> 61.5 $_{\pm 0.3}$Helped
Initialize Cayley optimization with floating-point instead of Hadamard rotations (ablation)SpinQuant on LLaMA-2 7B · W4A4 zero-shot commonsense averageaccuracy: 61.5 $_{\pm 0.3}$ vs 61.5 $_{\pm 0.8}$No clear effect
Add online Hadamard rotations (ablation)SpinQuant on LLaMA-3 8B · W4A8 decodinglatency: 58.88 ms/token -> 63.90 ms/tokenHurt
Use optimized rotations instead of QuaRot rotationsSpinQuant + GPTQ on LLaMA-3 8B · W4A4KV4 zero-shot commonsense averageaccuracy: 63.3 -> 65.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2

Benchmarks: BoolQ PIQA SIQA HellaSwag WinoGrande ARC-easy ARC-challenge OpenBookQA WikiText-2 perplexity

Metrics: zero-shot accuracy average perplexity

Baselines: RTN SmoothQuant LLM-QAT GPTQ OmniQuant AWQ QuIP# QuaRot

Builds on: QuaRot SliceGPT Cayley SGD GPTQ LLM-QAT

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