CRePE: Curved Ray Expectation Positional Encoding for Unified-Camera-Controlled Video Generation

Seonghyun Jin, youngmin kim, Sunwoo Park, Jong Chul YeNeurIPS 2026

TL;DR

Generating AI videos with precise camera movement is tough, especially when swapping a standard lens for a warped wide-angle or $180^\circ$ fisheye lens where straight 3D lines project onto curves. CRePE solves this by upgrading how video diffusion transformers encode spatial relationships: instead of treating image patches as depthless rays or assuming flat pinhole optics, it models each token as a probability distribution of distances along its viewing ray and integrates that uncertainty along the curved trajectory induced by real-world lenses. The result is rock-solid camera control across diverse lenses, plus a bonus superpower: feeding external depth maps directly into the positional encoding to control scene layout and transfer motion.

Wide-angle and fisheye video generation with CRePE alongside its internal geometry estimates

What Problem Does This Paper Address?

When you move a camera through a 3D world, how much an object shifts across the frame (parallax) depends on two things: the direction you are looking and how far away the object is.

Recently, video Diffusion Transformers (DiTs) have started injecting camera geometry directly into their attention mechanisms via Rotary Positional Encodings (RoPE)—essentially letting tokens know how they relate to one another across view changes. However, existing methods face a geometric catch-22:

  1. Ray-only methods (like UCPE) handle exotic lenses via the Unified Camera Model (UCM—a mathematical framework covering pinhole, wide-angle, and fisheye lenses), but they only encode ray direction, ignoring scene depth along the ray.
  2. Depth-aware methods (like RayRoPE) estimate where content sits along a ray, but rely on standard pinhole math where a 3D ray segment projects onto a neat straight line in another view. Under wide-angle or fisheye distortion, that projected segment bends into a curve, breaking simple two-endpoint approximations.

Methods

Built on a frozen video DiT backbone (Wan2.1-T2V-1.3B) with a lightweight camera adapter, CRePE introduces three key innovations over standard relative-ray adapters:

  • Curved-Ray Expected RoPE: A shared geometry head looks at each source token and predicts a log-radial distance center ($\mu$) and uncertainty width ($\sigma$). CRePE samples $K$ breakpoints (default $K=5$) across this interval, unprojects them into 3D space, and projects them into the query camera's view via UCM math—tracing a curved path. It then analytically integrates the RoPE phase across the $K-1$ piecewise-linear segments to compute an expected rotary modulation.
  • Selective Adapter & Pseudo Supervision: Rather than overriding every layer, CRePE injects depth-aware modulation only into the middle 10 DiT blocks (where geometry is most recoverable) while keeping standard ray-only encoding elsewhere. During training, an auxiliary loss anchors the geometry head using offline pseudo radial-distance maps from a monocular foundation model (UniK3D), filtered to ignore sky/far-field rays ($>20\text{ m}$). No external depth estimator is needed at inference.
  • Radial MixForcing: A training-time teacher-substitution trick that occasionally swaps the model's internal distance predictions with external radial maps. This teaches the positional pathway to double as an external 3D structure controller at inference, cleanly falling back to self-prediction where external data is missing.

Datasets

No new datasets are introduced; the authors leverage existing multi-camera and video benchmarks:

  • PanShot: Primary training and evaluation dataset featuring panning shots across pinhole, wide-angle, and fisheye lenses with UCM parameters (evaluated on all 340 test clips, plus a 50-clip subset for ablations).
  • KITTI-360 & RealCam-Vid: Used for zero-shot transfer testing—32 real $180^\circ$ fisheye driving scenes from KITTI-360, and 100 diverse pinhole scenes from RealCam-Vid (drawn from RealEstate10K, DL3DV, and MiraData).
  • DAVIS-2016: 33 sequences used to test external radial-map adherence and motion transfer.

