Transformer-XL: Attentive Language Models beyond a Fixed-Length Context
Open accessThe DOI matches its Crossref record; 65 of the 67 references it cites were found in a registry or an index.
Abstract
Transformers have a potential of learning longer-term dependency, but are limited by a fixed-length context in the setting of language modeling.We propose a novel neural architecture Transformer-XL that enables learning dependency beyond a fixed length without disrupting temporal coherence.It consists of a segment-level recurrence mechanism and a novel positional encoding scheme.Our method not only enables capturing longer-term dependency, but also resolves the context fragmentation problem.As a result, Transformer-XL learns dependency that is 80% longer than RNNs and 450% longer than vanilla Transformers, achieves better performance on both short and long sequences, and is up to 1,800+ times faster than vanilla Transformers during evaluation.Notably, we improve the state-ofthe-art results of bpc/perplexity to 0.99 on en-wiki8, 1.08 on text8, 18.3 on WikiText-103, 21.8 on One Billion Word, and 54.5 on Penn Treebank (without finetuning).When trained only on WikiText-103, Transformer-XL manages to generate reasonably coherent, novel text articles with thousands of tokens.Our code, pretrained models, and hyperparameters are available in both Tensorflow and PyTorch 1 .
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source doesn’t support the claim as written.
In the citing paper
“note that the Transformer XL model25 incorporates some form of recurrent processing within the transformer block, but it still takes the entire text as its input in parallel.”
From Incremental accumulation of linguistic context in artificial and biological neural networks (2025) · cites this paper as [25]
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Directly extending the context length of transformers incurs a quadratic increase in computational time and memory cost due to the transformer architecture's self-attention mechanism, making the design of new long-context architectures a pressing research challenge (Dai et al., 2019; Kitaev et al., 2020; Beltagy et al., 2020).”
From MemGPT: Towards LLMs as Operating Systems (2023) · cites this paper as Dai et al., 2019
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“We believe that the different trends are caused by the truncation problem [59], [60].”
From What Makes Good In-Context Demonstrations for Code Intelligence Tasks with LLMs? (2023) · cites this paper as [59]
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Fixed-window methods : including context windows of 4K, 8K, and 16K tokens with FIFO eviction [10, 2]”
From FadeMem: Biologically-Inspired Forgetting for Efficient Agent Memory (2026) · cites this paper as [10]
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Thus, in practice, Transformer-XL and Compressive Transformer need huge memory size to achieve good performance.”
From Memformer: a memory-augmented transformer for sequence modeling (2020) · cites this paper as Dai et al., 2019
Experimental — accuracy not yet measured
12 more claims about this paper
Create a free account to see every claim other papers make about this one.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 7×
“On the other hand, the direct connections between long-distance word pairs baked in attention mechanisms might ease optimization and enable the learning of long-term dependency (Bahdanau et al., 2014; Vaswani et al., 2017).”
BackgroundMethodInfluentialHochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318 · cited 2×
“Recurrent neural networks (RNNs), in particular Long Short-Term Memory (LSTM) networks (Hochreiter & Schmidhuber, 1997), have been a standard solution to language modeling and obtained strong results on multiple benchmarks.”
BackgroundExploiting Generative AI to Scale up Intelligent Tutoring Systems
Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173 · cited 4×
“Second, though it is possible to use padding to respect the sentence or other semantic boundaries, in practice it has been standard practice to simply chunk long text into fixed-length segments due to improved efficiency (Peters et al., 2018; Devlin et al., 2018; Al-Rfou et al., 2018).”
BackgroundInfluentialBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325 · cited 4×
“Second, though it is possible to use padding to respect the sentence or other semantic boundaries, in practice it has been standard practice to simply chunk long text into fixed-length segments due to improved efficiency (Peters et al., 2018; Devlin et al., 2018; Al-Rfou et al., 2018).”
BackgroundInfluentialNeural Machine Translation by Jointly Learning to Align and Translate
Bahdanau, D., Cho, K., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1409.0473 · Cited by 16,213 · cited 2×
“On the other hand, the direct connections between long-distance word pairs baked in attention mechanisms might ease optimization and enable the learning of long-term dependency (Bahdanau et al., 2014; Vaswani et al., 2017).”
BackgroundDeep Contextualized Word Representations
Peters, M., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., & Zettlemoyer, L. (2018) · Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers) · doi:10.18653/v1/n18-1202 · Cited by 11,983 · cited 4×
“Second, though it is possible to use padding to respect the sentence or other semantic boundaries, in practice it has been standard practice to simply chunk long text into fixed-length segments due to improved efficiency (Peters et al., 2018; Devlin et al., 2018; Al-Rfou et al., 2018).”
BackgroundInfluentialRecurrent neural network based language model
Mikolov, T., Karafiát, M., Burget, L., Černocký, J., & Khudanpur, S. (2010) · Interspeech 2010 · doi:10.21437/interspeech.2010-343 · Cited by 5,390 · cited 5×
“However, different from truncated BPTT, our method caches a sequence of hidden states instead of the last one, and should be applied together with the relative positional encoding technique described in Section 3.3.”
BackgroundMethodInfluentialAn Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling
Bai, S., Kolter, J. Z., & Koltun, V. (2018) · arXiv · doi:10.48550/arxiv.1803.01271 · Cited by 4,655
Neural Architecture Search with Reinforcement Learning
Zoph, B., & Le, Q. V. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1611.01578 · Cited by 3,974
Self-citation
Research works printed but not linked: 1
- Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word rep- resentations. arXiv preprint arXiv:1802.05365. · arXiv
Cited by
Items 1,001–1,059 of 1,059
The Curse of Performance Instability in Analysis Datasets: Consequences, Source, and Suggestions
Zhou, X., Nie, Y., Tan, H., & Bansal, M. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.659 · Cited by 32
Dynamic Evaluation of Transformer Language Models
Krause, B., Kahembwe, E., Murray, I., & Renals, S. (2019) · arXiv · doi:10.48550/arxiv.1904.08378 · Cited by 30
“Following Dai et al. (2019), we used sequence segments of 128 and a memory cache of length 3800 for both datasets.”
BackgroundMethodResultInfluentialBLiMP: the benchmark of linguistic minimal pairs for English
Warstadt, A., Parrish, A., Liu, H., Mohananey, A., Peng, W., Wang, S.-F., & Bowman, S. R. (2020) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00321 · Cited by 28
“We use BLiMP to study several pretrained LMs: Transformer-based LMs GPT-2 (Radford et al., 2019) and Transformer-XL (Dai et al., 2019), an LSTM LM trained by Gulordava et al. (2019), and an n -gram LM.”
InfluentialMind The Facts: Knowledge-Boosted Coherent Abstractive Text Summarization
Gunel, B., Zhu, C., Zeng, M., & Huang, X. (2020) · arXiv · doi:10.48550/arxiv.2006.15435 · Cited by 28
“We refer the readers to the original Transformer-XL paper [8] for further discussion on the new parameterization for attention calculations and more details on the design decisions for the architecture.”
MethodEstimating the Personality of White-Box Language Models
Karra, S. R., Nguyen, S. T., & Tulabandhula, T. (2022) · arXiv · doi:10.48550/arxiv.2204.12000 · Cited by 27
Wingate, D., Shoeybi, M., & Sorensen, T. (2022) · Findings of the Association for Computational Linguistics: EMNLP 2022 · doi:10.18653/v1/2022.findings-emnlp.412 · Cited by 26
TransformerFAM: feedback attention is working memory
Hwang, D., Wang, W., Huo, Z., Sim, K. C., & Mengibar, P. M. (2024) · arXiv · doi:10.48550/arxiv.2404.09173 · Cited by 26
“It is common to use stop gradients on the memory segments of Trans-formerXL (Dai et al., 2019; Chevalier et al., 2023).”
BackgroundMethodWingate, D., Shoeybi, M., & Sorensen, T. (2022) · arXiv · doi:10.48550/arxiv.2210.03162 · Cited by 26
“…as text summarization (Raf-fel et al., 2020), conversation (Adiwardana et al., 2020; Zhang et al., 2019), text generation (Rad-ford et al., 2019b; Dai et al., 2019; Keskar et al., 2019a), and zero-shot learning (Brown et al., 2020; Krause et al., 2020), it is equally concerning to see them…”
BackgroundTitans: Learning to Memorize at Test Time
Behrouz, A., Zhong, P., & Mirrokni, V. (2025) · arXiv · doi:10.48550/arxiv.2501.00663 · Cited by 24
“Another line of research to improve the efficiency of Transformers is segment-based or Chunk Transformers [68].”
Incremental accumulation of linguistic context in artificial and biological neural networks
Tikochinski, R., Goldstein, A., Meiri, Y., Hasson, U., & Reichart, R. (2025) · Nature Communications · doi:10.1038/s41467-025-56162-9 · Cited by 24
Relational memory-augmented language models
Liu, Q., Yogatama, D., & Blunsom, P. (2022) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00476 · Cited by 23
“We use transformer-XL (Dai et al., 2019)—which is based on transformer (Vaswani et al.”
MethodLarge scale multi-actor generative dialog modeling,
Boyd, A., Puri, R., Shoeybi, M., Patwary, M., & Catanzaro, B. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.8 · Cited by 22
LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models
Han, C., Wang, Q., Peng, H., Xiong, W., Chen, Y., Ji, H., & Wang, S. (2024) · Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers) · doi:10.18653/v1/2024.naacl-long.222 · Cited by 22
“Examples include a learned attention logit bias in T5 (Raffel et al., 2020), Transformer-XL (Dai et al., 2019), Skyformer (Chen et al., 2021), Sketch-ing (Chen et al., 2022) and Sandwich (Chi et al., 2023), a fixed linear attention decay (Press et al., 2021), and rotating query and key sequences…”
BackgroundVision Transformers: From Semantic Segmentation to Dense Prediction
Zhang, L., Lu, J., Zheng, S., Zhao, X., Zhu, X., Fu, Y., Xiang, T., Feng, J., & Torr, P. H. S. (2024) · International Journal of Computer Vision · doi:10.1007/s11263-024-02173-w · Cited by 23
AI for Customer Journeys: A Transformer Approach
Lu, Z., & Kannan, P. K. (2026) · Journal of Marketing Research · doi:10.1177/00222437251347268 · Cited by 21
“The transformer model, with its self-attention mechanism, dynamically determines relationships between touchpoints, handling complex nonlinear interactions ef fi ciently (Dai et al. 2019; Vaswani et al. 2017).”
Ryoo, M. S., Gopalakrishnan, K., Kahatapitiya, K., Xiao, T., Rao, K., Stone, A., Lu, Y., Ibarz, J., & Arnab, A. (2022) · arXiv · doi:10.48550/arxiv.2211.09119 · Cited by 21
“Transformer-XL [19] builds upon this idea, and uses relative positional embeddings to make better use of previous history tokens.”
BackgroundMethodExtending Context Window of Large Language Models via Semantic Compression
Fei, W., Niu, X., Zhou, P., Hou, L., Bai, B., Deng, L., & Han, W. (2024) · Findings of the Association for Computational Linguistics ACL 2024 · doi:10.18653/v1/2024.findings-acl.306 · Cited by 20
Komatsuzaki, A. (2019) · arXiv · doi:10.48550/arxiv.1906.06669 · Cited by 20
“…2018) 100 SPN (Menick & Kalchbrenner, 2018) Not reported BERT (Devlin et al., 2018) 40 Mesh Transformer (Shazeer et al., 2018) 10 Transformer-XL (Dai et al., 2019) Not reported GPT-2 (Radford et al., 2019) Not reported (20 or 100) Sparse Transformer (Child et al., 2019) 70 - 120 dataset for…”
BackgroundHuman-Timescale Adaptation in an Open-Ended Task Space
Adaptive Agent Team, Bauer, J., Baumli, K., Baveja, S., Behbahani, F., Bhoopchand, A., Bradley-Schmieg, N., Chang, M., Clay, N., Collister, A., et al. (2023) · arXiv · doi:10.48550/arxiv.2301.07608 · Cited by 19
“Secondly, we consider Transformer-XL (TXL) (Dai et al., 2019), a variant of the Transformer architecture (Vaswani et al., 2017) which enables the use of longer, variable-length context windows to increase the model’s ability to capture long-term dependencies.”
BackgroundMethodInfluentialStreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Models
Liška, A., Kočiský, T., Gribovskaya, E., Terzi, T., Sezener, E., Agrawal, D., d'Autume, C. D. M., Scholtes, T., Zaheer, M., Young, S., et al. (2022) · arXiv · doi:10.48550/arxiv.2205.11388 · Cited by 19
Zheng, S., He, K., Yang, L., & Xiong, J. (2024) · IEEE Access · doi:10.1109/access.2024.3393485 · Cited by 18
“For MANNs, despite the progress in the field of LLMs, their long-term interaction capacity is constrained by memory limitations, which hinder sustained interactions and the input of sufficient preset information to achieve interactions more akin to human-like ones [26], [27].”
BackgroundL-Eval: Instituting Standardized Evaluation for Long Context Language Models
An, C., Gong, S., Zhong, M., Zhao, X., Li, M., Zhang, J., Kong, L., & Qiu, X. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.776 · Cited by 18
OctoPack: Instruction Tuning Code Large Language Models
Muennighoff, N., Liu, Q., Zebaze, A., Zheng, Q., Hui, B., Zhuo, T. Y., Singh, S., Tang, X., von Werra, L., & Longpre, S. (2023) · arXiv · doi:10.48550/arxiv.2308.07124 · Cited by 245
Domain-specific Continued Pretraining of Language Models for Capturing Long Context in Mental Health
Ji, S., Zhang, T., Yang, K., Ananiadou, S., Cambria, E., & Tiedemann, J. (2023) · arXiv · doi:10.48550/arxiv.2304.10447 · Cited by 16
“1 https://huggingface.co/AIMH To address this issue, efficient transformers are proposed, such as Longformer (Beltagy et al., 2020) and Transformer-XL (Dai et al., 2019) to capture long context.”
Background∞-former: Infinite Memory Transformer-former: Infinite Memory Transformer
Martins, P. H., Marinho, Z., & Martins, A. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.375 · Cited by 15
Is Sora a World Simulator? A Comprehensive Survey on General World Models and Beyond
Zhu, Z., Wang, X., Zhao, W., Min, C., Li, B., Deng, N., Dou, M., Wang, Y., Shi, B., Wang, K., et al. (2024) · arXiv · doi:10.48550/arxiv.2405.03520 · Cited by 15
“TWM [212] proposes a Transformer-XL [225]-based world model.”
Going Beyond Linear Transformers with Recurrent Fast Weight Programmers
Irie, K., Schlag, I., Csordás, R., & Schmidhuber, J. (2021) · arXiv · doi:10.48550/arxiv.2106.06295 · Cited by 14
“Although recent work tries to address this issue [10, 11], this limitation makes some applications of Transformers challenging, e.g., reinforcement learning (RL) in partially observable environments [12, 13], which is still dominated by RNNs such as the Long Short-Term Memory (LSTM; [14]) trained…”
BackgroundThe NLP Task Effectiveness of Long-Range Transformers
Qin, G., Feng, Y., & Van Durme, B. (2023) · Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2023.eacl-main.273 · Cited by 14
“Rae and Razavi (2020) find that Transformer-XL does not necessarily need long and deep contexts.”
BackgroundMethodInfluentialInfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory
Xiao, C., Zhang, P., Han, X., Xiao, G., Lin, Y., Zhang, Z., Liu, Z., & Sun, M. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-3801 · Cited by 14
“…models, memory layers have also been gradually applied in the training processes of recurrent transformer layers, enabling models to process long sequences recursively (Dai et al., 2019; Rae et al., 2020; Khandelwal et al., 2020; Wu et al., 2022; Bertsch et al., 2023; Munkhdalai et al., 2024).”
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
“Transformer-XL (Dai et al. 2019) preserves previous hidden states for reuse in subsequent segments, while Compressive Transformer (Rae et al. 2020) adds new compressed memory.”
BackgroundSTEVE-1: A Generative Model for Text-to-Behavior in Minecraft
Lifshitz, S., Paster, K., Chan, H., Ba, J., & McIlraith, S. (2023) · arXiv · doi:10.48550/arxiv.2306.00937 · Cited by 11
“Specifically, VPT consists of a ResNet [22] that processes frames of dimension 128 × 128 × 3 , and a Transformer-XL [15] which processes the frame representations and autoregressively predicts the next action using the joint hierarchical action space described in Baker et al. [5].”
MethodMeyer, B., Kfuri‐Rubens, R., Schmidt, G., Tariq, M., Riedel, C., Recker, F., Riedel, F., Kiechle, M., & Riedel, M. (2025) · International Journal of Gynecology & Obstetrics · doi:10.1002/ijgo.70251 · Cited by 10
Scaling Instructable Agents Across Many Simulated Worlds
SIMA Team, Raad, M. A., Ahuja, A., Barros, C., Besse, F., Bolt, A., Bolton, A., Brownfield, B., Buttimore, G., Cant, M., et al. (2024) · arXiv · doi:10.48550/arxiv.2404.10179 · Cited by 9
“More specifically, our agent (Figure 4) utilizes trained-from-scratch transformers that cross-attend to the different pretrained vision components, the encoded language instruction, and a Transformer-XL (Dai et al., 2019) that attends to past memory states to construct a state representation.”
Layer-Condensed KV Cache for Efficient Inference of Large Language Models
Wu, H., & Tu, K. (2024) · arXiv · doi:10.48550/arxiv.2405.10637 · Cited by 8
“To solve the issue, we follow the practice of gradient stopping in Transformer-XL (Dai et al., 2019) and backpropagate the loss only through the last b iterations ( b ≪ n ).”
MethodLayer-Condensed KV Cache for Efficient Inference of Large Language Models
Wu, H., & Tu, K. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.602 · Cited by 8
Dong, Z., Tang, T., Li, J., Zhao, W. X., & Wen, J.-R. (2023) · arXiv · doi:10.48550/arxiv.2309.13345 · Cited by 7
“Transformer-XL (Dai et al., 2019) and Compressive Transformers (Rae et al., 2020) split a long text into multiple segments, sequentially modeled each segment, and re-used the past segments’ activations in the subsequent segment.”
MethodA Comparison of Approaches to Document-level Machine Translation
Ma, Z., Edunov, S., & Auli, M. (2021) · arXiv · doi:10.48550/arxiv.2101.11040 · Cited by 7
“For example, modern language models are able to exploit long-range context by obtaining better perplexity through conditioning predictions on entire Wikipedia articles instead of the limited context provided by individual sentences (Merity et al., 2016; Baevski and Auli, 2019; Dai et al., 2019).”
BackgroundL-Eval: Instituting Standardized Evaluation for Long Context Language Models
An, C., Gong, S., Zhong, M., Zhao, X., Li, M., Zhang, J., Kong, L., & Qiu, X. (2023) · arXiv · doi:10.48550/arxiv.2307.11088 · Cited by 6
“In addition to optimizing the attention mechanism, some works (Bulatov et al., 2023; Dai et al., 2019; Mohtashami & Jaggi, 2023) focus on chunking the input to model both the current text in the chunk and the previous context states, effectively extending the length of context processing.”
MethodAttentional multi-feature fusion for spoofing-aware speaker verification
Shen, Q., Guo, M., Huang, Y., & Ma, J. (2024) · International Journal of Speech Technology · doi:10.1007/s10772-024-10112-w · Cited by 5
SetQuence & SetOmic: Deep Set Transformer-based Representations of Cancer Multi-Omics
Jurenaite, N., León-Periñán, D., Donath, V., Torge, S., & Jäkel, R. (2022) · 2022 IEEE Conference on Computational Intelligence in Bioinformatics and Computational Biology (CIBCB) · doi:10.1109/cibcb55180.2022.9863058 · Cited by 5
“, the Transformer [22]) have been widely adopted for pre-training and fine-tuning Language Models (LMs) [23], [24], from large text corpora.”
Method(2022) · doi:10.18653/v1/2022.conll-1.8 · Cited by 5
Random-Access Infinite Context Length for Transformers
Mohtashami, A., & Jaggi, M. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-2378 · Cited by 5
Contextual Position Encoding: Learning to Count What's Important
Golovneva, O., Wang, T., Weston, J., & Sukhbaatar, S. (2024) · arXiv · doi:10.48550/arxiv.2405.18719 · Cited by 5
“Relative PE is especially suited to processing unbounded sequences [Dai et al., 2019].”
BackgroundLi, H., Lan, T., Fu, Z., Cai, D., Liu, L., Collier, N., Watanabe, T., & Su, Y. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-3187 · Cited by 4
Landmark Attention: Random-Access Infinite Context Length for Transformers
Mohtashami, A., & Jaggi, M. (2023) · arXiv · doi:10.48550/arxiv.2305.16300 · Cited by 4
“The column XL cache shows the size of the XL cache available both during training and inference which was only used when training Transformer-XL[9].”
BackgroundMethodInfluentialA Slice and Dice Approach to Accelerate Compound Sparse Attention on GPU
Li, H., Choi, J., & Ahn, J. H. (2022) · 2022 IEEE International Symposium on Workload Characterization (IISWC) · doi:10.1109/iiswc55918.2022.00019 · Cited by 3
“The existing studies [10, 12] segment or shorten long sequences into short sequences during training, which can induce information loss due to the data loss [4].”
BackgroundDedieu, A., Lehrach, W., Zhou, G., George, D., & Lázaro-Gredilla, M. (2024) · arXiv · doi:10.48550/arxiv.2401.05946 · Cited by 2
“We use relative positional embedding (Dai et al., 2019) and Gaussian error linear units activation functions (Hendrycks and Gimpel, 2016).”
MethodLarge language models for aspect-based sentiment analysis in e-commerce: A review
Huang, H., Li, Y., Dong, Q., Asemi, A., Mustafa, M. B., & Asemi, A. (2026) · Applied Soft Computing · doi:10.1016/j.asoc.2026.116083 · Cited by 1
FadeMem: Biologically-Inspired Forgetting for Efficient Agent Memory
Wei, L., Dong, X., Peng, X., Xie, N., & Wang, B. (2026) · ICASSP 2026 - 2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · doi:10.1109/icassp55912.2026.11462095 · Cited by 1
Nallapareddy, M. V., Craighero, F., Worpenberg, L., Naef, F., Gobet, C., & Vandergheynst, P. (2025) · Communications Biology · doi:10.1038/s42003-025-09092-7 · Cited by 1
“The XLNet applies multiple Relative Multi-Head Attention (RMHA) blocks, employing the implementation from HuggingFace ’ s transformer library 46 of theTransformer-XL model 47 , which fi rstintroducedtheRelative Positional Encodings (RPE).”
Randomized Positional Encodings Boost Length Generalization of Transformers
Ruoss, A., Delétang, G., Genewein, T., Grau-Moya, J., Csordás, R., Bennani, M., Legg, S., & Veness, J. (2023) · arXiv · doi:10.48550/arxiv.2305.16843 · Cited by 1
“In Section 4, we compared our method to a wide range of positional encodings: none, sin / cos (Vaswani et al., 2017), relative (Dai et al., 2019), ALiBi (Press et al., 2022), RoPE (Su et al., 2021), learned (Gehring et al., 2017), and label- based (Li and McClelland, 2022).”
BackgroundMethodResultInfluentialPosition: Episodic Memory is the Missing Piece for Long-Term LLM Agents
Pink, M., Wu, Q., Vo, V. A., Turek, J., Mu, J., Huth, A., & Toneva, M. (2025) · arXiv · doi:10.48550/arxiv.2502.06975 · Cited by 1
RiemannFormer: A Framework for Attention in Curved Spaces
Ji, Z. (2025) · arXiv · doi:10.48550/arxiv.2506.07405 · Cited by 1
“Relative positional encodings, adopted in Transformer-XL [3], T5 [4], and TUPE [5], model token distance relationships, enhancing generalization for long-context tasks.”
Mtetwa, J. T., Ogudo, K. A., & Pudaruth, S. (2026) · Mathematics · doi:10.3390/math14142637
“Transformer-XL [20] introduced segment-level recurrence as the first step beyond fixed-length contexts.”
FadeMem: Biologically-Inspired Forgetting for Efficient Agent Memory
Wei, L., Peng, X., Dong, X., Xie, N., & Wang, B. (2026) · arXiv
“…three categories of memory management approaches: (1) Fixed-window methods : including context windows of 4K, 8K, and 16K tokens with FIFO eviction [10, 2]; (2) RAG-based systems : LangChain Memory with default configurations; (3) Specialized agent memory : Mem0 [11] as our primary baseline,…”
Adapting Language Models to Compress Contexts
Chevalier, A., Wettig, A., Ajith, A., & Chen, D. (2023) · arXiv · Cited by 59
“These include restricting and sparsifying the attention window (Dai et al., 2019; Child et al., 2019), approximat-”
BackgroundMethodInfluentialHow Memory in Optimization Algorithms Implicitly Modifies the Loss
Cattaneo, M., & Shigida, B. (2025) · Advances in Neural Information Processing Systems 38 · doi:10.52202/085713-5215
Focus Your Attention (with Adaptive IIR Filters)
Lutati, S., Zimerman, I., & Wolf, L. (2023) · arXiv · doi:10.48550/arxiv.2305.14952
“In order to evaluate our method relative to other state-of-the-art long-range architectures, such as (Poli et al., 2023), (Dai et al., 2019), the associative recall synthetic task is evaluated.”
BackgroundMethodInfluentialLuna: Linear Unified Nested Attention
Ma, X., Kong, X., Wang, S., Zhou, C., May, J., Ma, H., & Zettlemoyer, L. (2021) · arXiv · doi:10.48550/arxiv.2106.01540
“Transformer-XL (Dai et al., 2019) proposed a natural extension to the blockwise method to connect these blocks via a recurrence mechanism.”
Method
Metadata
- Authors
- Dai, Z., Yang, Z., Yang, Y., Carbonell, J., Le, Q., & Salakhutdinov, R.
- Affiliations
- Carnegie Mellon University (US)
- Google (United States) (US)
- Venue
- Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics
- Published
- 2019
- Pages
- 2978-2988
- ISSN
- 0736-587X (ISSN-L)
- OpenAlex
- W2964110616
- Cited by
- 3,169
- References
- 67
- Citations by year
- 2026: 163 · 2025: 361 · 2024: 434 · 2023: 585 · 2022: 504 · 2021: 612 · 2020: 403 · 2019: 107
- FWCI
- 155.55
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Proceedings of the conference - Association for Computational Linguistics. Meeting (publishedVersion, cc-by)
- Funders
- National Science Foundation (1546329, 1763562)
- U.S. Department of Energy
- Nvidia
- Office of Science
- Office of Naval Research (N000141812861)
- Advanced Scientific Computing Research
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Speech Recognition and Synthesis
- Keywords
- Transformer-XL, long-range dependencies, positional encoding, language modeling, temporal coherence, sequence generation, pre-trained language models
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
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.

