Abstract
Neural-based image and video compression models offer superior performance but face challenges in hardware implementation due to the high-precision requirements of entropy coding. This paper proposes a novel parameterization of probability distributions by transforming the standard deviation parameter ($\sigma$) into a new space ($u$). This transformation, derived via an ordinary differential equation, ensures constant relative redundancy under uniform quantization. The approach enables high-efficiency entropy coding using low-precision integers (as low as 4-bit) without retraining, significantly reducing memory footprint and improving hardware compatibility.
Introduction
Neural-based compression (codecs) are computationally intensive. Efficient deployment on mobile and edge devices typically requires quantization—converting high-precision floating-point numbers into low-precision integers. However, the entropy coding stage is highly sensitive to quantization errors in the scale parameter ($\sigma$) of the predicted probability distributions. Naive quantization leads to significant bitrate redundancy. Traditional solutions involve complex non-uniform quantization or expensive model retraining for specific hardware. This work introduces a "warped" parameter space $u \in [0, 1]$ that allows for simple uniform quantization while maintaining compression efficiency.
Methods
The authors propose a new PDF parameterization where the network outputs a parameter $u$ instead of $\sigma$ directly. The core methodology involves:
- Relative Redundancy Measurement: Using Kullback-Leibler (KL) divergence to quantify the bitrate overhead caused by using a quantized parameter.
- Optimal Mapping ($T(u)$): Deriving a transformation $\sigma = T(u)$ such that uniform quantization of $u$ results in constant relative redundancy across the entire range of $\sigma$.
- Universal Polynomial Approximation: The optimal mapping is found to be largely independent of the number of quantization levels $N$. A simple polynomial approximation, $T_\pi(u) = 10^{\pi(u)}$, is provided for easy implementation.
The resulting pipeline allows a model to be trained once and then quantized to various bit-depths (e.g., 8-bit to 4-bit) depending on hardware constraints, a "train once, quantize anywhere" paradigm.
Key Insights and Results
Evaluation on the Kodak image dataset using a scale hyperprior architecture demonstrates:
- High Efficiency: At 8-bit precision, redundancy is below 0.01%. Even at 4-bit precision ($N=16$), relative redundancy is only ~2%.
- Scaling Law: Relative redundancy reduces by a factor of 4 for each additional bit of precision in $u$.
- Memory Savings: The method allows for drastic reduction in the memory footprint of probability tables (e.g., from 51.6 KB to 6.5 KB) with negligible performance loss.
By changing the coordinate system of the parameter, the authors turned a complex non-linear optimization problem into a simple uniform quantization problem.
Conclusion
This paper introduces a hardware-friendly parameterization for neural codecs. While the experimental results focus on the Normal (Gaussian) distribution, the theory suggests applicability to any differentiable parameterized probability sequence. Future work could explore how this parameterization interacts with more complex autoregressive priors and confirm its universality across other distribution types like Asymmetric Gaussian or Logistic.
Summary updated