Distillation of Diffusion Features for Semantic Correspondence

Frank Fundel, Johannes Schusterbauer, Vincent Tao Hu, Björn Ommer

Abstract Semantic correspondence, the task of determining relationships between different parts of images, underpins various applications including 3D reconstruction, image-to-image translation, object tracking, and visual place recognition. Recent studies have begun to explore representations learned in large generative image models for semantic correspondence, demonstrating promising results. Building on this progress, current state-of-the-art methods rely on combining multiple large models, resulting in high computational demands and reduced efficiency. In this work, we address this challenge by proposing a more computationally efficient approach. We propose a novel knowledge distillation technique to overcome the problem of reduced efficiency. We show how to use two large vision foundation models and distill the capabilities of these complementary models into one smaller model that maintains high accuracy at reduced computational cost. Furthermore, we demonstrate that by incorporating 3D data, we are able to further improve performance, without the need for human-annotated correspondences. Overall, our empirical results demonstrate that our distilled model with 3D data augmentation achieves performance superior to current state-of-the-art methods while significantly reducing computational load and enhancing practicality for real-world applications, such as semantic video correspondence. Our code and weights are publicly available on our project page.

1. Introduction

Semantic correspondence involves identifying matching semantic parts across different images—for example, finding the "left ear" of a cat in two photos taken from different angles or featuring different individuals. This is a foundational challenge for 3D reconstruction and object tracking. While humans do this intuitively, computers struggle because it requires deep "world knowledge" of object appearance. Recently, researchers found that combining the features of DINOv2 (local geometry) and Stable Diffusion (global semantic context) yields excellent results. However, this ensemble approach is computationally expensive, slow, and memory-intensive, making it impractical for real-time applications.

2. Methodology

To move from a bulky ensemble to an efficient "student" model, we propose a framework based on two main pillars:

Overview of the proposed multi-teacher distillation framework (a) and 3D augmentation method (b).

2.1 Multi-Teacher Distillation

Instead of running both DINOv2 and a Diffusion model (SDXL Turbo) at inference time, we use them as "teachers" during training. We pass images through both teachers, combine their feature maps, and train a smaller student model (a DINOv2-based ViT) to mimic the teachers' predicted similarity distributions. To maintain efficiency, we use LoRA (Low-Rank Adaptation), updating only a tiny fraction of the student's parameters.

2.2 Unsupervised 3D Data Augmentation

To improve the model without expensive human-labeled data, we utilize the CO3D dataset. By leveraging existing 3D depth maps and camera positions, we mathematically project points from one camera view to another. This creates "ground truth" correspondences automatically, teaching the model spatial consistency across different perspectives without human intervention.

3. Key Results

Our empirical evaluation demonstrates that distillation is superior to simple feature concatenation. By reducing the parameter count and input resolution, the model becomes viable for edge applications with limited VRAM.

Performance comparison showing accuracy (PCK @ 0.1) versus inference speed (#img/sec). Our model (top right) achieves SOTA accuracy with significantly higher throughput.
  • Speed and Efficiency: On an NVIDIA A100, our model processes 28.6 images per second, compared to just 1.5 for DIFT and 0.4 for previous ensembles. It uses only 87 million parameters, a fraction of the 1.1 billion required by previous state-of-the-art methods.
  • Accuracy: On the SPair-71k dataset, we achieved a 70.6% PCK (Percentage of Correct Keypoints), outperforming the previous best of 69.6% while being significantly faster.
  • Zero-Shot Utility: The distilled features are robust enough for zero-shot foreground segmentation, producing cleaner masks than DINOv2 alone.

4. Conclusion and Future Work

We have demonstrated that the computational power of Diffusion models can be successfully distilled into a lightweight architecture for semantic correspondence. While the model still faces challenges with symmetrical ambiguity (e.g., left vs. right paws) and extreme non-rigid deformations, it represents a significant step toward practical, real-time semantic matching. Future work will focus on incorporating explicit geometric priors to resolve remaining ambiguities.

Summary updated

BibTeX
@inproceedings{fundel2025distillation,
  author = {Frank Fundel and Johannes Schusterbauer and Vincent Tao Hu and Björn Ommer},
  title = {{Distillation of Diffusion Features for Semantic Correspondence}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=ZmbEwQZeDN},
}
Figure