paper-with-me

Papers

Cameras as Relative Positional Encoding

2025-07-14 · RuiLong Li, Brent Yi, Junchen Liu, Hang Gao, Yi Ma, Angjoo Kanazawa

Transformers are increasingly prevalent for multi-view computer vision tasks, where geometric relationships between viewpoints are critical for 3D perception. To leverage these relationships, multi-view transformers must use camera geometry to ground visual tokens in 3D space. In this work, we compare techniques for conditioning transformers on cameras: token-level raymap encodings, attention-level relative pose encodings, and a new relative encoding we propose -- Projective Positional Encoding (PRoPE) -- that captures complete camera frustums, both intrinsics and extrinsics, as a relative positional encoding. Our experiments begin by showing how relative camera conditioning improves performance in feedforward novel view synthesis, with further gains from PRoPE. This holds across settings: scenes with both shared and varying intrinsics, when combining token- and attention-level conditioning, and for generalization to inputs with out-of-distribution sequence lengths and camera intrinsics. We then verify that these benefits persist for different tasks, stereo depth estimation and discriminative spatial cognition, as well as larger model sizes.

📄 PDF Abstract BibTeX arXiv:2507.10496

Code (0)

등록된 구현이 없습니다.

Tasks

Depth EstimationNovel View SynthesisStereo Depth Estimation

Similar Papers 제목 키워드 기반

Linearized Relative Positional Encoding

2023-07-18 · Zhen Qin, Weixuan Sun, Kaiyue Lu, Hui Deng 외

Relative positional encoding is widely used in vanilla and linear transformers to represent positional information. However, existing encoding methods of a vanilla transformer are not always directly applicable to a line…

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+2

Analysis of Positional Encodings for Neural Machine Translation

2019-11-01 · EMNLP (IWSLT) 2019 11 · Jan Rosendahl, Viet Anh Khoa Tran, Weiyue Wang, Hermann Ney

In this work we analyze and compare the behavior of the Transformer architecture when using different positional encoding methods. While absolute and relative positional encoding perform equally strong overall, we show t…

Machine TranslationSentenceTranslation

Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolation

2024-01-29 · Zhenyu He, Guhao Feng, Shengjie Luo, Kai Yang 외

In this work, we leverage the intrinsic segmentation of language sequences and design a new positional encoding method called Bilevel Positional Encoding (BiPE). For each position, our BiPE blends an intra-segment encodi…

DisentanglementPosition

Position-aware Self-attention with Relative Positional Encodings for Slot Filling

2018-07-09 · Ivan Bilan, Benjamin Roth

This paper describes how to apply self-attention with relative positional encodings to the task of relation extraction. We propose to use the self-attention encoder layer together with an additional position-aware attent…

PositionRelation ExtractionSentenceslot-filling+1

Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encoding

2021-06-23 · NeurIPS 2021 12 · Shengjie Luo, Shanda Li, Tianle Cai, Di He 외

The attention module, which is a crucial component in Transformer, cannot scale efficiently to long sequences due to its quadratic complexity. Many works focus on approximating the dot-then-exponentiate softmax function …