End-to-End Learned Image Compression With Augmented Normalizing Flows

Yung-Han Ho, Chih-Chun Chan, Wen-Hsiao Peng, Hsueh-Ming HangWorkshops @ CVPR 2021

Abstract

Modern learned image compression typically relies on Variational Autoencoders (VAEs). This work proposes a shift towards Augmented Normalizing Flows (ANF), which provide a more expressive and smoother mapping between image and latent spaces by augmenting inputs with independent noise. Our approach achieves significant improvements in coding efficiency, with BD-rate gains of 3.4% to 5.8% over VAE baselines, and shows exceptional synergy with post-processing enhancement networks.

Introduction

The field of end-to-end learned image compression has been dominated by VAE-based architectures. While effective, VAEs can be viewed as a restricted subset of Normalizing Flows (NF). Standard NFs utilize deep invertible transformations to map data to a latent space bijectively, enabling exact likelihood estimation. However, the requirement for a strict one-to-one mapping can make standard NFs "stiff" and difficult to optimize for complex data like natural images.

This paper addresses these limitations by introducing Augmented Normalizing Flows (ANF). By augmenting the input image with independent Gaussian noise, the model gains additional degrees of freedom. This allows for a smoother, more flexible transformation into the latent space, which is critical for efficient entropy coding in lossy compression.

Methodology

The proposed ANF-based framework consists of several key components:

  1. Data Augmentation: The input image $x$ is paired with independent noise $e$, expanding the dimensionality and providing the flexibility needed for smoother mappings.
  2. Invertible Transformations: The core of the model is a series of autoencoding transforms implemented via affine coupling layers. These layers are mathematically invertible, ensuring that the original image can be reconstructed from its latent representation.
  3. Hierarchical Architecture: Drawing inspiration from VAE "hyper-priors," the model employs a hierarchical structure. A primary flow extracts features, while a secondary "upper" flow acts as a hyper-prior, capturing spatial dependencies to optimize the entropy coding of the latents.
  4. Optimization Objective: The training objective minimizes the negative augmented log-likelihood. To ensure stability and prevent latent space collapse, the authors substitute the complex Jacobian log-determinant typically used in flows with a standard reconstruction loss (MSE).

Key Insights: Progressive Low-Pass Filtering

A significant qualitative finding is the behavior of the ANF layers during the encoding process. The model effectively performs progressive low-pass filtering.

Visualization of progressive low-pass filtering across ANF layers.

As shown in the figure above, the initial layers extract high-frequency details, leaving behind a low-pass version of the image. Subsequent layers continue this process, eventually producing a latent representation ($x_2$) that is nearly uniform (gray). This "emptying" of the latent space is highly beneficial for compression, as near-zero representations require very few bits to encode.

Experimental Results

The ANF model was evaluated on the standard Kodak dataset and compared against the traditional BPG codec and a state-of-the-art VAE baseline.

Coding Efficiency

The ANF approach demonstrated superior rate-distortion performance. Without additional post-processing, the model achieved a 4.8% BD-rate saving relative to BPG, significantly outperforming the VAE baseline's 1.2% saving.

Rate-distortion performance on the Kodak dataset.

Synergy with Post-Processing

One of the most striking results is the model's performance when paired with a quality enhancement (post-processing) network. While the VAE baseline improved by 4.8% with post-processing, the ANF model's gains nearly doubled, reaching an 11.8% BD-rate saving. This suggests that the ANF architecture preserves structural features that are more effectively recovered by secondary networks.

Model Complexity

Remarkably, these performance gains do not come at the cost of model size. By optimizing the number of channels in the convolutional layers, the ANF model (11.4M parameters) is actually smaller than the VAE baseline (13.4M parameters).

Conclusion and Future Work

Augmented Normalizing Flows represent a promising new direction for learned image compression. By relaxing the constraints of standard NFs and VAEs, ANFs provide a more expressive framework that naturally performs progressive feature extraction. While the computational overhead of multiple coupling layers remains a challenge, the significant gains in coding efficiency and the synergy with enhancement networks highlight the potential of this approach. Future research will explore deeper ANF stacks and the extension of this architecture to video compression.

Summary updated

BibTeX
@inproceedings{ho2021end,
  author = {Yung-Han Ho and Chih-Chun Chan and Wen-Hsiao Peng and Hsueh-Ming Hang},
  title = {{End-to-End Learned Image Compression With Augmented Normalizing Flows}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00220},
}
Figure