Introduction
Modern neural image compression relies on convolutional autoencoders to transform images into latent representations. To achieve high compression ratios, entropy coding is used, which requires an accurate estimation of the probability distribution of these latents. The current state-of-the-art approach uses a "hyperprior" network to predict these distributions per-pixel. While effective, this introduces a significant computational bottleneck during inference, as unique Cumulative Distribution Functions (CDFs) must be calculated on the fly for every variable, hindering real-time implementation.
The Manypriors Architecture
To address this complexity, the authors propose a "Manypriors" scheme. Instead of a dynamic hyperprior network, the model utilizes a bank of $N_{CDF}$ (typically 64) pre-learned, static probability distributions.
During training, a "competition of experts" occurs: for each spatial location, the model evaluates the bit cost across all available priors and selects the one that minimizes the cost. This encourages individual priors to specialize in specific image features, such as textures or smooth gradients. At inference, the encoder simply transmits the index of the best-fitting static Look-Up Table (LUT) for each patch, allowing the decoder to perform rapid entropy decoding without complex analytical calculations.
Experimental Results
The model was trained on a high-quality subset of Wikimedia Commons and evaluated on standard benchmarks including the Kodak and CLIC datasets.
Rate-Distortion Performance
The primary goal was to match the performance of the Ballé 2018 hyperprior model while reducing complexity. As shown in the rate-distortion curves, the 64-priors configuration achieves performance nearly identical to the hyperprior model across both PSNR and MS-SSIM metrics, significantly outperforming traditional codecs like JPEG and BPG at high bitrates.
The results indicate that a discrete set of 64 specialized experts is sufficient to capture the statistical variety of natural images. While increasing to 128 priors offers marginal gains, it significantly increases training time and encoding overhead.
Efficiency Gains
By replacing the hyperprior sub-network with static LUTs, the authors achieved substantial speedups and computational savings:
- Encoding Speed: Total encoding time was reduced to 0.32x (approx. 3x faster) compared to the hyperprior baseline.
- Decoding Speed: Total decoding time was reduced to 0.42x (approx. 2.4x faster).
- Computational Load: The removal of the hyperprior network saved between 3% and 6% of Giga Multiply-Accumulate (GMac) operations, depending on the configuration.
Conclusion
The Manypriors approach successfully bridges the gap between simple, fast compression models and complex, high-performance ones. By leveraging a competition of static experts, the method maintains the end-to-end optimization benefits of deep learning while regaining the execution speed of traditional table-based codecs. This makes it a promising candidate for real-time software and hardware implementations of neural image compression.
Summary updated