arXiv(opens in a new tab)cs.CVSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.01252

MeRoPE: Metric Rotary Position Embedding for Camera-Controlled Video Generation

Zhijian Qiao, Xinjiang Wang, Jiajie Chen, Haoming Huang, Meng Li, Chih-Chung Chou, Jing Wang, Shaojie Shen

ABSTRACT

In camera-controlled video generation, geometry-aware positional encodings condition tokens on camera extrinsics and per-token viewing rays. Existing schemes, however, have a scale-dependent failure mode on real-world metric camera trajectories: homogeneous projective encodings cause attention logits and feature norms to grow unbounded with physical translation baselines. We propose MeRoPE (Metric Rotary Position Embedding), a norm-preserving relative camera encoding for attention. MeRoPE encodes relative orientations between calibrated viewing rays with orthogonal rotation blocks, maps raw metric displacements into multi-frequency rotary phases, and adds a disparity-anchored correspondence prior along the epipolar arc. This design strictly preserves feature norms, bounds pre-softmax attention logits regardless of the physical translation scale, and maintains exact invariance to global rigid coordinate changes. Across nuScenes and PanShot, which cover large-baseline trajectories and diverse camera optics, respectively, MeRoPE achieves stronger camera control than prior encodings, with the best consistency between generated camera motion and conditioning poses in both rotation and translation. Code will be made publicly available.

1 INTRODUCTION

Geometry-aware positional encodings (PEs) enable camera-controlled video generation by making attention sensitive to camera poses and token-level viewing geometry. However, representing real-world metric translation within these encodings remains challenging: raw physical displacements can destabilize attention, whereas normalization discards physical scale.

Existing relative camera encodings based on homogeneous projective matrices (Miyato et al., 2024; Li et al., 2025; Zhang et al., 2026a) jointly encode rotation and translation in non-orthogonal attention operators. In these formulations, physical translation enters as an unnormalized inner product, causing attention logits and feature norms to grow unbounded with the baseline length. Over large displacements, translational terms artificially dominate attention scores and suppress visual content, degrading trajectory control.

This tension yields three task-driven desiderata for camera positional encodings: (A) depth-independent full metric relative-pose dependence on Ti−1TjT_i^{-1}T_j, which retains both motion direction and physical translation scale without coupling translation to an assumed scene depth; (B) strict per-token factorization, which permits independent query/key transformations compatible with standard attention; and (C) norm-preserving actions, which prevent baseline-dependent amplification of logits and features. However, Theorem 1 shows that no continuous finite-dimensional encoding can satisfy all three while remaining sensitive to metric translation. Because camera control requires both metric fidelity (A) and scale stability (C), we prioritize (A+C) and relax (B) through query-camera grouping.

We therefore introduce MeRoPE (Metric Rotary Position Embedding), a norm-preserving encoding with full metric relative-pose dependence. MeRoPE constructs a minimum-rotation (MinRot) local frame for each calibrated 3D ray, represents relative ray orientation with orthogonal blocks, and maps query-frame metric displacements into multi-frequency rotary phases. Together, these operators retain raw metric camera motion while bounding attention logits across arbitrary physical baselines.

Because this pose operator is scene-independent, it does not identify potential static-scene correspondences across views. MeRoPE therefore encodes correspondence hypotheses as disparity-anchored rotations along spherical epipolar arcs. Unlike CamCo (Xu et al., 2024), this design uses epipolar geometry to express relative cross-view relations without restricting which token pairs can interact. Its angular disparity anchors span a bounded spherical arc, avoiding the dataset-specific metric-depth intervals of URoPE (Xie et al., 2026a) and the learned depth estimation of RayRoPE (Wu et al., 2026).

References (43)