UFM: A Simple Path towards Unified Dense Correspondence with Flow
Yuchen Zhang, Nikhil Keetha, Chenwei Lyu, Bhuvan Jhamb, Yutian Chen, Yuheng Qiu, Jay Karhade, Shreyas Jha, Yaoyu Hu, Deva Ramanan, Sebastian Scherer, Wenshan Wang
TL;DR
<p>Dense image correspondence spans optical flow and wide-baseline matching, traditionally tackled separately. The authors introduce UFM, a simple transformer-based model that directly regresses dense flow and covisibility from a unified training set of co-visible pixels, achieving state-of-the-art or near state-of-the-art performance across both domains with substantial efficiency gains. A key contribution is training on 12 diverse datasets and a novel TA-WB benchmark to evaluate challenging wide-baseline cases, demonstrating strong zero-shot generalization and compatibility with refinement techniques. The work highlights the benefits of unified training for cross-domain robustness and sets the stage for future integration with semantic cues and fast refinement for real-time, multi-modal correspondence tasks.
Abstract
Dense image correspondence is central to many applications, such as visual odometry, 3D reconstruction, object association, and re-identification. Historically, dense correspondence has been tackled separately for wide-baseline scenarios and optical flow estimation, despite the common goal of matching content between two images. In this paper, we develop a Unified Flow & Matching model (UFM), which is trained on unified data for pixels that are co-visible in both source and target images. UFM uses a simple, generic transformer architecture that directly regresses the (u,v) flow. It is easier to train and more accurate for large flows compared to the typical coarse-to-fine cost volumes in prior work. UFM is 28% more accurate than state-of-the-art flow methods (Unimatch), while also having 62% less error and 6.7x faster than dense wide-baseline matchers (RoMa). UFM is the first to demonstrate that unified training can outperform specialized approaches across both domains. This result enables fast, general-purpose correspondence and opens new directions for multi-modal, long-range, and real-time correspondence tasks.
