cs.CVMar 25, 2026

GenMask: Adapting DiT for Segmentation via Direct Mask Generation

Authors: Yuhuan Yang, Xianwei Zhuang, Yuxuan Cai, Chaofan Ma, Shuai Bai, Jiangchao Yao, Ya Zhang, Junyang Lin, 

Organizations: Cooperative Medianet Innovation Center, Shanghai Jiao Tong University · Alibaba Group · School of Artificial Intelligence, Shanghai Jiao Tong University · Institute of Artificial Intelligence for Medicine, Shanghai Jiao Tong University School of Medicine

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.

Figures & tables

Explore similar work

CardsList
  1. GET: Generative Embedding Translation for Medical Image Segmentation

    Aug 23, 2026Md Maklachur Rahman, Md Hasan Al Banna, Saraf Anjum +2Image SegmentationMedical Image Segmentation

  2. Diffusion Model as a Generalist Segmentation Learner

    Apr 27, 2026Haoxiao Wang, Antao Xiang, Haiyang Sun +8Image SegmentationText-Guided Image Segmentation

  3. FocusDiT: Masking Queries in Diffusion Transformers for Fine-grained Image Generation

    Jun 1, 2026Xueji Fang, Liyuan Ma, Jianhao Zeng +3Diffusion TransformerImage Generation