HRoPE:单应性相对位置编码
研究论文 · 2026/10/21
本文提出HRoPE,一种表面感知的位置编码方法,用于多视图Transformer。现有几何位置编码基于相机视锥或光线步进深度,仅描述token的观测位置,忽略了场景表面几何。HRoPE将每个patch的局部几何表示为倾斜3D平面(基于经典多视图立体中的倾斜支持窗假设),并将token级、平面诱导的单应性作为相对变换注入注意力,从而为Transformer提供矫正透视畸变和对齐跨视图patch特征的几何先验。该编码无需真实几何:平面参数可在视图合成目标下端到端预测,或从基础模型导出。在RealEstate10K、CO3Dv2和DL3DV上的实验表明,HRoPE的最佳变体在新视图合成任务上持续优于所评估的几何位置编码。广泛的消融和分析验证了所提编码的有效性。
该论文提出了一种新的表面感知位置编码,克服了传统传感器中心编码的局限,无需真实几何即可端到端学习,并在多个数据集上验证了其有效性,对多视图Transformer和新视图合成领域有重要参考价值。
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