G-ray: Ray-Level Relative Geometric Position Encoding in Multi-View Vision Transformers under Camera Heterogeneity

Shuo Zhang, Xin Su, Wei Wang, Jun Liu, Xinrui Zeng +6 more
9/14/2026
cs.CV

No official code found. Best implementation: zhangshuoneu/G-ray (2 stars, last commit 2026-09-15).

Abstract

We study relative position encoding for multi-view vision Transformers under camera heterogeneity, including varying fields of view (FoVs) or projection models. Existing rotary relative position encodings commonly use image-plane positional coordinates, producing projection-dependent relative phases and inconsistent geometric cues for cross-projection attention. We introduce G-ray, a ray-level relative position encoding whose rotary phases are parameterized by camera-local ray angles. The same camera-local ray pair induces the same relative phase across projections, providing projection-invariant positional consistency. G-ray can be used directly or integrated with existing encodings, retaining complementary geometric cues without additional learned parameters. We validate G-ray in three host encodings, RoPE, GTA, and RayRoPE, across 3D reconstruction and novel-view synthesis (NVS). Across three heterogeneous 3D reconstruction benchmarks at 50 views, G-ray leads all six averaged metrics and reduces mean pointmap relative error by 45.8% over MapAnything, with calibration supplied to both. Trained exclusively on homogeneous pinhole images, the 3D reconstruction model handles mixed pinhole and non-pinhole inputs without retraining and remains competitive on homogeneous pinhole 3D reconstruction protocols. For NVS, GTA and RayRoPE improve with G-ray under joint viewpoint and FoV variation. The project's webpage is available at https://g-ray-project.github.io/.

View on arXivView PDF

Code Implementations(1)

zhangshuoneu/G-rayCommunity71%

G-ray: Ray-Level Relative Geometric Position Encoding in Multi-View Vision Transformers under Camera Heterogeneity. Code coming soon.

20Sep 14, 20261 months ago

Similar Papers

Cite this paper

@article{zhang2026gray,
  title  = {G-ray: Ray-Level Relative Geometric Position Encoding in Multi-View Vision Transformers under Camera Heterogeneity},
  author = {Shuo Zhang and Xin Su and Wei Wang and Jun Liu and Xinrui Zeng and Yongsen Chen and Chenjie Wang and Guibo Zhu and Jinqiao Wang and Bin Luo and Liangpei Zhang},
  year   = {2026},
  eprint = {2609.15018},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.15018v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.15018.svg)](https://codeofpaper.com/paper/2609.15018)

Discussion