Skip to content
nonconvexcard

The true bit width of a group-quantized format

NumericalFoundation⏱ 15 minQuantizationgroup quantizationoverheadhonesty

Problem

A "4-bit" weight format stores one FP16 scale and one FP16 zero point per group of gg weights. Compute the true average bits per weight for g=32,64,128g = 32, 64, 128, and for a variant storing only a scale. Comment on what this means for comparing published compression ratios.

Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
The round-trip error boundQuantizationProofFoundation15 min
Six decibels per bit, and what outliers costQuantizationNumericalBeginner30 min
The Δ²/12 noise varianceQuantizationProofBeginner15 min
Optimal clipping for a Laplace-distributed tensorQuantizationProofAdvanced1 hour