atlas

Research map / Detection and segmentation / Open-set and few-shot detection

InvSeg: Test-Time Prompt Inversion for Semantic Segmentation

AAAI 2025 · Detection and segmentation › Open-set and few-shot detection · approach: Open-vocabulary semantic segmentation · 2 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.

Proposes InvSeg, a test-time prompt inversion method that optimizes class-name text embeddings of Stable Diffusion per image using contrastive soft clustering over self-attention structure, achieving unsupervised open-vocabulary semantic segmentation.

Problem

Open-vocabulary semantic segmentation with diffusion models is hurt by the mismatch between isolated class names used for segmentation and the context-rich sentences diffusion models are trained on, yielding incomplete or confused cross-attention masks.

Approach

Treat the text token embeddings as the only learnable parameters at test time and optimize them per image, using a contrastive soft clustering loss that aligns refined cross-attention masks with a KL-based distance structure derived from self-attention, plus an entropy-minimization term over augmented views.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
invert image-specific prompts with InvSeg instead of the original-prompt Diffusion BaselineStable Diffusion v2.1 · PASCAL VOC 2012mIoU: 59.6 -> 63.4Helped
invert image-specific prompts with InvSeg instead of the original-prompt Diffusion BaselineStable Diffusion v2.1 · PASCAL ContextmIoU: 25.0 -> 27.8Helped
use InvSeg instead of DiffSegmenteropen-vocabulary segmentation · COCO ObjectmIoU: 37.9 -> 36.0Hurt
add entropy minimization with alpha=1 rather than alpha=0 (ablation)InvSeg · PASCAL VOC 2012mIoU: 61.9 -> 63.4Helped
add entropy minimization with alpha=1 rather than alpha=0 (ablation)InvSeg · COCO ObjectmIoU: 35.0 -> 36.0Helped
remove Contrastive Soft Clustering (ablation)InvSeg · PASCAL VOC 2012mIoU: 61.9 -> 63.4Helped
remove Contrastive Soft Clustering (ablation)InvSeg · COCO ObjectmIoU: 35.7 -> 36.0Helped
set anchor selection scale to 4 rather than 8 or 16 (ablation)InvSeg · PASCAL VOC 2012mIoU: 63.0; 62.7 -> 63.4Helped
initialize text using ground-truth class names instead of DiffSegmenter strategy (ablation)InvSeg · PASCAL VOC 2012mIoU: 63.4 -> 69.4Helped
initialize text using ground-truth class names instead of DiffSegmenter strategy (ablation)InvSeg · COCO ObjectmIoU: 36.0 -> 40.3Helped
use only Res16 for prompt optimization instead of other tested resolutions (ablation)InvSeg · PASCAL VOC 2012mIoU: 18.4; 46.5; 22.9 -> 63.4Helped
use Res16 and Res32 rather than Res16 only (ablation)InvSeg · PASCAL VOC 2012mIoU: 63.4 -> 60.7Hurt

Surprising findings

Limitations

Experimental setup

Datasets: PASCAL VOC 2012 PASCAL Context COCO Object

Benchmarks: PASCAL VOC 2012 PASCAL Context COCO Object

Metrics: mIoU mAcc

Baselines: DiffSegmenter Diffusion Baseline TPT GroupViT TCL SimSeg OVSegmentor CLIPpy SegCLIP MaskCLIP

Builds on: DiffSegmenter Textual Inversion Test-time Prompt Tuning (TPT) DiffSeg

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