LightGlue feature matching
A transformer matcher that pairs local keypoints such as SuperPoint or DISK between two images and stops early on easy pairs, giving accurate correspondences for SfM and localisation.
Also known as LightGlue
In the family Capture, reconstruction & splatting, learned feature matching
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | None found | Computer-vision tool; not in engine. |
| Blender 5.2 | None found | Not in Blender. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Given keypoints with descriptors from a detector for two images, LightGlue runs a stack of attention layers. Each layer applies self-attention within an image and cross-attention across the pair, with rotary positional encodings on keypoint positions, then predicts assignment scores. A small classifier after each layer decides if a keypoint's match is already confident (so it is frozen) or whether the pair is already settled, and a pruning step removes keypoints unlikely to match, so easy image pairs finish in fewer layers than hard ones. Final matches come from a mutual-match test on soft assignment scores with a learned unmatchable-point score. The matches feed geometric verification (essential or fundamental matrix with RANSAC), triangulation and bundle adjustment in a pipeline like Structure-from-Motion (COLMAP).
When to choose it
Reach for it when
- sift matching finds too few correct matches
- photos fail to register in my sfm reconstruction
- match keypoints across large viewpoint change
- need faster learned matching for pose estimation
Choose it as the matcher in a modern SfM or localisation pipeline where nearest-neighbour descriptor matching and ratio tests give too few correct matches under viewpoint, lighting or texture variation. Prefer classic SIFT with ratio-test matching when you need a CPU-only, learning-free baseline, DUSt3R or MASt3R when you want a pose-free dense learned alternative, and Structure-from-Motion (COLMAP) for the surrounding reconstruction pipeline itself.
Field marks
- Repeated structures like windows or tiles yield confident but wrong matches that geometric verification must filter
- Performance depends on the detector; weak keypoints in textureless regions cannot be rescued by the matcher
- Extreme viewpoint changes or rotation beyond the training range reduce matches unless augmented
- Pairwise matching cost grows quadratically with image count without retrieval-based pair selection
Lineage
From the citation graph (Crossref reference lists): its primary source cites Structure-from-Motion (COLMAP); cited by DUSt3R, MASt3R, VGGT (Visual Geometry Grounded Transformer).
Crosses
- Structure-from-Motion (COLMAP): LightGlue's verified matches replace the default matcher stage before triangulation and bundle adjustment.
- Nerfstudio: Better matched poses give nerfstudio and splat training cleaner camera input from hard captures.
Sources
- primaryPhilipp Lindenberger, Paul-Edouard Sarlin, Marc Pollefeys (2023). LightGlue: Local Feature Matching at Light Speed. arXiv preprint (cs.CV).Verified via arxiv · 2026-11-29arXiv:2306.13643
- implementationcvg (2023). cvg/LightGlue. LightGlue: Local Feature Matching at Light Speed (ICCV 2023)GitHub API · license Apache-2.0 · 2026-11-29