Skip to main content
QUICK REVIEW

[Paper Review] Online Decision Transformer

Qinqing Zheng, Amy Zhang|arXiv (Cornell University)|Feb 11, 2022
Reinforcement Learning in RoboticsComputer Science21 citations
TL;DR

Online Decision Transformers (ODT) blend offline pretraining with online finetuning by using a max-entropy sequence modeling objective and hindsight return relabeling, achieving competitive absolute performance on D4RL and notable gains during finetuning.

ABSTRACT

Recent work has shown that offline reinforcement learning (RL) can be formulated as a sequence modeling problem (Chen et al., 2021; Janner et al., 2021) and solved via approaches similar to large-scale language modeling. However, any practical instantiation of RL also involves an online component, where policies pretrained on passive offline datasets are finetuned via taskspecific interactions with the environment. We propose Online Decision Transformers (ODT), an RL algorithm based on sequence modeling that blends offline pretraining with online finetuning in a unified framework. Our framework uses sequence-level entropy regularizers in conjunction with autoregressive modeling objectives for sample-efficient exploration and finetuning. Empirically, we show that ODT is competitive with the state-of-the-art in absolute performance on the D4RL benchmark but shows much more significant gains during the finetuning procedure.

Motivation & Objective

  • Motivate and enable sample-efficient reinforcement learning by combining offline data pretraining with online environment finetuning.
  • Extend the Decision Transformer framework to stochastic policies suitable for exploration.
  • Introduce entropy-regularized, trajectory-level exploration and a compatible replay buffer for online learning.
  • Incorporate hindsight return relabeling to align online rollouts with desired return tokens.

Proposed method

  • Model the policy as a stochastic return-conditioned transformer (ODT) that predicts actions given the past K timesteps of states, RTGs, and actions.
  • Use a max-entropy objective that regularizes the negative log-likelihood with a trajectory-level entropy term, solved via a dual formulation with a lambda parameter.
  • Train with a trajectory-centric replay buffer that stores full trajectories and relabel RTG tokens via hindsight return relabeling to better match observed returns.
  • Adopt the return-conditioned training with an initial online RTG token and use online rollouts to populate the replay buffer.
  • Employ Hindsight Return Relabeling to replace the RTG token with the achieved return at rollout end, improving sample efficiency in sparse and dense reward settings.
  • Explain convergence intuition where the objective transitions from cross-entropy against offline data to standard NLL as online data dominates.

Experimental results

Research questions

  • RQ1Can offline pretraining via a Decision Transformer be effectively extended to online finetuning with exploration?
  • RQ2Does trajectory-level entropy regularization improve exploration and sample efficiency during online finetuning?
  • RQ3How does hindsight return relabeling interact with return-conditioned policies to improve online learning?
  • RQ4How does ODT perform relative to state-of-the-art offline and online RL baselines on D4RL benchmarks?
  • RQ5What ablations reveal essential components for successful offline-to-online RL with transformers?

Key findings

  • ODT is competitive with state-of-the-art methods on the D4RL benchmark in absolute performance.
  • ODT shows significantly larger gains during the finetuning/online phase compared to offline baselines.
  • Entropy-regularized training and trajectory-level exploration enable effective online finetuning for return-conditioned policies.
  • Hindsight return relabeling improves data efficiency for online rollouts across sparse and dense reward environments.
  • ODT advantages emerge from its end-to-end integration of offline pretraining with online exploration, without extensive hyperparameter tuning for the online phase.

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.