Uncover Treasures in DCT: Advancing JPEG Quality Enhancement by Exploiting Latent Correlations

Jing Yang, Qunliang Xing, Mai Xu, Minglang Qiao · DOI

Abstract

JPEG compression artifacts, such as blocking and ringing, significantly degrade image quality. While deep learning models have shown promise in JPEG quality enhancement (JQE), most operate in the pixel domain, incurring high computational costs due to decoding overhead. This paper introduces Advanced DCT-domain JPEG Quality Enhancement (AJQE), a framework that performs enhancement directly in the Discrete Cosine Transform (DCT) domain. By uncovering latent spatial correlations within DCT coefficients through novel block-based and point-based modules, AJQE enables existing models to achieve a 60.5% increase in throughput and a 0.35 dB PSNR improvement over traditional pixel-based approaches.

Introduction

The ubiquity of JPEG compression often comes at the cost of visual fidelity. Standard AI-based cleanup methods typically decode JPEG bitstreams into pixels before processing. However, this decoding step is computationally expensive, often accounting for nearly half of the total processing time. This latency hinders real-time applications on resource-constrained devices.

Enhancing images directly in the DCT domain—the native format of JPEG data—offers a potential solution. Historically, this has been challenging because the DCT process decorrelates spatial information, making coefficients appear as "scrambled" data to standard neural networks. AJQE addresses this by identifying and exploiting "hidden treasures"—the latent correlations—within the jumbled DCT data to restore image quality efficiently.

Performance comparison and visual results of AJQE vs. traditional methods.

Methodology: The AJQE Framework

AJQE is designed as a versatile "wrapper" that adapts established pixel-domain models (e.g., DnCNN, FBCNN) for efficient DCT-domain operation. The framework utilizes three primary components to re-establish spatial context:

  1. Enhancement Module powered by Block-based Correlation (EMBC): This module extracts high-level features (intensity, energy) from 8x8 DCT blocks to generate custom kernels, helping the model understand inter-block relationships.
  2. Enhancement Module powered by Point-based Correlation (EMPC): By grouping identical frequency components across all 8x8 blocks into "coefficient maps," AJQE creates structures that mimic low-resolution images. These maps possess strong spatial correlations that standard AI architectures can readily exploit.
  3. DCT-domain Upsampling Module (UMEP): This module ensures that chroma components are upsampled within the DCT domain in a manner mathematically equivalent to pixel-domain upsampling, maintaining color consistency.
The AJQE framework architecture, illustrating the two-stage enhancement process in the DCT domain.

Experimental Setup

The framework was evaluated using several standard benchmarks:

  • Training: The DIV2K dataset (800 high-quality images).
  • Evaluation: BSDS500, LIVE-1, and ICB for color images; Classic5 for grayscale images.
  • Compression Settings: Testing was conducted across Quality Factors (QF) of 10, 20, 30, and 40 using standard JPEG compression.

Key Results and Discussion

AJQE demonstrates a significant performance-efficiency breakthrough:

  • Quality Improvement: AJQE-enhanced models achieved an average PSNR gain of 0.35 dB over pixel-domain counterparts and 0.41 dB over previous state-of-the-art DCT methods.
  • Computational Efficiency: The framework achieved a 60.5% increase in throughput (FPS) while requiring 45.9% fewer FLOPs. Training time was also reduced by 38.0%.
  • Visual Fidelity: Qualitative analysis indicates that AJQE is superior at removing "ringing" artifacts around sharp edges and preserving fine textures that are often lost or blurred by competing methods.

The efficiency gains stem from working in the DCT domain, where the effective input dimension is reduced by a factor of 64 compared to the pixel domain.

Conclusion and Future Work

AJQE proves that the DCT domain contains structured information that, when properly remapped, can significantly enhance both the speed and quality of JPEG restoration. While currently optimized for the 8x8 DCT blocks of JPEG, future research could extend these principles to more modern video coding standards like HEVC or VVC. Additionally, optimizing the software implementation of the remapping process and exploring temporal correlations for video enhancement remain promising avenues for further development.

Summary updated

BibTeX
@inproceedings{yang2025uncover,
  author = {Jing Yang and Qunliang Xing and Mai Xu and Minglang Qiao},
  title = {{Uncover Treasures in DCT: Advancing JPEG Quality Enhancement by Exploiting Latent Correlations}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure