atlas

Research map / Image generation / Text-to-image diffusion

Seg4Diff: Unveiling Open-Vocabulary Semantic Segmentation in Text-to-Image Diffusion Transformers

NeurIPS 2025 · Image generation › Text-to-image diffusion · approach: Compositional text-to-image guidance · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Analyzes joint attention in MM-DiT text-to-image models, identifies a semantic grounding expert layer (layer 9 of SD3) whose I2T attention yields zero-shot segmentation, and applies LoRA fine-tuning (MAGNET) with mask losses to improve segmentation and generation.

Problem

How and where the joint image-text attention in multi-modal diffusion transformers (MM-DiT) contributes to semantic grounding, and whether it can be used for open-vocabulary and unsupervised segmentation without training.

Approach

Identify a single MM-DiT block (the semantic grounding expert, layer 9 of SD3) whose image-to-text attention aligns text tokens with coherent image regions, use its I2T maps as zero-shot segmentation logits, and lightly fine-tune that layer with LoRA using mask-matching losses (MAGNET) to strengthen grouping and also improve generation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add MAGNET trained on COCO to Seg4DiffSD3 Seg4Diff · PascalVOC valmIoU: 89.2 -> 89.8Helped
Add MAGNET trained on COCO to Seg4DiffSD3 Seg4Diff · Pascal Context-59 valmIoU: 49.0 -> 51.2Helped
Add MAGNET trained on COCO to Seg4DiffSD3 Seg4Diff · Cityscapes valmIoU: 26.5 -> 26.0Hurt
Add MAGNET trained on COCO to Seg4DiffSD3 Seg4Diff · MS-COCOCLIPScore: 26.0638 -> 26.2319Helped
Add MAGNET trained on COCO to Seg4DiffSD3 Seg4Diff · T2I-CompBench++2D object relationships: 0.2435 -> 0.2301Hurt
Use softmax-normalized attention scores instead of raw pre-softmax scores (ablation)Seg4Diff attention mask · PascalVOCmIoU: 83.2 -> 89.0Helped
Use softmax-normalized attention scores instead of raw pre-softmax scores (ablation)Seg4Diff attention mask · COCO-ObjectmIoU: 55.1 -> 61.8Helped
Add min-max normalization to softmax attention scores (ablation)Seg4Diff attention mask · PascalVOCmIoU: 89.0 -> 88.3Hurt
Add min-max normalization to softmax attention scores (ablation)Seg4Diff attention mask · COCO-ObjectmIoU: 61.8 -> 57.0Hurt
Set input-image timestep to t=8 of 28 rather than other tested timesteps (ablation)Seg4Diff segmentation inference · PascalVOC and COCO-ObjectmIoUHelped
Perturb I2T attention at the semantic grounding expert layer (ablation)SD3 image generation · Image generationimage fidelityHurt
Guide denoising with a negatively perturbed I2T-attention sample (ablation)SD3 image generation · Image generationimage qualityHelped

Surprising findings

Limitations

Experimental setup

Datasets: SA-1B COCO DrawBench Pick-a-Pic PascalVOC COCO-Object Pascal Context-59 ADE20K COCO-Stuff-27 Cityscapes

Benchmarks: PascalVOC COCO-Object Pascal Context-59 ADE20K Cityscapes COCO-Stuff-27 T2I-CompBench++ Pick-a-Pic MS-COCO SA-1B captions

Metrics: mIoU pACC mACC CLIPScore T2I-CompBench++ attribute, relation, numeracy and complexity CLIP-I CLIP-T DINO

Baselines: DiffSegmenter iSeg ProxyCLIP CorrCLIP ReCO MaskCLIP MaskCut DiffSeg DiffCut

Builds on: Prompt-to-Prompt Stable Diffusion 3 SEG (smoothed energy guidance / attention perturbation) DiffSeg DiffCut rectified flow

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy