Stabilizing Transformers for Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Owing to their ability to both effectively integrate information over long time horizons and scale to massive amounts of data, self-attention architectures have recently shown breakthrough success in natural language processing (NLP), achieving state-of-the-art results in domains such as language modeling and machine translation. Harnessing the transformer's ability to process long time horizons of information could provide a similar performance boost in partially observable reinforcement learning (RL) domains, but the large-scale transformers used in NLP have yet to be successfully applied to the RL setting. In this work we demonstrate that the standard transformer architecture is difficult to optimize, which was previously observed in the supervised learning setting but becomes especially pronounced with RL objectives. We propose architectural modifications that substantially improve the stability and learning speed of the original Transformer and XL variant. The proposed architecture, the Gated Transformer-XL (GTrXL), surpasses LSTMs on challenging memory environments and achieves state-of-the-art results on the multi-task DMLab-30 benchmark suite, exceeding the performance of an external memory architecture. We show that the GTrXL, trained using the same losses, has stability and performance that consistently matches or exceeds a competitive LSTM baseline, including on more reactive tasks where memory is less critical. GTrXL offers an easy-to-train, simple-to-implement but substantially more expressive architectural alternative to the standard multi-layer LSTM ubiquitously used for RL agents in partially observable environments.
Key facts. Cited by 262 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Oct 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2020: 2; 2021: 48; 2022: 44; 2023: 44; 2024: 49; 2025: 41; 2026: 34.
262 papers.
Sort:
By area:
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2021Random Feature Attentioncited by 350
- 2022Transformers are Sample-Efficient World Modelscited by 317
- 2021History Aware Multimodal Transformer for Vision-and-Language Navigationcited by 268
- 2021Generating Images with Sparse Representationscited by 262
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2021Pretrained Transformers as Universal Computation Enginescited by 162
- 2021Episodic Transformer for Vision-and-Language Navigationcited by 155
- 2022TransDreamer: Reinforcement Learning with Transformer World Modelscited by 143
- 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
- 2023Large Language Models for Robotics: A Surveycited by 132
38 more
- 2021Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPscited by 115
- 2023Structured State Space Models for In-Context Reinforcement Learningcited by 109
- 2023RoboCat: A Self-Improving Generalist Agent for Robotic Manipulationcited by 108
- 2025Improving Vision-Language-Action Model with Online Reinforcement Learningcited by 107
- 2021Scale Efficiently: Insights from Pre-training and Fine-tuning Transformerscited by 105
- 2021Generalized Decision Transformer for Offline Hindsight Information Matchingcited by 105
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agentscited by 100
- 2023Large Language Models as Generalizable Policies for Embodied Taskscited by 86
- 2021S4RL: Surprisingly Simple Self-Supervision for Offline Reinforcement Learningcited by 85
- 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
- 2023Preference Transformer: Modeling Human Preferences using Transformers for RLcited by 77
- 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Taskscited by 70
- 2022Automated Reinforcement Learning (AutoRL): A Survey and Open Problemscited by 69
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2023When Do Transformers Shine in RL? Decoupling Memory from Credit Assignmentcited by 62
- 2021Implicit Deep Adaptive Design: Policy-Based Experimental Design without Likelihoodscited by 61
- 2022The State of Sparse Training in Deep Reinforcement Learningcited by 60
- 2023One-Step Diffusion Distillation via Deep Equilibrium Modelscited by 60
- 2021Single-Shot Motion Completion with Transformercited by 59
- 2023POPGym: Benchmarking Partially Observable Reinforcement Learningcited by 59
- 2024PoliFormer: Scaling On-Policy RL with Transformers Results in Masterful Navigatorscited by 55
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
- 2023A Survey on Transformers in Reinforcement Learningcited by 50
- 2021Representation learning for neural population activity with Neural Data Transformerscited by 48
- 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
- 2025ReinboT: Amplifying Robot Visual-Language Manipulation with Reinforcement Learningcited by 44
- 2023GROOT: Learning to Follow Instructions by Watching Gameplay Videoscited by 42
- 2025HAMLET: Switch your Vision-Language-Action Model into a History-Aware Policycited by 42
- 2022Relational Attention: Generalizing Transformers for Graph-Structured Taskscited by 41
- 2022Evaluating Long-Term Memory in 3D Mazescited by 41
- 2024Kinetix: Investigating the Training of General Agents through Open-Ended Physics-Based Control Taskscited by 40
- 2022History Compression via Language Models in Reinforcement Learningcited by 39
- 2022Transformers are Meta-Reinforcement Learnerscited by 39
- 2021Towards mental time travel: a hierarchical memory for reinforcement learning agentscited by 38
- 2024Mastering Memory Tasks with World Modelscited by 38
- 2021Tell me why! Explanations support learning relational and causal structurecited by 36
- 2023AMAGO: Scalable In-Context Reinforcement Learning for Adaptive Agentscited by 36
- 2021Alchemy: A benchmark and analysis toolkit for meta-reinforcement learning agentscited by 35
50 most cited of 262 All 262 (JSON)
- 2026ALER: Adaptive Learnable Experience Rewriting for Reinforcement Learning30 Sep 2026
- 2026Reinforcement Learning with Complex (valued) Memories29 Sep 2026
- 2026State Trace Rationale As Auxiliary Task in Reinforcement Learning29 Sep 2026
- 2026KV-streams for Efficient Compaction in Agentic Reinforcement Learning28 Sep 2026
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillation28 Sep 2026
- 2026When Does Backpropagating Through Policy Memory Matter? Physical Credit, Optimizer Updates, and Observability27 Sep 2026
- 2026Statistical Convergence of Transformer Encoder-Accelerated Robust Reinforcement Learning20 Sep 2026
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformers17 Sep 2026
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Making21 Jul 2026
- 2026Direct Advantage Estimation for Scalable and Sample-efficient Deep Reinforcement Learning18 Jun 2026
- 2026VOiLA: Vectorized Online Planning with Learned Diffusion Models for POMDP Agents18 Jun 2026
- 2026Task diversity produces systematic transfer but inhibits continual reinforcement learning30 May 2026
38 more
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026CoRMA: Contrastive RMA for Contact-Rich Meta-Adaptation21 May 2026
- 2026On the Importance of Multistability for Horizon Generalization in Reinforcement Learning12 May 2026
- 2026gym-invmgmt: An Open Benchmarking Framework for Inventory Management Methods12 May 2026
- 2026Investigating Action Encodings in Recurrent Neural Networks in Reinforcement Learning4 May 2026
- 2026Closed-Loop CO2 Storage Control With History-Based Reinforcement Learning and Latent Model-Based Adaptation4 May 2026
- 2026Gated Memory Policy: In-Context Memorization and Adaptation21 Apr 2026
- 2026GRAIL: Autonomous Concept Grounding for Neuro-Symbolic Reinforcement Learning18 Apr 2026
- 2026Learning-Guided Sparsification of Dynamic Graphs in Robotic Exploration15 Apr 2026
- 2026Bridging MARL to SARL: An Order-Independent Multi-Agent Transformer via Latent Consensus15 Apr 2026
- 2026Anticipatory Reinforcement Learning: From Generative Path-Laws to Distributional Value Functions6 Apr 2026
- 2026Belief-State RWKV for Reinforcement Learning under Partial Observability1 Apr 2026
- 2026Fatigue-Aware Learning to Defer via Constrained Optimisation1 Apr 2026
- 2026Chameleon: Control-Indexed Prospective Memory for Visuomotor Manipulation25 Mar 2026
- 2026AR-VLA: True Autoregressive Action Expert for Vision-Language-Action Models10 Mar 2026
- 2026Hierarchical Lead Critic based Multi-Agent Reinforcement Learning25 Feb 2026
- 2026Cochain Perspectives on Temporal-Difference Signals for Learning Beyond Markov Dynamics6 Feb 2026
- 2026Transformer-Based Reinforcement Learning for Autonomous Orbital Collision Avoidance in Partially Observable Environments5 Feb 2026
- 2026Unsupervised Learning of Efficient Exploration: Pre-training Adaptive Policies via Self-Imposed Goals27 Jan 2026
- 2026Memory Retention Is Not Enough to Master Memory Tasks in Reinforcement Learning21 Jan 2026
- 2026Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengths10 Jan 2026
- 2026Fusion Matters: Length-Aware Analysis of Positional-Encoding Fusion in Transformers9 Jan 2026
- 2025Recurrent Off-Policy Deep Reinforcement Learning Doesn't Have to be Slow23 Dec 2025
- 2025Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environments22 Dec 2025
- 2025Long-Horizon Model-Based Offline Reinforcement Learning Without Explicit Conservatism4 Dec 2025
- 2025Conditional Diffusion Model for Multi-Agent Dynamic Task Decomposition17 Nov 2025
- 2025Learning to Focus: Prioritizing Informative Histories with Structured Attention Mechanisms in Partially Observable Reinforcement Learning10 Nov 2025
- 2025Navigation in a Three-Dimensional Urban Flow using Deep Reinforcement Learning29 Oct 2025
- 2025Guardian: Decoupling Exploration from Safety in Reinforcement Learning26 Oct 2025
- 2025Memo: Training Memory-Efficient Embodied Agents with Reinforcement Learning22 Oct 2025
- 2025A New Perspective on Transformers in Online Reinforcement Learning for Continuous Control15 Oct 2025
- 2025ELMUR: External Layer Memory with Update/Rewrite for Long-Horizon RL Problems8 Oct 2025
- 2025HAMLET: Switch your Vision-Language-Action Model into a History-Aware Policy1 Oct 2025
- 2025Accelerating Transformers in Online RL30 Sep 2025
- 2025Understanding and Enhancing the Planning Capability of Language Models via Multi-Token Prediction27 Sep 2025
- 2025Learning Robust Penetration Testing Policies under Partial Observability: A systematic evaluation24 Sep 2025
- 2025Improving After-sales Service: Deep Reinforcement Learning for Dynamic Time Slot Assignment with Commitments and Customer Preferences22 Sep 2025
- 2025Latent learning: episodic memory complements parametric learning by enabling flexible reuse of experiences19 Sep 2025
50 newest of 262 All 262 (JSON)
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2021Generalized Decision Transformer for Offline Hindsight Information Matchingcited by 105
- 2021S4RL: Surprisingly Simple Self-Supervision for Offline Reinforcement Learningcited by 85
- 2022Large-Scale Retrieval for Reinforcement Learningcited by 24
- 2022Play it by Ear: Learning Skills amidst Occlusion through Audio-Visual Imitation Learningcited by 22
- 2024Deep Generative Models for Offline Policy Learning: Tutorial, Survey, and Perspectives on Future Directionscited by 20
- 2023Recurrent Action Transformer with Memorycited by 17
- 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformerscited by 8
- 2020Deep Inverse Reinforcement Learning for Structural Evolution of Small Moleculescited by 2
- 2021Provably Improved Context-Based Offline Meta-RL with Attention and Contrastive Learningcited by 2
- 2023Learning Computational Efficient Bots with Costly Featurescited by 2
- 2024Navigation with QPHIL: Quantizing Planner for Hierarchical Implicit Q-Learningcited by 2
12 most cited of 15 All 15 (JSON)
- 2025Long-Horizon Model-Based Offline Reinforcement Learning Without Explicit Conservatism4 Dec 2025
- 2025Mental Accounts for Actions: EWA-Inspired Attention in Decision Transformers19 Sep 2025
- 2025Should We Ever Prefer Decision Transformer for Offline Reinforcement Learning?14 Jul 2025
- 2024Navigation with QPHIL: Quantizing Planner for Hierarchical Implicit Q-Learning12 Nov 2024
- 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformers31 Oct 2024
- 2024Deep Generative Models for Offline Policy Learning: Tutorial, Survey, and Perspectives on Future Directions21 Feb 2024
- 2023Learning Computational Efficient Bots with Costly Features18 Aug 2023
- 2023Recurrent Action Transformer with Memory15 Jun 2023
- 2022Large-Scale Retrieval for Reinforcement Learning10 Jun 2022
- 2022Play it by Ear: Learning Skills amidst Occlusion through Audio-Visual Imitation Learning30 May 2022
- 2021Generalized Decision Transformer for Offline Hindsight Information Matching19 Nov 2021
- 2021Decision Transformer: Reinforcement Learning via Sequence Modeling2 Jun 2021
12 newest of 15 All 15 (JSON)
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2022Transformers are Sample-Efficient World Modelscited by 317
- 2022TransDreamer: Reinforcement Learning with Transformer World Modelscited by 143
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agentscited by 100
- 2024Mastering Memory Tasks with World Modelscited by 38
- 2023Facing Off World Model Backbones: RNNs, Transformers, and S4cited by 31
- 2023A Generalist Dynamics Model for Controlcited by 24
- 2023Thinker: Learning to Plan and Actcited by 13
- 2024UniZero: Generalized and Efficient Planning with Scalable Latent World Modelscited by 12
- 2024Improving Token-Based World Models with Parallel Observation Predictioncited by 11
- 2024Do Transformer World Models Give Better Policy Gradients?cited by 10
- 2024Grounded Answers for Multi-agent Decision-making Problem through Generative World Modelcited by 6
12 most cited of 13 All 13 (JSON)
- 2025Learning to Focus: Prioritizing Informative Histories with Structured Attention Mechanisms in Partially Observable Reinforcement Learning10 Nov 2025
- 2024Grounded Answers for Multi-agent Decision-making Problem through Generative World Model3 Oct 2024
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agents5 Jul 2024
- 2024UniZero: Generalized and Efficient Planning with Scalable Latent World Models15 Jun 2024
- 2024Mastering Memory Tasks with World Models7 Mar 2024
- 2024Improving Token-Based World Models with Parallel Observation Prediction8 Feb 2024
- 2024Do Transformer World Models Give Better Policy Gradients?7 Feb 2024
- 2023Thinker: Learning to Plan and Act27 Jul 2023
- 2023Facing Off World Model Backbones: RNNs, Transformers, and S45 Jul 2023
- 2023A Generalist Dynamics Model for Control18 May 2023
- 2022Transformers are Sample-Efficient World Models1 Sep 2022
- 2022TransDreamer: Reinforcement Learning with Transformer World Models19 Feb 2022
12 newest of 13 All 13 (JSON)
- 2023One-Step Diffusion Distillation via Deep Equilibrium Modelscited by 60
- 2023End-To-End Latent Variational Diffusion Models for Inverse Problems in High Energy Physicscited by 22
- 2025Conditional Diffusion Model for Multi-Agent Dynamic Task Decompositioncited by 0
- 2026VOiLA: Vectorized Online Planning with Learned Diffusion Models for POMDP Agentscited by 0
- 2026VOiLA: Vectorized Online Planning with Learned Diffusion Models for POMDP Agents18 Jun 2026
- 2025Conditional Diffusion Model for Multi-Agent Dynamic Task Decomposition17 Nov 2025
- 2023One-Step Diffusion Distillation via Deep Equilibrium Models12 Dec 2023
- 2023End-To-End Latent Variational Diffusion Models for Inverse Problems in High Energy Physics17 May 2023
- 2022Chain of Thought Imitation with Procedure Cloningcited by 30
- 2024BlendRL: A Framework for Merging Symbolic and Neural Policy Learningcited by 14
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 1
- 2026GRAIL: Autonomous Concept Grounding for Neuro-Symbolic Reinforcement Learningcited by 0
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026GRAIL: Autonomous Concept Grounding for Neuro-Symbolic Reinforcement Learning18 Apr 2026
- 2024BlendRL: A Framework for Merging Symbolic and Neural Policy Learning15 Oct 2024
- 2022Chain of Thought Imitation with Procedure Cloning22 May 2022
- 2021Random Feature Attentioncited by 350
- 2021History Aware Multimodal Transformer for Vision-and-Language Navigationcited by 268
- 2021Generating Images with Sparse Representationscited by 262
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2021Pretrained Transformers as Universal Computation Enginescited by 162
- 2021Episodic Transformer for Vision-and-Language Navigationcited by 155
- 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
- 2023Large Language Models for Robotics: A Surveycited by 132
- 2021Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPscited by 115
- 2021Scale Efficiently: Insights from Pre-training and Fine-tuning Transformerscited by 105
- 2023Large Language Models as Generalizable Policies for Embodied Taskscited by 86
- 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
12 most cited of 214 All 214 (JSON)
- 2026ALER: Adaptive Learnable Experience Rewriting for Reinforcement Learning30 Sep 2026
- 2026Reinforcement Learning with Complex (valued) Memories29 Sep 2026
- 2026State Trace Rationale As Auxiliary Task in Reinforcement Learning29 Sep 2026
- 2026Scalable In-Context Reinforcement Learning with Recurrent Algorithm Distillation28 Sep 2026
- 2026When Does Backpropagating Through Policy Memory Matter? Physical Credit, Optimizer Updates, and Observability27 Sep 2026
- 2026Statistical Convergence of Transformer Encoder-Accelerated Robust Reinforcement Learning20 Sep 2026
- 2026Storing Is Not Remembering: LSTM-UT and Bounded Gated Memory for Looped Transformers17 Sep 2026
- 2026Breaking Feedback-Blindness: Utility-Augmented Transformer for Sequential Decision Making21 Jul 2026
- 2026Direct Advantage Estimation for Scalable and Sample-efficient Deep Reinforcement Learning18 Jun 2026
- 2026Task diversity produces systematic transfer but inhibits continual reinforcement learning30 May 2026
- 2026CoRMA: Contrastive RMA for Contact-Rich Meta-Adaptation21 May 2026
- 2026On the Importance of Multistability for Horizon Generalization in Reinforcement Learning12 May 2026
12 newest of 214 All 214 (JSON)