Abstract
Estimating camera pose from a sparse set of images is a fundamental challenge in 3D computer vision. Traditional methods often struggle with the ambiguity and lack of overlap inherent in sparse-view settings. This paper introduces Ray Diffusion, a novel approach that redefines camera pose as a distributed set of rays rather than global rotation and translation parameters. By combining an over-parameterized Plücker coordinate representation with a denoising diffusion model, the proposed method achieves state-of-the-art performance in pose estimation and demonstrates remarkable generalization to unseen object categories and real-world scenes.
Introduction
Camera pose estimation—determining the position and orientation of a camera relative to an object or scene—is the backbone of 3D reconstruction and augmented reality. While Structure-from-Motion (SfM) techniques like COLMAP excel with dense image sequences, they frequently fail when provided with only a handful of views. In these sparse-view scenarios, the problem is often ill-posed: multiple camera configurations may plausibly explain the same set of images, particularly when dealing with symmetric objects.
In "Cameras as Rays: Pose Estimation via Ray Diffusion" (ICLR 2024), researchers from Carnegie Mellon University propose a shift in perspective. Instead of forcing a neural network to regress a single, global transformation ($R, t$), they represent the camera as a "bundle of rays." This distributed representation allows the model to better leverage local image features and navigate the multi-modal uncertainty of sparse-view geometry.
The Distributed Ray Representation
Most deep learning models for pose estimation attempt to predict a parsimonious representation: a rotation matrix and a translation vector. However, these global parameters are often disconnected from the local spatial features that neural networks are best at extracting.
To bridge this gap, the authors introduce the Distributed Ray Representation. Every image is divided into a grid of patches, and the model associates each patch with a 3D ray. These rays are expressed using Plücker coordinates, a 6D vector $(d, m)$ where $d$ is the ray direction and $m$ is the moment. This over-parameterization—predicting hundreds of rays to define a single camera—provides a much richer signal for the network. Because the moment vector is invariant to the specific point chosen along the ray, it simplifies the geometric learning task for the transformer architecture.
Pose Estimation via Ray Diffusion
To address the inherent ambiguity of sparse views (e.g., a bowl that looks identical from opposite sides), the authors employ a Denoising Diffusion Model.
The Diffusion Process
The process begins with a set of random, noisy rays. Through an iterative denoising process, the model refines these rays into a coherent bundle that corresponds to a valid camera geometry. Unlike standard regression models, which might "average" between two possible poses and produce a nonsensical result, the diffusion model can sample from the true distribution of plausible poses, effectively handling symmetries and uncertainty.
Architecture
The system utilizes a Diffusion Transformer (DiT) backbone. It takes two primary inputs:
- Image Features: High-level semantic features extracted from a pre-trained DINOv2 model.
- Noisy Rays: The current state of the ray bundle in the diffusion process.
After the model predicts the "clean" rays, a final recovery step uses a simple least-squares optimization to find the camera center (the point where the rays most closely intersect) and the optimal rotation matrix.
Experimental Results
The model was rigorously tested on the CO3Dv2 (Common Objects in 3D) dataset, which contains 51 object categories. To test generalization, the authors trained on 41 categories and evaluated on 10 completely unseen categories.
Performance Metrics
- Accuracy: Ray Diffusion achieved a 93.3% rotation accuracy (within 15°) for seen categories and 88.1% for unseen categories. This significantly outperformed existing baselines like RelPose++ and PoseDiffusion.
- Zero-Shot Generalization: When applied to the RealEstate10K dataset (indoor scenes) and "in-the-wild" photos, the model produced accurate poses without any fine-tuning, demonstrating that it learns fundamental geometric principles rather than just category-specific priors.
- Robustness: While traditional tools like COLMAP often fail to converge on sparse views, Ray Diffusion consistently provided plausible camera trajectories.
Discussion and Future Work
Ray Diffusion represents a significant step forward in making 3D vision more robust. One of its most intriguing properties is its "Plücker agnosticism"; because it predicts rays directly, it can theoretically support generic camera models, such as wide-angle or fish-eye lenses, without changing the underlying math.
However, limitations remain. The model currently predicts rays for each image somewhat independently, which can lead to minor geometric inconsistencies across views. Future work may involve enforcing explicit epipolar constraints during the diffusion process or jointly estimating both camera rays and the 3D geometry of the object. Additionally, as the number of rays increases, the computational cost of the transformer scales quadratically, suggesting a need for more efficient attention mechanisms in higher-resolution applications.
Conclusion
By treating cameras as bundles of rays and framing pose estimation as a generative task, Ray Diffusion overcomes the limitations of global parameter regression. Its ability to handle ambiguity and generalize to new environments makes it a powerful tool for the next generation of 3D reconstruction and spatial computing applications.
Summary updated