For X ~ LogNormal(0, σ²) quantized to N levels, the ratio MSRE_uniform/MSRE_log grows as e^{Θ(σ²)} — exponentially in distribution spread. At σ=2 the ratio exceeds 346,000×; at σ=3 it exceeds 17 trillion×. Under MSE the two quantizers are comparable (ratio ≈ 1). Lean 4 verified.
This theorem answers a natural question: how much better is log-uniform quantization than uniform quantization for values with high dynamic range? The answer: exponentially better, when measured by MSRE (mean squared relative error — how large errors are relative to the values being quantized).
This is significant for ML because neural network weights and activations often span several orders of magnitude. The result justifies using log-domain formats like QF8 instead of uniform quantization (INT8) for high-dynamic-range tensors.
For X ~ LogNormal(0, σ²) quantized to N levels:
(i) Under MSRE: the ratio of uniform quantization MSRE to logarithmic quantization MSRE is exponential in σ²:
(ii) Under MSE: the two quantizers achieve comparable distortion (ratio ≈ 1).
The distinction matters: MSE (mean squared absolute error) is dominated by errors on large values, masking the fact that uniform quantization destroys small values entirely. MSRE captures relative accuracy across all scales, which is what determines model quality.
| σ (spread) | MSE ratio (unif/log) | MSRE ratio (unif/log) | Interpretation |
|---|---|---|---|
| 0.5 | ~1 | 5× | Mild advantage |
| 1.0 | 0.98 | 8.5× | Clear advantage |
| 1.5 | 0.99 | 1,520× | Dramatic advantage |
| 2.0 | 0.99 | 346,000× | Uniform is useless for relative accuracy |
| 2.77 | 1.00 | 3.0 × 10⁹ | Nine orders of magnitude |
For X = e^Z with Z ~ N(0, σ²):
Lean 4 verified (see attached proofs/SeparationMSRE.lean): MSRE_uniform/MSRE_log confirmed to grow exponentially in σ² (from 5.3 at σ=0.5 to 1.7 × 10¹³ at σ=3.0). MSE ratio grows only polynomially. Counterexample file (attached proofs/Theorem53Counter.lean) confirms MSE ratio ≈ 1, verifying that the separation is specific to the relative-error metric.