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

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

24 May 2023arXiv:2305.16340archive 2025-07-28

Yinghan Long, Sayeed Shafayet Chowdhury, Kaushik Roy

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%.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

yinghanlong/SRtransformer mentioned on GitHubjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Abstractive Text SummarizationText Summarization

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Abstractive Text Summarization CNN / Daily Mail SRformer-BART ROUGE-1 43.19 #23 of 53 Archive leaderboard report
Abstractive Text Summarization CNN / Daily Mail SRformer-BART ROUGE-2 19.80 #23 of 53 Archive leaderboard report
Abstractive Text Summarization CNN / Daily Mail SRformer-BART ROUGE-L 40.40 #23 of 53 Archive leaderboard report
Text Summarization Arxiv HEP-TH citation graph SRformer-BART ROUGE-1 42.99 #20 of 28 Archive leaderboard report
Text Summarization MediaSum SRformer-BART ROUGE-1 32.36 #1 of 1 Archive leaderboard report
Text Summarization XSum SRformer-BART ROUGE-1 39.02 #1 of 1 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdafactorAdamAttentionAttention DropoutBARTBPEDense ConnectionsDropoutGated Linear UnitLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSentencePieceSoftmaxT5Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections