Diffusion Model for Dense Matching
Jisu Nam, Gyuseong Lee, Sunwoo Kim, Hyeonsu Kim, Hyoungwon Cho, Seyeon Kim, Seungryong Kim
TL;DR
DiffMatch reframes dense pixel-wise image matching as learning a posterior over the matching field by using a conditional diffusion model. It jointly models the data term and a learned prior through a conditional denoising diffusion process, augmented by a cost-injection pathway with an initial flow and local costs, and a cascaded flow-upsampling scheme to recover high-resolution correspondences. Through ablations and extensive experiments on HPatches, ETH3D, and corrupted benchmarks, the method achieves state-of-the-art results and demonstrates robustness to challenging textures, repetitions, large displacements, and noise. The work highlights the value of explicitly incorporating a generative prior for dense matching and provides practical inference strategies to harness diffusion models for discriminative tasks.
Abstract
The objective for establishing dense correspondence between paired images consists of two terms: a data term and a prior term. While conventional techniques focused on defining hand-designed prior terms, which are difficult to formulate, recent approaches have focused on learning the data term with deep neural networks without explicitly modeling the prior, assuming that the model itself has the capacity to learn an optimal prior from a large-scale dataset. The performance improvement was obvious, however, they often fail to address inherent ambiguities of matching, such as textureless regions, repetitive patterns, and large displacements. To address this, we propose DiffMatch, a novel conditional diffusion-based framework designed to explicitly model both the data and prior terms. Unlike previous approaches, this is accomplished by leveraging a conditional denoising diffusion model. DiffMatch consists of two main components: conditional denoising diffusion module and cost injection module. We stabilize the training process and reduce memory usage with a stage-wise training strategy. Furthermore, to boost performance, we introduce an inference technique that finds a better path to the accurate matching field. Our experimental results demonstrate significant performance improvements of our method over existing approaches, and the ablation studies validate our design choices along with the effectiveness of each component. Project page is available at https://ku-cvlab.github.io/DiffMatch/.
