Telling Left from Right: Identifying Geometry-Aware Semantic Correspondence

Junyi Zhang, Charles Herrmann, Junhwa Hur, Eric Chen, Varun Jampani, Deqing Sun, Ming-Hsuan Yang

Abstract

Large vision foundation models excel at object identification but often struggle with spatial orientation, frequently confusing an object's left side with its right. This paper introduces lightweight techniques—including test-time pose alignment and a dense training objective—to integrate geometric awareness into these models. These enhancements lead to an 11-percentage-point improvement in state-of-the-art semantic correspondence benchmarks.

The Geometric Blind Spot

Semantic correspondence involves finding pixel-level matches between different images of similar objects. While foundation models like DINOv2 and Stable Diffusion provide rich features, they possess a significant "geometric blind spot." They can identify a "paw" but often fail to distinguish between a "left paw" and a "right paw."

Figure 2: Semantic correspondence confusion. Red lines indicate incorrect matches where the model confuses left and right features, while green dashed lines show correct geometric alignment.

Analysis reveals that nearly 60% of keypoints in standard benchmarks are "geometry-aware," and current models perform up to 30% worse on these points due to a preference for appearance over spatial orientation. This suggests that features in foundation models prioritize semantic category over geometric pose.

Methods: Lightweight Geometric Integration

The researchers propose four primary solutions that avoid retraining foundation models from scratch, focusing instead on better post-processing and smarter fine-tuning:

  1. Test-time Adaptive Pose Alignment: Uses Instance Matching Distance (IMD) to determine if flipping or rotating the source image improves alignment with the target, effectively "normalizing" the pose before matching.
  2. Dense Training Objective: Employs a soft-argmax operator to allow learning from the entire similarity map rather than sparse keypoints, making features more robust and allowing gradients to flow to all spatial locations.
  3. Pose-variant Augmentation: Includes "self-flip" tasks where the model matches an image to its horizontally flipped version to explicitly learn orientation.
  4. Window Soft-Argmax: Restricts the search area during inference to a local window around the most likely match, improving sub-pixel precision and reducing noise.

Datasets and Evaluation

The study utilizes SPair-71k (71,000 pairs) and PF-Pascal. Additionally, the authors introduced AP-10K, a new benchmark adapted from animal pose estimation. AP-10K is 5x larger than SPair-71k and includes 261,000 pairs across 54 species, providing a rigorous test for cross-species and cross-family generalizability.

Key Results and Insights

The proposed method achieves a new state-of-the-art (SOTA) across all benchmarks. On SPair-71k, it reached a [email protected] score of 85.6, representing a massive 11.0p absolute gain over previous methods. Even in zero-shot settings, the model reached a score of 65.4, surpassing many previous supervised approaches.

Figure 1: Performance comparison ([email protected]) across different models and datasets. The proposed method ("Ours") significantly outperforms existing foundation models in both unsupervised and supervised settings.

A key insight is the "Global vs. Local" paradox: foundation models understand global pose (e.g., "cat facing left") but fail to translate this to local pixel features. By isolating "geometry-aware" points, the authors demonstrated that addressing this specific subset is the key to solving the broader correspondence problem. Simplicity often wins; significant gains came from aligning viewpoints at test time, suggesting geometry is often a matter of perspective.

Conclusion and Future Work

While this work represents a major leap, challenges remain regarding resolution limits for small instances and extreme non-rigid deformations (e.g., a curled-up animal). Future work may involve incorporating 3D geometric priors or more advanced reasoning mechanisms to handle these complex, non-rigid scenarios.

Summary updated

BibTeX
@inproceedings{zhang2023telling,
  author = {Junyi Zhang and Charles Herrmann and Junhwa Hur and Eric Chen and Varun Jampani and Deqing Sun and Ming-Hsuan Yang},
  title = {{Telling Left from Right: Identifying Geometry-Aware Semantic Correspondence}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure