Asymmetrically-powered Neural Image Compression with Shallow Decoders

Yibo Yang, Stephan MandtarXiv 2023 · OpenReview

TL;DR

This paper tackles the significant computational cost of neural image compression, particularly on the decoding side, which hinders real-world adoption. The authors propose a novel approach by drastically simplifying the decoder (making it shallow or even linear, akin to JPEG) and compensating with a more powerful encoder and iterative encoding. This achieves competitive rate-distortion performance with existing methods while reducing decoding complexity by up to 90%.

What Problem Does This Paper Address?

Modern neural image compression methods have achieved impressive results, often surpassing traditional codecs like JPEG and H.264 in terms of rate-distortion (R-D) performance. However, these neural approaches come with a substantial computational burden, especially during decoding. This high complexity makes them impractical for many applications where low-latency and efficient decoding are crucial, such as on mobile devices or embedded systems. The paper aims to bridge this gap by developing neural image compression techniques that are computationally efficient on the decoder side without sacrificing significant compression quality.

Methods

The core idea is to exploit the asymmetry in computational budgets between encoding and decoding. The authors propose to use significantly simpler, "shallow" decoder architectures, inspired by the block-wise linear transforms used in JPEG. Specifically, they explore:

  • JPEG-like Synthesis: Replacing deep convolutional decoders with a single transposed convolution layer, where the kernel weights are learned. This is analogous to how JPEG uses learned basis functions for its block transforms.
  • Two-Layer Nonlinear Synthesis: Introducing a minimal amount of nonlinearity by using a two-layer transposed convolution network. This is a step up from the purely linear JPEG-like approach, offering better perceptual quality.
  • Powerful Encoders and Iterative Inference: To compensate for the simplified decoders, the authors employ more sophisticated encoding techniques. This includes using powerful analysis transforms (like those from ELIC) and leveraging iterative inference methods such as Stochastic Gumbel Annealing (SGA) to optimize the R-D cost during encoding.

The paper also provides a theoretical analysis of the R-D cost, decomposing it into irreducible, modeling, and inference gaps. They argue that reducing the inference gap (through better encoders) is key to improving performance without increasing decoding complexity.

Datasets

  • COCO 2017: Used for training and for generating random image crops for experiments related to the reconstruction manifold.
  • Kodak: A standard benchmark dataset used for evaluating R-D performance and comparing against other methods.
  • Tecnick: Used for evaluating R-D performance.
  • CLIC 2018 professional validation set: Used for evaluating R-D performance.

Key Insights and Ideas

  • The "Flatness" of the Image Manifold: The authors observe that the learned synthesis transforms in neural image compression map latent space paths to relatively "flat" manifolds in the image space. This means linear interpolations in the latent space often correspond to visually smooth transitions in the reconstructed images, unlike the highly non-linear manifolds found in generative models. This observation justifies the use of simpler, linear or shallow decoders.
  • JPEG-like Decoders Can Be Competitive: Surprisingly, a simple JPEG-like synthesis transform (a single learned transposed convolution) can achieve performance comparable to deep CNN decoders, especially when paired with a strong encoder. This challenges the notion that complex decoders are always necessary for high-quality neural compression.
  • Asymmetry is Key: The paper strongly advocates for exploiting the asymmetry between encoder and decoder complexity. By investing more computational power in the encoder (e.g., through iterative optimization) and simplifying the decoder, significant gains in decoding efficiency can be achieved without a substantial loss in R-D performance.
  • Inference Gap is a Major Bottleneck: The theoretical analysis highlights the "inference gap" as a significant contributor to the R-D cost. This suggests that improving the encoding process itself (e.g., through iterative refinement) is a crucial avenue for performance gains, independent of decoder complexity.

Key Results

  • Decoding Complexity Reduction: The proposed methods achieve a decoding complexity of less than 50K FLOPs/pixel, which is an 80% reduction compared to the baseline Mean-Scale Hyperprior, and over 90% reduction for the synthesis transform alone.
  • Competitive R-D Performance: The proposed two-layer synthesis with iterative encoding achieves R-D performance competitive with the established Mean-Scale Hyperprior architecture on the Kodak dataset, particularly in PSNR.
  • Trade-off Exploration: The paper systematically explores the trade-off between decoding complexity and R-D performance, demonstrating that shallow decoders can be highly effective.
  • Qualitative Improvements: While the JPEG-like synthesis can exhibit blocking artifacts similar to JPEG at low bitrates, the two-layer synthesis significantly mitigates these issues, offering better perceptual quality.

Limitations and Future Work

  • Perceptual Distortion: The paper acknowledges that shallow synthesis transforms can perform worse on perceptual distortion metrics (like MS-SSIM or LPIPS) compared to deeper architectures. This is attributed to the fact that natural image distributions are not purely Gaussian, and perceptual metrics are more sensitive to certain types of artifacts.
  • Entropy Decoding Complexity: While the synthesis decoder is significantly simplified, the hyperprior-based entropy model still accounts for a substantial portion (50-80%) of the overall decoding complexity.
  • Future Work: The authors suggest exploring more efficient nonlinear transforms, further optimizing entropy models for reduced complexity, and investigating alternative synthesis techniques like sub-pixel convolutions. They also point to the potential of combining their MSE-optimized reconstruction with generative artifact removal/denoising for improved perceptual quality.

Summary updated

Abstract

Neural image compression methods have seen increasingly strong performance in recent years. However, they suffer orders of magnitude higher computational complexity compared to traditional codecs, which stands in the way of real-world deployment. This paper takes a step forward in closing this gap in decoding complexity by adopting shallow or even linear decoding transforms. To compensate for the resulting drop in compression performance, we exploit the often asymmetrical computation budget between encoding and decoding, by adopting more powerful encoder networks and iterative encoding. We theoretically formalize the intuition behind, and our experimental results establish a new frontier in the trade-off between rate-distortion and decoding complexity for neural image compression. Specifically, we achieve rate-distortion performance competitive with the established mean-scale hyperprior architecture of Minnen et al. (2018), while reducing the overall decoding complexity by 80 %, or over 90 % for the synthesis transform alone. Our code can be found at https://github.com/mandt-lab/shallow-ntc.
BibTeX
@misc{yang2023asymmetrically,
  author = {Yibo Yang and Stephan Mandt},
  title = {{Asymmetrically-powered Neural Image Compression with Shallow Decoders}},
  year = {2023},
  eprint = {2304.06244},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.06244},
}
Figure