PermuteFormer: Efficient Relative Position Encoding for Long Sequences
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,853
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
15 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019LXMERT: Learning Cross-Modality Encoder Representations from Transformerscited by 1,548
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2020Efficient Transformers: A Surveycited by 784
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 549
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021Random Feature Attentioncited by 350
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2020Sub-Linear Memory: How to Make Performers SLiMcited by 18
Built on by
Citing papers per year: 2021: 3; 2022: 2; 2023: 6; 2024: 2; 2025: 0; 2026: 1.
14 papers.
Sort:
By area:
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2023MH-DETR: Video Moment and Highlight Detection with Cross-modal Transformercited by 40
- 2023Efficient Attention via Control Variatescited by 23
- 2023Linearized Relative Positional Encodingcited by 17
- 2021On Learning the Transformer Kernelcited by 14
- 2024SMR: State Memory Replay for Long Sequence Modelingcited by 6
- 2023Transformers as Graph-to-Graph Modelscited by 5
- 2022Word Order Matters when you Increase Maskingcited by 4
- 2021Ripple Attention for Visual Perception with Sub-quadratic Complexitycited by 2
- 2023ContextSpeech: Expressive and Efficient Text-to-Speech for Paragraph Readingcited by 2
- 2021Neural Architectures for Biological Inter-Sentence Relation Extractioncited by 1
- 2026An Evaluation of Context Length Extrapolation in Long Code via Positional Embeddings and Efficient Attention25 Feb 2026
- 2024SMR: State Memory Replay for Long Sequence Modeling27 May 2024
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights26 Feb 2024
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey21 Nov 2023
- 2023Transformers as Graph-to-Graph Models27 Oct 2023
- 2023Linearized Relative Positional Encoding18 Jul 2023
- 2023ContextSpeech: Expressive and Efficient Text-to-Speech for Paragraph Reading3 Jul 2023
- 2023MH-DETR: Video Moment and Highlight Detection with Cross-modal Transformer29 Apr 2023
- 2023Efficient Attention via Control Variates9 Feb 2023
- 2022Lightweight Structure-Aware Attention for Visual Understanding29 Nov 2022
- 2022Word Order Matters when you Increase Masking8 Nov 2022
- 2021Neural Architectures for Biological Inter-Sentence Relation Extraction17 Dec 2021
2 more
- 2021On Learning the Transformer Kernel15 Oct 2021
- 2021Ripple Attention for Visual Perception with Sub-quadratic Complexity6 Oct 2021
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights26 Feb 2024
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2023MH-DETR: Video Moment and Highlight Detection with Cross-modal Transformercited by 40
- 2023Efficient Attention via Control Variatescited by 23
- 2023Linearized Relative Positional Encodingcited by 17
- 2021On Learning the Transformer Kernelcited by 14
- 2024SMR: State Memory Replay for Long Sequence Modelingcited by 6
- 2023Transformers as Graph-to-Graph Modelscited by 5
- 2022Word Order Matters when you Increase Maskingcited by 4
- 2021Ripple Attention for Visual Perception with Sub-quadratic Complexitycited by 2
- 2023ContextSpeech: Expressive and Efficient Text-to-Speech for Paragraph Readingcited by 2
- 2021Neural Architectures for Biological Inter-Sentence Relation Extractioncited by 1
- 2022Lightweight Structure-Aware Attention for Visual Understandingcited by 1
12 most cited of 13 All 13 (JSON)
- 2026An Evaluation of Context Length Extrapolation in Long Code via Positional Embeddings and Efficient Attention25 Feb 2026
- 2024SMR: State Memory Replay for Long Sequence Modeling27 May 2024
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey21 Nov 2023
- 2023Transformers as Graph-to-Graph Models27 Oct 2023
- 2023Linearized Relative Positional Encoding18 Jul 2023
- 2023ContextSpeech: Expressive and Efficient Text-to-Speech for Paragraph Reading3 Jul 2023
- 2023MH-DETR: Video Moment and Highlight Detection with Cross-modal Transformer29 Apr 2023
- 2023Efficient Attention via Control Variates9 Feb 2023
- 2022Lightweight Structure-Aware Attention for Visual Understanding29 Nov 2022
- 2022Word Order Matters when you Increase Masking8 Nov 2022
- 2021Neural Architectures for Biological Inter-Sentence Relation Extraction17 Dec 2021
- 2021On Learning the Transformer Kernel15 Oct 2021
12 newest of 13 All 13 (JSON)