Abstract
Bundle Adjustment (BA) is a critical yet computationally intensive step in large-scale 3D reconstruction. As datasets scale to millions of images, traditional BA solvers face severe memory and processing bottlenecks. This paper introduces a distributed Bundle Adjustment (DBA) framework that employs the exact Levenberg-Marquardt (LM) algorithm. By partitioning the problem by 3D points and utilizing a novel Block-based Sparse Matrix Compression (BSMC) format, the proposed method achieves unprecedented scalability, successfully optimizing datasets with up to 10 million images on standard workstations.
Introduction
In the field of computer vision and photogrammetry, Bundle Adjustment is the gold standard for refining camera poses and 3D point coordinates. However, the memory requirements for solving the Reduced Camera System (RCS) grow quadratically with the number of cameras, making city-scale reconstruction (millions of images) nearly impossible for single-machine solvers. While approximate methods like ADMM or submap-based partitioning offer a workaround, they often sacrifice global accuracy. This work addresses the challenge of maintaining the mathematical integrity of the exact LM algorithm while scaling to "super large-scale" datasets.
Distributed Architecture
The core innovation lies in the distributed formation of the RCS. Unlike previous methods that partition datasets by camera submaps—which can lead to boundary artifacts—this framework partitions the problem by 3D points.
As illustrated in the architecture above, task assignment distributes 3D point groups to various computing nodes. Each node calculates a "sub-RCS" independently. These sub-RCS components are then aggregated on a main node to form the global RCS. This approach ensures that the most computationally demanding part of the LM iteration—the formation of the linear system—is fully parallelized.
Memory Optimization via BSMC
Even with distributed formation, the resulting global RCS for millions of images can exceed the RAM of high-end workstations. To mitigate this, the authors developed the Block-based Sparse Matrix Compression (BSMC) format.
Standard formats like Compressed Sparse Row (CSR) store every non-zero element individually. In contrast, BSMC recognizes that camera parameters are naturally grouped into blocks. By using the block as the minimal storage unit, BSMC reduces the amount of metadata required to track matrix indices. Experiments show that BSMC is 1.5 to 3 times more memory-efficient than CSR, allowing a 10-million-image optimization problem to be solved using only 67.48 GB of RAM.
Experimental Results
The framework was validated on diverse datasets, including a real-world UAV dataset of 1.18 million images and synthetic datasets of up to 10 million images. Key findings include:
- Unprecedented Scale: The system handled datasets 500 times larger than previous state-of-the-art LM libraries like MegBA.
- Accuracy: Reprojection errors remained consistent with industry-standard serial solvers like Ceres-CG, proving that distribution does not compromise accuracy.
- Efficiency: The parallel Preconditioned Conjugate Gradient (PCG) solver effectively handled the compressed global RCS on the main node without crashing.
Conclusion
This paper demonstrates that exact Bundle Adjustment is viable for super large-scale datasets through intelligent distribution and matrix compression. By moving the bottleneck from "memory capacity" to "distributed computation," the proposed framework paves the way for world-scale 3D reconstruction. Future work will focus on fully distributing the PCG solver to remove the remaining single-node memory bottleneck for datasets exceeding 100 million images.
Summary updated