Understanding Imbalanced Semantic Segmentation Through Neural Collapse

Zhisheng Zhong, Jiequan Cui, Yibo Yang, Xiaoyang Wu, Xiaojuan Qi, Xiangyu Zhang, Jiaya Jia

Abstract

Neural collapse (NC) is a phenomenon where class features converge to a symmetric simplex Equiangular Tight Frame (ETF) at the end of training, maximizing class separation. While well-documented in image classification, NC is notably absent in semantic segmentation due to contextual correlations and extreme class imbalance. We introduce the Center Collapse Regularizer (CeCo), a dual-branch framework that forces class feature centers toward an ideal ETF geometry. CeCo enables the model to learn context-aware features while maintaining maximal class separation. Our method achieves significant performance gains on imbalanced 2D and 3D datasets, including a new state-of-the-art on the ScanNet200 benchmark.

1. Introduction

In deep learning, "Neural Collapse" refers to the geometric convergence of features into a perfectly symmetric, maximally separated structure. In this ideal state, every class is as far away from every other class as possible in the feature space. However, research indicates that this phenomenon does not naturally occur in semantic segmentation (pixel-wise classification).

Ideal equiangular separation (a) vs. the non-discriminative collapse observed in imbalanced segmentation (b).

The breakdown of NC in segmentation is attributed to two primary factors:

  1. Contextual Correlation: Pixels in a scene are inherently related (e.g., a "keyboard" is usually on a "desk"). A rigid, perfectly symmetric feature space can hinder the model's ability to learn these useful spatial relationships.
  2. Severe Class Imbalance: Segmentation datasets are often "long-tailed." Common classes like "wall" overwhelm rare classes like "fire extinguisher," causing the features of rare classes to be "swallowed" into non-discriminative regions of the feature space.

2. Empirical Analysis of Neural Collapse

Empirical evidence confirms that segmentation tasks resist the geometric simplicity of NC. By measuring the standard deviation of cosine similarities between classes, we observe that segmentation features remain significantly less equiangular than those in standard classification tasks like CIFAR100.

Standard deviation of cosine similarities across various datasets. Segmentation tasks (b-e) show significantly higher variance than classification (a), indicating that neural collapse is naturally broken in these tasks.

3. Methodology: Center Collapse Regularizer (CeCo)

To address these challenges, we propose the Center Collapse Regularizer (CeCo). This dual-branch framework consists of:

  • The Recognition Branch: A standard segmentation network with a learnable classifier. This allows the model to remain flexible and adapt to contextual correlations between classes.
  • The Regularization Branch: During training, the model calculates the mean feature vector (the "center") for every class present in the current batch. These centers are passed through a fixed classifier whose weights are pre-set to form a perfect simplex ETF.

By applying a cross-entropy loss in this second branch, the model is "pulled" to learn features that are both context-aware and maximally separated. Crucially, the regularization branch is discarded at inference time, resulting in zero extra computational cost during deployment.

4. Experimental Results

CeCo delivers consistent, significant improvements across several large-scale, highly imbalanced benchmarks:

  • ScanNet200: Achieved 1st place on the leaderboard, setting a new record with a +6.8% mIoU improvement over previous state-of-the-art methods. Rare "tail" categories saw a dramatic jump from 7.9% to 18.1% mIoU.
  • ADE20K & COCO-Stuff: The method provided steady gains regardless of the backbone used, including ResNet-101 (+1.6% on ADE20K) and Swin-T (+1.8% on COCO-Stuff).
  • Architecture Agnostic: CeCo is compatible with various backbones and can be combined with other popular segmentation losses, such as Dice or Lovász loss, for further gains.

5. Conclusion

CeCo addresses the limitations of neural collapse in semantic segmentation by regularizing feature centers rather than fixing the classifier itself. This approach effectively handles severe class imbalance while preserving the contextual information necessary for pixel-wise tasks. Future work may explore the application of the neural collapse perspective to other complex tasks, such as object detection or instance segmentation.

Summary updated

BibTeX
@inproceedings{zhong2023understanding,
  author = {Zhisheng Zhong and Jiequan Cui and Yibo Yang and Xiaoyang Wu and Xiaojuan Qi and Xiangyu Zhang and Jiaya Jia},
  title = {{Understanding Imbalanced Semantic Segmentation Through Neural Collapse}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure