Skip to content
Robotics.world

Research

RootSLAM: Square Root Bundle Adjustment for Visual-Inertial SLAM

Classical geometry-based SLAM systems are accurate but their global optimization step is expensive, and one reason it is expensive is numerical: standard solvers form the "normal equations," which…

The paper’s first page · arXiv:2610.15157
arXiv
2610.15157 · Preprint · not peer-reviewed
Published
2026-10-10
Authors
Tomás Santucci, Mateo de Mayo, Daniel Cremers, Taihú Pire

In plain words

Classical geometry-based SLAM systems are accurate but their global optimization step is expensive, and one reason it is expensive is numerical: standard solvers form the "normal equations," which squares the condition number of the problem and forces double-precision arithmetic to stay stable.

AI summary

Overview

Research area: Robotics — visual-inertial simultaneous localization and mapping (VI-SLAM), specifically numerical optimization for large-scale bundle adjustment.

Technical level: Advanced. The paper assumes familiarity with SE(3) geometry, nonlinear least squares, Schur complements, and QR factorization, though its main claims can be read without those details.

Scope (one sentence): The paper extends Basalt's multi-camera visual-inertial odometry into a full SLAM system with a persistent map, loop closing, and a square-root global bundle adjustment that runs in single precision, and benchmarks it against ORB-SLAM3 and OKVIS2 on 103 sequences from three datasets.

What This Paper Is About

Classical geometry-based SLAM systems are accurate but their global optimization step is expensive, and one reason it is expensive is numerical: standard solvers form the "normal equations," which squares the condition number of the problem and forces double-precision arithmetic to stay stable. The authors take a square-root bundle adjustment method developed for structure from motion and re-engineer it for the multi-camera visual-inertial SLAM setting, so the global optimizer can run in 32-bit floating point. The goal is a fully-featured SLAM system that keeps Basalt's efficiency while matching the accuracy of heavier state-of-the-art systems such as ORB-SLAM3 and OKVIS2.

Key Contributions

  1. A complete, low-latency, multi-camera VI-SLAM system. RootSLAM adds a persistent map with keyframe culling, asynchronous loop detection and closing with pose-graph optimization, and global mapping on top of Basalt's VIO (with the modifications from the Monado SLAM Dataset work). It is reported as up to 20 times faster than ORB-SLAM3 and OKVIS2 with competitive accuracy.

  2. A square-root formulation of global bundle adjustment for SLAM. The authors adapt the nullspace landmark marginalization of Demmel et al. from structure from motion to the global optimization stage of multi-camera VI-SLAM, reformulating it around the system's pose-graph so that large map optimizations run in 32-bit instead of 64-bit floating point, roughly doubling the optimizer's speed.

  3. Three concrete modifications to make the SfM formulation valid for SLAM. Intrinsics are removed from the state (per-camera dimension drops from 9 to 6, since calibration is assumed known); the state is re-parameterized with body poses from the rig extrinsics so a multi-camera rig cannot be distorted by the optimizer, with new Jacobians derived via the adjoint; and pose-graph residuals are appended as extra rows of the reduced camera system rather than as Hessian blocks.

  4. A benchmark and ablation study. Evaluation on 103 sequences across the Monado SLAM Dataset (MSD), EuRoC, and TUM-VI, isolating each component and comparing single- versus double-precision global optimization. The full implementation, including map management, loop detection, pose-graph optimization, and global mapping, is to be open-sourced.

