Virtual Codec Supervised Re-Sampling Network for Image Compression

Lijun Zhao, Huihui Bai, Anhong Wang, Yao ZhaoarXiv 2018

Abstract

Traditional image compression relies on quantization, a non-differentiable process that hinders the end-to-end optimization of deep learning models. This paper presents a novel Virtual Codec Network (VCN) framework that serves as a differentiable proxy for standard codecs. By training an encoder to communicate through this virtual bottleneck, the proposed system enables joint optimization of image re-sampling and reconstruction. Experimental results demonstrate that this approach significantly outperforms standard JPEG and JPEG2000 in both objective metrics (PSNR, SSIM) and subjective visual quality.

Introduction: The Quantization Bottleneck

In conventional image compression standards like JPEG, the quantization step—rounding continuous values to discrete integers—is vital for achieving high compression ratios. However, from a deep learning perspective, quantization is a step function with a derivative of zero almost everywhere. This "zero-gradient" problem prevents backpropagation from flowing through the codec, making it impossible to train an encoder and decoder jointly in an end-to-end fashion.

While previous attempts have used additive noise or identity functions to approximate gradients, these methods often fail to capture the complex artifacts introduced by real-world codecs. This paper addresses the challenge by introducing a differentiable "virtual" proxy that mimics the behavior of the compression pipeline during training.

Proposed Architecture

The authors propose a tripartite architecture designed to bridge the gap between deep learning and standard compression codecs:

  1. Re-Sampling Network (RSN): Acts as the encoder, transforming the input image $X$ into a compact set of re-sampled vectors $Y$.
  2. Image Decoder Network (IDN): Acts as the decoder, taking the compressed/quantized vectors $Z$ and restoring the final image $\tilde{I}$.
  3. Virtual Codec Network (VCN): A differentiable proxy trained to predict the output of the IDN directly from the RSN's output $Y$.

During the training phase, the VCN allows gradients to flow from the reconstruction loss back to the RSN, bypassing the non-differentiable standard codec $g(Y)$. This ensures that the RSN learns to produce features that are specifically optimized for the target compression standard.

Key Insights and Training Strategy

The VCN as a Training Scaffold

The Virtual Codec Network is a temporary structure used only during training. Once the RSN and IDN are fully optimized, the VCN is discarded. This "training wheels" approach allows the system to remain compatible with standard decoders while benefiting from deep learning optimization.

Adaptive Re-sampling

The network demonstrates a sophisticated ability to manage its "bit budget." At low bitrates, the RSN learns to down-sample the image significantly, focusing on preserving high-quality structural details in a smaller spatial domain rather than producing a blurry full-resolution image. This is visualized through feature maps that highlight how the network prioritizes edges and textures.

Visualization of (a) original image, (c) low-resolution re-sampled version, and (b, d) corresponding feature maps showing the network's focus on structural preservation.

Multi-Loss Optimization

To ensure high visual fidelity, the model is optimized using a weighted combination of three loss functions:

  • L1 Loss: For pixel-level accuracy.
  • Gradient Difference Loss (GDL): To maintain sharp edges and prevent blurring.
  • DSSIM (Structural Dis-similarity): To align the output with human visual perception.

Experimental Results

The framework was evaluated on standard benchmarks including Set5, Set14, and LIVE1.

  • Quantitative Performance: The proposed method, particularly when integrated with JPEG (referred to as Ours(J)), consistently achieved higher Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity (SSIM) scores compared to standalone JPEG and JPEG2000.
  • Qualitative Quality: Visually, the VCN-supervised images are notably superior. They effectively eliminate the "blocking artifacts" common in JPEG at high compression ratios and reduce "ringing" around sharp edges, resulting in much cleaner reconstructions.

Conclusion

By introducing a differentiable virtual proxy, this research successfully integrates standard, non-differentiable codecs into an end-to-end deep learning optimization pipeline. While the training process is more complex than standard models, the resulting improvements in image quality and structural preservation are significant. Future work may extend this virtual proxy concept to video compression, addressing the even more complex challenges of temporal motion estimation and inter-frame coding.

Summary updated

BibTeX
@misc{zhao2018virtual,
  author = {Lijun Zhao and Huihui Bai and Anhong Wang and Yao Zhao},
  title = {{Virtual Codec Supervised Re-Sampling Network for Image Compression}},
  year = {2018},
  eprint = {1806.08514},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.08514},
}
Figure