{
 "id": "lightglue-feature-matching",
 "title": "LightGlue feature matching",
 "aliases": [
  "LightGlue"
 ],
 "domain": "capture",
 "subdomain": "learned feature matching",
 "stage": "capture",
 "realtime": "interactive",
 "platforms": [
  "cuda",
  "python",
  "cpu"
 ],
 "year_introduced": 2023,
 "inputs": [
  "photos"
 ],
 "outputs": [
  "camera-poses",
  "point-cloud"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "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.",
 "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_use": "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.",
 "cost": {
  "class": "offline",
  "notes": "Per image pair it takes tens of milliseconds on a desktop GPU; large collections need pair selection since pairs grow quadratically."
 },
 "failure_modes": [
  "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"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2306.13643",
   "type": "paper",
   "title": "LightGlue: Local Feature Matching at Light Speed",
   "authors": [
    "Philipp Lindenberger",
    "Paul-Edouard Sarlin",
    "Marc Pollefeys"
   ],
   "year": 2023,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2306.13643",
   "ids": {
    "arxiv": "2306.13643"
   },
   "license": null,
   "extra": {
    "arxiv_version": "1",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2306.13643",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2306.13643",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2306.13643",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2306.13643",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2306.13643",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "lindenberger2023lightglue"
  },
  {
   "role": "implementation",
   "key": "gh:cvg/lightglue",
   "type": "code",
   "title": "cvg/LightGlue",
   "description": "LightGlue: Local Feature Matching at Light Speed (ICCV 2023)",
   "authors": [
    "cvg"
   ],
   "year": 2023,
   "venue": "GitHub",
   "url": "https://github.com/cvg/LightGlue",
   "ids": {
    "repo": "cvg/LightGlue"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 4906,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-25T23:32:36Z",
    "language": "Python",
    "homepage": null,
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/cvg/LightGlue",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/cvg/LightGlue",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/cvg/LightGlue",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/cvg/LightGlue",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/cvg/LightGlue",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/cvg/LightGlue",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "cvg2023lightglue"
  }
 ],
 "presets": [],
 "related": [
  "structure-from-motion-colmap",
  "dust3r",
  "mast3r",
  "vggt"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "structure-from-motion-colmap",
   "why": "LightGlue's verified matches replace the default matcher stage before triangulation and bundle adjustment."
  },
  {
   "id": "nerfstudio",
   "why": "Better matched poses give nerfstudio and splat training cleaner camera input from hard captures."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/capture/lightglue-feature-matching.json"
 },
 "solves": [
  "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"
 ],
 "authority": "Lindenberger et al., 2023",
 "url": "https://texelatlas.vercel.app/t/lightglue-feature-matching/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}