CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddings

By Tatiana Likhomanenko, Qiantong Xu, Ronan Collobert, Gabriel Synnaeve, Alex Rogozhnikov. 2021

73 citations recorded by the source corpus.

Without positional information, attention-based Transformer neural networks are permutation-invariant. Absolute or relative positional embeddings are the most popular ways to feed Transformer models with positional information. Absolute positional embeddings are simple to implement, but suffer from generalization issues when evaluating on sequences longer than seen at training time. Relative positions are more robust to input length change, but are more complex to implement and yield inferior model throughput due to extra computational and memory costs. In this paper, we propose an augmentation-based approach (CAPE) for absolute positional embeddings, which keeps the advantages of both absolute (simplicity and speed) and relative positional embeddings (better generalization). In addition, our empirical evaluation on state-of-the-art models in machine translation, image and speech recognition demonstrates that CAPE leads to better generalization performance as well as increased stability with respect to training hyper-parameters.

Subfields: Artificial Intelligence, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Noah A. Smith
  3. Mohit Bansal
  4. Jianfeng Gao
  5. Armand Joulin
  6. Percy Liang
  7. Yoshua Bengio
  8. Yejin Choi

In Model Architectures

  1. Herv'e J'egou
  2. Gabriel Synnaeve
  3. Armand Joulin
  4. Ofir Press
  5. Noah A. Smith
  6. Siva Reddy
  7. Ishan Misra
  8. Michael Lewis

Citations in the corpus