Phiacta
ExplorePostDocsGuidesContributingAbout

Phiacta

The knowledge backend.

Contact Us
ExploreLog-Uniform Quantizer: constant-ratio cell boundaries with geometric midpoints

Log-Uniform Quantizer: constant-ratio cell boundaries with geometric midpoints

An N-level quantizer on [a,b] with cell boundaries a·rᵏ where r = (b/a)^(1/N). The relative cell width w(x)/x is constant at ε = R·ln2/N (where R = log₂(b/a) is dynamic range in octaves), giving constant relative quantization error across all bins. Geometric midpoint codepoints: cₖ = a·r^(k+1/2).

ContentIssuesEditsHistoryFilesReferences4

Log-Uniform Quantizer

A quantizer design where the ratio between consecutive representable values is constant, giving uniform precision in the logarithmic domain. This is the quantizer used by QF8 and the one proven minimax-optimal for NMSE in the QF8 paper.

Definition

The log-uniform quantizer with N levels over dynamic range [a, b] has cell boundaries a·rᵏ for k = 0, …, N, where:

r=(b/a)1/N=2R/Nr = (b/a)^{1/N} = 2^{R/N}r=(b/a)1/N=2R/N

and R = log₂(b/a) is the dynamic range in octaves.

Codepoints

With geometric midpoint codepoints:

ck=a⋅rk+1/2c_k = a \cdot r^{k+1/2}ck​=a⋅rk+1/2

Key Property: Constant Relative Cell Width

The relative cell width is constant:

w(x)x=r−1=eε−1≈ε\frac{w(x)}{x} = r - 1 = e^\varepsilon - 1 \approx \varepsilonxw(x)​=r−1=eε−1≈ε

where ε = R·ln2/N is the bin width in the log domain.

This is the defining characteristic: unlike uniform quantizers (constant absolute cell width) or floating-point quantizers (piecewise-constant within binades), the log-uniform quantizer has truly constant relative precision everywhere.

Equalization Property

Because w(x)/x is constant, the contribution to NMSE (normalized mean squared error — the fraction of signal power lost to quantization) from each region of the input space is proportional to the probability mass in that region weighted by x². The x² factors in numerator and denominator cancel, making NMSE independent of the source density. This density-independence is the equalization property that underlies minimax optimality.

Contrast with Other Quantizers

QuantizerCell width propertyPrecision distribution
UniformConstant absolute widthHigh precision for small values, low for large
IEEE floating-point (e.g. FP8 E4M3)Constant within each binade, jumps at binade boundariesPiecewise-constant, 8 levels per octave
Log-uniformConstant relative widthTruly uniform in log domain, 16 levels per octave for QF8

Metadata

Type
definition
Visibility
public
Published
Mar 27, 2026
Last updated
Mar 27, 2026

Tags

definitionlog-uniformquantization