NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bundle Adjustment on a Graph Processor.

Joseph Ortiz, Mark Pupilli, Stefan Leutenegger, Andrew J. DavisonarXiv 2020

Abstract

Graph processors such as Graphcore's Intelligence Processing Unit (IPU) are part of the major new wave of novel computer architecture for AI, and have a general design with massively parallel computation, distributed on-chip memory and very high inter-core communication bandwidth which allows breakthrough performance for message passing algorithms on arbitrary graphs. We show for the first time that the classical computer vision problem of bundle adjustment (BA) can be solved extremely fast on a graph processor using Gaussian Belief Propagation. Our simple but fully parallel implementation uses the 1216 cores on a single IPU chip to, for instance, solve a real BA problem with 125 keyframes and 1919 points in under 40ms, compared to 1450ms for the Ceres CPU library. Further code optimisation will surely increase this difference on static problems, but we argue that the real promise of graph processing is for flexible in-place optimisation of general, dynamically changing factor graphs representing Spatial AI problems. We give indications of this with experiments showing the ability of GBP to efficiently solve incremental SLAM problems, and deal with robust cost functions and different types of factors.

Introduction

In computer vision, Bundle Adjustment (BA) is the gold standard for accuracy in Simultaneous Localization and Mapping (SLAM) and Structure from Motion. It involves the simultaneous refinement of 3D coordinates (landmarks) and camera poses (keyframes) to minimize reprojection error. However, traditional solvers like the Ceres library rely on centralized, second-order methods (e.g., Levenberg-Marquardt) that create significant bottlenecks for real-time applications on embedded devices like drones or AR headsets. This research explores a paradigm shift: solving BA locally and distributedly using Gaussian Belief Propagation (GBP) on specialized graph hardware.

Distributed Optimization via Gaussian Belief Propagation

The core of this approach is treating the BA problem as a factor graph. In this model, each camera pose and landmark is a node that communicates with its neighbors by passing messages. These messages represent Gaussian distributions of the node's current belief about its state. Unlike global solvers that require gathering all data into a central matrix, GBP is inherently parallel and distributed.

Factor graph representation of the Bundle Adjustment problem, illustrating keyframes (x), landmarks (l), and the message-passing factors.

Hardware Acceleration on the IPU

The algorithm is mapped directly onto Graphcore’s Intelligence Processing Unit (IPU). Unlike GPUs designed for SIMD (Single Instruction, Multiple Data) operations, the IPU is a MIMD (Multiple Instruction, Multiple Data) processor featuring 1,216 independent "tiles" (cores), each with its own local memory. This architecture allows the factor graph to be physically manifested on the chip, enabling "in-place" inference where the graph is the memory, drastically reducing the power-hungry data movement associated with off-chip DRAM.

The GBP iteration cycle (Relinearisation, Message Compute, Exchange, Belief Update) mapped to IPU tiles and its corresponding execution timeline.

Results and Performance

The implementation was evaluated using standard benchmarks like the TUM RGB-D and KITTI datasets. Key findings include:

  • Significant Speedup: For a static BA problem (125 keyframes, 1,919 points), the IPU achieved a solution in under 40ms, compared to 1,450ms for Ceres on a high-end CPU—a 36x improvement in this specific instance and a 24x average speedup across all tested sequences.
  • Efficiency and Robustness: The IPU operates at approximately 120W, offering much higher energy efficiency per solve. Furthermore, by integrating a Huber loss function directly into the message-passing, the system can locally down-weight outliers, successfully handling up to 10% artificial noise.
  • The "Snap" Effect: In incremental SLAM, GBP allows new variables to quickly "snap" into a consistent state with the existing map, proving highly effective for dynamic environments.

Discussion and Future Work

While the current implementation is limited by the 1,216-tile count per chip and uses 32-bit float precision rather than 64-bit double precision, the results demonstrate the immense potential of graph processors for Spatial AI. Future work will focus on scaling to multi-chip systems and integrating semantic labels and object recognition into a unified, fluid factor graph optimized entirely on-chip.

Summary updated

BibTeX
@misc{ortiz2020bundle,
  author = {Joseph Ortiz and Mark Pupilli and Stefan Leutenegger and Andrew J. Davison},
  title = {{Bundle Adjustment on a Graph Processor.}},
  year = {2020},
  eprint = {2003.03134},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.03134},
}
Figure