HRoPE: Homography Relative Positional Encoding
AuthorsHuachen Gao, Yang Yang, Xiaoqian Liang, Xingyu Chen, Youjia Zhang, Qi Zhang, Baorui Ma, Anpei Chen, Wei Yang
AffiliationsZhejiang University · Westlake University · Huazhong University of Science and Technology · VIVO · Tsinghua University
HRoPE helps vision transformers align image patches across camera views by encoding the geometry of the surfaces those patches depict.
Key results
Gain in decibels for VGGT-based HRoPE.
Gain in decibels for VGGT-based HRoPE.
Gain in decibels for VGGT-based HRoPE.
LLaVA-Video-7B with HRoPE.
Average-score improvement over fine-tuned LLaVA-Video-7B without HRoPE.
What the paper found
HRoPE replaces camera- or ray-centered positional encoding with a surface-aware approach: it represents each image patch as a slanted 3D plane and uses plane-induced homographies to condition cross-view attention on how local neighborhoods deform. Patch-specific transformations modify query and key comparisons through their relative homography; a closed-form inverse makes the key transformation efficient. A lightweight predictor learns plane parameters from image features, such as VGGT or DINOv2, using the view-synthesis objective alone, without ground-truth geometry. In the LVSM model, VGGT-based HRoPE improves PSNR over PRoPE by 0.53 dB on CO3Dv2, 1.27 dB on RealEstate10K, and 1.03 dB on Objaverse. The encoding also transfers to LLaVA-Video-7B, reaching a VSI-Bench average of 59.5, 1.8 points above the matched fine-tuned baseline. The comparison table also includes OpenAI’s GPT-4o and Google’s Gemini-1.5 Pro, with scores of 34.0 and 45.4, respectively; those comparisons use differing frame-input protocols. Overall, the results suggest that explicitly encoding local surface orientation helps transformers match views and generalize to challenging camera changes.
Original abstract
Geometric Relative Positional Encoding has become the primary mechanism for injecting spatial inductive biases into multi-view transformers. Existing designs condition attention on camera-level frustums or ray-marched depth, associating cross-view tokens through the sensor geometry. Such sensor-centric formulations, however, describe only where a token is observed from, leaving the rich surface geometry of the scene region depicted by the token. In this paper, we advocate a shift toward surface-aware positional encoding that explicitly grounds patch tokens in the geometry of physical surfaces. We introduce HRoPE, which represents the local geometry of each patch as a slanted 3D plane, following the slanted support-window assumption of classical multi-view stereo. We inject token-level, plane-induced homographies into attention as relative transformations. This equips the transformer with a geometric prior for rectifying perspective distortions and aligning patch features across viewpoints. Our encoding requires no ground-truth geometry: the plane parameters can be predicted end-to-end under a view-synthesis objective alone, or derived from foundation models. Extensive experiments on RealEstate10K, CO3Dv2, and DL3DV show that our best variant of HRoPE consistently outperforms the evaluated geometric positional encodings for novel view synthesis. Extensive ablations and analysis show the effectiveness of the proposed encoding. Please refer to our project page at: https://gaohchen.github.io/HRoPE
Read the original paperMore in Computer Vision
Browse all 73 papers →Foundation4D: Towards a unified perception and reconstruction model for autonomous vehicles
NVIDIA, :, Sérgio Agostinho, Maximilian Apodaca, Emmanuel Attia, Guillem Braso, George Dong, Ilya Fedorov, Michele Fenzi, Gang Huang, Jiahui Huang, Shengyu Huang, Bingxin Ke, Laura Leal-Taixé, Kuan-Ting Lee, Mingxuan Liu, Tian Liu, Tim Meinhardt, Aljoša Ošep, Naveen Kumar Rai, Kefei Ren, Cristiano Saltori, Keqiang Wu, Ning Xu, Fei Xue, Jin-Bey Yu, Lei Zhang, Qunjie Zhou
Foundation4D combines multi-camera driving video to estimate scene geometry, detect objects, map occupancy, and reconstruct scenes for simulation.
PhysInsert: Physically Plausible Object Insertion with Geometric Priors and Bidirectional Object-Scene Interactions
Yue Gong, Le Zhang, Rui Chen, Song Chang, Xiaochao Qu, Luoqi Liu, Ting Liu, Yebin Liu
PhysInsert aims to make inserted objects fit their scenes by adapting their pose, perspective, and lighting using geometric and object-scene cues.
WorldCast: World-Consistent Character Video Generation with Large-Angle Camera Control
Lei Cao, Yu Liu, Wenhua Liao, Peng Zhang, Fei Wang, Hao Zhang, Jiajun Le, Daiguo Zhou, Jian Luan, Jiayi Ma
WorldCast aims to keep generated characters visually consistent as the camera makes large, complex moves around them.