CAS-CNN: A Deep Convolutional Neural Network for Image Compression Artifact Suppression

Lukas Cavigelli, Pascal Hager, Luca Benini · DOI

Abstract

Lossy image compression algorithms are pervasively used to reduce the size of images transmitted over the web and recorded on data storage media. However, we pay for their high compression rate with visual artifacts degrading the user experience. Deep convolutional neural networks have become a widespread tool to address high-level computer vision tasks very successfully. Recently, they have found their way into the areas of low-level computer vision and image processing to solve regression problems mostly with relatively shallow networks. We present a novel 12-layer deep convolutional network for image compression artifact suppression with hierarchical skip connections and a multi-scale loss function. We achieve a boost of up to 1.79 dB in PSNR over ordinary JPEG and an improvement of up to 0.36 dB over the best previous ConvNet result. We show that a network trained for a specific quality factor (QF) is resilient to the QF used to compress the input image - a single network trained for QF 60 provides a PSNR gain of more than 1.5 dB over the wide QF range from 40 to 76.

Introduction

Lossy compression, particularly JPEG, is essential for efficient image transmission and storage but introduces significant visual artifacts such as "blocking" (grid patterns) and "ringing" (halos around edges). While early deep learning models like AR-CNN demonstrated the potential of convolutional neural networks (CNNs) for artifact removal, these models were typically shallow (4-5 layers) and often suffered from training instability. This paper introduces CAS-CNN, a 12-layer deep architecture designed to robustly suppress compression artifacts while preserving fine spatial details.

Proposed Method: CAS-CNN

The CAS-CNN architecture incorporates three primary innovations to enable deeper and more effective training for image restoration.

Hierarchical Skip Connections

To mitigate the loss of spatial information in deeper layers, CAS-CNN utilizes hierarchical skip connections. Lower-level features are concatenated directly into higher-level layers, providing "short paths" for gradient flow. This design facilitates the training of a 12-layer network, which is significantly deeper than previous state-of-the-art models in this domain.

The CAS-CNN architecture featuring four stages with hierarchical skip connections and a multi-scale loss function.

Multi-Scale Loss and Two-Phase Training

The network is trained using a multi-scale MSE loss function. Instead of optimizing solely for the final output, the model reconstructs the image at four different resolutions (1/64th, 1/16th, 1/4th, and full resolution). This approach encourages early layers to capture coarse structural features before later layers refine high-frequency details. Training proceeds in two phases: an initial multi-scale convergence phase followed by a fine-tuning (FT) phase focusing exclusively on the full-resolution output.

Experimental Results

The model was trained on the large-scale ImageNet 2013 detection dataset (approx. 396,000 images), providing a much richer data source than the smaller datasets used in prior work. Evaluation was performed on the LIVE1 dataset and several standard benchmark images.

Performance and Resilience

CAS-CNN achieves a substantial quantitative improvement, reaching up to 1.79 dB PSNR gain over standard JPEG and outperforming the previous best ConvNet (AR-CNN/L8) by up to 0.36 dB. A key finding is the model's resilience to the compression Quality Factor (QF). As shown in the figure below, a network trained for a specific QF (e.g., QF 60) maintains high performance across a broad range of input QFs, indicating that the network learns generalized features of JPEG artifacts rather than specific quantization patterns.

IPSNR and IPSNR-B improvements across different quality factors, demonstrating the resilience of networks trained for specific QFs across a wide range.

In terms of efficiency, despite its depth, the model achieves a throughput of 1.01 Mpixel/s on an Nvidia GTX1080, making it potentially viable for near-real-time post-processing.

Conclusion

CAS-CNN represents a significant step forward in image compression artifact suppression. By combining a deep 12-layer architecture with hierarchical skip connections and multi-scale training, the model achieves state-of-the-art results in both PSNR and visual quality. Future work will investigate the applicability of this multi-scale approach to video compression standards like H.264 and HEVC, as well as optimizations for real-time deployment on mobile hardware.

Summary updated

BibTeX
@inproceedings{cavigelli2016cas,
  author = {Lukas Cavigelli and Pascal Hager and Luca Benini},
  title = {{CAS-CNN: A Deep Convolutional Neural Network for Image Compression Artifact Suppression}},
  booktitle = {IJCNN},
  year = {2016},
  doi = {10.1109/ijcnn.2017.7965927},
}
Figure