Abstract
Learned image compression has traditionally been dominated by Variational Autoencoders (VAEs) due to their expressive latent representations, though they are inherently lossy. Normalizing Flows offer invertibility but often struggle with compression efficiency. This paper introduces Augmented Normalizing Flow-based Image Compression (ANFIC), a framework that unifies these approaches. By stacking hierarchical VAEs within an augmented flow framework, ANFIC achieves high expressiveness while maintaining a bijective mapping. Experimental results demonstrate that ANFIC performs comparably to VVC intra coding and supports variable-rate compression within a single model.
Introduction
The field of learned image compression primarily utilizes two architectural paradigms: Variational Autoencoders (VAEs) and Normalizing Flows. VAEs are favored for their ability to learn compact, expressive representations, yet their non-linear transforms are typically lossy, preventing perfect reconstruction even in the absence of quantization. Conversely, Normalizing Flows utilize reversible networks to ensure a bijective mapping between the input and latent space. While ideal for lossless tasks, standard flows often fail to match the rate-distortion performance of VAEs in lossy compression scenarios.
ANFIC addresses this gap by leveraging Augmented Normalizing Flows (ANF). The core insight is that a VAE can be interpreted as a single-step ANF. By stacking multiple such steps, the authors create a hierarchical system that combines the strengths of both architectures.
Methods
The ANFIC framework introduces several key innovations to optimize the flow-based compression pipeline:
- Hierarchical VAE Stacking: The model treats VAEs as building blocks for a multi-step flow. This hierarchical structure significantly increases the expressiveness of the transformation compared to a single autoencoder.
- Augmented Input Space: To provide the network with more flexibility, the input space is augmented with independent noise. This extra "room" in the data space allows for a smoother transformation into the latent representation.
- Additive Coupling Layers: To ensure training stability and prevent performance degradation, ANFIC utilizes purely additive coupling layers instead of the more common affine ones.
- Quantization and Quality Enhancement: Quantization inherently breaks the mathematical invertibility of the flow. To mitigate the resulting artifacts, a lightweight Quality Enhancement (QE) network is integrated at the decoder's output to "clean up" quantization noise.
The system also employs a Gaussian Mixture Model (GMM) with an autoregressive module for entropy coding. Furthermore, by utilizing conditional convolutions, a single ANFIC model can achieve variable-rate compression, adapting to different quality parameters ($\lambda$) without requiring separate training runs for different bitrates.
Key Results
ANFIC was evaluated on standard benchmarks including the Kodak, Tecnick, and CLIC datasets, using the Vimeo-90k dataset for training.
The model demonstrates state-of-the-art performance across multiple metrics:
- Rate-Distortion Efficiency: On the Kodak dataset, ANFIC achieved a 15.3% BD-rate reduction relative to the BPG anchor. Its performance is competitive with the VVC (VTM-4.0) intra coding standard, which is the current traditional benchmark.
- Metric Consistency: The model shows robust performance across both PSNR-RGB and MS-SSIM metrics, often matching or outperforming previous learned codecs from CVPR'20 and TPAMI'20.
- Variable Rate Versatility: The single-model variable-rate implementation showed negligible performance loss compared to training multiple fixed-rate models, significantly outperforming existing variable-rate methods.
Conclusion
ANFIC successfully bridges the gap between VAEs and Normalizing Flows, proving that these architectures can be unified into a single, highly effective framework. By treating the VAE as a component of an invertible flow, the model achieves top-tier compression performance while maintaining architectural modularity. Future work will focus on reducing quantization sensitivity and extending the framework toward mathematically lossless coding.
Summary updated