atlas

Research map / Architectures and efficiency / Quantization

IM-Unpack: Training and Inference with Arbitrarily Low Precision Integers

ICML 2024 · Architectures and efficiency › Quantization · approach: Low-precision training formats · 0 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.

Shows that round-to-nearest integer GEMMs reach near-full-precision parity for Transformer inference and training, and proposes IM-Unpack, which unpacks out-of-range "heavy hitter" integers into larger matrices so that exact GEMMs can run purely on arbitrarily low bit-width integers.

Problem

Low bit-width integer GEMMs are efficient but suffer large rounding errors because a few heavy-hitter entries in Transformer matrices far exceed the representable range of low bit-width integers, hurting both inference and training.

Approach

Decompose out-of-bound integer entries into multiple in-bound low bit-width integers by row/column unpacking (chosen per matrix via outlier counts), so the original integer GEMM is reproduced exactly using only low bit-width integer GEMMs followed by bit-shift scaling and accumulation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use RTN with β=15 for linear-layer computations instead of full precisionLLaMA-7B · Zero-shot ARC-caccuracy: 43.1 -> 43.0No clear effect
Use RTN with β=15 for all GEMMs instead of full precisionLLaMA-7B · Zero-shot ARC-caccuracy: 43.1 -> 44.0Helped
Train with RTN quantized GEMMs using β=31† instead of FP32ViT-Small · ImageNet validationtop-1 accuracy: 78.91 -> 79.33Helped
Train with RTN quantized GEMMs using β=31 instead of FP32RoBERTa-Small · Validationlog perplexity: 1.869 -> 1.840Helped
Fine-tune with RTN quantized GEMMs using β=31 instead of BF16T5-Large · XSum validationRouge2: 13.00 -> 13.83Helped
Increase β from 5 to 15 for linear-layer RTN (ablation)LLaMA-7B · Zero-shot ARC-caccuracy: 39.3 -> 43.0Helped
Restrict all values to the β=255 representable range (p=100%) instead of quantizing at p=95%, β=31 (ablation)LLaMA-7B · Zero-shot ARC-caccuracy: 43.4 -> 35.8Hurt
Clip outliers at the 99.5-percentile instead of quantizing at p=95%, β=31 (ablation)LLaMA-7B · Zero-shot ARC-caccuracy: 43.4 -> 21.4Hurt
Use row unpacking for both matrices rather than Mix (ablation)IM-Unpack on LLaMA-7B · Linear-layer GEMMs, β=15 and b=5unpack ratio: 1.06 -> 2.02Hurt
Use row unpacking for A and column unpacking for B rather than Mix (ablation)IM-Unpack on LLaMA-7B · Linear-layer GEMMs, β=15 and b=5unpack ratio: 1.06 -> 5.36Hurt
Use column unpacking for A and row unpacking for B rather than Mix (ablation)IM-Unpack on LLaMA-7B · Linear-layer GEMMs, β=15 and b=5unpack ratio: 1.06 -> 1.64Hurt
Use column unpacking for both matrices rather than Mix (ablation)IM-Unpack on LLaMA-7B · Linear-layer GEMMs, β=15 and b=5unpack ratio: 1.06 -> 4.01Hurt

Surprising findings

Limitations

Experimental setup

Datasets: English Wikipedia ImageNet XSum ARC-c ARC-e BoolQ HellaSwag PIQA WinoGrande

Benchmarks: ARC-c ARC-e BoolQ HellaSwag PIQA WinoGrande ImageNet

Metrics: zero-shot accuracy top-1 accuracy validation log perplexity unpack ratio ROUGE loss

Baselines: LLM.int8() SmoothQuant LLM-QAT LLM-FP4 FQ-ViT I-ViT PTQ4ViT APQ-ViT RepQ-ViT GPTQ QuIP

Builds on: LLM.int8() SmoothQuant RoBERTa ViT

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