Manuscript Offprint

arXiv:2611.00328

Déjà Vu: Cycle-Consistent Re-ranking for Semantic Correspondence

Xiaoran Zhang, Huidong Liu, Yang Liu, Chien-Chih Wang, Jinfa Huang, Lingkai Kong, Bryan Wang, Yan Gao, Hongdong Li, Alex Wong, James S. Duncan

Abstract

We propose Déjà Vu, a test-time decoding module for semantic correspondence. Matching semantically equivalent keypoints across images of the same object category is challenging due to variations in appearance, viewpoint, and scale. While features from large pretrained vision models carry strong zero-shot correspondence ability, existing methods reduce final matching to greedy top-1 nearest-neighbor selection. We show that the correct correspondence appears among the top-ranked candidates far more often than top-1 matching achieves: with 30 candidates, zero-shot features exceed the top-1 accuracy of a supervised model. This reveals a decoding bottleneck rather than a limit of the representation. Motivated by this observation, we formulate semantic correspondence as a recall-then-rerank problem. Our method first nominates an adaptive candidate set, larger when the similarity distribution is ambiguous and smaller when it is confident, then re-ranks the candidates with a graded cycle-consistency score: each candidate is matched back to the source image and penalized by how far its reverse match lands from the original keypoint. The module operates entirely on the similarity matrix already computed by the base method. It consistently improves three representative baselines on SPair-71k, its geometric subset, and PF-Pascal under both unsupervised and weakly supervised settings, with gains of up to +1.8 PCK@0.10 on SPair-71k and +3.4 PCK@0.15 on PF-Pascal, and +4.9 under Keypoint Average Precision.

1 Introduction

Semantic correspondence aims to locate semantically equivalent points across images of the same object category and is a fundamental problem in computer vision with applications in pose estimation [37, 14] and image [25, 26] or video editing [36] etc. Unlike geometric correspondence, which benefits from photometric consistency [43, 44, 23], semantic correspondence requires bridging large intra-class variation in appearance, viewpoint, and scale while matching across different objects and therefore is more challenging. This difficulty is especially pronounced when locally similar textures, repeated parts, or large pose changes create multiple plausible matches for the same query.

Classical methods [19, 4, 18, 2] rely on handcrafted features or annotated data, making them difficult to scale. Recent large pretrained vision models have changed this setting. Features from diffusion models [32, 20, 31] and self-supervised transformers [40, 27] provide strong semantic representations,

*This work was primarily conducted during Xiaoran Zhang's internship at Amazon.

Preprint.

enabling zero-shot correspondence without task-specific training. These representations often encode rich part-level semantics and category-level structure, making them surprisingly effective even when they are not explicitly trained for correspondence. However, the final matching step remains largely unchanged: most methods still use greedy top-1 nearest-neighbor selection in feature space, making the prediction sensitive to noisy or ambiguous feature responses.

We ask a simple but revealing question: how often is the correct match the single top-ranked candidate, and how often does it appear among the top-kk candidates? As shown in Fig. 1, top-kk recall in the unsupervised setting rises sharply with kk, eventually surpassing fully supervised baselines, while top-1 matching remains substantially lower. This suggests that correct correspondences are often already present in the candidate set, but are not selected by greedy nearest-neighbor matching. In other words, modern feature spaces often contain the correct answer, but the standard top-1 decoding rule collapses the candidate distribution too early. We refer to this as a decoding bottleneck: for modern pretrained features, the limiting factor lies not only in representation quality but also in the final decoding step.

This finding motivates a recall-then-rerank strategy: first construct a high-recall candidate pool in the pretrained feature space, then select among candidates using a criterion beyond the raw similarity map. We draw inspiration from multi-view geometry, where cycle consistency has long been used to enforce reliable correspondences [39]. In structure-from-motion and visual localization, the mutual nearest-neighbor (MNN) constraint requires that if a source patch pp maps forward to a target patch qq, then qq should also map back to pp, serving as a reliable inference-time filter for rejecting outliers [38]. Semantic correspondence can be viewed as an instance of this broader correspondence problem: the similarity is computed in semantic feature space rather than photometric pixel space, and matching occurs across object instances rather than views of the same scene. Nevertheless, the same bijective intuition remains applicable: a correct semantic match should be self-consistent under forward and reverse feature-space queries. Importantly, this criterion does not require learning a new representation or imposing a rigid geometric model; it only checks whether a candidate match remains stable under a reverse query.

Therefore, we propose a training-free, plug-and-play re-ranking module that improves base semantic correspondence methods without modifying their features or retraining. Our method has two stages. First, we generate a high-recall candidate set via top-pp sampling [13]: rather than using a fixed top-kk cutoff, we adaptively select the smallest set of candidates whose cumulative similarity probability exceeds a threshold pp. This yields larger pools for ambiguous queries and smaller pools for confident matches. Second, we re-rank these candidates using a combined score that preserves forward similarity while penalizing cycle-inconsistent matches. The entire procedure operates directly on the similarity matrix computed by the base method at test time. Because our module only changes the final decoding step, it can be seamlessly integrated into existing correspondence pipelines. We apply our method to three representative methods: (1) TLR [41], (2) CleanDIFT [31], and (3) DIY-SC [6], covering both unsupervised and weakly supervised settings. We evaluate on SPair-71k [24], its geometric subset [41], and PF-Pascal [11], and we consistently improve all base methods.

Our contributions: (1) To the best of our knowledge, we are the first to identify and quantify a decoding bottleneck in semantic correspondence: the correct match is present in the top-ranked candidate pool but is missed by top-1 selection. (2) We propose a graded re-ranking objective that combines forward similarity with a continuous geometric penalty on the reverse-mapping distance, applied over an adaptively nominated candidate pool. (3) We consistently improve state-of-the-art methods across multiple datasets with minimal computational and memory overhead.

References (41)