DiffusionSfM: Predicting Structure and Motion via Ray Origin and Endpoint Diffusion

Qitao Zhao, Amy Lin, Jeff Tan, Jason Y. Zhang, Deva Ramanan +1 more
2/10/2026

No official code found. Best implementation: QitaoZhao/DiffusionSfM (190 stars, MIT, last commit 2025-07-07).

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.

View on arXivView PDF

Code Implementations(1)

MIT

[CVPR 2025] "DiffusionSfM: Predicting Structure and Motion via Ray Origin and Endpoint Diffusion" official implementation.

1909PythonMay 2, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zhao2026diffusionsfm,
  title  = {DiffusionSfM: Predicting Structure and Motion via Ray Origin and Endpoint Diffusion},
  author = {Qitao Zhao and Amy Lin and Jeff Tan and Jason Y. Zhang and Deva Ramanan and Shubham Tulsiani},
  year   = {2026},
  eprint = {2505.05473},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.05473},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.05473.svg)](https://codeofpaper.com/paper/2505.05473)

Discussion