TL;DR
This paper introduces a multi-level contrastive learning framework for semantic correspondence that eliminates the need for fully supervised ImageNet pretraining or manual pixel-level annotations. By combining image-level contrastive learning with cross-instance cycle consistency at the pixel level, the proposed method learns robust, fine-grained visual representations using only weakly supervised category-level image pairs.
What Problem Does This Paper Address?
Establishing dense semantic correspondence—matching identical anatomical or structural parts across different objects within the same category (e.g., matching the ear of a brown horse to the ear of a white horse)—is a foundational challenge in computer vision. It is exceptionally difficult due to massive intra-class variations in appearance, lighting, scale, and pose.
Historically, tackling this problem required either labor-intensive pixel-level annotations or a heavy reliance on deep networks pretrained on fully supervised datasets like ImageNet. Furthermore, many existing methods rely on ground-truth validation keypoints to tune their hyperparameters or select feature layers. The authors aim to break these dependencies by developing a weakly supervised approach that learns dense semantic matching purely from image pairs belonging to the same category, without relying on ImageNet labels or validation ground truths.
Methods
The authors propose a multi-level contrastive learning framework consisting of two primary components:
- Image-level Contrastive Learning: Utilizing a Momentum Contrast (MoCo) style setup, the network learns global, object-centric discriminative features from unlabeled images. This provides a solid foundation for coarse semantic understanding.
- Pixel-level Contrastive Learning via Cross-Instance Cycle Consistency: To inject fine-grained localized knowledge, the model tracks pixels from a source image to a target image (containing a different object of the same category) and back again using an affinity matrix. The network enforces a cycle-consistency loss, penalizing the model if the tracked pixel does not return to its original starting location.
To prevent the model from exploiting trivial background matches (like matching grass in one image to a wall in another), the authors introduce a Self-Attention Module that localizes the foreground object and guides spatial data augmentations.
Additionally, during the validation phase, the authors replace traditional ground-truth-dependent layer selection with an unsupervised beam search. This algorithm uses the pixel-level contrastive loss itself as a surrogate metric to automatically select the optimal combination of convolutional layers (hyperpixels) for testing.
Datasets
The approach was evaluated on three standard semantic correspondence benchmarks:
- PF-PASCAL: Contains 1,351 image pairs across 20 object categories from the PASCAL VOC database.
- PF-WILLOW: Consists of 900 image pairs spread across 4 object categories.
- SPair-71k: A significantly larger and more difficult dataset containing 70,958 image pairs across 18 categories, characterized by diverse viewpoints and severe scale variations.
Key Insights and Ideas
- Implicit Local Alignment from Global Tasks: A key "aha moment" is that simply training a network on an image-level contrastive task forces intermediate convolutional layers to naturally capture local, pixel-level correspondences reasonably well. Global discrimination implicitly demands local awareness.
- Cross-Instance vs. Intra-Instance Cycling: Unlike prior self-supervised dense representation methods that cycle between different augmented views of the same image instance (which can lead to trivial shortcuts), cycling across different instances of the same category forces the network to learn true semantic parts rather than low-level texture matches.
- Entropy Regularization Dynamics: Incorporating an information entropy loss helps make the pixel affinity matrices "peaky," ensuring distinct, one-to-one pixel mappings rather than blurry, ambiguous matches.
Key Results
To ensure a fair comparison, the authors re-implemented several state-of-the-art methods using the same self-supervised (MoCo) ResNet50 backbone. Performance was measured using the Percentage of Correct Keypoints (PCK) metric.
- PF-PASCAL: The proposed method achieved a [email protected] of 51.0%, substantially outperforming the strong SCOT baseline (44.3%).
- PF-WILLOW: The model achieved a [email protected] of 43.1% (with entropy regularization), outperforming all self-supervised re-implementations.
- SPair-71k: On this highly challenging dataset, the method achieved a [email protected] of 6.30%, outperforming HPF (5.50%) and DHPF (5.03%).
Qualitatively, the proposed method produces much cleaner, more geometrically consistent alignments than the baseline, even before applying post-processing techniques like Optimal Transport (OT) or Regularized Hough Matching (RHM).
Limitations and Future Work
While the method marks a significant step forward for self-supervised semantic alignment, it still slightly underperforms fully supervised methods that leverage massive labeled datasets. Furthermore, it occasionally fails in instances with extreme viewpoint changes, severe scale discrepancies, or heavy occlusions—issues prominently visible in the SPair-71k dataset.
The authors suggest three avenues for future research:
- Developing advanced data augmentations capable of synthesizing drastic scale and viewpoint alterations.
- Integrating a self-supervised keypoint detector directly into the cycle-consistency loop.
- Expanding the image-level contrastive module to include multiple similar instances across different images as positive samples, rather than relying solely on augmented views of the same image.
Summary updated