HRoPE: Homography Relative Positional Encoding
* Equal contribution† Corresponding authors
Scene-centric positional encoding for multi-view transformers.
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.
Local geometry, inside attention
Predict a transform for each patch. Compare patches through their relative transforms.
- Predict local geometryA lightweight head uses learned features or a pretrained multi-view foundation model.
- Build each transform
- Relate patch pairs
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 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| LVSM | 18.617 | 0.601 | 0.618 | 25.282 | 0.802 | 0.130 | 29.676 | 0.923 | 0.098 |
| GTA | 19.482 | 0.612 | 0.573 | 26.076 | 0.824 | 0.110 | 30.500 | 0.929 | 0.079 |
| PRoPE | 19.495 | 0.626 | 0.583 | 26.142 | 0.826 | 0.111 | 30.588 | 0.929 | 0.078 |
| RayRoPE | 18.948 | 0.617 | 0.601 | 26.348 | 0.830 | 0.107 | 30.871 | 0.932 | 0.079 |
| URoPE | – | – | – | 26.836 | 0.838 | 0.099 | 30.890 | 0.930 | 0.073 |
| HRoPE (Learnable) | 19.612 | 0.630 | 0.549 | 26.419 | 0.831 | 0.105 | 30.879 | 0.932 | 0.071 |
| HRoPE (DINOv2) | 19.732 | 0.635 | 0.519 | 26.701 | 0.833 | 0.099 | 31.365 | 0.934 | 0.060 |
| HRoPE (VGGT) | 20.025 | 0.647 | 0.462 | 27.410 | 0.848 | 0.091 | 31.622 | 0.937 | 0.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.
Orbit rendering
A camera orbit from four reference views.
Input viewsThrough a scene
RealEstate10K · Two input views.
Novel-view interpolation
A camera path between two reference views.
Input viewsCitation
@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 = {},
}