atlas

Research map / Image generation / Fast diffusion sampling

SD4Match: Learning to Prompt Stable Diffusion Model for Semantic Matching

CVPR 2024 · Image generation › Fast diffusion sampling · approach: Diffusion models as perception tools · 24 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.

Learns universal, class-specific, or image-pair-conditioned prompt embeddings for a frozen Stable Diffusion UNet to improve semantic keypoint matching, reaching 75.5 PCK on SPair-71k.

Problem

Semantic keypoint correspondence across image pairs using features from Stable Diffusion, where prior work relied on handcrafted text prompts or implicit captions that may be suboptimal.

Approach

Treat the SD text prompt as a learnable embedding optimized directly with a correspondence cross-entropy loss while the UNet stays frozen, and add a conditional prompting module that conditions the prompt on DINOv2 local patch features from both images of the pair.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
learn a single universal prompt instead of using DIFT's textual-template promptStable Diffusion semantic matching on SPair-71k · SPair-71kPCK @ α=0.1: 37.2%Helped
learn a category-specific prompt instead of a single universal promptSD4Match on SPair-71k · SPair-71kPCK @ α=0.1: 72.6 -> 75.5Helped
use CPM conditioned on local features of the image pair instead of an individual-image global descriptor (ablation)SD4Match-CPM on SPair-71k · SPair-71kPCK @ α=0.1: 68.5 -> 75.5Helped
condition CPM on local feature patches rather than a global descriptor (ablation)SD4Match-CPM on SPair-71k · SPair-71kPCK @ α=0.1: 73.3 -> 75.5Helped
condition the prompt on the image pair rather than on an individual image (ablation)SD4Match-CPM on SPair-71k · SPair-71kPCK @ α=0.1: 70.8 -> 75.5Helped
add a global prompt to CPM (ablation)SD4Match-CPM on SPair-71k · SPair-71kPCK @ α=0.1: 74.6 -> 75.5Helped
add the patch-wise linear layer gn(·) to CPM (ablation)SD4Match-CPM on SPair-71k · SPair-71kPCK @ α=0.1: 74.0 -> 75.5Helped
replace the empty-string prompt with a category-template promptDIFT on SPair-71k · SPair-71kPCK @ α=0.1: 50.7 -> 52.9Helped
tune SD4Match-CPM on PF-Pascal rather than use SD+DINO zero-shotSD4Match-CPM · PF-Pascal testPCK @ θimg, α=0.1: 85.7 -> 95.2Helped
tune SD4Match-CPM on PF-Pascal rather than use SD+DINO zero-shotSD4Match-CPM · PF-Willow testPCK @ θkps, α=0.1: 72.0 -> 80.4Helped
tune SD4Match-CPM on PF-Pascal rather than use SD+DINO zero-shotSD4Match-CPM · SPair-71kPCK @ θbbox, α=0.1: 59.3 -> 40.9Hurt
tune SD4Match-CPM on SPair-71k rather than PF-PascalSD4Match-CPM · SPair-71kPCK @ θbbox, α=0.1: 40.9 -> 75.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: SPair-71k PF-Pascal PF-Willow

Benchmarks: SPair-71k PF-Pascal PF-Willow

Metrics: PCK

Baselines: DIFT SD+DINO SimSC-iBOT CATs SCorrSAN Trans.Mat. SemiMatch PMNC DINOv2 DINO

Builds on: DIFT SimSC CoOp CoCoOp SD+DINO

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