Compression artifacts reduction by improved generative adversarial networks

Zengshun Zhao, Qian Sun, Haoran Yang, Heng Qiao, Zhigang Wang, Dapeng WuEURASIP 2019

Abstract

In this paper, we propose an improved generative adversarial network (GAN) for image compression artifacts reduction task (artifacts reduction by GANs, ARGAN). The lossy compression leads to quite complicated compression artifacts, especially blocking artifacts and ringing effects. To handle this problem, we choose generative adversarial networks as an effective solution to reduce diverse compression artifacts. The structure of “U-NET” style is adopted as the generative network in the GAN. A discriminator network is designed in a convolutional manner to differentiate the restored images from the ground truth distribution. This approach can help improve the performance because the adversarial loss aggressively encourages the output image to be close to the distribution of the ground truth. Our method not only learns an end-to-end mapping from input degraded image to corresponding restored image, but also learns a loss function to train this mapping. Benefit from the improved GANs, we can achieve desired results without hand-engineering the loss functions. The experiments show that our method achieves better performance than the state-of-the-art methods.

Introduction

JPEG compression is the standard for digital imagery, yet its lossy nature introduces significant visual degradations at high compression ratios. These degradations, known as artifacts, primarily manifest as "blocking effects" (discontinuities at block boundaries) and "ringing effects" (oscillations near sharp edges). While traditional restoration methods like SA-DCT and early deep learning models like ARCNN have attempted to mitigate these issues, they often result in overly smoothed or blurry images. This is largely due to their reliance on pixel-wise loss functions, such as Mean Squared Error (MSE), which tend to average out high-frequency details.

To address these limitations, we introduce ARGAN (Artifacts Reduction by GANs), the first end-to-end Generative Adversarial Network specifically designed for JPEG artifact reduction. By leveraging the adversarial framework, ARGAN learns to restore sharp edges and fine textures that traditional methods often lose.

Methodology

The ARGAN framework consists of two competing neural networks: a Generator ($G$) and a Discriminator ($D$).

Network Architecture

The Generator adopts a U-Net style architecture, characterized by an encoder-decoder structure with skip connections. These connections are vital for image restoration as they allow low-level spatial information, such as edge locations, to bypass the bottleneck and assist in the high-fidelity reconstruction of the final image. The Discriminator is a convolutional classifier designed to distinguish between ground-truth images and the restored outputs from the generator.

Architecture of the proposed ARGAN, featuring a U-Net generator and a convolutional discriminator.

Hybrid Loss Function

Training ARGAN involves a sophisticated hybrid loss function that combines standard adversarial loss with L2 (MSE) distance loss. While the L2 loss ensures pixel-level accuracy relative to the original image, the adversarial loss pushes the generator to produce textures and sharpness indistinguishable from uncompressed data. This dual approach prevents the "plastic" or blurry appearance common in standard CNN-based restoration.

Experimental Setup

Training: The model was trained using the VOC2012 dataset (16,700 images), with random $64 \times 64$ cropping for data augmentation.

Evaluation: Performance was benchmarked using the LIVE1 dataset and five classic test images (e.g., "Lena", "Butterfly"). Following industry standards, the experiments focused on the luminance (Y) channel of the YCbCr color space, where the majority of structural information is contained.

Key Results and Discussion

ARGAN consistently outperformed state-of-the-art methods, including SA-DCT, ARCNN, and the D3 model, across various JPEG quality factors ($q=10, 20, 30, 40$).

Quantitative and Qualitative Performance

On the LIVE1 dataset at a low quality factor ($q=10$), ARGAN achieved a PSNR of 31.25 dB, significantly surpassing ARCNN (29.13 dB) and the D3 model (29.96 dB). Visual inspections confirm that ARGAN is uniquely capable of removing "staircase" artifacts on diagonal edges while restoring natural grain and texture.

Qualitative and quantitative comparison of JPEG, ARCNN, and ARGAN on a test image.

By learning the loss function through the discriminator, ARGAN avoids the need for hand-engineered filters. The adversarial framework encourages the output to match the statistical distribution of real-world images, leading to more realistic visual results than traditional distribution-averaging methods.

Conclusion

ARGAN demonstrates the power of Generative Adversarial Networks in solving complex image restoration tasks. By combining a U-Net architecture with a learned adversarial loss, the model effectively eliminates JPEG artifacts while preserving structural integrity. Future work will focus on improving computational efficiency for real-time applications and extending the model to handle full-color restoration and modern compression formats like HEVC.

Summary updated

BibTeX
@inproceedings{zhao2019compression,
  author = {Zengshun Zhao and Qian Sun and Haoran Yang and Heng Qiao and Zhigang Wang and Dapeng Wu},
  title = {{Compression artifacts reduction by improved generative adversarial networks}},
  booktitle = {EURASIP},
  year = {2019},
  doi = {10.1186/s13640-019-0465-0},
}
Figure