Main Findings

  • Best absolute trajectory error on MSD in every group. RootSLAM achieves the lowest ATE of the four compared systems in all MSD sequence groups. The gap is largest on the MIO group, where RootSLAM reports 7.0 cm against 451.7 cm for OKVIS2 and 39890 cm (398.9 m) for ORB-SLAM3.

  • Baselines remain stronger on EuRoC and TUM-VI in most groups, but narrowly. On these stereo datasets, on which OKVIS2 and ORB-SLAM3 were extensively tuned, they obtain the lowest ATE in most groups, yet the three SLAM systems stay within a few centimeters of each other, and RootSLAM remains below the decimeter in the EMH, EV1, EV2, TC, and TR groups.

  • Loop closing drives most of the global accuracy gain. In the ablation, loop closing alone divides Basalt's ATE by up to 6 times on MIP, from 23.6 cm to 4.0 cm, and the complete system reaches 2.3 cm on that group, a roughly 10-fold reduction. RootSLAM improves ATE over the VIO baseline in all twelve groups.

  • Global bundle adjustment alone degrades relative error, and the pose-graph term fixes it. Adding global BA on top of loop closing worsens RTE (1.48 to 1.88 cm on MIO, 1.33 to 2.11 cm on EV1) because it redistributes error globally at the expense of local consistency. Adding the pose-graph residuals recovers RTE in every group while keeping the ATE improvement. The complete system improves the VIO baseline's RTE in eight of twelve groups and degrades it by at most 0.25 cm in the rest, excluding the outlying TO group.

  • Single precision is faster with no measurable accuracy cost. Running the same global bundle adjustment in float versus double, accuracy agrees within 1 cm of ATE in every group except TUM-VI outdoors, whose errors are two orders of magnitude larger, and neither precision is systematically better. The optimizer is 2.16 times faster on average across the 103 sequences, ranging from 1.20 times on the slides group to 2.54 times on the outdoors group. Average global BA time drops from 17.31 s to 8.01 s on an Intel Core i5-13600.

  • Frame times stay below the real-time budget. On twelve representative sequences RootSLAM processes a frame in 10.8 ms on average, 13 times faster than OKVIS2 (143.7 ms) and 3.6 times faster than ORB-SLAM3 (38.9 ms), and it is the only system alongside the VIO it extends whose mean frame time stays under the real-time budget of every sequence. Its global optimization is 5.3 times faster than OKVIS2's full bundle adjustment on average (6.16 s versus 32.90 s).

  • The speed advantage grows with sequence length. On TM1, 772.3 s long, RootSLAM processes every frame plus global optimization in 157.2 s, 4.9 times faster than real time, while OKVIS2 needs 3173.0 s, 20 times slower than RootSLAM and 4.1 times slower than real time. The authors attribute this to OKVIS2's per-frame cost growth over long sessions, which RootSLAM avoids by bounding map size.

  • Long-session real-time behavior. On the 42-minute stereo MOO12 sequence at 30 Hz, on an Intel Core Ultra 9 285H, RootSLAM's VIO pipeline averages 7.2 ms with a standard deviation of 1.6 ms and stays under the 33 ms budget for 99.99% of frames. The local optimizer takes a keyframe every 7 frames, an interval of 233 ms; pose-graph optimization averages 150.9 ms and runs only when a loop exceeds the drift threshold.

  • Success rates. Basalt, RootSLAM, and OKVIS2 produce an estimate for every camera frame of the 103 sequences, whereas ORB-SLAM3 averages 94.1%, dropping to 87.1% on MIO, which also makes its errors optimistic since they are computed only over tracked frames.

Methodology in Plain English

The starting point is Basalt, an efficient multi-camera visual-inertial odometry system that tracks motion well frame to frame but drifts over long sessions because it only remembers a short sliding window of keyframes. The authors add three missing pieces.

First, a persistent map stores keyframes and landmarks once the local optimizer discards them, plus graphs describing which keyframes see the same points and which are connected by odometry. To keep the map bounded, keyframes whose observations are over 90% redundant with three or more others are dropped at marginalization, and if the map exceeds 1500 keyframes the 30 worst-ranked by a quality and redundancy score are removed. Culled keyframes take their landmarks with them.

Second, loop detection and closing runs asynchronously on its own thread so it never blocks the local optimizer or the map. It uses HashBoW for fast candidate retrieval over ORB descriptors computed on corners the front-end already found, then validates candidates through brute-force matching and landmark reprojection to establish 3D-2D correspondences, finishing with a geometric check using gP3P from OpenGV. If the estimated drift is below 10 cm, the validated landmarks are simply fused. Above that, the affected keyframe poses and graph edges are sent to a pose-graph optimizer solved with Levenberg-Marquardt in Ceres over a quaternion manifold with a sparse Cholesky solver, holding sliding-window keyframes fixed to anchor the gauge.

Third, global bundle adjustment refines every keyframe pose and landmark in the map. The key numerical idea is to avoid ever forming the normal equations. Instead, the landmark Jacobian is QR-decomposed, and projecting onto the left nullspace eliminates the landmarks exactly, leaving a reduced camera system that is solved for pose updates; landmark updates then follow by back-substitution. Because this uses an orthogonal transformation rather than squaring the problem, the conditioning survives in single precision. On top of that, the authors remove camera intrinsics from the state, tie all cameras of a rig to a single body pose through the adjoint of the extrinsic calibration, and append pose-graph residuals as extra rows of the same square-root system so the pose graph is enforced without leaving the square-root form. In effect, the system gets the global consistency of bundle adjustment and the loop-closure constraints of the pose graph in one single-precision solve.

Evaluation covers 103 sequences from MSD, EuRoC, and TUM-VI, reporting root-mean-square ATE and RTE in centimeters (SE(3) alignment for ATE, a 6-frame interval for RTE), plus success as the percentage of camera frames with an estimate, all computed non-causally over the final trajectory.

Why This Matters

Impact on research. The paper shows that a numerical reformulation, not just a faster implementation, can make large-scale global bundle adjustment viable in single precision inside a real SLAM system. It also demonstrates that a lean VIO core plus loop closing and bounded global optimization can beat much heavier full SLAM systems on long, fast-motion sequences, while remaining within a few centimeters of them on datasets where those systems were tuned. Energy consumption is discussed only as correlated with runtime; no energy measurements are reported.

Real-world applications:

  • Mixed reality and spatial computing headsets, where the paper notes that smooth, low-RTE trajectories matter most and where compute and thermal budgets are tight.
  • Drone navigation, where the work targets small, low-power flying platforms.
  • Mobile and embedded robotics, including devices that must run perception on CPU only, with no training stage and no GPU.
  • Autonomous driving and any platform needing multi-camera perception at frame rate over long sessions.

Industry relevance. RootSLAM runs fully on CPU, requires no training, stays under real-time on every sequence tested, and avoids the per-frame cost growth OKVIS2 shows over long sessions. Faster runtime translates directly to smaller, cheaper, cooler devices. The authors commit to open-sourcing the map management, loop detection, pose-graph optimization, and global mapping modules, which lowers the barrier to adoption and to reproduction of the benchmark.

Future Directions

  • Closing the remaining ATE gap on tuned stereo benchmarks. OKVIS2 and ORB-SLAM3 still win most EuRoC and TUM-VI groups; whether the persistent map and loop closing can be strengthened for these shorter, slower sequences is open.
  • Handling weak-overlap revisits. On the TO sequences the systems return to the initial room through open spaces, and the loops that would reduce drift most are exactly those with little view overlap, so the comparison there reduces to a comparison of VIO cores. More robust place recognition or geometric validation for low-overlap revisits is a natural next step.
  • Further numerical reduction. The paper moves the global optimizer from 64-bit to 32-bit; whether lower-precision or mixed-precision schemes remain stable under the square-root formulation, and what the practical floor is, is not explored.
  • Energy and thermal characterization. The authors motivate the work by the correlation between runtime and energy efficiency but report no power or energy measurements, leaving that evaluation open for deployment-oriented follow-up.

Target Audience

SLAM researchers and graduate students working on visual-inertial state estimation and large-scale optimization; engineers building perception for XR headsets, drones, or embedded robotics who need real-time performance on CPU-only hardware; and practitioners interested in numerical linear algebra applied to bundle adjustment, particularly those already familiar with Basalt, ORB-SLAM3, or OKVIS2. Readers without a background in SE(3) optimization and least-squares solvers will find the methods section demanding, though the benchmark tables and timing results are accessible on their own.

Authors’ abstract

Efficient perception is a prerequisite for the small, low-power devices targeted by robotics, mixed reality, autonomous driving, and drone applications, all of which rely on Simultaneous Localization and Mapping (SLAM) to estimate their motion within their surroundings. Learning-based SLAM systems achieve state-of-the-art accuracy but are demanding in compute, whereas classical geometry-based methods retain a strong efficiency advantage with little to no loss in accuracy. In…

The full abstract on arXiv
Read the original paper

Related papers