Abstract
Generative Semantic Segmentation (GSS) redefines semantic segmentation not as a pixel-classification task, but as an image-conditioned mask generation problem. By representing segmentation masks as "maskiges" (mask-images), the framework leverages powerful, off-the-shelf generative models (like VQVAE from DALL-E) to achieve state-of-the-art results in cross-domain generalization with significantly reduced training costs.
Introduction
Traditional semantic segmentation follows a discriminative learning paradigm: for every pixel in an image, the model predicts a category label. While highly successful, this approach has two major drawbacks. First, it is often "brittle" when moving between datasets (poor cross-domain generalization) because it learns specific classification boundaries rather than the underlying structure of the scene. Second, it cannot easily tap into the massive progress made in generative AI, where models are trained on billions of images to understand global structure and context.
The challenge in bridging this gap is the data format. Generative models are designed for RGB images, while segmentation masks are discrete label maps. The authors aim to "generative-ify" segmentation to make it more robust and task-agnostic.
Methods
The core innovation is the "maskige" (a portmanteau of mask and image). The authors transform a discrete $K$-class segmentation mask into a 3-channel RGB-like image where each category is represented by a specific color. This allows them to treat a mask as just another image.
The GSS framework uses a two-stage optimization process based on the Evidence Lower Bound (ELBO):
- Stage I: Latent Posterior Learning: Instead of training a generative model from scratch, they use a pre-trained VQVAE (from the DALL-E project). They optimize a lightweight transformation ($\mathcal{X}$) that maps the segmentation mask to a "maskige" such that the VQVAE can perfectly reconstruct it. This effectively "compresses" the mask into a discrete latent space ($z$).
- Stage II: Latent Prior Learning: They train a conditioning network (an image encoder like Swin Transformer) to predict these latent tokens ($z$) from the original input image.
During inference, the image encoder predicts the latents, the VQVAE decoder turns them into a "maskige," and an inverse transformation ($\mathcal{X}^{-1}$) converts the colors back into class labels.
Key Insights and Ideas
- Generative Models Generalize Better: Because GSS learns the distribution of masks rather than just a classification boundary, it is far more robust. When tested on "unseen" domains in the MSeg benchmark, GSS outperformed traditional discriminative models.
- The "Maximal Distance Assumption": To make the "maskige" effective, the authors found that the choice of colors matters. They hand-designed color palettes where categories are as far apart as possible in the 3D RGB space, preventing the model from confusing similar-looking labels.
- Leveraging "Big" AI for "Small" Tasks: By using a VQVAE trained on 300 million images, GSS inherits a deep understanding of image structure. This allows the model to achieve high performance with much less task-specific training than previous generative attempts like UViM.
- Handling Unlabeled Areas: Generative models usually struggle with "void" or unlabeled pixels because they try to generate the whole image. GSS introduces an auxiliary pseudo-labeling head to predict labels for these gaps during training, which significantly boosts final accuracy.
Key Results
The authors evaluated GSS on three major benchmarks: Cityscapes, ADE20K, and MSeg (a composite dataset for cross-domain evaluation).
- Competitive Performance: On Cityscapes, GSS achieved 80.05 mIoU, matching or exceeding heavyweights like Mask2Former and SegFormer.
- Cross-Domain King: In the MSeg zero-shot benchmark, GSS set a new state-of-the-art with an h.mean of 61.9, proving its superior robustness.
- Efficiency: While some generative models require thousands of TPU hours, GSS's Stage I is nearly "zero-cost" because it uses pre-trained weights, making it as efficient to train as standard discriminative models.
Limitations and Future Work
The authors identify a few key hurdles: generative models sometimes produce slightly "fuzzier" object boundaries compared to per-pixel classifiers. Additionally, as the number of categories increases, the RGB "maskige" space becomes crowded, which could lead to category confusion. Future work may involve expanding the maskige to higher dimensions or moving toward a single "foundation model" that can perform multiple vision tasks within the same generative framework.
Summary updated