Papers
Topics
Authors
Recent
Search
2000 character limit reached

JoDiffusion: Joint Segmentation Generation

Updated 22 December 2025
  • JoDiffusion is a generative dataset framework that simultaneously synthesizes images and pixel-level annotation masks directly from textual prompts.
  • It leverages a latent diffusion model paired with an annotation VAE to jointly model visual content and categorical segmentation maps, ensuring precise semantic alignment.
  • Empirical evaluations show 3–8 point improvements in mIoU on benchmarks like Pascal VOC, COCO, and ADE20K over conventional Image2Mask and Mask2Image pipelines.

JoDiffusion is a generative dataset framework for semantic segmentation, designed to jointly synthesize images and precisely aligned pixel-level annotation masks directly from textual prompts. It addresses the twin challenges of annotation cost and semantic consistency that hamper traditional segmentation data pipelines, and leverages a tailored latent diffusion model to parameterize the joint distribution over visual content and categorical segmentation maps (Wang et al., 15 Dec 2025).

1. Motivation and Problem Formulation

Semantic segmentation benchmarks demand dense, per-pixel annotations, incurring significant manual labor. Given an image xx and label map mm—with mm a spatial tensor of integer class assignments—the construction of large, diverse (x,m)(x, m) datasets is a key bottleneck. Synthetic data promises scalability, but two prevailing paradigms have notable drawbacks:

  • Image2Mask: A standard text-to-image diffusion model produces xx conditioned on textual prompt cc; pseudo-masks m′m' are then extracted from xx via attention clustering or saliency. This yields poorly localized or noisy m′m', especially for complex layouts.
  • Mask2Image: Images are generated from manual masks plus prompts. This is limited by mask diversity and is infeasible for intricate or rare semantic compositions.

JoDiffusion directly models the paired distribution pθ(x,m∣c)p_\theta(x, m \mid c), ensuring semantic alignment while obviating the need for mask templates or post hoc mask generation.

2. Model Architecture and Latent Formulation

JoDiffusion consists of two primary modules:

  • Latent Diffusion Backbone: A conventional text-to-image latent diffusion model (e.g., Stable Diffusion, U-ViT) parameterizes image latents mm0.
  • Annotation VAE: A neural variational auto-encoder (VAE) for segmentation masks encodes discrete label maps mm1 into low-dimensional latents mm2.

The entire generative process operates in the joint latent space mm3, enabling coupled synthesis. All components are conditional on textual prompt mm4. Notation summary:

Symbol Description Domain
mm5 RGB input image mm6
mm7 Pixel-level annotation mask mm8
mm9 Text prompt (caption) —
mm0 Image latent code Typically mm1
mm2 Mask latent code (VAE) Typically mm3

The objective is to learn mm4 such that samples mm5 are both photorealistic and precisely labeled for downstream segmentation training.

3. Diffusion Process and Joint Training Objective

3.1 Standard Latent Diffusion

The core is the latent diffusion forward process for an image:

mm6

with cumulative reparameterization: mm7 Noise predictor mm8 is trained via: mm9

3.2 Annotation VAE

For mask (x,m)(x, m)0, a VAE is trained: (x,m)(x, m)1 with mask loss (using deterministic encoding, no KL penalty): (x,m)(x, m)2

3.3 Joint Diffusion Chain

The joint forward noising couples (x,m)(x, m)3: (x,m)(x, m)4

Reverse denoising uses a unified predictor: (x,m)(x, m)5 Optimized via MSE on joint noise: (x,m)(x, m)6 Alternatively, terms for image and mask can be weighted by (x,m)(x, m)7.

4. Mask Optimization and Data Generation Pipeline

Despite joint modeling, generated masks (x,m)(x, m)8 can contain spurious small regions. To correct, JoDiffusion uses boundary-mode correction: for each small connected region (x,m)(x, m)9 (xx0, with typical xx1 px), all pixels in xx2 are relabeled to the mode category among boundary pixels xx3: xx4

xx5

Dataset synthesis proceeds as follows:

  1. Sample a text prompt xx6 describing the scene.
  2. Initialize xx7.
  3. Perform xx8 joint reverse diffusion steps.
  4. Decode to xx9, cc0.
  5. Optionally diversify prompts via template expansion or LLM-based paraphrasing.

5. Implementation Specifics

  • Image VAE: Derived from Stable Diffusion, cc1300M parameters, operating at cc2 resolution.
  • Annotation VAE: Lightweight convolutional, cc350M parameters, latent size cc4.
  • Diffusion Backbone: U-ViT/Unidiffuser, 24 layers, 1024 dimensions. cc5 diffusion steps with cc6 linearly scheduled in cc7.
  • Training Details: AdamW optimizer, learning rate cc8, batch size 64, 200k iterations. Data augmentation includes random flips and prompt augmentation.

6. Empirical Evaluation and Results

JoDiffusion demonstrates significant improvements in segmentation training when using generated datasets on standard benchmarks:

Dataset & Model Real mIoU Best Prior (Synth/Real+Synth) JoDiffusion (Synth/Real+Synth)
Pascal VOC (DeepLabV3-R50) 77.4 SDS: 60.4 / 77.6 72.5 / 78.3
COCO (DeepLabV3-R50) 48.9 Dataset Diffusion: 32.4 / 54.6 42.6 / 56.4
ADE20K (Mask2Former-R50) 47.2 FreeMask: 48.2 48.4

Across architectures (ResNet101, Swin-S), JoDiffusion delivered consistent 3–8 point improvements in mIoU over conventional Image2Mask and Mask2Image pipelines. Qualitative analysis reports sharp, pixel-precise contours and reliable object–label alignment, even for cluttered scenes and small object instances.

7. Scalability and Extensions

By conditioning generation solely on text, JoDiffusion can theoretically synthesize unlimited, diverse paired images and annotation maps without reliance on hand-crafted mask sets or semantic templates. Extensions proposed include multi-modal VAE integration (for depth, instance IDs), unified latent spaces for multi-task training, and LLM-guided prompt design to emphasize rare or challenging semantic classes (Wang et al., 15 Dec 2025). This suggests strong potential for domain-adaptive synthetic dataset construction and large-scale semantic segmentation model enhancement.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to JoDiffusion.