English

SHAPE: Shifted Absolute Position Embedding for Transformers

Computation and Language 2021-09-14 v1

Abstract

Position representation is crucial for building position-aware representations in Transformers. Existing position representations suffer from a lack of generalization to test data with unseen lengths or high computational cost. We investigate shifted absolute position embedding (SHAPE) to address both issues. The basic idea of SHAPE is to achieve shift invariance, which is a key property of recent successful position representations, by randomly shifting absolute positions during training. We demonstrate that SHAPE is empirically comparable to its counterpart while being simpler and faster.

Keywords

Cite

@article{arxiv.2109.05644,
  title  = {SHAPE: Shifted Absolute Position Embedding for Transformers},
  author = {Shun Kiyono and Sosuke Kobayashi and Jun Suzuki and Kentaro Inui},
  journal= {arXiv preprint arXiv:2109.05644},
  year   = {2021}
}

Comments

EMNLP 2021 (short paper, main conference)

R2 v1 2026-06-24T05:54:01.732Z