Beyond Spatio-Temporal Priors: A Generalizable Approach for Dense Correspondence Matching

Luping Liu, Bingyi Kang, Yifan Wang, Dong XuNeurIPS 2026

TL;DR

Computer vision models are great at tracking pixels when cameras move smoothly or scenes stay rigid, but they get completely lost when AI edits an image—say, teleporting a grazing horse into a snowy tundra in a brand-new pose. FreeMatching breaks free from these strict physical assumptions to match pixels based on visual identity rather than physical continuity. Better yet, because it knows exactly which pixels correspond across wild generative edits, you can flip it around to grade AI image generators on how well they preserve fine-grained details.

What Problem Does This Paper Address?

Dense correspondence matching is the classic task of figuring out which pixel in Image A corresponds to which pixel in Image B. Historically, this meant either optical flow (tracking consecutive video frames assuming smooth, short-term motion) or geometric matching (matching different camera angles of a static, rigid building).

Enter the era of AI image editing and reference-guided generation (IEG). Imagine taking a reference photo of a boxer's face and a separate photo of a boxing glove, and prompting a model to generate that exact person throwing a punch against a graffiti wall. Physical continuity is shattered—pose, lighting, background, and composition have all changed—yet a human instantly recognizes the same person and glove. Classical correspondence models, bound by rigid geometry and smooth motion priors, fail here, producing severe distortions or missing matches altogether.

Figure 1: Extending Dense Correspondence to IEG. FreeMatching matches across optical flow, ge- ometric matching, and IEG. Each block shows input pairs above and our bidirectional warps below. The classical examples vary in temporal separation (top) and geometric complexity (bottom).

Methods

The authors reframe correspondence as identity-preserving visual matching: given a source and target image, FreeMatching predicts a dense pixel-mapping plus a "covisibility mask" (flagging newly hallucinated or unoccluded regions that have no source counterpart) in a single forward pass.

The framework stands on three pillars:

  • Fused Foundation Backbones: Instead of starting from scratch, FreeMatching initializes a Diffusion Transformer (DiT) with FLUX.2-4B (for rich generative priors about how objects transform) and injects frozen DINOv3 patch features (for deep semantic understanding).
  • Two-Stage Training with Robust Supervision: First, the model undergoes supervised pre-training across a mix of synthetic and noisy real-world datasets, using a Huber loss so inevitable real-world tracking noise doesn't destabilize learning.
  • Teacher-Guided Iterative Refinement: How do you train on AI-edited images when pixel-perfect ground truth doesn't exist? FreeMatching uses a clever relay race. An Exponential Moving Average (EMA) copy of the student model makes a big, coarse jump—warping the source image to roughly align with the edited target. Once the images are close, a frozen classical matcher (RoMa) acts as a teacher to estimate tiny, precise local corrections. Composing these two steps creates a clean pseudo-target for the student to learn from.

Datasets

To build a true generalist, the authors combine standard benchmarks with newly curated data:

  • Training: Alongside classical datasets (ScanNet++, BlendedMVS, FlyingThings, DynamicReplica, Spring, PointOdyssey, FlyingChairs), the authors introduce two new large-scale datasets (making up 40% of pre-training): 520k real-world dynamic video clips from ViPE pseudo-labeled via AllTracker, and 360k pixel-perfect synthetic Blender pairs rendered using Objaverse 3D assets. Refinement uses unlabeled IEG pairs (from UNO and OmniGen2).
  • Evaluation: Beyond classical optical flow (Sintel, KITTI-2015) and geometric matching/pose benchmarks (ETH3D, ScanNet-1500), the authors introduce IEG-Bench to specifically test correspondence across reference-guided generations and edits.

Key Insights and Ideas

  • Divide and Conquer for Unlabeled Edits: Classical matchers like RoMa fail on large generative leaps, but they remain razor-sharp at local alignment. Having the student bridge the massive semantic gap first so the frozen teacher only has to fix local misalignments lets the system bootstrap dense supervision out of thin air.
  • Inverting the Matcher into an AI Critic: Global evaluation metrics (like standard CLIP or DINO scores) squash an entire image into one vector, often missing subtle hallucinations—like garbled text on a balloon or a warped logo. By warping the reference image onto the generated output and comparing them pixel-by-pixel inside the covisible mask, FreeMatching creates spatial heatmaps that pinpoint exact local inconsistencies, correlating well with human judgment.
  • Generative + Semantic Synergy: Ablations show that combining FLUX initialization with DINOv3 features outperforms either alone—generative models understand plausible appearance changes, while semantic encoders lock onto object identity.

Key Results

A single FreeMatching model handles both classical physics and generative leaps:

  • On IEG-Bench: FreeMatching substantially outperforms existing generalists. Measuring reconstruction similarity between warped source and target images, it boosts DINOv3 similarity to 80.01 (up from 70.15 for RoMa and 66.77 for UFM) and lowers Reference-Mask MSE to 6.22 (vs. 8.08 for RoMa). Even when RoMa and UFM are given the exact same 10k adaptation steps on IEG data, FreeMatching maintains a clear lead across all pixel and feature metrics.
  • On Classical Benchmarks: Expanding into generative territory doesn't ruin classical skills. FreeMatching achieves the best End-Point Error (EPE) on wide-baseline geometric matching—10.23 on ETH3D and 8.56 on ScanNet-1500—while remaining highly competitive on Sintel (1.05 Clean / 1.36 Final EPE) and KITTI optical flow.

Limitations and Future Work

FreeMatching isn't magic: it can still stumble on extreme occlusions, topological changes (like an object splitting apart), or drastic non-rigid deformations. Furthermore, because its encoders are frozen, its performance ceiling is tied to FLUX and DINOv3. The authors also note that IEG-Bench would benefit from expanding into broader categories, and point toward a probabilistic diffusion extension (explored in their appendix) to handle ambiguous cases—like when an edit duplicates one reference object into twins.

Summary updated

Abstract

Dense correspondence matching has historically been bounded by simplifying spatio-temporal priors, such as smooth motion and rigid geometry. While effective for classical tasks, these assumptions break down in image editing and reference-guided generation (IEG), where transformations can preserve visual identity while breaking physical continuity. To establish identity-preserving correspondence across such transformations, we introduce FreeMatching, a generalizable framework combining generative and semantic foundation representations with heterogeneous supervision from classical datasets, tracked videos, and synthetic scenes. Teacher-guided iterative refinement further improves correspondence in IEG without dense correspondence annotations. Experimentally, a single FreeMatching model substantially improves correspondence quality on challenging IEG image pairs while retaining competitive performance on classical benchmarks. Furthermore, we demonstrate its utility as a quantitative metric for evaluating identity preservation, with scores that correlate with human judgment. The code is available at https://github.com/luping-liu/FreeMatching.
BibTeX
@inproceedings{liu2026beyond,
  author = {Luping Liu and Bingyi Kang and Yifan Wang and Dong Xu},
  title = {{Beyond Spatio-Temporal Priors: A Generalizable Approach for Dense Correspondence Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qhc3sU3mz5},
}
Figure