Skip to main content
QUICK REVIEW

[Paper Review] DCT-Mask: Discrete Cosine Transform Mask Representation for Instance Segmentation

Xing Shen, Jirui Yang|arXiv (Cornell University)|Nov 19, 2020
Advanced Neural Network ApplicationsComputer Science34 references9 citations
TL;DR

DCT-Mask proposes a novel discrete cosine transform (DCT)-based mask representation that encodes high-resolution binary masks into compact, low-complexity vectors, significantly improving instance segmentation performance. By leveraging DCT's energy compaction property to preserve critical low-frequency mask features, the method boosts mask AP by up to 2.1% on COCO and LVIS without increasing inference cost, and it integrates seamlessly into existing pixel-based frameworks like Mask R-CNN and Cascade R-CNN.

ABSTRACT

Binary grid mask representation is broadly used in instance segmentation. A representative instantiation is Mask R-CNN which predicts masks on a $28 imes 28$ binary grid. Generally, a low-resolution grid is not sufficient to capture the details, while a high-resolution grid dramatically increases the training complexity. In this paper, we propose a new mask representation by applying the discrete cosine transform(DCT) to encode the high-resolution binary grid mask into a compact vector. Our method, termed DCT-Mask, could be easily integrated into most pixel-based instance segmentation methods. Without any bells and whistles, DCT-Mask yields significant gains on different frameworks, backbones, datasets, and training schedules. It does not require any pre-processing or pre-training, and almost no harm to the running speed. Especially, for higher-quality annotations and more complex backbones, our method has a greater improvement. Moreover, we analyze the performance of our method from the perspective of the quality of mask representation. The main reason why DCT-Mask works well is that it obtains a high-quality mask representation with low complexity. Code is available at https://github.com/aliyun/DCT-Mask.git.

Motivation & Objective

  • To address the limitation of low-resolution binary grid mask representations in instance segmentation, which fail to capture fine details and cause reconstruction errors.
  • To develop a high-quality, low-complexity mask representation that maintains high fidelity while reducing training and inference overhead.
  • To enable seamless integration into existing pixel-based instance segmentation frameworks without requiring pre-training or architectural overhaul.
  • To demonstrate consistent performance gains across diverse datasets, backbones, and annotation qualities.
  • To show that improving mask representation quality directly enhances mask AP, even with minimal computational cost.

Proposed method

  • The method transforms high-resolution binary masks (e.g., 128×128) into the frequency domain using the Discrete Cosine Transform (DCT), retaining only the most significant low-frequency coefficients.
  • The resulting DCT coefficient vector (e.g., 300-dimensional) serves as a compact, high-fidelity mask representation that preserves essential structural details.
  • The DCT-based representation is integrated into existing instance segmentation models like Mask R-CNN and Cascade R-CNN with minimal architectural changes.
  • The method avoids pre-training or pre-processing, relying on the inherent mathematical properties of DCT for efficient, real-time compression and reconstruction.
  • The DCT coefficients are decoded back into a high-resolution mask during inference using inverse DCT, enabling accurate mask reconstruction.
  • The approach is compatible with any mask head architecture, as shown by consistent gains across different fully connected layer configurations.

Experimental results

Research questions

  • RQ1Can a DCT-based mask representation achieve higher reconstruction fidelity than low-resolution binary grids while maintaining low computational complexity?
  • RQ2Does improving mask representation quality lead to measurable gains in mask AP across diverse datasets and backbone architectures?
  • RQ3Can DCT-Mask be effectively integrated into existing instance segmentation frameworks without pre-training or significant architectural changes?
  • RQ4How does DCT-Mask compare to other compact representation methods like PCA or iterative rendering (e.g., PointRend) in terms of accuracy, FLOPs, and inference speed?
  • RQ5Does the performance gain of DCT-Mask scale with annotation quality and model complexity?

Key findings

  • DCT-Mask achieves 97% IoU with a 300-dimensional DCT vector compressed from a 128×128 mask, significantly outperforming the 93.8% IoU of standard 28×28 binary grids.
  • On COCO, DCT-Mask improves mask AP by 1.3% with ResNet-50 and 2.0% with ResNeXt-101, demonstrating consistent gains across backbones.
  • On the LVIS dataset, DCT-Mask achieves a 2.1% AP gain with ResNet-50 and 3.1% with ResNeXt-101, indicating greater benefit on complex or high-quality annotations.
  • On Cityscapes, DCT-Mask improves AP from 30.6 to 30.6 (baseline) to 30.6 (improved), showing consistent gains even on fine-annotation datasets.
  • DCT-Mask outperforms PointRend in both AP (36.5 vs. 36.3) and inference speed (22 FPS vs. 16 FPS), while using only half the FLOPs.
  • The method incurs almost no speed penalty, maintaining 22 FPS on V100 GPU, and shows no need for pre-training or pre-processing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.