HRoPE: Homography Relative Positional Encoding

1 Zhejiang University 2 Westlake University
3 Huazhong University of Science and Technology
4 VIVO 5 Tsinghua University

* Equal contribution† Corresponding authors

Scene-centric positional encoding for multi-view transformers.

Coming soon Coming soon

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 explicitly enables the transformer to rectify perspective distortions and align patch features across viewpoints rather than having to learn this alignment implicitly from data. 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.

PRoPE uses a camera transform, RayRoPE encodes a point, and HRoPE models a local plane with position and orientation.
From observations to scene geometry. Camera → point → local plane.

Local geometry, inside attention

Predict a transform for each patch. Compare patches through their relative transforms.

HRoPE pipeline: predict per-patch parameters, construct homographies, and modulate attention alongside 2D RoPE.
Features → per-patch homographies → geometry-conditioned attention.
  1. Predict local geometryA lightweight head uses learned features or a pretrained multi-view foundation model.
  2. Build each transformH equals K times R plus kappa t n transpose.
  3. Relate patch pairsAttention score equals q transpose H i H j inverse k.

Geometric channels encode local scene structure; the remaining channels retain 2D RoPE.

A local plane for each patch

Tilt the plane. Its center stays fixed, but its appearance changes across views.

Ideal shared-plane illustration. HRoPE learns per-patch transforms to modulate features; it does not warp image pixels.

Benchmark results CO3Dv2 · RealEstate10K · Objaverse

Two-view NVS with the same LVSM backbone. Best in bold; second-best underlined.

Method CO3Dv2 RealEstate10K Objaverse
PSNRSSIMLPIPS PSNRSSIMLPIPS PSNRSSIMLPIPS
LVSM 18.6170.6010.618 25.2820.8020.130 29.6760.9230.098
GTA 19.4820.6120.573 26.0760.8240.110 30.5000.9290.079
PRoPE 19.4950.6260.583 26.1420.8260.111 30.5880.9290.078
RayRoPE 18.9480.6170.601 26.3480.8300.107 30.8710.9320.079
URoPE ––– 26.8360.8380.099 30.8900.9300.073
HRoPE (Learnable) 19.6120.6300.549 26.4190.8310.105 30.8790.9320.071
HRoPE (DINOv2) 19.7320.6350.519 26.7010.8330.099 31.3650.9340.060
HRoPE (VGGT) 20.0250.6470.462 27.4100.8480.091 31.6220.9370.057

Learnable: trained from scratch. DINOv2 / VGGT: pretrained features for the same prediction head. ↑ higher is better; ↓ lower is better; – unreported.

Novel view synthesis

RealEstate10K. Reference views, predictions, and ground truth.

Around an object

Objaverse · Four input views.

Result 01 / 01
Result 01

Orbit rendering

A camera orbit from four reference views.

Input views

Through a scene

RealEstate10K · Two input views.

Result 01 / 01
Result 01

Novel-view interpolation

A camera path between two reference views.

Input views

Citation

@article{gao_hrope,
  title   = {{HRoPE}: Homography Relative Positional Encoding},
  author  = {Gao, Huachen and Yang, Yang and Liang, Xiaoqian
             and Chen, Xingyu and Zhang, Youjia and Zhang, Qi
             and Ma, Baorui and Chen, Anpei and Yang, Wei},
  journal = {},
  year    = {},
  pages   = {},
}