RelGeo: Pair-Conditioned Relational Calibration for Frozen Diffusion Correspondence

Zixuan Dai, Zhiliang Zhang, Daosong Hu, Tang Zheng, Xinkai Liu, Tianyu Lei, Wei ZhanarXiv 2026

TL;DR

RelGeo is a training-free framework that significantly improves semantic correspondence in frozen diffusion models by addressing the "candidate-selection bottleneck." By augmenting standard descriptors with pair-conditioned relational coordinates derived from internal attention and external geometric transport, it corrects cases where the model retrieves the right match but fails to rank it as the top choice.

What Problem Does This Paper Address?

Cross-image semantic correspondence—the task of finding matching points between different images of the same object or category—has seen a massive boost from large-scale pretrained vision models like Stable Diffusion. However, even state-of-the-art models like FLUX often fail at the final step: selection.

The authors identify a candidate-selection bottleneck: in 41–69% of cases where the model makes an error, the correct match was actually present in the model's "Top-5" list of candidates. The problem isn't that the model can't find the right spot; it's that the standard method of comparing features (pointwise cosine similarity) isn't discriminative enough to pick it. Standard descriptors are extracted from each image independently, ignoring the specific relational context of the image pair being matched.

Figure 1. Native cosine matching selects an incorrect location despite a valid alternative already present among its Top-5 peaks. RelGeo injects pair-conditioned relations into descriptor matching, correcting candidate selection while keeping cosine nearest-neighbor readout.

Methods

RelGeo introduces a Pair-Conditioned Relational Calibration framework. Instead of retraining the diffusion model, it augments the "frozen" descriptors with two new types of coordinates that encode relational evidence:

  1. Spectral Relational Coordinates (SRC): These capture "internal" evidence. The authors reconstruct cross-image affinities from the diffusion model's own Query/Key (Q/K) projections. They then use a truncated Singular Value Decomposition (SVD) to transform these affinities into source-target coordinates. This effectively "bakes" the model's internal attention logic into the descriptors.
  2. Warp Identity Coordinates (WIC): These capture "external" evidence using a pretrained geometric matcher (RoMa). WIC encodes bidirectional transport endpoints (where point A in image 1 warps to in image 2, and vice-versa). Crucially, it uses confidence scores and cycle-consistency checks to weight this evidence, attenuating uncertain matches.

These coordinates are concatenated with the original descriptors. Because they are expressed as shared source-target coordinates, the final matching still uses a simple, efficient cosine nearest-neighbor search. No additional training or per-pair optimization is required.

Datasets

The authors evaluated RelGeo across ten different settings using three major benchmarks:

  • SPair-71k: A challenging dataset for semantic correspondence across 18 categories.
  • AP-10K: Focused on animal keypoint matching.
  • SOCO (Semantic Object COrrespondence): Includes sub-tasks like CC (concept-level), SOC (same-object-relative-identity), and Cross-SOC to specifically test the model's ability to distinguish between semantically similar but distinct parts (e.g., left vs. right ear).

Key Insights and Ideas

  • The Bottleneck is Real: The discovery that a majority of Top-1 errors have a valid match sitting in the Top-5 (see Figure 2 below) proves that improving retrieval (finding candidates) is no longer enough; we must improve selection.
  • Complementary Evidence: Internal Q/K associations and external geometric transport often disagree on incorrect candidates but agree on correct ones. By combining them, RelGeo gains robustness that neither source provides alone.
  • Relational Alignment Matters: The paper demonstrates that matching performance depends heavily on how well the relational coordinates align with the current image pair. Replacing these with random features or relations from a different image pair causes performance to tank.
Figure 2. Candidate availability in Native diffusion similarity re- sponses across five correspondence settings. Top-1 is [email protected]; MR@5 measures coverage by at least one valid Top-5 peak; SF@5 measures this coverage conditioned on an incorrect Native Top-1. Candidate peaks are extracted from the original responses.

Key Results

RelGeo consistently outperformed "native" matching across all tested backbones (DIFT-SD2.1 and DiTF-FLUX) and all ten evaluation settings:

  • Average Gain: An average improvement of 5.51 [email protected] points.
  • Peak Performance: On the SOCO-SOC benchmark, which specifically evaluates identity discrimination, RelGeo saw gains of up to +9.13 points for SD2.1 and +7.94 points for FLUX.
  • State-of-the-Art: On SPair-71k, RelGeo-FLUX reached 69.43% PCK, outperforming previous methods that used additional DINO fusion or complex optimization.
Figure 3. Raw preferences for a face query. While native cosine similarity favors a distractor, both internal (Q/K) and external (RoMa) relations correctly favor the valid face peak.

Limitations and Future Work

  • Dependency on External Models: The WIC component relies on the quality of an external geometric matcher (RoMa). While RoMa is strong, its failures can propagate into RelGeo.
  • Computational Overhead: While training-free, computing SVD for SRC and running RoMa for WIC adds some latency compared to raw descriptor matching (though the authors note this can be mitigated by caching).
  • Frozen Constraints: Because the descriptors are frozen, RelGeo cannot "learn" new semantic features; it can only better calibrate the ones that already exist.

Future work could explore integrating these relational cues more deeply into the diffusion sampling process itself or extending the framework to video-based correspondence where temporal consistency provides an additional relational dimension.

Summary updated

Abstract

Frozen diffusion descriptors retrieve strong semantic correspondence candidates, yet cosine nearest-neighbor matching can select incorrect locations despite valid high-ranking alternatives. Across DIFT-SD2.1 and DiTF-FLUX on SPair-71k, AP-10K, and SOCO (CC, SOC, Cross-SOC), 41-69% of Top-1 errors retain a [email protected] match among the original Top-5 spatial peaks, revealing a persistent candidate-selection bottleneck. We find that descriptor rankings and current-pair relational evidence can favor different candidates: reciprocal diffusion Query/Key associations and pretrained RoMa transport exhibit distinct, partly complementary preferences. To incorporate this evidence into matching decisions, we introduce RelGeo, a Pair-Conditioned Relational Calibration framework expressing heterogeneous relations as shared source-target coordinates. Spectral Relational Coordinates (SRC) encode reciprocal diffusion affinities, while Warp Identity Coordinates (WIC) encode reliability-weighted bidirectional transport endpoints. Their inner products augment frozen descriptor similarity while preserving full-domain cosine nearest-neighbor matching without additional semantic-correspondence training. RelGeo improves all ten evaluations by an average of 5.51 [email protected] points; fixed-candidate reranking and pair-misalignment controls corroborate improved selection and dependence on current-pair relational alignment.
BibTeX
@misc{dai2026relgeo,
  author = {Zixuan Dai and Zhiliang Zhang and Daosong Hu and Tang Zheng and Xinkai Liu and Tianyu Lei and Wei Zhan},
  title = {{RelGeo: Pair-Conditioned Relational Calibration for Frozen Diffusion Correspondence}},
  year = {2026},
  eprint = {2611.25628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25628},
}
Figure