[Paper Review] A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic Correspondence
The paper shows that fusing Stable Diffusion features with DINOv2 enables zero-shot semantic and dense correspondence that outperforms prior methods on SPair-71k, PF-Pascal, and TSS, and enables high-quality instance swapping without task-specific training.
Text-to-image diffusion models have made significant advances in generating and editing high-quality images. As a result, numerous approaches have explored the ability of diffusion model features to understand and process single images for downstream tasks, e.g., classification, semantic segmentation, and stylization. However, significantly less is known about what these features reveal across multiple, different images and objects. In this work, we exploit Stable Diffusion (SD) features for semantic and dense correspondence and discover that with simple post-processing, SD features can perform quantitatively similar to SOTA representations. Interestingly, the qualitative analysis reveals that SD features have very different properties compared to existing representation learning features, such as the recently released DINOv2: while DINOv2 provides sparse but accurate matches, SD features provide high-quality spatial information but sometimes inaccurate semantic matches. We demonstrate that a simple fusion of these two features works surprisingly well, and a zero-shot evaluation using nearest neighbors on these fused features provides a significant performance gain over state-of-the-art methods on benchmark datasets, e.g., SPair-71k, PF-Pascal, and TSS. We also show that these correspondences can enable interesting applications such as instance swapping in two images.
Motivation & Objective
- Explore how Stable Diffusion (SD) features can be used for semantic and dense correspondence across images.
- Analyze the complementary strengths and weaknesses of SD features and DINOv2 features for correspondence tasks.
- Design a simple fusion strategy to combine SD and DINOv2 features.
- Evaluate zero-shot and supervised performance on standard benchmarks (SPair-71k, PF-Pascal, TSS).
Proposed method
- Extract SD features from a Stable Diffusion encoder–decoder U-Net and aggregate across multiple decoder layers (2, 5, 8) with PCA for dimensionality reduction.
- Use DINOv2 token features from the last layer (11th) as the semantic descriptor.
- Normalize and concatenate SD and DINO features with a fixed weight alpha (alpha=0.5) to form fused features for nearest-neighbor correspondence.
- Evaluate zero-shot nearest-neighbor matching for sparse and dense correspondence on SPair-71k, PF-Pascal, and TSS datasets.
- Demonstrate an instance-swapping pipeline that uses fused dense correspondence and SD-based refinement via Stable Diffusion-based image-to-image translation.
Experimental results
Research questions
- RQ1Can SD features alone provide competitive semantic and dense correspondences across different objects and instances?
- RQ2Do SD and DINOv2 features offer complementary strengths that can be leveraged through fusion to improve correspondence performance?
- RQ3Does a simple fusion strategy yield state-of-the-art zero-shot performance on standard dense and semantic correspondence benchmarks?
- RQ4Can the fused representations enable high-quality downstream tasks such as instance swapping without task-specific fine-tuning?
Key findings
- Zero-shot fused SD+DINOv2 features achieve leading PCK scores on SPair-71k with an average of 64.0, outperforming prior methods.
- Fusion improves DINOv2 baselines by 8.4 percentage points (from 55.6 to 64.0) on SPair-71k in the zero-shot setting.
- On PF-Pascal, fused features outperform unsupervised baselines and match or exceed task-specific methods, with consistent gains across thresholds.
- On TSS, fused features surpass unsupervised nearest-neighbor methods, showing substantial gains due to spatial coherence from SD features.
- Instance swapping using fused correspondences yields higher CLIP and perceptual quality scores and lower FID in quantitative evaluations compared to using SD or DINOv2 alone.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.