Mining Contextual Information Beyond Image for Semantic Segmentation

Zhenchao Jin, Tao Gong, Dongdong Yu, Qi Chu, Jian Wang, Changhu Wang, Jie ShaoICCV 2021

Abstract

This paper studies the context aggregation problem in semantic image segmentation. The existing researches focus on improving the pixel representations by aggregating the contextual information within individual images. Though impressive, these methods neglect the significance of the representations of the pixels of the corresponding class beyond the input image. To address this, this paper proposes to mine the contextual information beyond individual images to further augment the pixel representations. We first set up a feature memory module, which is updated dynamically during training, to store the dataset-level representations of various categories. Then, we learn class probability distribution of each pixel representation under the supervision of the ground-truth segmentation. At last, the representation of each pixel is augmented by aggregating the dataset-level representations based on the corresponding class probability distribution. Furthermore, by utilizing the stored dataset-level representations, we also propose a representation consistent learning strategy to make the classification head better address intra-class compactness and inter-class dispersion. The proposed method could be effortlessly incorporated into existing segmentation frameworks (e.g., FCN, PSPNet, OCRNet and DeepLabV3) and brings consistent performance improvements. Mining contextual information beyond image allows us to report state-of-the-art performance on various benchmarks: ADE20K, LIP, Cityscapes and COCO-Stuff.

Introduction

In semantic segmentation, context is essential for identifying pixels accurately. While current state-of-the-art models excel at mining intra-image context—clues from within the same frame—they often struggle with unusual lighting or occlusions because they are "short-sighted."

Conceptual overview of mining context beyond the current input image by utilizing historical dataset-level information.

This research introduces MCIBI (Mining Contextual Information Beyond Image), which shifts the focus toward dataset-level context. By leveraging a global memory of how classes appear across the entire dataset, the model can resolve local ambiguities that traditional methods might miss.

Methodology

The MCIBI framework introduces three key components to capture and utilize global contextual information:

Detailed architecture of the MCIBI framework, highlighting the Feature Memory Module (FMM), Dataset-Level Context Aggregation (DCA), and Representation Consistent Learning (RCL).

Feature Memory Module (FMM)

The FMM acts as a dynamic repository of class prototypes. It stores a representative feature vector for every category in the dataset, updated during training via a momentum-based moving average. This ensures the "memory" evolves alongside the model's learning process.

Dataset-Level Context Aggregation (DCA)

For any given pixel, the model predicts a class probability distribution. It then uses these probabilities to query the FMM, retrieving relevant dataset-level features to augment the pixel's original representation. This process allows the model to "fill in the gaps" for partially hidden or ambiguous objects using idealized global prototypes.

Representation Consistent Learning (RCL)

To maintain memory accuracy, RCL forces the classification head to correctly identify both image pixels and the stored prototypes. This strategy encourages intra-class compactness (making features of the same class similar) and inter-class dispersion (making different classes distinct).

Experimental Results

MCIBI was evaluated on challenging benchmarks including ADE20K, Cityscapes, LIP, and COCO-Stuff, demonstrating significant improvements over baseline architectures.

  • State-of-the-Art Performance: The method achieved 50.80% mIoU on ADE20K and 56.99% mIoU on the LIP dataset, setting new records at the time of publication.
  • Versatility: As a plug-and-play module, MCIBI consistently boosted performance when added to FCN, PSPNet, DeepLabV3, and OCRNet. For example, adding it to a standard FCN on ADE20K increased mIoU from 36.96% to 42.84%.
  • Efficiency: The DCA module is computationally lighter than many standard context modules, requiring fewer parameters and FLOPs than the popular ASPP module.
  • Robust Generalization: When trained on LIP and tested on the CIHP dataset without retraining, the MCIBI-enhanced model significantly outperformed baselines, proving the robustness of the learned dataset-level representations.

Conclusion

By mining contextual information beyond individual images, MCIBI addresses a fundamental limitation in traditional semantic segmentation. The framework's ability to integrate global dataset statistics into local pixel representations leads to superior accuracy, better feature clustering, and improved generalization across diverse and challenging datasets.

Summary updated

BibTeX
@inproceedings{jin2021mining,
  author = {Zhenchao Jin and Tao Gong and Dongdong Yu and Qi Chu and Jian Wang and Changhu Wang and Jie Shao},
  title = {{Mining Contextual Information Beyond Image for Semantic Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=7UGeTpEyrt},
}
Figure