mlsanityData to 7 Oct 2026

Segmented Recurrent Transformer: An Efficient Sequence-to-Sequence Model

arXiv 2305.16340 ↗First posted 24 May 2023cs.CL cs.AI cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformers have shown dominant performance across a range of domains including language and vision. However, their computational cost grows quadratically with the sequence length, making their usage prohibitive for resource-constrained applications. To counter this, our approach is to divide the whole sequence into segments and apply attention to the individual segments. We propose a segmented recurrent transformer (SRformer) that combines segmented (local) attention with recurrent attention. The loss caused by reducing the attention window length is compensated by aggregating information across segments with recurrent attention. SRformer leverages Recurrent Accumulate-and-Fire (RAF) neurons' inherent memory to update the cumulative product of keys and values. The segmented attention and lightweight RAF neurons ensure the efficiency of the proposed transformer. Such an approach leads to models with sequential processing capability at a lower computation/memory cost. We apply the proposed method to T5 and BART transformers. The modified models are tested on summarization datasets including CNN-dailymail, XSUM, ArXiv, and MediaSUM. Notably, using segmented inputs of varied sizes, the proposed model achieves 6-22% higher ROUGE1 scores than a segmented transformer and outperforms other recurrent transformer approaches. Furthermore, compared to full attention, the proposed model reduces the computational complexity of cross attention by around 40%.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 35 of its 48 references that are in the map. First posted on arXiv 24 May 2023.

Builds on

35 of 48 references.

References · 35

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  7. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  8. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  11. 2020Longformer: The Long-Document Transformercited by 3,362
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
23 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. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  6. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  7. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
  8. 2015Teaching Machines to Read and Comprehendcited by 1,039
  9. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
  10. 2020Efficient Transformers: A Surveycited by 784
  11. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 477
  12. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  13. 2019Axial Attention in Multidimensional Transformerscited by 350
  14. 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
  15. 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
  16. 2016Training Deep Spiking Neural Networks using Backpropagationcited by 203
  17. 2022Recurrent Memory Transformercited by 197
  18. 2022Block-Recurrent Transformerscited by 107
  19. 2021MediaSum: A Large-scale Media Interview Dataset for Dialogue Summarizationcited by 104
  20. 2022The Devil in Linear Transformercited by 98
  21. 2020ETC: Encoding Long and Structured Inputs in Transformerscited by 34
  22. 2021Spiking Neural Networks with Improved Inherent Recurrence Dynamics for Sequential Learningcited by 27
  23. 2021One Timestep is All You Need: Training Spiking Neural Networks with Ultra Low Latencycited by 17

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.