S-Net: a scalable convolutional neural network for JPEG compression artifact reduction

Bolun Zheng, Rui Sun, Xiang Tian, Yaowu Chen

Abstract

JPEG compression is ubiquitous but introduces undesirable artifacts like blocking and ringing. While deep learning models have shown promise in artifact reduction, they often lack scalability and are difficult to train as depth increases. This paper introduces S-Net, a scalable convolutional neural network (CNN) that utilizes a symmetric encoder-decoder structure and a novel greedy loss architecture. This design allows for "on-the-fly" scalability, where layers can be truncated during inference to save computational resources without retraining. S-Net achieves state-of-the-art results on standard benchmarks, providing superior visual fidelity and quantitative performance.

Introduction

JPEG compression remains the standard for digital imagery, yet its lossy nature—dividing images into 8x8 blocks and discarding high-frequency data via Discrete Cosine Transform (DCT) quantization—frequently results in visible artifacts. Modern image restoration techniques using deep learning face three primary challenges:

  1. Fixed Depth: Most models are "columnar," requiring separate training for different computational budgets (e.g., mobile vs. desktop).
  2. Training Complexity: Deep networks often suffer from vanishing gradients, necessitating complex initialization or normalization schemes.
  3. Color Artifacts: Independent processing of color channels can lead to chromatic aberration and color bleeding.

S-Net addresses these issues through a flexible, scalable architecture that simplifies training and improves restoration quality.

Proposed Method: S-Net

The S-Net architecture is built on two core innovations:

Symmetric Encoder-Decoder Structure

S-Net employs a symmetric design consisting of an Encoder, a Nonlinear Feature Mapper, and a Decoder. The Encoder maps the input JPEG image into a feature domain, where the Mapper performs the primary restoration. The Decoder then reconstructs the clean image from these refined features.

Greedy Loss Architecture

The defining feature of S-Net is its "greedy" training strategy. Rather than applying a loss function only at the final output, the researchers attach a decoder and a loss layer to every convolutional unit within the Mapper. This forces each layer to independently strive for the best possible reconstruction.

This approach enables dynamic scalability: during inference, the network can be stopped at any intermediate layer to meet real-time performance or memory constraints. Because each layer was trained "greedily," the intermediate outputs remain valid and high-quality. This allows a single trained model to serve multiple performance tiers (e.g., from the shallow "Metric1" to the full "Metric8").

Experimental Evaluation

The model was trained on the DIV2K dataset and evaluated on standard benchmarks including LIVE1 and BSDS500. Additionally, the authors introduced WIN143, a dataset of high-saturation, over-processed digital art, to test the model's generalization capabilities beyond everyday photography.

Quantitative Results

S-Net consistently outperforms existing state-of-the-art models like ARCNN and DDCN. On the LIVE1 dataset at a Quality Factor (QF) of 40, S-Net achieved a PSNR of 34.61 dB, compared to 33.63 dB for ARCNN. The scalable nature was also validated: the shallowest version (Metric1) is approximately 3.5x faster than the full version (Metric8) while still maintaining competitive performance against fixed-depth models.

Qualitative Analysis

Visually, S-Net excels at recovering fine details and sharp textures that other models often blur or smudge.

Comparison of S-Net against ARCNN and JPEG on the Parrots image from the LIVE1 dataset. S-Net (Ours) recovers significantly more detail in the feather textures.

As shown in the figure above, S-Net effectively removes blocking artifacts and restores the intricate textures of the parrot's feathers, whereas competing models like ARCNN leave behind noticeable smudges and color inaccuracies.

Conclusion

S-Net introduces a highly efficient and scalable approach to image restoration. By leveraging a greedy loss architecture, it provides a single model that can adapt to varying computational constraints without sacrificing state-of-the-art quality. Future work will explore applying this greedy scalability to video restoration and real-time mobile applications where the trade-off between battery life and visual quality is critical.

Summary updated

BibTeX
@article{zheng2018s,
  author = {Bolun Zheng and Rui Sun and Xiang Tian and Yaowu Chen},
  title = {{S-Net: a scalable convolutional neural network for JPEG compression artifact reduction}},
  journal = {J. Electronic Imaging},
  year = {2018},
  doi = {10.1117/1.jei.27.4.043037},
}
Figure