Learned Neural Iterative Decoding for Lossy Image Compression Systems

Alexander G. Ororbia, Ankur Mali, Jian Wu, Scott O'Connell, David Miller, C. Lee GilesarXiv 2018

This paper presents a compelling shift in how we think about neural image compression. Instead of trying to reinvent the entire wheel with end-to-end neural architectures—which often struggle with the non-differentiable nature of quantization—the authors propose a "plug-and-play" neural decoder designed to enhance existing, well-established compression standards like JPEG and JPEG 2000.

TL;DR

The authors introduce iterative refinement, a recurrent neural network (RNN) based decoding algorithm that progressively improves image reconstruction by exploiting spatial context. By focusing solely on the decoder, they achieve significant gains in image quality (up to 1.1 dB PSNR) over standard JPEG and JPEG 2000 without needing to modify the original encoding process.

What Problem Does This Paper Address?

Traditional lossy compression (like JPEG) typically processes images in independent 8x8 blocks. While efficient, this ignores the statistical dependencies between neighboring blocks, often leading to "blocking" artifacts and lost detail.

Recent research has pivoted toward end-to-end deep neural networks (DNNs) for compression. However, these face a major hurdle: quantization. Because quantization is a discrete step, it is not differentiable, making it difficult to train encoders using standard back-propagation. Most researchers use "soft" approximations to get around this, but the authors of this paper take a different route. They ask: Given any existing encoder and quantization scheme, what would an optimal non-linear decoder look like?

Methods

The core contribution is the Iterative Refinement algorithm. Instead of a single-pass decoding, the model treats reconstruction as a multi-step process.

  1. Patch-Based Processing: The image is decomposed into non-overlapping patches.
  2. Contextual Input: For a target patch, the decoder takes the quantized symbols of that patch plus its $N$ neighboring patches as input.
  3. Recurrent Iteration: Within a single "reconstruction episode," the decoder runs for $K$ steps. Each step uses an RNN (like an LSTM, GRU, or the more parameter-efficient Delta-RNN) to refine the estimate of the original pixels.
  4. Global State Carry-over: Crucially, the hidden state of the RNN is carried over from one patch to the next along a scan-line. This allows the model to exploit global context from across the entire image, rather than just local neighbors.
Figure 1: Iterative refinement (2 episodes, K = 3) using an Elman RNN estimator (top-level view). Dot-dashed arrows indicate the latent state across an episode, since back-propagation through time is only applied within an episode. The dashed arrow indicates the memory created at an episode’s end, carried over to the next one. This visual also shows how a patch on the borderline is handled.

To train this system, the authors used a unique hybrid loss function. They found that using Mean Squared Error (MSE) alone—the standard for PSNR—didn't yield enough gain. By combining MSE with Mean Absolute Error (MAE), which is more robust to outliers, they were able to train a decoder that significantly outperformed the baselines.

Datasets

The models were trained on a massive scale using:

  • Places365: 128,000 high-resolution images.
  • RAISE-ALL: 7,168 raw images.

For evaluation, they tested across six diverse benchmarks to ensure generalizability:

  • Kodak Lossless True Color Image Suite: The gold standard for image compression research.
  • Compression Benchmark (CB): 8-bit, 16-bit, and 16-bit-linear versions.
  • Tecnick: 36 high-quality 8-bit images.
  • Wikipedia: 100 high-resolution images crawled from the web.

Key Insights and Ideas

  • Decoding as Inference: The paper reframes decoding not just as an inverse mathematical transform, but as an active estimation problem where the model "guesses" the lost information based on surrounding context.
  • RNNs for Global Context: The authors argue that RNNs are superior to standard Multi-Layer Perceptrons (MLPs) for this task. An MLP is stateless and can only see a fixed local neighborhood. The RNN’s ability to carry state across the whole image allows it to learn global structural dependencies that an MLP would miss.
  • Implicit Depth: Running the RNN for $K$ steps is mathematically equivalent to a $K$-layer deep MLP with shared parameters. This provides the benefits of a deep model (posterior sharpening) without the massive memory overhead of adding extra unique layers.

Key Results

The results across all datasets were consistently strong, as shown in the comprehensive comparison table below.

Table 2: Out-of-sample results for the Kodak (bpp 0.37), the 8-bit Compression Benchmark (CB, bpp, 0.341), the 16-bit and 16-bit-Linear Compression Benchmark (CB) datasets (bpp 0.35 for both), the Tecnick (bpp 0.475), and Wikipedia (bpp 0.352) datasets.
  • Kodak Dataset: The LSTM-based decoder achieved a 0.871 dB gain over standard JPEG and a 1.095 dB gain over JPEG 2000.
  • Comparison to End-to-End Models: Their decoder outperformed a competitive end-to-end neural model (referred to as GOOG) by 0.971 dB, despite being simpler and faster to run.
  • Iterative Benefit: The authors demonstrated that PSNR consistently improves as the number of refinement steps ($K$) increases, though with diminishing returns after a certain point.

Limitations and Future Work

  • Computational Cost: Iterative decoding is inherently slower than the single-pass transforms used in standard JPEG. The authors suggest that integrating an "early-stopping" criterion during decoding could optimize this trade-off.
  • Grayscale Focus: While the method is theoretically applicable to RGB, this specific study focused on single-channel (grayscale) images to simplify the initial proof-of-concept.
  • Scanning Patterns: The order in which patches are processed (the scan-line path) affects the results. The authors used a shuffling technique during training to mitigate this, but exploring optimal scanning paths remains an open question.

Summary updated

BibTeX
@misc{ororbia2018learned,
  author = {Alexander G. Ororbia and Ankur Mali and Jian Wu and Scott O'Connell and David Miller and C. Lee Giles},
  title = {{Learned Neural Iterative Decoding for Lossy Image Compression Systems}},
  year = {2018},
  eprint = {1803.05863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.05863},
}
Figure