GS: Generative Segmentation via Label Diffusion

Yuhao Chen, Shubin Chen, Liang Lin, Guangrun WangarXiv 2025 · DOI

Introduction

Language-driven image segmentation is a complex computer vision task that requires identifying and masking specific regions of an image based on free-form natural language descriptions. Traditional approaches have largely treated this as a discriminative problem, where models attempt to classify individual pixels as foreground or background based on their alignment with text features.

While the advent of diffusion models has revolutionized image generation, their application to segmentation has primarily been "image-centric"—using frozen backbones for feature extraction or performing diffusion inversion to extract attention maps. The authors of GS (Generative Segmentation) propose a fundamental shift: treating the segmentation mask itself as the primary target of a generative diffusion process.

From Discriminative to Generative Paradigms

Existing methods for language-driven segmentation typically fall into two categories: pixel-noun matching or feature-based diffusion inversion. In contrast, GS introduces Label Diffusion, which reframes segmentation as a primary generative task in the "label space."

Comparison of segmentation paradigms: (a) traditional discriminative matching, (b) diffusion-based feature extraction, and (c) the proposed GS generative label diffusion.

By generating masks directly from Gaussian noise, the model leverages the inherent spatial reasoning capabilities of diffusion architectures. This approach allows the model to focus its entire capacity on the geometric and semantic properties of the labels rather than the complexities of RGB pixel synthesis.

The GS Framework

The core of the GS framework is a denoising process that operates within the latent space of a Variational Autoencoder (VAE). The architecture is built upon a dual-branch conditioning system that ensures the generated mask is faithful to both the visual scene and the textual description.

The GS architecture featuring dual-branch conditioning and a multi-scale adapter for label-space denoising.

Dual-Branch Conditioning

  1. Spatial Conditioning: The input image is encoded via a VAE and concatenated channel-wise with the noisy label map. This provides a pixel-aligned structural template that guides the denoising process.
  2. Semantic Conditioning: Natural language descriptions are processed through a CLIP text encoder. These features are injected into a denoising U-Net (based on the SDXL architecture) using a novel Token-Level Adapter Injection. This mechanism allows image tokens to attend specifically to language signals, improving the precision of the grounding.

Inference and Guidance

During inference, GS employs Classifier-Free Guidance (CFG). By trading off sample diversity for higher fidelity to the conditioning text, CFG significantly enhances the alignment between the resulting mask and the complex narratives provided in the input.

Experimental Evaluation

The framework was evaluated on the Panoptic Narrative Grounding (PNG) benchmark, which is significantly more challenging than standard datasets. PNG utilizes "Localized Narratives"—long, free-form captions describing multiple objects ("things") and regions ("stuff") in a single scene.

Key Results

GS established a new state-of-the-art on the PNG benchmark:

  • Quantitative Performance: GS achieved an Average Recall (AR) of 69.7, a 2.6-point improvement over the previous leading method (EIPA+MLMA).
  • Category Strengths: The model performed exceptionally well in the "stuff" category (76.5 AR), effectively segmenting large, amorphous regions like sky, grass, and water.
  • Qualitative Fidelity: Due to the continuous nature of the denoising process, GS produces masks with smoother, more natural contours than the often jagged outputs of traditional pixel-classification models.

Discussion and Limitations

While GS represents a significant leap forward, the authors identify specific areas for improvement. The model currently faces challenges with very small objects ("things"), likely due to information loss during VAE latent space compression. Furthermore, the model's performance is sensitive to input resolution, showing a decline when moving from 1024x1024 to 512x512 pixels.

Future research directions include adopting higher-resolution VAE architectures to preserve fine-grained details and extending the label diffusion concept to temporal domains such as video segmentation. By shifting the focus from image generation to label generation, GS demonstrates that diffusion models can be powerful, unified tools for dense semantic understanding.

Summary updated

BibTeX
@misc{chen2025gs,
  author = {Yuhao Chen and Shubin Chen and Liang Lin and Guangrun Wang},
  title = {{GS: Generative Segmentation via Label Diffusion}},
  year = {2025},
  eprint = {2508.20020},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.20020},
}
Figure