[Paper Review] GMMSeg: Gaussian Mixture based Generative Semantic Segmentation Models
GMMSeg introduces a dense generative classifier for semantic segmentation by modeling class-conditional feature densities with Gaussian Mixtures, trained with online Sinkhorn EM while the feature extractor is trained discriminatively.
Prevalent semantic segmentation solutions are, in essence, a dense discriminative classifier of p(class|pixel feature). Though straightforward, this de facto paradigm neglects the underlying data distribution p(pixel feature|class), and struggles to identify out-of-distribution data. Going beyond this, we propose GMMSeg, a new family of segmentation models that rely on a dense generative classifier for the joint distribution p(pixel feature,class). For each class, GMMSeg builds Gaussian Mixture Models (GMMs) via Expectation-Maximization (EM), so as to capture class-conditional densities. Meanwhile, the deep dense representation is end-to-end trained in a discriminative manner, i.e., maximizing p(class|pixel feature). This endows GMMSeg with the strengths of both generative and discriminative models. With a variety of segmentation architectures and backbones, GMMSeg outperforms the discriminative counterparts on three closed-set datasets. More impressively, without any modification, GMMSeg even performs well on open-world datasets. We believe this work brings fundamental insights into the related fields.
Motivation & Objective
- Motivate beyond discriminative p(class|pixel feature) by modeling p(pixel feature|class) to capture data distributions.
- Develop a Gaussian Mixture Model (GMM) based classifier for each class to model class-conditional densities p(x|c).
- Enable end-to-end learning by jointly training a discriminative feature extractor while optimizing the GMM classifier generatively.
- Improve segmentation performance across closed-set datasets and enable open-world anomaly segmentation without architectural changes.
- Provide a principled framework that combines generative density modeling with discriminative representation learning.
Proposed method
- Model class-conditional densities p(x|c) as a mixture of Gaussians with M components per class.
- Use EM (with a Sinkhorn-based reformulation) to estimate GMM parameters φ_c for each class c online during training.
- Represent class densities with diagonal covariances to reduce computation.
- Compress pixel features to D=64 via a 1x1 convolution before GMM evaluation.
- Train the feature extractor f_theta discriminatively by maximizing p(c|x) derived from the GMM, while updating GMM parameters φ_c via EM in a momentum fashion (τ=0.999).
- Utilize an external memory/queue of features to support large-scale EM across batches.
Experimental results
Research questions
- RQ1Can a generative, class-conditional density model improve segmentation beyond traditional discriminative softmax classifiers?
- RQ2Does integrating online EM-based GMM optimization with end-to-end discriminative feature learning yield robust performance on closed-set datasets?
- RQ3Can GMMSeg handle open-world and anomaly segmentation without modifying architecture or training protocols?
- RQ4How does a multi-component Gaussian mixture per class compare to unimodal, single Gaussian or pure discriminative models in segmentation tasks?
Key findings
- GMMSeg outperforms softmax-based discriminative counterparts on three closed-set datasets across multiple architectures and backbones.
- The method achieves meaningful anomaly/open-world performance without architecture changes or extra calibration.
- A hybrid training scheme yields gains of 0.6–1.7 percentage points in mIoU on ADE20K, Cityscapes, and COCO-Stuff datasets, respectively (reported in abstract).
- The approach naturally provides a density-based measure for out-of-distribution or anomalous inputs due to explicit modeling of p(x|c).
- GMMSeg is compatible with a variety of modern segmentation architectures (DeepLabV3+, OCRNet, UperNet, SegFormer) and backbones (ResNet, HRNet, Swin, MiT).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.