Consistent-Separable Feature Representation for Semantic Segmentation

Xingjian He, Jing Liu, Jun Fu, Xinxin Zhu, Jinqiao Wang, Hanqing Lu

Introduction

Semantic segmentation aims to assign a categorical label to every pixel in an image. While modern deep learning models have made significant strides, they often struggle with intra-class consistency. Standard training objectives, such as the softmax cross-entropy loss, are effective at separating different classes (inter-class separability) but do not explicitly encourage pixels belonging to the same class to have similar feature representations. This often results in fragmented or inconsistent predictions for large objects where local features may vary significantly.

To address this, researchers proposed the Consistent-Separable Feature Representation Network (CSFRN). This framework explicitly supervises the feature space to be both consistent within classes and separable between them, leading to more robust and accurate segmentation.

Methodology

The CSFRN architecture introduces two novel modules designed to refine feature representations and aggregate them effectively.

Overview of the CSFRN architecture, highlighting the Consistent-Separable Feature Learning Module (CSFLM) and the Adaptive Feature Aggregation Module (AAM).

Consistent-Separable Feature Learning Module (CSFLM)

The CSFLM is the core component that enforces a "pull-push" mechanism in the feature space. It operates through three main mechanisms:

  1. Semantic Centers: During training, the module calculates a representative average feature vector (center) for each class present in an image using ground-truth labels.
  2. Class-Aware Consistency (CAC) Loss: This loss function uses a Gaussian-based distance metric to pull individual pixel features toward their respective class centers while pushing them away from the centers of other classes.
  3. Adaptive Margins: Recognizing that different semantic categories have varying levels of internal diversity (e.g., "sky" vs. "person"), the module learns category-specific margins. These margins adaptively control how tightly features are clustered for each class.

Adaptive Feature Aggregation Module (AAM)

Once semantically "clean" Consistent-Separable (C-S) features are learned, they must be fused with high-resolution spatial features from the backbone network (e.g., ResNet). The AAM utilizes deformable convolutions where the C-S features guide the sampling offsets. This ensures that the fusion process is semantically informed, helping the model better align spatial details with categorical information.

Experimental Results

The CSFRN was evaluated on major benchmarks, including Cityscapes, ADE20K, COCO Stuff, and PASCAL Context.

Quantitative Performance

The model achieved state-of-the-art results across the board:

  • Cityscapes: 82.6% mIoU on the test set.
  • ADE20K: 46.65% mIoU, setting a new state-of-the-art at publication.
  • COCO Stuff: 41.3% mIoU.
  • PASCAL Context: 55.9% mIoU.

Ablation studies confirmed the efficacy of the proposed modules. Adding the CSFLM to a DeepLabv3+ baseline yielded a significant improvement in mIoU, demonstrating its value as a "plug-and-play" enhancement for existing architectures.

Qualitative Analysis

Visual comparisons highlight the model's ability to produce more coherent segmentation masks, especially in complex urban scenes.

Qualitative comparison on the Cityscapes dataset. The CSFRN (Ours) produces cleaner and more consistent segmentation masks compared to the DeepLabv3+ baseline.

As shown in the visual results, the CSFRN effectively reduces misclassifications within large objects and maintains sharper boundaries, validating the "top-down" supervision approach for feature manifold learning.

Conclusion

The CSFRN framework demonstrates that explicit supervision of feature consistency and separability is a powerful strategy for semantic segmentation. By moving beyond the standard loss functions and providing semantically guided feature aggregation, the model achieves superior performance across diverse and challenging datasets. Future work may involve extending these principles to video sequences to ensure temporal consistency.

Summary updated

BibTeX
@inproceedings{he2021consistent,
  author = {Xingjian He and Jing Liu and Jun Fu and Xinxin Zhu and Jinqiao Wang and Hanqing Lu},
  title = {{Consistent-Separable Feature Representation for Semantic Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16244},
}
Figure