Probabilistic Warp Consistency for Weakly-Supervised Semantic Correspondences

Prune Truong, Martin Danelljan, Fisher Yu, Luc Van Gool

Abstract

We propose Probabilistic Warp Consistency (PWC), a weakly-supervised learning objective for semantic matching. By modeling correspondences as conditional probability distributions and enforcing consistency across warped image triplets, PWC effectively handles intra-class variations and background clutter. Our approach introduces a learnable unmatched state supervised by negative image pairs, setting new state-of-the-art results on four major benchmarks, including a significant +22.6% relative improvement on SPair-71K.

Introduction

Semantic matching aims to establish dense correspondences between images of different objects within the same category. Unlike optical flow, this task must handle significant intra-class variations in appearance and pose. The primary challenge is the scarcity of dense annotations. Weakly-supervised methods offer a solution by using only image-level labels, but they often struggle with occlusions and background noise.

The Probabilistic Warp Consistency Framework

The PWC framework treats matching as a probabilistic mapping problem. Instead of point-to-point predictions, the network outputs a conditional probability distribution over potential match locations.

Overview of the PWC framework showing the image triplet consistency for matching classes and negative supervision for non-matching classes.

The core objective relies on an image triplet $(I, J, I')$, where $I$ and $J$ are a real pair of the same class, and $I'$ is a synthetically warped version of $I$. The "W-Bipath Constraint" enforces that the probabilistic mapping through the "detour" path ($I' \to J \to I$) matches the known direct warping distribution ($I' \to I$). Modeling correspondences as distributions rather than single points allows the network to express uncertainty and handle the inherent ambiguity of matching two different objects.

Handling Occlusions and Clutter

Real-world images contain regions with no valid semantic matches due to occlusions or background clutter. PWC addresses this by extending the probability space with a learnable "unmatched state," allowing the network to explicitly signal when a correspondence is missing.

Negative supervision mechanism using different object classes to train the learnable unmatched state.

To supervise this state, the authors employ negative supervision: pairs of images from different classes (e.g., bird and bus) are used to penalize the network for finding correspondences, forcing those pixels into the unmatched bin. Additionally, a dynamic visibility mask ensures consistency is only enforced on mutually visible regions within the image triplet.

Results and Discussion

PWC was integrated into four state-of-the-art architectures (SF-Net, NC-Net, DHPF, and CATs), yielding consistent improvements across the board. This suggests that the objective function was a critical missing piece in previous weakly-supervised approaches.

On the challenging SPair-71K benchmark, PWC-NC-Net achieved a +22.6% relative PCK improvement. Remarkably, weakly-supervised PWC-SF-Net outperformed its strongly-supervised counterpart, demonstrating that the probabilistic objective can be more effective than expensive mask-level supervision. Furthermore, when combined with keypoint annotations in a strongly-supervised regime, PWC acts as a powerful regularizer, further enhancing performance.

Conclusion

Probabilistic Warp Consistency provides a robust, architecture-agnostic objective for weakly-supervised semantic matching. By embracing uncertainty through probabilistic modeling and leveraging negative supervision, it overcomes traditional barriers like background clutter and occlusion, establishing a new performance ceiling for the field. Future work will focus on scaling this approach to higher resolutions by utilizing more memory-efficient cost volume representations.

Summary updated

BibTeX
@inproceedings{truong2022probabilistic,
  author = {Prune Truong and Martin Danelljan and Fisher Yu and Luc Van Gool},
  title = {{Probabilistic Warp Consistency for Weakly-Supervised Semantic Correspondences}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=x4EoV7-7wDl},
}
Figure