Skip to main content
QUICK REVIEW

[Paper Review] GenMask: Adapting DiT for Segmentation via Direct Mask Generation

Yuhuan Yang, Xianwei Zhuang|arXiv (Cornell University)|Mar 25, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

GenMask trains a diffusion transformer (DiT) to directly generate binary segmentation masks in RGB space under a unified generative objective, achieving state-of-the-art results on referring and reasoning segmentation benchmarks without relying on indirect feature extraction pipelines.

ABSTRACT

Recent approaches for segmentation have leveraged pretrained generative models as feature extractors, treating segmentation as a downstream adaptation task via indirect feature retrieval. This implicit use suffers from a fundamental misalignment in representation. It also depends heavily on indirect feature extraction pipelines, which complicate the workflow and limit adaptation. In this paper, we argue that instead of indirect adaptation, segmentation tasks should be trained directly in a generative manner. We identify a key obstacle to this unified formulation: VAE latents of binary masks are sharply distributed, noise robust, and linearly separable, distinct from natural image latents. To bridge this gap, we introduce timesteps sampling strategy for binary masks that emphasizes extreme noise levels for segmentation and moderate noise for image generation, enabling harmonious joint training. We present GenMask, a DiT trains to generate black-and-white segmentation masks as well as colorful images in RGB space under the original generative objective. GenMask preserves the original DiT architecture while removing the need of feature extraction pipelines tailored for segmentation tasks. Empirically, GenMask attains state-of-the-art performance on referring and reasoning segmentation benchmarks and ablations quantify the contribution of each component.

Motivation & Objective

  • Motivate segmentation as a downstream adaptation task using generative models and highlight misalignment in existing indirect feature-based approaches.
  • Propose a unified generative training framework (GenMask) that directly generates binary masks and RGB images under a DiT backbone.
  • Bridge the gap between VAE latents of binary masks and natural images through a tailored timestep sampling strategy.
  • Incorporate low-level texture cues via VAE latents and a vision-language model to enable conditioning for both generation and segmentation.
  • Show empirically that joint training on segmentation and generative data yields state-of-the-art results on referring and reasoning segmentation tasks.

Proposed method

  • Retain the original DiT architecture and add a segmentation objective that generates binary masks in RGB space under the same generative objective.
  • Introduce a specialized timesteps sampling strategy that concentrates high-noise timesteps for segmentation and moderate/noise timesteps for image generation.
  • Incorporate VAE latent representations of the input image as a low-level shortcut to provide texture/color cues for segmentation.
  • Use a vision-language model to encode instructions and unify conditioning for generation and segmentation tasks.
  • Experiment with three segmentation supervision formats (MSE in VAE space, BCE in RGB space with decoupled VAE, and BCE after a learned linear projection) and find MSE in VAE space best aligns with the DiT objective.
  • Enable one-step inference for segmentation by performing segmentation at t=1 and decoding via VAE to obtain a binary mask.

Experimental results

Research questions

  • RQ1Can segmentation be effectively trained directly in a generative framework without relying on diffusion feature extraction pipelines?
  • RQ2How can the gap between binary mask representations and natural image representations be bridged to enable joint generation and segmentation?
  • RQ3Does a task-specific timesteps sampling strategy improve segmentation performance when training a diffusion-based model?
  • RQ4What is the impact of incorporating low-level VAE latent information and a vision-language conditioning model on segmentation quality?
  • RQ5Can generation data augment segmentation training to improve performance on referring and reasoning segmentation benchmarks?

Key findings

  • GenMask achieves state-of-the-art performance on referring segmentation benchmarks (e.g., RefCOCO series and ReasonSeg).
  • A segmentation-specific timesteps sampling strategy that emphasizes high-noise regions substantially improves segmentation performance.
  • Using MSE loss in VAE latent space for segmentation supervision yields the best results among the tested formats.
  • Incorporating VAE latents as a low-level input for segmentation significantly improves pixel-level accuracy.
  • Jointly training with generation data (1:1 mix) benefits segmentation performance.
  • Aone-step inference for segmentation (t=1) is sufficient for accurate mask generation under the unified objective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.