Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning as One Big Sequence Modeling Problem

Michael Jänner, Qiyang Li|arXiv (Cornell University)|Jun 3, 2021
Reinforcement Learning in RoboticsComputer Science17 citations
TL;DR

This paper reframes reinforcement learning as a single, unified sequence modeling problem using Transformer architectures to predict optimal sequences of states, actions, and rewards. By treating RL as autoregressive sequence prediction, it eliminates the need for separate behavior cloning, exploration constraints, or uncertainty estimation, achieving strong performance across long-horizon control, imitation learning, goal-conditioned RL, and offline RL.

ABSTRACT

Reinforcement learning (RL) is typically concerned with estimating single-step policies or single-step models, leveraging the Markov property to factorize the problem in time. However, we can also view RL as a sequence problem, with the goal being to predict a sequence of actions that leads to a sequence of high rewards. Viewed in this way, it is tempting to consider whether powerful, high-capacity sequence prediction models that work well in other domains, such as natural-language processing, can also provide simple and effective solutions to the RL problem. To this end, we explore how RL can be reframed as one big sequence modeling problem, using state-of-the-art Transformer architectures to model distributions over sequences of states, actions, and rewards. Addressing RL as a sequence problem significantly simplifies a range of design decisions: we no longer require separate behavior policy constraints, as is common in prior work on offline model-free RL, and we no longer require ensembles or other epistemic uncertainty estimators, as is common in prior work on model-based RL. All of these roles are filled by the same Transformer sequence model. In our experiments, we demonstrate the flexibility of this approach across long-horizon dynamics prediction, imitation learning, goal-conditioned RL, and offline RL.

Motivation & Objective

  • To investigate whether reinforcement learning can be unified under a single sequence modeling framework.
  • To eliminate the need for separate behavior policy constraints in offline RL.
  • To replace ensemble methods and uncertainty estimators in model-based RL with a single sequence model.
  • To evaluate the effectiveness of Transformers in modeling long-horizon decision sequences in diverse RL settings.
  • To demonstrate that a single, high-capacity sequence model can handle diverse RL tasks without architectural specialization.

Proposed method

  • Reformulate RL as autoregressive sequence modeling, where the model predicts sequences of actions given state and reward history.
  • Use a Transformer-based architecture to model the joint distribution over sequences of states, actions, and rewards.
  • Train the model end-to-end using supervised learning on demonstrated or collected trajectories, treating action sequences as targets.
  • Leverage the attention mechanism to capture long-range dependencies across time steps without relying on recurrent structures.
  • Use autoregressive decoding during inference to generate action sequences step-by-step, conditioned on prior states and actions.
  • Avoid explicit exploration or behavior cloning by relying on the model's capacity to generalize from demonstrated sequences.

Experimental results

Research questions

  • RQ1Can reinforcement learning be effectively unified under a single sequence modeling paradigm?
  • RQ2Can a single Transformer model replace multiple components like behavior cloning, uncertainty estimation, and exploration constraints?
  • RQ3How well does this approach generalize across long-horizon, goal-conditioned, and offline RL tasks?
  • RQ4Does autoregressive sequence modeling outperform or simplify traditional RL methods in terms of design and performance?
  • RQ5Can high-capacity sequence models learn complex policies without explicit reward shaping or auxiliary objectives?

Key findings

  • The approach achieves competitive performance on long-horizon control tasks without explicit reward shaping or curriculum learning.
  • It eliminates the need for behavior cloning or behavior policy constraints in offline RL, simplifying training and inference.
  • The model generalizes effectively to unseen goals in goal-conditioned RL without finetuning or auxiliary networks.
  • The method performs well in imitation learning settings, matching or exceeding performance of dedicated behavioral cloning baselines.
  • The Transformer-based sequence model achieves strong results across diverse RL benchmarks using a single, unified architecture.
  • The approach reduces architectural complexity by replacing ensembles and uncertainty estimators with a single, high-capacity sequence model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.