Polygraph: Large-Scale Multi-Session Trajectory Optimization using Pose Graphs

Petar Lukovic, Tian Yi Lim, Marc Pollefeys, Pablo Speciale, Hermann Blum, Zuria BauerarXiv 2026

TL;DR

Polygraph is an online, map-less pipeline for merging multiple independent robot trajectories into a single, globally consistent coordinate frame. By leveraging spatial clustering and a novel two-tier consensus gate, it achieves state-of-the-art accuracy while running significantly faster and committing fewer erroneous loop-closure edges than previous map-based or map-less methods.

What Problem Does This Paper Address?

When robots or wearable devices traverse the same environment multiple times, each "session" generates its own trajectory based on onboard odometry. While locally accurate, these trajectories inevitably drift over time and exist in completely unrelated coordinate frames.

The challenge of "multi-session trajectory optimization" is to detect where these sessions overlap, correct the drift, and align them all into one shared frame. Traditional solutions rely on building and maintaining massive 3D maps of visual landmarks. However, these maps are computationally expensive to store and optimize, especially as environments grow or the number of sessions increases. Recent "map-less" approaches have emerged, but they often work offline, require all sessions to be available upfront, or struggle to relate a brand-new session to an existing trajectory without a pre-defined reference.

Methods

Polygraph introduces a pipeline that processes sessions online, one keyframe and one spatial cluster at a time, without ever building a 3D map.

The Polygraph pipeline overview.

The process follows five key stages:

  1. Keyframing & Clustering: Raw odometry is thinned into keyframes, which are then grouped into spatially bounded clusters. Clusters, rather than individual keyframes, are the fundamental unit for matching.
  2. Cluster Matching: When a cluster "closes," it is matched against all other sessions using learned image retrieval (MegaLoc). This produces a shortlist of candidate cluster pairs.
  3. Joint Pose Estimation: Candidate pairs are verified using a robust vision stack: XFeat and LighterGlue for feature matching, and Metric3D v2 for monocular metric depth estimation. This allows the system to recover the relative 3D pose between clusters with correct metric scale.
  4. Two-Tier Consensus Gate: This is the "secret sauce" for robustness. A cross-session edge only enters the graph if it passes a two-tier gate:
  5. Tier 1 (Corroboration Pool): For a session with no known link to the graph, it must find multiple independent, mutually consistent matches before it is allowed to merge.
  6. Tier 2 (Pending Queue): Once a session is connected, new matches are checked against the current live estimate.
  7. Pose Graph Optimization: The system uses iSAM2 for fast incremental updates after every cluster and a periodic batch solve using Graduated Non-Convexity (GNC) to prune any outliers that might have slipped through the gate.

Datasets

The authors evaluated Polygraph across a diverse range of environments and hardware:

  • KITTI: Standard outdoor driving benchmark.
  • VBR (Vision Benchmark in Rome): Large-scale outdoor vehicle and handheld routes.
  • HYDRO: Indoor locomotion using a Boston Dynamics Spot robot and an iPad.
  • HGE (HoloLens/iPad/iPhone): Indoor traversals using AR headsets and mobile devices.
  • EuRoC: Small-scale indoor MAV (drone) dataset used for pose-estimation ablation.

Key Insights and Ideas

  • Clustering as a Robustness Filter: By matching clusters rather than individual keyframes, Polygraph reduces the search space and uses the internal consistency of the cluster's odometry to filter out spurious single-frame matches.
  • The "Trust but Verify" Gate: The two-tier consensus gate (Fig. 4) prevents a single "hallucinated" match from corrupting the entire global trajectory. It effectively bootstraps trust for new sessions from scratch.
  • Map-less Metric Scale: The paper demonstrates that modern monocular depth priors (like Metric3D) are now reliable enough to provide metric scale for loop closures, removing the need for expensive 3D landmark triangulation.
  • Heterogeneous Multi-Device Fusion: Polygraph can seamlessly merge trajectories from entirely different devices (e.g., a legged robot and a handheld phone) into one frame, as shown in the HYDRO and HGE experiments.
Visualizing how different devices (Spot and iOS) are anchored into a shared frame.

Key Results

  • Speed: Polygraph is significantly faster than the previous state-of-the-art map-less method, 2GO. On the KITTI-00 dataset, it ran 1.9x faster in production mode and up to 2.85x faster in a high-speed configuration.
  • Efficiency: It achieves these results while committing far fewer loop-closure edges (e.g., 26 vs. 517 on KITTI-00), indicating a much higher "signal-to-noise" ratio in its edge detection.
  • Accuracy: Despite the increased sparsity and speed, Polygraph matches or improves upon the Absolute Trajectory Error (ATE) of both map-based (ORB-SLAM3) and map-less (2GO) baselines.
  • Robustness: In the "Multi-Robot Split" test, Polygraph outperformed specialized multi-robot SLAM systems like DOOR-SLAM and Swarm-SLAM by large margins.

Limitations and Future Work

  • Edge-Count Gap: While Polygraph is highly accurate with few edges, the authors note a "gap" in total edge count compared to other methods. Future work could involve safely densifying the graph to further improve local consistency without sacrificing speed.
  • Sensor Modality: The current implementation is tailored for visual and visual-inertial odometry. Testing the framework with other modalities, such as LiDAR-based odometry, remains an open direction.
  • Dynamic Environments: While the robust solvers handle some outliers, extremely dynamic environments (e.g., heavy traffic or moving crowds) might still pose challenges for the initial image retrieval and matching stages.

Summary updated

Abstract

Robots, vehicles, and wearable devices often traverse the same environment many times. Each pass produces its own trajectory from onboard visual or visual-inertial odometry. These trajectories are locally accurate but drift over time and live in unrelated coordinate frames. Turning many such independent trajectories into one globally consistent set is the large-scale multi-session trajectory optimization problem. Existing solutions largely work offline. All sessions must be available up front, one session is fixed as the reference frame, and a single fused map is then optimized. This paper presents Polygraph, a multi-session trajectory optimization pipeline that processes sessions online, one keyframe and one spatial cluster at a time, and never builds a 3D map. Keyframes are grouped into local clusters. When a cluster closes, it is matched against every other session through learned image retrieval. Candidate pairs are verified with sparse feature matching, monocular metric depth, and robust pose estimation. A two-tier consensus gate admits a cross-session edge into the shared pose graph only once independent evidence corroborates it. A cheap incremental solve keeps the graph current, and a periodic robust batch solve prunes outliers. We evaluate Polygraph on stereo outdoor driving, HoloLens and iPad indoor traversals, legged indoor locomotion with a Boston Dynamics Spot, and large-scale outdoor vehicle and handheld routes. Against the closest prior work on the same GPU model, using its reported timings, Polygraph runs faster, commits fewer loop-closure edges, and matches or improves on accuracy.
BibTeX
@misc{lukovic2026polygraph,
  author = {Petar Lukovic and Tian Yi Lim and Marc Pollefeys and Pablo Speciale and Hermann Blum and Zuria Bauer},
  title = {{Polygraph: Large-Scale Multi-Session Trajectory Optimization using Pose Graphs}},
  year = {2026},
  eprint = {2611.21163},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21163},
}
Figure