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

Jing Yang, Qunliang Xing, Mai Xu, Minglang Qiao

TL;DR

This paper introduces AJQE, a novel DCT-domain JPEG quality enhancement method that leverages previously overlooked block-based and point-based correlations within JPEG's Discrete Cosine Transform (DCT) coefficients. By exploiting these correlations, AJQE enables the adaptation of existing pixel-domain enhancement models to the DCT domain, achieving superior image quality and significantly faster processing speeds compared to both pixel-domain and existing DCT-domain methods.

What Problem Does This Paper Address?

JPEG is the ubiquitous standard for image compression, but its core mechanism – quantizing DCT coefficients – inevitably introduces visual artifacts like blocking, blurring, and ringing. While many methods aim to fix these artifacts, they typically operate in the pixel domain after decoding the JPEG image. This post-decoding approach is computationally expensive, especially during training, as it requires repeated decoding and re-encoding. More recent "DCT-domain" methods attempt to enhance images directly using the quantized DCT coefficients, promising better efficiency. However, these methods have shown limited performance. The authors identify a key reason: JPEG's DCT coefficients, due to the transform and quantization process, exhibit weak spatial correlations, making standard pixel-domain enhancement techniques (which rely heavily on spatial continuity) ineffective when directly applied to them. This paper aims to bridge this gap by developing a DCT-domain enhancement method that effectively captures the latent correlations within DCT coefficients, leading to both improved quality and efficiency.

Methods

The core of the AJQE method lies in its ability to exploit two types of correlations within DCT coefficients:

  • Block-based Correlations: JPEG compresses images in 8x8 blocks. The authors found that when DCT blocks are dequantized and summarized (e.g., by sum, squared sum, or weighted sum), strong correlations emerge. AJQE uses an "Enhancement Module powered by Block-based Correlation" (EMBC) that incorporates a learnable block-based convolution. This convolution uses the quantization matrix and other DCT channels to generate kernels and biases, effectively capturing these block-level relationships. Existing pixel-domain enhancement models are then applied to these processed features.
  • Point-based Correlations: Even within a single DCT block, the 64 coefficients have correlations. The authors propose extracting "coefficient maps" by grouping the same coefficient across all blocks. They found these maps exhibit positive spatial correlations, especially for low-frequency coefficients. The "Enhancement Module powered by Point-based Correlation" (EMPC) leverages this by first compacting these coefficient maps (either non-learnably by keeping top-k or learnably via convolution) and then applying a pixel-domain enhancement model. Finally, the maps are expanded and remapped.

These modules allow existing pixel-domain models to be adapted to the DCT domain. The outputs from multiple EMBCs and the EMPC are fused to produce the final enhanced DCT coefficients. For color images, a "DCT-domain Upsampling Module Equivalent to Pixel-domain" (UMEP) is introduced to handle the downsampling of chroma components in JPEG, ensuring spatial consistency.

Datasets

The paper uses the following datasets:

  • Training: DIV2K dataset.
  • Evaluation: BSDS500, LIVE-1, ICB, and Classic5 (grayscale) datasets.

The authors compress raw images from these datasets into JPEG format with various Quality Factors (QF) for training and evaluation.

Key Insights and Ideas

  • DCT Coefficients are Not Spatially Correlated (in the traditional sense): The paper clearly demonstrates that standard spatial correlation metrics (MI, GC) show very weak correlations for DCT coefficients compared to pixel values. This is a crucial insight explaining the limitations of prior DCT-domain methods.
  • Latent Correlations Exist in DCT: The paper's main contribution is identifying and exploiting two new types of correlations: block-based and point-based. These are not immediately obvious from the raw DCT coefficients but become apparent when considering the structure of JPEG compression and specific feature representations.
  • Adaptability of Pixel-Domain Models: The core idea is that by transforming DCT coefficients into representations that exhibit these latent correlations, established and powerful pixel-domain enhancement models can be effectively "ported" to the DCT domain, inheriting their performance while gaining DCT-domain efficiency.
  • DCT-Domain Processing is Inherently More Efficient: By bypassing the costly pixel-domain decoding and re-encoding steps, the proposed method offers significant speedups and reduced computational load.

Key Results

  • Image Quality: AJQE achieves superior image quality, with an average improvement of 0.35 dB in PSNR over pixel-domain methods and 0.41 dB over other DCT-domain methods on color images. For grayscale, the improvements are 0.39 dB and 0.48 dB, respectively. Qualitative results show suppressed artifacts and better detail restoration.
  • Efficiency: The method demonstrates significant efficiency gains:
  • 60.5% higher enhancement throughput (FPS) compared to pixel-domain counterparts.
  • 45.9% fewer FLOPs.
  • 38.0% lower training time.
  • AJQE also outperforms other state-of-the-art DCT-domain methods by at least 45.9% fewer FLOPs.

Limitations and Future Work

  • Component Importance: The ablation study highlights that both EMBC and EMPC are crucial for optimal performance. Removing either leads to a significant drop in enhancement quality, underscoring the importance of both block-based and point-based correlations.
  • Upsampling Module: The paper emphasizes the effectiveness of their custom UMEP for upsampling chroma DCT coefficients, showing it outperforms standard nearest-neighbor or transposed convolution upsampling in the DCT domain.
  • Future Work: The paper suggests that the AJQE method's broad applicability to existing pixel-domain models and its significant reduction in computational burden make it a promising direction for future research in JPEG quality enhancement. The authors also mention that their method can be adapted to other block-based transform coding standards.

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