Multi-Objective Decision Transformers for Offline Reinforcement Learning

Abdelghani Ghanem, Philippe Ciblat, Mounir GhoghoarXiv 2023

TL;DR

This paper introduces Multi-Objective Decision Transformers (MO-DT) and its variant MO-TRDT, which improve offline reinforcement learning by forcing the model to predict not just actions, but also future states and returns. By diversifying the training objectives and introducing "action regions" to smooth trajectory data, the authors achieve more efficient transformer attention and superior performance on standard benchmarks compared to the original Decision Transformer.

What Problem Does This Paper Address?

Offline Reinforcement Learning (RL) aims to learn optimal policies from fixed, pre-collected datasets without any live interaction with the environment. Recently, the Decision Transformer (DT) gained popularity by treating RL as a sequence modeling problem—essentially "predicting the next action" given a history of states, actions, and desired returns.

However, the authors identify two major bottlenecks in the vanilla DT:

  1. Inefficient Attention: Because the model is only trained to predict actions, its attention mechanism often fails to distinguish between different types of input tokens, resulting in a "flat" or uniform attention weight across the entire context. This suggests the model isn't fully utilizing the representational power of the transformer architecture.
  2. Behavioral Tethering: Trajectories in offline datasets are often generated by suboptimal "behavior policies." Standard DT models can become overly reliant on these specific, noisy action sequences, which limits their ability to generalize to better strategies.

Methods

The authors propose two primary architectural enhancements:

1. Multi-Objective Decision Transformer (MO-DT)

Instead of a single action-prediction head, MO-DT uses a multi-task approach. It predicts:

  • Actions ($a_t$): The standard RL objective.
  • Next States ($s_{t+1}$): Modeled using a multivariate Gaussian distribution.
  • Next Returns ($g_{t+1}$): Modeled as a univariate Gaussian.

By forcing the model to reconstruct the environment's dynamics (states) and its own performance (returns), the transformer is compelled to learn more distinct and useful internal representations for each token type.

2. Trust Region Decision Transformer (MO-TRDT)

To address the "tethering" issue, the authors introduce action regions. They coarsely discretize the continuous action space into broader segments. The trajectory representation is modified to include these regions ($\bar{a}_t$) alongside raw actions.

  • Ordinal Encoding: To avoid the "curse of dimensionality" that comes with one-hot encoding high-dimensional action spaces, they use ordinal encoding vectors. This preserves the structural relationship (ordering) between different action bins.
  • Abstraction: Predicting these broader regions acts as a form of regularization, allowing the model to focus on the "intent" of a movement rather than getting bogged down in the specific noise of the behavioral policy.

Datasets

The models were evaluated on the D4RL benchmark, specifically the Gym locomotion tasks:

  • Environments: HalfCheetah, Hopper, and Walker2d.
  • Dataset Types: Medium, Medium-Replay, and Medium-Expert (representing different levels of data quality).

The authors compared their results against strong baselines including the original Decision Transformer (DT), Online Decision Transformer (ODT-O), and dynamic programming methods like CQL and IQL.

Key Insights and Ideas

  • Sparse is Better: One of the most striking findings is the change in attention patterns. As seen in the comparison between Figure 1 and Figures 2/3, the multi-objective approach leads to much sparser, more focused attention.
  • Uniform attention in vanilla DT
    • Diversified attention in MO-DT
  • Gaussian Heads Matter: For complex dynamics, using Gaussian prediction heads (which output a mean and variance) significantly outperforms simple linear heads (deterministic). This allows the model to capture the inherent uncertainty in offline data.
  • Multi-Head Synergy: The paper demonstrates that the performance gains are tied to the transformer's multi-head attention. A single-head version of MO-DT performs poorly, suggesting that different heads learn to specialize in different objectives (state vs. action vs. return) in parallel.
Figure 1: Attention patterns per block for DT during action prediction on the walker2d environment
Diversified attention in MO-DT

Key Results

The proposed MO-TRDT emerged as the top performer across the board:

  • Total Score: MO-TRDT achieved a total normalized score of 726.77, significantly higher than the vanilla DT's 672.6.
  • Generalization: It showed particularly strong gains in "Medium-Replay" tasks (e.g., Walker2d-medium-replay-v2 jumped from 66.6 to 86.94), where the data is noisier and the need for abstraction is higher.
  • State-of-the-Art: The methods either matched or outperformed established SOTA methods like IQL and CQL on almost all tested locomotion tasks.

Limitations and Future Work

  • Linear Scalarization: The authors used a simple weighted sum to combine losses. While effective, they note that more sophisticated Pareto search techniques could potentially find better trade-offs between the multiple objectives, albeit at a higher computational cost.
  • Inference Latency: While they strategically avoided conditioning current actions on current action regions to save time during inference, the overall model is slightly more complex than a standard DT.
  • Self-Training: The authors suggest that since their model now predicts states and returns, it could be a prime candidate for self-training or data augmentation scenarios in future research.

Summary updated

BibTeX
@misc{ghanem2023multi,
  author = {Abdelghani Ghanem and Philippe Ciblat and Mounir Ghogho},
  title = {{Multi-Objective Decision Transformers for Offline Reinforcement Learning}},
  year = {2023},
  eprint = {2308.16379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.16379},
}
Figure