atlas

Research map / Architectures and efficiency / Quantization

FlatQuant: Flatness Matters for LLM Quantization

ICML 2025 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 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 FlatQuant, a post-training W4A4 quantization method that learns per-layer Kronecker-decomposed affine transformations (with scaling and learnable clipping) to flatten weight and activation distributions, plus a fused kernel for speedup.

Problem

Low-bit (W4A4) post-training quantization of LLMs suffers from outliers in weights and activations; existing pre-quantization transformations (per-channel scaling, Hadamard rotations) do not produce sufficiently flat distributions and add inference overhead.

Approach

Learn a distinct invertible affine transformation per linear layer, parameterized as a Kronecker product of two small matrices (with SVD-based inversion), plus per-channel scaling and learnable clipping, calibrated block-wise with an MSE objective, and fuse the transformation with quantization into one Triton kernel.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add learnable transformation (ablation)FlatQuant on LLaMA-3-8B · WikiText-2perplexity: 1266.60 -> 8.50Helped
Add per-channel scaling to learnable transformation (ablation)FlatQuant on LLaMA-3-8B · WikiText-2perplexity: 8.50 -> 7.95Helped
Add learnable clipping thresholds to learnable transformation (ablation)FlatQuant on LLaMA-3-8B · WikiText-2perplexity: 8.50 -> 7.11Helped
Add per-channel scaling to learnable transformation (ablation)FlatQuant on LLaMA-3-8B · zero-shot QAaverage accuracy: 66.82 -> 67.08Helped
Add learnable clipping thresholds to learnable transformation (ablation)FlatQuant on LLaMA-3-8B · zero-shot QAaverage accuracy: 66.82 -> 70.72Helped
Use SVD with AMP for affine matrix inversion instead of FP32 training with direct inverse (ablation)FlatQuant on LLaMA-3-8B · calibrationtraining time: 2.2 hours -> 0.9 hoursHelped
Use FlatQuant instead of SpinQuant with RTNLLaMA-3-8B W4A4 · WikiText-2perplexity: 7.96 -> 6.98Helped
Use FlatQuant instead of SpinQuant with RTNLLaMA-3-8B W4A4 · C4perplexity: 13.45 -> 11.13Helped
Fuse affine transformation and quantization into a single kernelFlatQuant on LLaMA-2-7B · batch size 64 prefillspeedup: +2.30x speedupHelped
Fuse affine transformation and quantization into a single kernelFlatQuant on LLaMA-2-7B · batch size 64 decodingspeedup: +1.76x speedupHelped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2 C4

Benchmarks: WikiText-2 perplexity C4 perplexity ARC-Challenge ARC-Easy HellaSwag LAMBADA PIQA Winogrande C-Eval MMLU AIME2024 MT-Bench

Metrics: perplexity zero-shot accuracy average accuracy prefill latency speedup decoding speedup MSE

Baselines: SmoothQuant OmniQuant AffineQuant QUIK-4B QuaRot SpinQuant AWQ QuIP

Builds on: QuaRot SpinQuant SmoothQuant AffineQuant GPTQ

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