cs.CVOct 23, 2026

FlexGlue: Sparse-to-Dense Feature Matching and Visual Disambiguation

Authors: Philipp Lindenberger, Paul-Edouard Sarlin, Ondrej Miksik, Marc Pollefeys

Organizations: ETH Zurich · Google · Microsoft Spatial AI Lab

Abstract

To estimate correspondences across images, existing approaches match either sparse interest points, which is highly efficient but limited by repeatability, or dense pixel grids, which is robust but expensive. Furthermore, these approaches are trained with only matching pairs and thus often fail to reject unrelated pairs that exhibit visual symmetries, which is equally important in applications like Structure-from-Motion (SfM). We bridge these gaps by introducing FlexGlue, a neural network for asymmetric sparse-to-dense matching and disambiguation. Given two images and coordinates of points in the first image, FlexGlue estimates the coordinates of the corresponding points in the second image while simultaneously rejecting the pair if non-matching. By searching for a limited set of correspondences among dense pixels, our approach is both fast and effective at both matching and disambiguation: it combines the sub-pixel accuracy of dense matching with the speed of sparse matching, while rejecting incorrect pairs with high precision. Experiments on multiple datasets show that FlexGlue pushes the Pareto frontier in relative pose estimation and significantly outperforms existing approaches for SfM and visual localization. FlexGlue is publicly available at https://github.com/cvg/flexglue .

Figures & tables

Appendix figures & tables14 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SURE: Semi-dense Uncertainty-REfined Feature Matching

    Mar 5, 2026Sicheng Li, Zaiwang Gu, Jie Zhang +3Image Matching

  2. SAMatcher: Co-Visibility Modeling with Segment Anything for Robust Feature Matching

    Jun 2, 2026Xu Pan, Qiyuan Ma, Mingyue Dong +3Multi-View GeometryImage Matching

  3. SceneGlue: Scene-Aware Transformer for Feature Matching without Scene-Level Annotation

    Apr 15, 2026Songlin Du, Xiaoyong Lu, Yaping Yan +3Image MatchingCross-View Image Matching