JoDiffusion: Jointly Diffusing Image with Pixel-Level Annotations for Semantic Segmentation Promotion

Haoyu Wang, Lei Zhang, Wenrui Liu, Dengyang Jiang, Wei Wei, Chen Ding

TL;DR

JoDiffusion is a novel generative framework that simultaneously produces high-quality synthetic images and their corresponding pixel-level semantic segmentation masks from simple text prompts. By modeling the joint distribution of images and annotations in a shared latent space, it eliminates the semantic inconsistencies and scalability bottlenecks that plagued previous "step-by-step" synthetic data generation methods.

What Problem Does This Paper Address?

Training high-performance semantic segmentation models requires massive amounts of pixel-level annotated data. However, manually labeling every pixel in an image is prohibitively expensive and time-consuming.

To solve this, researchers have turned to synthetic data generation, but existing methods fall into two flawed categories:

  1. Image2Mask: These models generate an image first and then try to predict a "pseudo-label" mask. This often leads to semantic inconsistency, where the predicted mask doesn't perfectly align with the generated objects.
  2. Mask2Image: These models take a human-drawn mask and generate a matching image. While accurate, this lacks scalability because you still need a library of manual masks to start the process.

JoDiffusion aims to bridge this gap by generating both the image and the mask at the same time, using only a text description as input.

Methods

The JoDiffusion framework operates in three distinct stages:

  • Annotation VAE: Standard Variational Auto-Encoders (VAEs) are designed for continuous RGB values, not discrete category labels. The authors developed a lightweight, independent Annotation VAE to map discrete segmentation masks into a compact latent space that is compatible with image diffusion models.
  • Joint Diffusion Modeling: This is the core innovation. Instead of diffusing images and masks separately, JoDiffusion uses a joint diffusion process. It takes the text prompt, the image latent, and the mask latent and denoises them simultaneously. Crucially, it introduces a shared noise perturbation during training, forcing the model to learn the inherent relationship between visual pixels and semantic labels.
  • Mask Optimization Strategy: Diffusion models can sometimes produce "speckle" noise or inconsistent labels at object boundaries. The authors implemented a boundary mode-based correction strategy. It analyzes small regions, looks at the most frequent labels on their boundaries, and "cleans up" the interior pixels to ensure structural coherence.

Datasets

The authors evaluated JoDiffusion on three major computer vision benchmarks:

  • Pascal VOC: A classic dataset with 20 object categories.
  • MS-COCO: A more complex dataset featuring 80 object categories in diverse scenes.
  • ADE20K: A challenging scene-parsing dataset with 150 fine-grained semantic concepts.

The researchers used these datasets to train their generative model and then used the generated synthetic data to train standard segmentation architectures like DeepLabV3 and Mask2Former.

Key Insights and Ideas

  • The Power of "Jointness": By treating the image and the mask as two different "views" of the same underlying semantic concept, the model ensures they stay "locked" together during generation. This solves the alignment issues seen in Image2Mask pipelines.
  • Shared Noise as a Bridge: Using the same noise pattern for both the image and mask latents during the diffusion process acts as a powerful regularizer, ensuring that a "cat" in the image latent corresponds exactly to a "cat" in the mask latent.
  • Text-to-Everything: Because the system is conditioned solely on text, it offers infinite scalability. You can generate a "bathroom with a toilet and a shower" or a "horse in a field" without ever needing a human to provide a starting template.

Key Results

JoDiffusion demonstrated significant improvements over previous SOTA methods:

  • Superior Synthetic Quality: On Pascal VOC, JoDiffusion achieved a 72.5% mIoU (Mean Intersection over Union) when training a segmenter on synthetic data alone, far outperforming previous methods like SDS (60.4%) and Dataset Diffusion (61.6%).
  • Boosting Real-World Performance: When JoDiffusion's synthetic data was added to real training sets, it consistently boosted performance. For example, on the MS-COCO dataset using a DeepLabV3-ResNet50 backbone, adding JoDiffusion data increased mIoU from 48.9% to 56.4%.
  • High Reconstruction Fidelity: The specialized Annotation VAE achieved over 98% reconstruction mIoU across all datasets, proving that the compression into latent space doesn't lose critical semantic details.

Limitations and Future Work

Despite its success, the authors acknowledge a few limitations:

  • Prompt Dependency: The quality and diversity of the generated dataset are highly dependent on the quality of the text prompts used. If the prompts are repetitive or low-quality, the synthetic data will be as well.
  • The Synthetic-to-Real Gap: While JoDiffusion data helps, there is still a distribution gap between synthetic images and real-world photos.
  • Future Directions: The authors suggest exploring adaptive refinement techniques to further bridge the domain gap and investigating ways to make the model even more robust to complex, multi-object prompts.

Summary updated

BibTeX
@inproceedings{wang2026jodiffusion,
  author = {Haoyu Wang and Lei Zhang and Wenrui Liu and Dengyang Jiang and Wei Wei and Chen Ding},
  title = {{JoDiffusion: Jointly Diffusing Image with Pixel-Level Annotations for Semantic Segmentation Promotion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i12.37941},
}
Figure