mlsanityData to 7 Oct 2026

PermuteFormer: Efficient Relative Position Encoding for Long Sequences

arXiv 2109.02377 ↗First posted 6 Sep 2021cs.CL cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

A recent variation of Transformer, Performer, scales Transformer to longer sequences with a linear attention mechanism. However, it is not compatible with relative position encoding, which has advantages over absolute position encoding. In this paper, we discuss possible ways to add relative position encoding to Performer. Based on the analysis, we propose PermuteFormer, a Performer-based model with relative position encoding that scales linearly on long sequences. PermuteFormer applies position-dependent transformation on queries and keys to encode positional information into the attention module. This transformation is carefully crafted so that the final output of self-attention is not affected by absolute positions of tokens. PermuteFormer introduces negligible computational overhead by design that it runs as fast as Performer. We evaluate PermuteFormer on Long-Range Arena, a dataset for long sequences, as well as WikiText-103, a language modeling dataset. The experiments show that PermuteFormer uniformly improves the performance of Performer with almost no computational overhead and outperforms vanilla Transformer on most of the tasks.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 27 of its 30 references that are in the map. First posted on arXiv 6 Sep 2021.

Builds on

27 of 30 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  7. 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,853
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2016Pointer Sentinel Mixture Modelscited by 2,992
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  11. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
15 more
  1. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  3. 2020Reformer: The Efficient Transformercited by 1,658
  4. 2019LXMERT: Learning Cross-Modality Encoder Representations from Transformerscited by 1,548
  5. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  6. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  7. 2018Self-Attention with Relative Position Representationscited by 1,112
  8. 2020Efficient Transformers: A Surveycited by 784
  9. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  10. 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 549
  11. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  12. 2021Random Feature Attentioncited by 350
  13. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  14. 2021Finetuning Pretrained Transformers into RNNscited by 94
  15. 2020Sub-Linear Memory: How to Make Performers SLiMcited by 18

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 2; 2023: 6; 2024: 2; 2025: 0; 2026: 1.

14 papers.

Sort:

By area: