pypose/bae

[T-RO 2026] Bundle Adjustment in the Eager Mode

What it solves

Bundle Adjustment (BA) and Pose Graph Optimization (PGO) are core problems in robotics and 3D reconstruction, but they are computationally heavy due to the large, sparse systems of equations involved. bae provides efficient, exact second-order optimization algorithms that run fast on GPUs, making these tasks practical for real-world applications.

How it works

bae is built on PyTorch and implements exact second-order optimization techniques, including the Levenberg-Marquardt (LM) optimizer and a Schur complement variant for reduced memory use. It features custom CUDA kernels for sparse block matrix operations, integrates seamlessly with PyTorch's automatic differentiation, and supports both CPU and GPU execution. The library is designed to handle the sparse structure typical of BA and PGO problems, and can optionally use NVIDIA's CUDSS sparse solver for further speed.

Who it’s for

Researchers, engineers, and developers working on robotics, computer vision, or 3D reconstruction who need to solve large-scale non-linear least squares problems. It is used as a backend in systems like InstantSfM and as an optional refinement step in VGGT, so anyone building such systems can benefit.

Highlights

  • Provides exact Levenberg-Marquardt optimization for non-linear least squares.
  • Includes a Schur complement optimizer to cut memory consumption.
  • Offers custom CUDA kernels for sparse matrix operations and high-performance linear algebra.
  • Integrates with PyTorch's autograd for easy model construction and differentiation.
  • Demonstrated on Bundle Adjustment, Pose Graph Optimization, and RGB-D pose refinement tasks.

Related

  • Project
  • Project
  • Project
  • Project
  • Project