Passer à la navigation principale Passer à la recherche Passer au contenu principal

Relative Positional Encoding for Transformers with Linear Complexity

  • Antoine Liutkus
  • , Ondřej Cífka
  • , Shih Lun Wu
  • , Umut Şimşekli
  • , Yi Hsuan Yang
  • , Gaël Richard
  • DALI/LIRMM
  • Institut Polytechnique de Paris
  • Academia Sinica, Research Center for Information Technology Innovation
  • National Taiwan University
  • Taiwan AI Labs
  • DI

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

50 Citations (Scopus)

Résumé

Recent advances in Transformer models allow for unprecedented sequence lengths, due to linear space and time complexity. In the meantime, relative positional encoding (RPE) was proposed as beneficial for classical Transformers and consists in exploiting lags instead of absolute positions for inference. Still, RPE is not available for the recent linear-variants of the Transformer, because it requires the explicit computation of the attention matrix, which is precisely what is avoided by such methods. In this paper, we bridge this gap and present Stochastic Positional Encoding as a way to generate PE that can be used as a replacement to the classical additive (sinusoidal) PE and provably behaves like RPE. The main theoretical contribution is to make a connection between positional encoding and cross-covariance structures of correlated Gaussian processes. We illustrate the performance of our approach on the Long-Range Arena benchmark and on music generation.

langue originaleAnglais
titreProceedings of the 38th International Conference on Machine Learning, ICML 2021
EditeurML Research Press
Pages7067-7079
Nombre de pages13
ISBN (Electronique)9781713845065
étatPublié - 1 janv. 2021
Evénement38th International Conference on Machine Learning, ICML 2021 - Virtual, Online
Durée: 18 juil. 202124 juil. 2021

Série de publications

NomProceedings of Machine Learning Research
Volume139
ISSN (Electronique)2640-3498

Une conférence

Une conférence38th International Conference on Machine Learning, ICML 2021
La villeVirtual, Online
période18/07/2124/07/21

Empreinte digitale

Examiner les sujets de recherche de « Relative Positional Encoding for Transformers with Linear Complexity ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation