Block-Recurrent Transformers
Open accessAbstract
We introduce the Block-Recurrent Transformer, which applies a transformer layer in a recurrent fashion along a sequence, and has linear complexity with respect to sequence length. Our recurrent cell operates on blocks of tokens rather than single tokens during training, and leverages parallel computation within a block in order to make efficient use of accelerator hardware. The cell itself is strikingly simple. It is merely a transformer layer: it uses self-attention and cross-attention to efficiently compute a recurrent function over a large set of state vectors and tokens. Our design was inspired in part by LSTM cells, and it uses LSTM-style gates, but it scales the typical LSTM cell up by several orders of magnitude. Our implementation of recurrence has the same cost in both computation time and parameter count as a conventional transformer layer, but offers dramatically improved perplexity in language modeling tasks over very long sequences. Our model out-performs a long-range Transformer XL baseline by a wide margin, while running twice as fast. We demonstrate its effectiveness on PG19 (books), arXiv papers, and GitHub source code. Our code has been released as open source.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
The publisher hasn’t deposited this paper’s reference list.
Research works printed but not linked: 20
- [4][4] Y. Tay, M. Dehghani, S. Abnar, Y. Shen, D. Bahri, P. Pham, J. Rao, L. Yang, S. Ruder, and D. Metzler, 'Long range arena : A benchmark for efficient transformers,' in International Conference on Learning Representations , 2021. -
- [6][6] M. Zaheer, G. Guruganesh, K. A. Dubey, J. Ainslie, C. Alberti, S. Ontañón, P. Pham, A. Ravula, Q. Wang, L. Yang, and A. Ahmed, 'Big bird: Transformers for longer sequences,' in NeurIPS , 2020. -
- [8][8] N. Kitaev, L. Kaiser, and A. Levskaya, 'Reformer: The efficient transformer,' in International Conference on Learning Representations , 2020. -
- [10][10] S. Sukhbaatar, D. Ju, S. Poff, S. Roller, A. Szlam, J. Weston, and A. Fan, 'Not all memories are created equal: Learning to forget by expiring,' in ICML , 2021. -
- [11][11] Y. Wu, M. Rabe, D. Hutchins, and C. Szegedy, 'Memorizing transformers,' in ICLR , 2022. -
- [13][13] H. Ren, H. Dai, Z. Dai, M. Yang, J. Leskovec, D. Schuurmans, and B. Dai, 'Combiner: Full attention transformer with sparse computation cost,' in Advances in Neural Information Processing Systems (A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, eds.), 2021. -
- [15][15] J. W. Rae, A. Potapenko, S. M. Jayakumar, C. Hillier, and T. P. Lillicrap, 'Compressive transformers for long-range sequence modelling,' in ICLR , 2020. -
- [16][16] Z. Dai, G. Lai, Y. Yang, and Q. Le, 'Funnel-transformer: Filtering out sequential redundancy for efficient language processing,' in NeurIPS , 2020. -
- [17][17] A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret, 'Transformers are RNNs: Fast autoregressive transformers with linear attention,' in ICML , 2020. -
- [19][19] H. Peng, N. Pappas, D. Yogatama, R. Schwartz, N. A. Smith, and L. Kong, 'Random feature attention,' in ICLR , 2021. -
- [20][20] I. Schlag, K. Irie, and J. Schmidhuber, 'Linear Transformers are secretly fast weight programmers,' in ICML , 2021. -
- [28][28] V. J. Hellendoorn, P. Maniatis, R. Singh, C. Sutton, and D. Bieber, 'Global relational models of source code,' in ICLR , 2020. -
- [36][36] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, 'Attention is all you need,' in Advances in neural information processing systems , 2017. -
- [37][37] R. Csordás, K. Irie, and J. Schmidhuber, 'The neural data router: Adaptive control flow in transformers improves systematic generalization,' in International Conference on Learning Representations , 2022. -
- [39][39] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, 'Exploring the limits of transfer learning with a unified text-to-text transformer,' Journal of Machine Learning Research , 2020. -
- [41][41] R. K. Srivastava, K. Greff, and J. Schmidhuber, 'Training very deep networks,' in NIPS (C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett, eds.), 2015. -
- [46][46] Y. Dong, J. Cordonnier, and A. Loukas, 'Attention is not all you need: pure attention loses rank doubly exponentially with depth,' in ICML (M. Meila and T. Zhang, eds.), 2021. -
- [49][49] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei, 'Language models are few-shot learners,' in NeurIPS , 2020. -
- [51][51] N. Shazeer and M. Stern, 'Adafactor: Adaptive learning rates with sublinear memory cost,' in ICML , 2018. -
- [53][53] O. Press, N. Smith, and M. Lewis, 'Train short, test long: Attention with linear biases enables input length extrapolation,' in International Conference on Learning Representations , 2022. -
Cited by
Sorted by citations
GENA-LM: a family of open-source foundational DNA language models for long sequences
Fishman, V., Kuratov, Y., Shmelev, A., Petrov, M., Penzar, D., Shepelin, D., Chekanov, N., Kardymon, O. L., & Burtsev, M. (2024) · Nucleic Acids Research · doi:10.1093/nar/gkae1310 · Cited by 142 · see citing works
Patro, B. N., & Agneeswaran, V. S. (2025) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2025.111279 · Cited by 72 · see citing works
Exploring transformers for behavioural biometrics: A case study in gait recognition
Delgado-Santos, P., Tolosana, R., Guest, R., Deravi, F., & Vera-Rodríguez, R. (2023) · Pattern Recognition · doi:10.1016/j.patcog.2023.109798 · Cited by 61 · see citing works
A Length-Extrapolatable Transformer
Sun, Y., Dong, L., Patra, B., Ma, S., Huang, S., Benhaim, A., Chaudhary, V., Song, X., & Wei, F. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.816 · Cited by 59 · see citing works
Transformer-based renewable energy forecasting: A comprehensive review
Hussan, U., Wang, H., Peng, J., Jiang, H., & Rasheed, H. (2025) · Renewable and Sustainable Energy Reviews · doi:10.1016/j.rser.2025.116356 · Cited by 40 · see citing works
Molecular language models: RNNs or transformer?
Chen, Y., Wang, Z., Zeng, X., Li, Y., Li, P., Ye, X., & Sakurai, T. (2023) · Briefings in Functional Genomics · doi:10.1093/bfgp/elad012 · Cited by 36 · see citing works
SHAPE: A Sample-Adaptive Hierarchical Prediction Network for Medication Recommendation
Liu, S., Wang, X., Du, J., Hou, Y., Zhao, X., Xu, H., Wang, H., Xiang, Y., & Tang, B. (2023) · IEEE Journal of Biomedical and Health Informatics · doi:10.1109/jbhi.2023.3320139 · Cited by 33 · see citing works
M-GaitFormer: Mobile biometric gait verification using Transformers
Delgado-Santos, P., Tolosana, R., Guest, R., Vera-Rodríguez, R., & Fiérrez, J. (2023) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2023.106682 · Cited by 27 · see citing works
Rukhsar, S., & Tiwari, A. K. (2024) · Neurocomputing · doi:10.1016/j.neucom.2024.129203 · Cited by 23 · see citing works
State-space modeling in long sequence processing: a survey on recurrence in the transformer era
Tiezzi, M., Casoni, M., Betti, A., Gori, M., & Melacci, S. (2025) · Neural Networks · doi:10.1016/j.neunet.2025.108039 · Cited by 21 · see citing works
Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval
Rubin, O., & Berant, J. (2024) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00693 · Cited by 19 · see citing works
Titans: Learning to Memorize at Test Time
Behrouz, A., Zhong, P., & Mirrokni, V. (2025) · arXiv · doi:10.48550/arxiv.2501.00663 · Cited by 24 · see citing works
“To address this issue, various studies discuss the importance of a memory so it can help the model to transfer information across chunks [94–99, 98, 100, 101, 96, 97].”
Ryoo, M. S., Gopalakrishnan, K., Kahatapitiya, K., Xiao, T. G., Rao, K., Stone, A., Lu, Y., Ibarz, J., & Arnab, A. (2023) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52729.2023.01828 · Cited by 15 · see citing works
Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory
Bulatov, A., Kuratov, Y., Kapushev, Y., & Burtsev, M. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i16.29722 · Cited by 12 · see citing works
Hashemi, S. M., Hashemi, S. A., Botez, R. M., & Ghazi, G. (2023) · Applied Sciences · doi:10.3390/app13179503 · Cited by 11 · see citing works
Reddy, C. N., Mahesh, S., & Manjunathachari, K. (2023) · Computer Methods in Biomechanics & Biomedical Engineering · doi:10.1080/10255842.2023.2252551 · Cited by 11 · see citing works
Chepurova, A., Bulatov, A., Kuratov, Y., & Burtsev, M. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.352 · Cited by 10 · see citing works
Recurrent Attention Networks for Long-text Modeling
Li, X., Li, Z., Luo, X., Xie, H., Lee, X. Z., Zhao, Y., Wang, F. L., & Li, Q. (2023) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2023.findings-acl.188 · Cited by 9 · see citing works
Abousaber, I., El-Ghaish, H., & Abdallah, H. F. (2025) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2025.108142 · Cited by 8 · see citing works
ChapterBreak: A Challenge Dataset for Long-Range Language Models
Sun, S., Thai, K., & Iyyer, M. (2022) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2022.naacl-main.271 · Cited by 7 · see citing works
Han, Q., & Ma, J. (2024) · Scientific Reports · doi:10.1038/s41598-024-56166-3 · Cited by 7 · see citing works
BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystack
Kuratov, Y., Bulatov, A., Anokhin, P., Rodkin, I., Sorokin, D., Sorokin, A., & Burtsev, M. (2024) · arXiv · doi:10.48550/arxiv.2406.10149 · Cited by 19 · see citing works
“Works like RWKV (Peng et al., 2023a), S4 (Gu et al., 2021), Mamba (Gu & Dao, 2023), take another approach and focus on advancing recurrent networks to reach high parallelism levels available to Transformers while retaining the linear complexity of RNN.”
MethodInfluentialEnd-to-End Streaming Video Temporal Action Segmentation With Reinforcement Learning
Zhang, J., Wen, W., Liu, S., Huang, G. M., Li, Y., Li, Q., & Feng, L. (2025) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2025.3550910 · Cited by 6 · see citing works
Xu, J., Talankar, S., Pan, J., Harmon, I., Wu, Y., Fedele, D. A., Brailsford, J., & Fishe, J. N. (2024) · JMIR Research Protocols · doi:10.2196/57981 · Cited by 6 · see citing works
Self-citationYang, H., Liu, Y., Zhang, L., Cai, H., Che, K., & Xing, L. (2025) · Journal of Biomedical Informatics · doi:10.1016/j.jbi.2025.104785 · Cited by 6 · see citing works
Dou, Y., Xing, T., Zhao, X., Chen, X., Zhou, J., & Peng, S. (2025) · Biomedical Signal Processing and Control · doi:10.1016/j.bspc.2025.108707 · Cited by 5 · see citing works
A Comparison Between LSTM and Transformers for Image Captioning
Zouitni, C., Sabri, M. A., & Aarab, A. (2023) · Lecture notes in networks and systems · doi:10.1007/978-3-031-29860-8_50 · Cited by 5 · see citing works
Yang, Z., Khairuddin, A. S. M., Chuah, J. H., Wong, W. R., Noman, H. M. F., Putri, T. W. O., Xu, X., & Haq, M. M. (2025) · IEEE Access · doi:10.1109/access.2025.3555539 · Cited by 4 · see citing works
Araujo, V., Soto, Á., & Moens, M. (2023) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2023.findings-acl.830 · Cited by 4 · see citing works
Long-Range Language Modeling with Selective Cache
Huang, X., & Hollenstein, N. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.321 · Cited by 3 · see citing works
Recurrent Transformer Neural Network-Based Hybrid Far- and Near-Field THz Channel Estimation
Artemasov, D., Andreev, K., Frolov, A., Hanawal, M. K., & Zlatanov, N. (2024) · International Multi-Conference on Engineering, Computer and Information Sciences (SIBIRCON) · doi:10.1109/sibircon63777.2024.10758487 · Cited by 3 · see citing works
EGNL-FAT: An Edge-Guided Non-Local network with Frequency-Aware transformer for smoke segmentation
Fu, Y., Li, H., Wang, Y., Lv, W., He, B., & Yu, P. (2025) · Expert Systems with Applications · doi:10.1016/j.eswa.2025.127621 · Cited by 3 · see citing works
Memory-Augmented speech-to-text Translation with Multi-Scale Context Translation Strategy
Yuan, Y., Zhou, Y., & Shi, X. (2024) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp48485.2024.10447450 · Cited by 3 · see citing works
A Study on Predicting Key Times in the Takeout System’s Order Fulfillment Process
Hu, D., Deng, W., Jiang, Z., & Shi, Y. (2025) · Systems · doi:10.3390/systems13060457 · Cited by 3 · see citing works
Teaching categories via examples and explanations
Moskvichev, A., Тихонов, Р., & Mark Steyvers, B. (2023) · Cognition · doi:10.1016/j.cognition.2023.105511 · Cited by 2 · see citing works
Efficient Headline Generation with Hybrid Attention for Long Texts
Wan, W., Zhang, C., & Huang, L. (2024) · Electronics · doi:10.3390/electronics13173558 · Cited by 2 · see citing works
Implicit n-grams Induced by Recurrence
Sun, X., & Lu, W. (2022) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2022.naacl-main.117 · Cited by 2 · see citing works
A Bi-GRU and BERT-Based Intelligent Audit System for News Moderation via NLP and Sentiment Analysis
Yuan, Y. (2025) · Informatica · doi:10.31449/inf.v49i36.9274 · Cited by 1 · see citing works
Segmented Recurrent Transformer: An Efficient Sequence-to-Sequence Model
Long, Y., Chowdhury, S., & Roy, K. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.558 · Cited by 1 · see citing works
Solving Arithmetic Word Problems Using Block Recurrent Transformer
Nair, R., Ahmed, N., Pavanan, N., & Kumar, S. (2023) · International Conference on Computing, Communication and Networking Technologies (ICCCNT) · doi:10.1109/icccnt56998.2023.10307973
Focus Your Attention (with Adaptive IIR Filters)
Lutati, S., Zimerman, I., & Wolf, L. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.772
Out of the Box: Deep Learning for Volatility ForecastingPreprint
Castro-Frederick, O. (2024) · doi:10.52295/dcc.6639
ReVGG-R2Net: Optimized recurrent framework for microscopic blood cell segmentation
Akter, M. S., Sultan, M. F., Karim, T., & Shaon, M. S. H. (2025) · Tissue and Cell · doi:10.1016/j.tice.2025.103189
Zhang, C., Shen, L., & Li, Y. (2026) · Complex & Intelligent Systems · doi:10.1007/s40747-026-02290-8
On the Use of the Novel Zorro Activation Functions in Long Short-Term Memory Neural Networks
Jimenez, V. A., Roodschild, M., Sardiñas, J. G., & Will, A. (2026) · Journal of Computer Science and Technology · doi:10.24215/16666038.26.e03
Kang, H. W., Lee, Y.-E., & Lee, M. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-31933-3_31
Deep Learning Based Channel Estimation for THz Band Ultra Massive MIMO Systems
Irak, T., Küçükkurt, E., Yılmaz, D. K., Coşkun, A., Gürbüz, Ö., Tunç, Ç., & Saeed, A. (2026) · Signal Processing and Communications Applications Conference (SIU) · doi:10.1109/siu71813.2026.11637088
Learning Persistent Referential Identity for Two-Hop Retrieval in Event-Stream Models
Kadyrbek, N., Мансурова, М., Talasbayeva, Z. T., & Zhumasheva, Z. T. (2026) · Machine Learning and Knowledge Extraction · doi:10.3390/make8100334
GENA-LM: A Family of Open-Source Foundational DNA Language Models for Long Sequences
Fishman, V., Kuratov, Y., Shmelev, A., Petrov, M., Penzar, D., Shepelin, D., Chekanov, N., Kardymon, O., & Burtsev, M. (2023) · doi:10.1101/2023.06.12.544594 · Cited by 137 · see citing works
- Authors
- Hutchins, D., Schlag, I., Wu, Y., Dyer, E., & Neyshabur, B.
- ORCID
- Dyer, Ethan
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2022
- Pages
- 33248-33261
- ISSN
- 1049-5258 (ISSN-L)
- arXiv
- 2203.07852
- OpenAlex
- W7133228463
- Cited by
- 43
- References
- 0
- Citations by year
- 2026: 4 · 2025: 11 · 2024: 9 · 2023: 17 · 2022: 2
- FWCI
- 5.39
- Type
- conference paper
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- neural information processing systems (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Keywords
- recurrent neural networks, transformer models, sequence modeling
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review