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

Philipp Lindenberger, Paul-Edouard Sarlin, Ondrej Miksik, Marc Pollefeys
10/23/2026
cs.CV

Official code: cvg/FlexGlue (377 stars, MIT, last commit 2026-10-27).

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).

Show full abstract

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 .

View on arXivView PDF

Code Implementations(1)

cvg/FlexGlueOfficial100%
MIT

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

37719Oct 25, 20261 months agoMIT

Similar Papers

Cite this paper

@article{lindenberger2026flexglue,
  title  = {FlexGlue: Sparse-to-Dense Feature Matching and Visual Disambiguation},
  author = {Philipp Lindenberger and Paul-Edouard Sarlin and Ondrej Miksik and Marc Pollefeys},
  year   = {2026},
  eprint = {2610.32976},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.32976v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.32976.svg)](https://codeofpaper.com/paper/2610.32976)

Discussion