Deep Image Compression via End-to-End Learning

Haojie Liu, Tong Chen, Qiu Shen, Tao Yue, Zhan Ma

TL;DR

This paper introduces an end-to-end learned image compression framework based on deep residual networks that outperforms traditional codecs like BPG, WebP, and JPEG2000 in MS-SSIM. By pairing an easy-to-hard progressive training schedule with perceptual and adversarial (WGAN) losses, the model avoids the over-smoothing typical of $\ell_2$-optimized compression at low bitrates.

What Problem Does This Paper Address?

Traditional image codecs such as JPEG, JPEG2000, and BPG (HEVC Intra) suffer from noticeable visual artifacts—such as ringing, blockiness, and texture degradation—when compressing images to low bitrates.

While early deep learning-based autoencoders showed promise in learning data-driven compression schemes, most relied purely on pixel-domain mean squared error ($\ell_2$ loss) for reconstruction. Because $\ell_2$ loss optimizes for pixel averages, it penalizes high-frequency details, resulting in blurry, over-smoothed images at low bitrates that fail to align with the Human Visual System (HVS).

Methods

The proposed framework pairs an end-to-end autoencoder with a rate-distortion optimization pipeline and perceptual enhancement losses:

  • Encoder-Decoder Architecture: Built using deep residual networks (ResNet). The authors modified standard residual units by substituting standard ReLUs with Parametric ReLUs (PReLUs) and removing the non-linear activation following the residual addition shortcut to accelerate convergence. Downsampling in the 8-block encoder uses stride-2 $4 \times 4$ convolutions, while the decoder mirrors this using sub-pixel convolution (PixelShuffle) layers.
  • Quantization and Entropy Coding: Bottleneck feature representations are squeezed through a sigmoid activation and scalar-quantized to 6-bit integers ($Q=6$). The non-differentiable rounding operator is bypassed using straight-through estimation during backpropagation. The resulting discrete values are compressed into bitstreams using PAQ lossless entropy coding.
  • Differentiable Rate Estimation: To optimize bitrates jointly with distortion, discrete latent probabilities are estimated via a continuous piecewise linear approximation: $$\mathcal{L}_R = -\mathbb{E}[\log_2 P_q]$$
  • Easy-to-Hard Transfer Learning: Directly optimizing quantized networks under strict rate constraints is unstable. The authors first train an unconstrained model ($\lambda = 0$) for 100 epochs, then progressively step up the rate penalty $\lambda$ (from 0 to 0.002 in increments of 0.0001 every 5 epochs) to map out the rate-distortion curve.
  • Perceptual and Adversarial Enhancement: To preserve fine textures, the final objective combines four components: $$\mathcal{L}_{\text{final}} = \mathcal{L}_2 + \lambda_1 \mathcal{L}_R + \lambda_2 \mathcal{L}_{\text{percept}} + \lambda_3 \mathcal{L}_{\text{generator}}$$ where $\mathcal{L}_{\text{percept}}$ computes feature distances using the final convolutional layer of a 31-layer VGG network, and $\mathcal{L}_{\text{generator}}$ is derived from an improved Wasserstein GAN (WGAN) with gradient penalty ($\beta = 10$).

Datasets

  • Training: The CVL ETH Zurich dataset from the 2018 Workshop and Challenge on Learned Image Compression (CLIC), cropped and augmented (rotation and scaling) into 80,000 $128 \times 128$ patches.
  • Evaluation: Evaluated on the standard Kodak PhotoCD dataset (24 images) and the CLIC Test Dataset P/M. No new benchmarks were introduced.

Key Insights and Ideas

  • Beyond Pixel Distortions: Combining feature-space similarity (VGG) with an Earth Mover's Distance adversarial loss (WGAN) acts as a visual prior, encouraging the decoder to reconstruct realistic high-frequency textures rather than defaulting to blurry averages at low bitrates.
  • Curriculum Optimization for Rate-Distortion: Introducing quantization and entropy penalties immediately leads to poor local minima. Stepping $\lambda$ upward gradually from zero allows the encoder-decoder backbone to establish strong semantic representations before learning how to discard redundant bits.
  • Structural ResNet Tweaks: Removing the activation function after the residual shortcut addition and leveraging PReLUs improved convergence speed for reconstruction tasks compared to default classification-oriented ResNet blocks.

Key Results

Evaluated using multi-scale structural similarity (MS-SSIM) against bits per pixel (Bpp):

  • Kodak PhotoCD: Achieved an average 7.81% BD-rate reduction compared to BPG (evaluated against YUV 4:2:0 inputs).
  • CLIC Test Dataset P/M: Achieved an average 19.1% BD-rate reduction over BPG.
  • Individual Test Samples: On specific test images from CLIC, BD-rate savings reached 33.54%, 19.96%, 13.31%, and 9.65% compared to BPG, maintaining cleaner edges and textures where traditional transforms degrade.

Limitations and Future Work

  • Model Footprint Across Bitrates: Adapting to different target bitrates and scene complexities requires training and deploying multiple distinct network models with varying feature map capacities, rather than using a single variable-rate network.
  • Further limitations and explicitly defined future directions were not discussed in the paper.

Summary updated

BibTeX
@inproceedings{liu2018deep,
  author = {Haojie Liu and Tong Chen and Qiu Shen and Tao Yue and Zhan Ma},
  title = {{Deep Image Compression via End-to-End Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2018},
  url = {https://openreview.net/forum?id=rkZ1bkfOZB},
}
Figure