Exploring Semantic Segmentation on the DCT Representation

Shao-Yuan Lo, Hsueh-Ming Hang

Abstract

This paper presents a novel approach to semantic segmentation that operates directly on JPEG-compressed data (DCT coefficients), bypassing the computationally expensive decompression stage. By introducing Frequency Component Rearrangement (FCR) and a modified DCT-EDANet architecture, the authors achieve performance comparable to standard RGB-based models while significantly reducing the overhead associated with traditional image processing pipelines.

Introduction

In modern computer vision, images are typically stored in compressed formats like JPEG but processed by neural networks in the raw RGB spatial domain. This mismatch necessitates a decompression step that consumes significant time and memory. The challenge in processing compressed data directly lies in the nature of Discrete Cosine Transform (DCT) coefficients, which represent frequency information rather than spatial pixels. Standard Convolutional Neural Networks (CNNs) are optimized for spatial patterns and often fail when applied to raw frequency data. This work introduces the first successful method for dense semantic segmentation in the compressed DCT domain.

Methodology

Frequency Component Rearrangement (FCR)

The core innovation of this work is the Frequency Component Rearrangement (FCR) technique. In a standard JPEG, images are divided into 8x8 blocks of DCT coefficients. Feeding these directly into a CNN causes the network to misinterpret frequency relationships as spatial ones. FCR solves this by reshaping each 8x8 block into a single "pixel" with 64 channels. This transformation ensures that the spatial dimensions of the input accurately reflect the image layout, while the frequency data is organized into the channel dimension, allowing 2D convolution filters to process spatial neighbors of the same frequency component effectively.

Figure 1: High-level pipeline showing the transition from DCT representation through FCR to the final semantic segmentation output.

DCT-EDANet Architecture

The authors adapted the efficient EDANet architecture for the frequency domain. Because the DCT representation is already spatially reduced (an 8x8 block becomes a 1x1 pixel in FCR format), standard downsampling layers would reduce the feature map resolution too aggressively. Consequently, the authors removed all downsampling operations. The resulting computational savings were reinvested into making the network deeper, increasing the number of modules from 5 to 22 to enhance learning capacity without increasing total complexity.

Figure 5: Comparison between (a) the standard EDANet architecture with downsampling and (b) the proposed DCT-EDANet which removes downsampling and increases module depth.

Experimental Results

Performance on Cityscapes

The proposed DCT-EDANet was evaluated on the Cityscapes dataset, a benchmark for urban scene understanding. The model achieved a mean Intersection-over-Union (mIoU) of 61.6%, remarkably close to the 63.7% achieved by the standard RGB-based EDANet. This 2.1% gap represents a major milestone for compressed-domain segmentation. Crucially, without the FCR technique, the mIoU plummeted to 37.8%, confirming that proper data rearrangement is vital for success.

Efficiency and Robustness

  • Computational Complexity: DCT-EDANet maintains a complexity of 8.52B Multi-Adds, slightly lower than the RGB baseline's 8.97B, while gaining the advantage of skipping the decompression cycle.
  • Frequency Selection: The authors found that using only the low-frequency components (36% of total coefficients) yielded nearly identical accuracy, highlighting the redundancy in high-frequency data for segmentation tasks.
  • Luma Dominance: Optimal results were achieved using a 50:25:25 ratio for Y (Luminance) and Cb/Cr (Chrominance) components, aligning with human visual sensitivity to brightness over fine color detail.
  • Quantization Resilience: The model proved robust to compression artifacts, with only a 1.6% drop in accuracy even at a low JPEG quality factor of 30.

Conclusion

By processing images in the DCT domain, this research demonstrates that it is possible to achieve high-quality semantic segmentation while avoiding the costs of decompression. While a slight gap in spatial precision remains compared to RGB models, the efficiency gains and robustness of DCT-EDANet make it a compelling choice for real-time applications and resource-constrained environments.

Summary updated

BibTeX
@inproceedings{lo2019exploring,
  author = {Shao-Yuan Lo and Hsueh-Ming Hang},
  title = {{Exploring Semantic Segmentation on the DCT Representation}},
  booktitle = {MMAsia},
  year = {2019},
  url = {https://openreview.net/forum?id=c2oFgs8oEy_},
}
Figure