Stabilizing Transformers for Reinforcement Learning

By Emilio Parisotto, H. Francis Song, Jack W. Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant M. Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb Noury and 3 more. 2019

486 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Cognitive Neuroscience, Reinforcement Learning, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Sergey Levine
  2. Yoshua Bengio
  3. Mohit Bansal
  4. Ruslan Salakhutdinov
  5. Quoc V. Le
  6. Jianfeng Gao
  7. Pieter Abbeel
  8. Luke S. Zettlemoyer

In Cognitive Neuroscience

  1. Sergey Levine
  2. Olivier Pietquin
  3. Pieter Abbeel
  4. Andrew Kyle Lampinen
  5. Honglak Lee
  6. Marc'Aurelio Ranzato
  7. Kimin Lee
  8. Aravind Rajeswaran

In Reinforcement Learning

  1. Sergey Levine
  2. Pieter Abbeel
  3. Chelsea Finn
  4. Igor Mordatch
  5. Ruslan Salakhutdinov
  6. Aravind Rajeswaran
  7. Michael Janner
  8. Abhishek Gupta

In Model Architectures

  1. Mostafa Dehghani
  2. Yi Tay
  3. Ruslan Salakhutdinov
  4. Sergey Levine
  5. Noah A. Smith
  6. Donald Metzler
  7. Pieter Abbeel
  8. Yoshua Bengio

Citations in the corpus