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.
Introduction
Finding semantic correspondences—identifying the same anatomical or structural point across different instances of an object category—is a fundamental problem in computer vision. While handcrafted features like SIFT once dominated this field, the advent of deep learning and, more recently, large-scale foundation models has shifted the paradigm.
Currently, two types of features have shown immense promise: those from discriminative models like DINOv2, which excel at localizing parts, and those from generative Diffusion Models (e.g., Stable Diffusion), which possess a deep holistic understanding of global context. However, state-of-the-art performance has typically required ensembling these massive models. This "Franken-model" approach leads to high VRAM requirements and slow inference speeds, making them impractical for real-time applications like video tracking.
Methodology: Multi-Teacher Distillation
To bridge the gap between high accuracy and computational efficiency, we propose a two-stage pipeline. The core idea is to distill the complementary strengths of DINOv2 and SDXL Turbo into a single, compact student model based on a DINOv2 backbone.
Instead of direct feature regression, which can be unstable, we employ similarity alignment. The student model is trained to mimic the self-similarity distributions of the teachers. By using Low-Rank Adaptation (LoRA), we keep the training parameter-efficient, updating only a small fraction of the student's weights while keeping the backbone frozen. This allows the model to retain the strong local features of DINOv2 while learning the global context inherent in diffusion features.
Unsupervised 3D Data Augmentation
To further refine the model without relying on expensive human-annotated keypoints, we leverage the CO3D dataset. By utilizing depth maps and camera poses, we can mathematically project points from one view to another, creating "perfect" ground-truth correspondence labels for free. This unsupervised fine-tuning specifically enhances the model's understanding of 3D geometry and viewpoint invariance.
Results: Efficiency Meets Accuracy
Our distilled model, which we call DistillDIFT, achieves a new state-of-the-art on the SPair-71k benchmark with a 70.6 [email protected], surpassing previous ensemble methods that were significantly larger.
As shown in the figure above, our approach offers a dramatic improvement in throughput. While previous diffusion-based methods struggled to reach 1 image per second, our model achieves nearly 30 FPS on a single A100 GPU. This represents an 18x speedup and a 12x reduction in parameter count (87M vs. ~1.1B) compared to the teacher ensemble, finally enabling real-time semantic correspondence for video applications.
Conclusion
By distilling the best of both discriminative and generative worlds, we have demonstrated that it is possible to achieve state-of-the-art semantic correspondence with a fraction of the computational cost. The integration of 3D-aware unsupervised training further pushes the boundaries of what lightweight models can achieve. Future work will focus on addressing remaining challenges, such as left-right symmetry ambiguity and handling extreme object deformations.
Summary updated