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

Rays as Pixels: Learning A Joint Distribution of Videos and Camera Trajectories

Wonbong Jang, Shikun Liu, Soubhik Sanyal, Juan Camilo Perez, Kam Woh Ng, Sanskar Agrawal, Juan-Manuel Perez-Rua, Yiannis Douratsos, Tao Xiang

In the realm of 3D computer vision, there has historically been a strict separation between two fundamental tasks: inverse problems (estimating camera pose from an image) and forward problems (rendering a new image based on a camera's position). Traditional pipelines are notoriously fragile. To render a scene using techniques like NeRF or 3D Gaussian Splatting, one must first extract a perfect camera trajectory using Structure-from-Motion tools like COLMAP. If the input images are sparse or the camera motion is ambiguous, COLMAP fails, and the entire rendering process collapses.

Rays as Pixels proposes a paradigm shift: these two tasks should not be isolated. Knowing what a scene looks like should inform the camera pose, and knowing the pose should guide scene generation. To achieve this, the authors introduce a unified generative framework that learns the joint distribution of video frames and camera trajectories.

The Core Innovation: "Raxels" (Rays as Pixels)

Standard Video Diffusion Models (VDMs) are designed to process images, not the mathematical 4x4 matrices typically used to represent camera poses. The core innovation of this paper is the Raxel (Ray as Pixel).

Instead of feeding the model a matrix, the authors represent the camera as a dense, 3-channel image. Each "pixel" in this raxel image encodes the origin and direction of the camera ray for that specific spatial coordinate. Because raxels are structurally identical to images, they can be seamlessly processed by the same spatio-temporal VAE and diffusion backbone used for the video itself. This allows researchers to leverage massive, multi-billion parameter pretrained video models (like the 20-billion parameter Wan 2.1 T2V model) for geometric tasks without redesigning the architecture from scratch.

Architecture and Methodology

The model relies on several key architectural tweaks to process this joint data effectively:

  • Joint Denoising via Flow Matching: The model jointly denoises a sequence of video frames and their corresponding raxel images from pure noise, rather than predicting pixels in isolation.
  • Decoupled Self-Cross Attention (DSCA): Standard attention mechanisms can blur distinct modalities together. DSCA allows the model to reason about video consistency and trajectory coherence in parallel branches before exchanging information through cross-attention.
  • Coordinate Canonicalization: To ensure the model learns generalized motion rather than absolute spatial coordinates, all trajectories are transformed to a local coordinate system where the first frame serves as the origin.

The model was trained and evaluated on high-quality 3D and video datasets, including RealEstate10K, DL3DV, and Tanks and Temples, utilizing metric-scale alignment to ensure consistent camera movement measurements across different scenes.

Key Capabilities and Results

Because the model learns a true joint distribution—$p(\text{video}, \text{camera})$—it is inherently self-consistent. This unlocks three major capabilities within a single architecture:

  1. Camera-Controlled Video Generation: Generating a video from multiple input images following a defined camera trajectory.
  2. Novel View Synthesis: Rendering scenes from sparse views without strictly requiring pre-computed camera poses.
  3. Pose Estimation: Predicting the camera trajectory directly from a raw video.

Performance Highlights: * State-of-the-Art Generation: On DL3DV and RealEstate10K benchmarks, the model achieved significantly better visual quality (FID) and temporal consistency (FVD) scores than existing camera-controlled models like MotionCtrl or VD3D. * Competitive Pose Estimation: Despite being a generative model, it rivals specialized feed-forward pose estimators like VGGT in rotation accuracy. * Asymmetric Convergence: The authors discovered that ray latents converge much faster during the diffusion process than video latents. The model effectively "decides" on the camera path early in generation, which then guides the high-frequency texture generation of the video.

Limitations and Future Work

While a major step forward, the current framework has a few constraints. Because the training data consists of static environments, the model assumes all image changes are due to camera movement and may struggle with dynamic objects (e.g., a person walking through the frame). It is also optimized for smooth, cinematic paths and may not handle erratic "shaky cam" motion well. Finally, the underlying VAE uses 4x temporal compression, which can lead to a slight loss of fine detail in fast-moving sequences.

Ultimately, Rays as Pixels demonstrates that non-visual geometric data can be successfully "re-skinned" as image-compatible tensors. The authors suggest this "modality-as-image" approach could soon be extended to other data types, like depth maps or semantic segmentation, paving the way for a universal 3D world model.

Summary updated

BibTeX
@inproceedings{jang2026rays,
  author = {Wonbong Jang and Shikun Liu and Soubhik Sanyal and Juan Camilo Perez and Kam Woh Ng and Sanskar Agrawal and Juan-Manuel Perez-Rua and Yiannis Douratsos and Tao Xiang},
  title = {{Rays as Pixels: Learning A Joint Distribution of Videos and Camera Trajectories}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=zOdTlk9Uw0},
}
Figure