Abstract
JPEG compression often introduces undesirable artifacts like blocking and ringing, especially at low quality factors (QF). Traditional deep learning approaches typically require separate models for different QFs, which is impractical for real-world deployment. This paper presents QGCN (Quantization-table-based Global-branch Convolutional Network), a single model capable of handling a wide range of QFs (1–60). By incorporating the JPEG quantization tables as input and utilizing a dual-branch architecture to capture both local details and global context, QGCN achieves state-of-the-art performance in artifact removal and visual restoration.
Introduction
JPEG compression is ubiquitous due to its efficiency, but it achieves high compression ratios by discarding high-frequency information. This process leads to visible degradations: "blocking" artifacts at 8x8 grid boundaries, "ringing" around sharp edges, and "layering" in smooth gradients. While Convolutional Neural Networks (CNNs) have shown promise in mitigating these effects, most models are specialized for a specific QF. A model trained on QF 10 often fails or introduces new artifacts when applied to a QF 30 image. There is a critical need for a robust, "blind" restoration model that adapts to varying compression levels without retraining.
Methodology: The QGCN Architecture
The proposed QGCN model addresses the specialization problem through two primary innovations:
1. Quantization-Table-Based Input
Rather than relying on a single QF value, QGCN takes the actual $8 \times 8$ JPEG quantization table as input. These tables are tiled to match the image dimensions and concatenated as additional channels. This provides the network with precise information about the frequency-domain suppression that occurred during compression, allowing it to mathematically adapt its restoration strategy to the specific degradation.
2. Dual-Branch Design
To handle artifacts at different scales, QGCN employs two parallel branches:
- Restoration Branch: A deep residual network focused on local features. It excels at fixing pixel-level issues like ringing and mosquito noise.
- Global Branch: This branch processes a downsampled version of the entire image ($112 \times 112$) to extract global context. This is essential for identifying large-scale structures and preventing "layering artifacts" in smooth areas like skies, where local-only filters might fail to see the broader gradient.
The model is trained using an "Easy-Hard" transfer learning strategy, starting with small patches for local restoration and fine-tuning on larger patches to optimize the global branch's contextual understanding.
Experimental Results
The model was trained on the DIV2K dataset with random QFs ranging from 1 to 60 and evaluated on standard benchmarks including LIVE1 and BSDS500.
Quantitative Performance
QGCN consistently outperforms previous state-of-the-art methods like AR-CNN and DnCNN. On the LIVE1 dataset at QF=10, QGCN reached a PSNR of 27.84 dB, a significant improvement over the standard JPEG (25.60 dB). Crucially, the model maintains high performance across the entire QF 1–60 range, demonstrating its robustness compared to specialized models.
Qualitative Visual Quality
Visually, QGCN is highly effective at removing false contours in smooth gradients and restoring sharp text. The global branch successfully prevents the "patchy" look often seen in other restoration methods.
Conclusion
QGCN represents a significant step toward universal JPEG artifact removal. By leveraging quantization tables and a dual-branch architecture, it eliminates the need for multiple specialized models. Future work may extend this approach to higher quality factors (QF > 60) and other lossy compression formats like WebP or HEVC.
Summary updated