Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models
Pablo Marcos-Manchón, Roberto Alcover-Couso, Juan C. SanMiguel, Jose M. Martínez
Abstract
Diffusion models represent a new paradigm in text-to-image generation. Beyond generating high-quality images from text prompts, models such as Stable Diffusion have been successfully extended to the joint generation of se-mantic segmentation pseudo-masks. However, current ex-tensions primarily rely on extracting attentions linked to prompt words used for image synthesis. This approach limits the generation of segmentation masks derived from word tokens not contained in the text prompt. In this work, we introduce Open- Vocabulary Attention Maps (OVAM)-a training-free method for text-to-image diffusion models that enables the generation of attention maps for any word. In addition, we propose a lightweight optimization process based on OVAM for finding tokens that generate accurate attention maps for an object class with a single annotation. We evaluate these tokens within existing state-of-the-art Stable Diffusion extensions. The best-performing model im-proves its mIoU from 52.1 to 86.6 for the synthetic images' pseudo-masks, demonstrating that our optimized tokens are an efficient way to improve the performance of existing methods without architectural changes or retraining. The implementation is available at github.com/vpulablovam.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- BiasMap: Leveraging Cross-Attentions to Discover and Mitigate Hidden Social Biases in Text-to-Image Generation cites High-Resolution Image Synthesis with Latent Diffusion Models
- BiasMap: Leveraging Cross-Attentions to Discover and Mitigate Hidden Social Biases in Text-to-Image Generation cites Diffusion Models Beat GANs on Image Synthesis
- BiasMap: Leveraging Cross-Attentions to Discover and Mitigate Hidden Social Biases in Text-to-Image Generation cites Learning Transferable Visual Models From Natural Language Supervision
- BiasMap: Leveraging Cross-Attentions to Discover and Mitigate Hidden Social Biases in Text-to-Image Generation cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- InvSeg: Test-Time Prompt Inversion for Semantic Segmentation cites High-Resolution Image Synthesis with Latent Diffusion Models
- InvSeg: Test-Time Prompt Inversion for Semantic Segmentation cites Learning Transferable Visual Models From Natural Language Supervision
- Omnipaint: Mastering Object-Oriented Editing Via Disentangled Insertion-Removal Inpainting cites High-Resolution Image Synthesis with Latent Diffusion Models
- Omnipaint: Mastering Object-Oriented Editing Via Disentangled Insertion-Removal Inpainting cites Learning Transferable Visual Models From Natural Language Supervision
- Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
- Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
- A Simple Yet Mighty Hartley Diffusion Versatilist for Generalizable Dense Vision Tasks cites High-Resolution Image Synthesis with Latent Diffusion Models
- A Simple Yet Mighty Hartley Diffusion Versatilist for Generalizable Dense Vision Tasks cites Denoising Diffusion Probabilistic Models
- PartEdit: Fine-Grained Image Editing using Pre-Trained Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- PartEdit: Fine-Grained Image Editing using Pre-Trained Diffusion Models cites Learning Transferable Visual Models From Natural Language Supervision
- PartEdit: Fine-Grained Image Editing using Pre-Trained Diffusion Models cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites High-Resolution Image Synthesis with Latent Diffusion Models
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Diffusion Models Beat GANs on Image Synthesis
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Learning Transferable Visual Models From Natural Language Supervision
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Probabilistic Models
Cited by top-tier papers12
- InvSeg: Test-Time Prompt Inversion for Semantic SegmentationJiayi Lin, Jiabo Huang, Jian Hu, Shaogang GongAAAI 2025 · 3 citations
- Omnipaint: Mastering Object-Oriented Editing Via Disentangled Insertion-Removal InpaintingYongsheng Yu, Ziyun Zeng, Haitian Zheng, Jiebo LuoICCV 2025 · 3 citations
- A Simple Yet Mighty Hartley Diffusion Versatilist for Generalizable Dense Vision TasksQi Bi, Jingjun Yi, Huimin Huang, Hao Zheng et al.ICCV 2025 · 3 citations
- PartEdit: Fine-Grained Image Editing using Pre-Trained Diffusion ModelsAleksandar Cvejic, Abdelrahman Eldesokey, Peter WonkaSIGGRAPH 2025 · 3 citations
- BiasMap: Leveraging Cross-Attentions to Discover and Mitigate Hidden Social Biases in Text-to-Image GenerationRajatsubhra Chakraborty, Xujun Che, Depeng Xu, Cori Faklaris et al.KDD 2026 · 1 citation
Builds on36
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations
Related papers
- DiffuMask: Synthesizing Images with Pixel-level Annotations for Semantic Segmentation Using Diffusion ModelsWeijia Wu, Yuzhong Zhao, Mike Zheng Shou, Hong Zhou et al.ICCV 2023 · 198 citations
- SeeDiff: Off-the-Shelf Seeded Mask Generation from Diffusion ModelsJoon Hyun Park, Kumju Jo, Sungyong BaikAAAI 2025 · 2 citations
- Dataset Diffusion: Diffusion-based Synthetic Data Generation for Pixel-Level Semantic SegmentationQuang Nguyen, Truong Vu, Anh Tran, Khoi NguyenNeurIPS 2023 · 154 citations
- FreeGen: Bridging Visual-Linguistic Discrepancies Towards Diffusion-based Pixel-level Data SynthesisWenzhuang Wang, Mingcan Ma, Yong Chen, Changqun Xia et al.AAAI 2025 · 1 citation
- What the DAAM: Interpreting Stable Diffusion Using Cross AttentionRaphael Tang, Linqing Liu, Akshat Pandey, Zhiying Jiang et al.ACL 2023 · 93 citations