Key Insights and Ideas

  • Geometry belongs in the phase, not the features: In a controlled test, concatenating the exact same predicted depth signal directly to token features (+6M MLP parameters) actually hurt camera pose control compared to using no depth at all (CamMC degraded from 21.87 to 23.21). Making distance a query-dependent attention phase (CamMC 18.15) is what unlocks spatial reasoning.
  • Curved paths beat endpoints: Sampling interior points along the projected ray ($K=3$ or $5$) noticeably outperforms a two-point endpoint approximation ($K=2$), proving that capturing nonlinear projection geometry matters—while collapsing uncertainty to a single point ($K=1$) ruins image quality (FID spikes from ~136 to 242.7).
  • Positional encoding can filter teacher noise: Monocular depth estimators often flicker across frames or struggle on moving people. CRePE automatically assigns $1.51\times$ wider uncertainty to dynamic regions than static ones, resulting in $2.4\times$ smoother frame-to-frame scale stability than its own UniK3D teacher.

Key Results

  • Main Camera Control (PanShot): CRePE improves camera trajectory accuracy (CamMC, lower is better) over UCPE from 20.60 to 19.02 on non-pinhole lenses and 18.50 to 15.33 on pinhole lenses (and beats ReCamMaster's 54.56 / 57.83 by a wide margin), while reducing lens distortion ($k_1, k_2$) and gravity orientation errors with competitive FVD (465.3 vs. UCPE's 463.5).
  • Zero-Shot Generalization: Without fine-tuning, CRePE slashes CamMC error over UCPE by 24% on real $180^\circ$ fisheye KITTI-360 videos (17.01 vs. 22.32) and 22% on RealCam-Vid (9.55 vs. 12.17).
  • External Geometry Control (DAVIS): Modifying only positional encodings, CRePE-Mix beats dedicated structural control models (including VACE, ControlVideo, and OmniVDiff) on 7 of 8 depth-adherence comparisons and cuts depth-scale jitter by ~30% relative to the strongest baseline (0.1781 vs. VACE's 0.2518).

Limitations and Future Work

  • Evaluation & Teacher Quirks: Camera pose recovery (ViPE) and geometry adherence (UniK3D) rely on automated estimators that carry their own noise, and monocular pseudo-supervision can struggle on uncalibrated moving objects.
  • Camera Model Scope: CRePE assumes central cameras governed by the Unified Camera Model; extending it to non-central optics or rolling-shutter cameras remains open.
  • Benchmarking: External depth baselines use different generative backbones, so the authors stop short of claiming state-of-the-art depth conditioning, leaving a dedicated motion-transfer benchmark for future work.

Summary updated

Abstract

Camera-conditioned video generation requires positional encoding that remains reliable under changes in camera motion, lens configuration, and scene structure. However, existing attention-level camera encodings either provide ray-only camera signals or rely on pinhole camera geometry, limiting their applicability to general camera control under the Unified Camera Model, including wide-angle and fisheye lenses. To address this limitation, we propose Curved Ray Expectation Positional Encoding (CRePE). CRePE represents each image token as a depth-aware positional distribution along its source ray, providing a Unified Camera Model-compatible positional encoding that naturally captures the curved-ray geometry of wide-angle and fisheye cameras. CRePE is implemented through a Geometric Attention Adapter added to frozen video DiTs, injecting token-wise scene-distance information into selected attention layers and stabilizing it with pseudo supervision from a monocular geometry foundation model. This design leads to more stable camera control with competitive video quality in camera-conditioned video generation under the Unified Camera Model, and the resulting model transfers zero-shot to real fisheye and diverse pinhole videos. Controlled positional-encoding ablations show improvements over a RayRoPE-style endpoint approximation, demonstrating the effectiveness of curved-ray-aware positional encoding, particularly for non-pinhole cameras. Furthermore, by extending the same positional-encoding pathway to external geometry control through Radial MixForcing, CRePE supports external radial-map control for scene-geometry-conditioned generation and source-video motion transfer beyond camera control. Project page: https://crepe-neurips2026.github.io/; code: https://github.com/jinotter3/CRePE.
BibTeX
@inproceedings{jin2026crepe,
  author = {Seonghyun Jin and youngmin kim and Sunwoo Park and Jong Chul Ye},
  title = {{CRePE: Curved Ray Expectation Positional Encoding for Unified-Camera-Controlled Video Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=msKXlv69Pt},
}
Figure