DiffusionSfM: Predicting Structure and Motion via Ray Origin and Endpoint Diffusion
Qitao Zhao, Amy Lin, Jeff Tan, Jason Y. Zhang, Deva Ramanan, Shubham Tulsiani
TL;DR
DiffusionSfM tackles the joint problem of recovering 3D structure and camera motion from sparse multi-view imagery by predicting dense per-pixel ray origins and endpoints in a global frame using a denoising diffusion transformer. It unifies geometry and pose estimation into a single end-to-end framework, leveraging GT mask conditioning and a homogeneous representation to robustly learn from incomplete data and unbounded coordinates. Empirically, it achieves superior camera center accuracy and competitive geometry metrics on CO3D and scene-level datasets, while providing natural uncertainty modeling and the ability to generate multi-modal predictions. The work offers a practical, scalable alternative to traditional SfM pipelines and points to future enhancements via latent-space representations and efficiency-driven refinements for larger view settings.
Abstract
Current Structure-from-Motion (SfM) methods typically follow a two-stage pipeline, combining learned or geometric pairwise reasoning with a subsequent global optimization step. In contrast, we propose a data-driven multi-view reasoning approach that directly infers 3D scene geometry and camera poses from multi-view images. Our framework, DiffusionSfM, parameterizes scene geometry and cameras as pixel-wise ray origins and endpoints in a global frame and employs a transformer-based denoising diffusion model to predict them from multi-view inputs. To address practical challenges in training diffusion models with missing data and unbounded scene coordinates, we introduce specialized mechanisms that ensure robust learning. We empirically validate DiffusionSfM on both synthetic and real datasets, demonstrating that it outperforms classical and learning-based approaches while naturally modeling uncertainty.
