mlsanityData to 14 Oct 2026

InvSeg: Test-Time Prompt Inversion for Semantic Segmentation

arXiv 2410.11473 ↗First posted 15 Oct 2024cs.CVcited by 2

On the map: Diffusion models → Medical imaging and segmentation

Abstract (arXiv)

Visual-textual correlations in the attention maps derived from text-to-image diffusion models are proven beneficial to dense visual prediction tasks, e.g., semantic segmentation. However, a significant challenge arises due to the input distributional discrepancy between the context-rich sentences used for image generation and the isolated class names typically used in semantic segmentation. This discrepancy hinders diffusion models from capturing accurate visual-textual correlations. To solve this, we propose InvSeg, a test-time prompt inversion method that tackles open-vocabulary semantic segmentation by inverting image-specific visual context into text prompt embedding space, leveraging structure information derived from the diffusion model's reconstruction process to enrich text prompts so as to associate each class with a structure-consistent mask. Specifically, we introduce Contrastive Soft Clustering (CSC) to align derived masks with the image's structure information, softly selecting anchors for each class and calculating weighted distances to push inner-class pixels closer while separating inter-class pixels, thereby ensuring mask distinction and internal consistency. By incorporating sample-specific context, InvSeg learns context-rich text prompts in embedding space and achieves accurate semantic alignment across modalities. Experiments show that InvSeg achieves state-of-the-art performance on the PASCAL VOC, PASCAL Context and COCO Object datasets.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 27 of its 38 references that are in the map. First posted on arXiv 15 Oct 2024.

Builds on

27 of 38 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models21 Mar
  2. 2023Diffusion Model is Secretly a Training-free Open Vocabulary Semantic Segmenter6 Sep
  3. 2023Diffuse, Attend, and Segment: Unsupervised Zero-Shot Segmentation using Stable Diffusion23 Aug
  4. 2023Open-vocabulary Object Segmentation with Diffusion Models12 Jan

Other references · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  5. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  8. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,322
  9. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,300
  10. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,245
  11. 2022Null-text Inversion for Editing Real Images using Guided Diffusion Modelscited by 1,179
  12. 2021Extract Free Dense Labels from CLIPcited by 583
11 more
  1. 2022GroupViT: Semantic Segmentation Emerges from Text Supervisioncited by 531
  2. 2023Unleashing Text-to-Image Diffusion Models for Visual Perceptioncited by 269
  3. 2022SegCLIP: Patch Aggregation with Learnable Centers for Open-Vocabulary Semantic Segmentationcited by 164
  4. 2017Optimizing the Latent Space of Generative Networkscited by 157
  5. 2022Learning to Generate Text-grounded Mask for Open-world Semantic Segmentation from Only Image-Text Pairscited by 130
  6. 2023Learning Open-vocabulary Semantic Segmentation Models From Natural Language Supervisioncited by 99
  7. 2021Repurposing GANs for One-shot Semantic Part Segmentationcited by 88
  8. 2022Open-world Semantic Segmentation via Contrasting and Clustering Vision-Language Embeddingcited by 67
  9. 2023ViewCo: Discovering Text-Supervised Segmentation Masks via Multi-View Semantic Consistencycited by 51
  10. 2021Linear Semantics in Generative Adversarial Networkscited by 25
  11. 2024Image-to-Image Matching via Foundation Models: A New Perspective for Open-Vocabulary Semantic Segmentationcited by 15

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Prompting Diffusion Representations for Cross-Domain Semantic Segmentation
  2. 2023Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Models
  3. 2025Seg4Diff: Unveiling Open-Vocabulary Segmentation in Text-to-Image Diffusion Transformers
  4. 2025Segment Anyword: Mask Prompt Inversion for Open-Set Grounded Segmentation
  5. 2023Improving In-Context Learning in Diffusion Models with Visual Context-Modulated Prompts
  6. 2025G4Seg: Generation for Inexact Segmentation Refinement with Diffusion Models
  7. 2026MAVISEG: Manifold Propagation and Visual Prototypes for Zero-Shot Open-Vocabulary Segmentation in Diffusion Transformers
  8. 2024Test-time Contrastive Concepts for Open-world Semantic Segmentation with Vision-Language Models