TL;DR
The Multi-Game Target Return Optimizer (MTRO) automates target return selection for multi-game Decision Transformers directly from offline data, eliminating the need for manual return-tuning or arbitrary exponential heuristic assumptions. By combining data-driven expert return distributions with a Bayes-adjusted correction mechanism during early inference, MTRO achieves a 28% improvement in Interquartile Mean (IQM) over standard Multi-Game Decision Transformers across 39 Atari games—with zero additional model retraining.
What Problem Does This Paper Address?
Decision Transformers (DTs) cast reinforcement learning (RL) as a sequence modeling problem: during inference, you feed the model a high "target return," and the model autoregressively generates actions likely to achieve that return. In standard single-game DTs, this target return is manually chosen by a human with domain knowledge.
To automate this, the Multi-Game Decision Transformer (Lee et al., 2022) applied Bayes' rule with an assumed generic exponential distribution, presuming that higher returns always imply expert behavior across every game. However, this assumption falls apart in multi-task settings:
- Scoring scales vary wildly between games (e.g., 100 points might be trivial in one game but superhuman in another).
- The transformer often over-extrapolates to return values never seen during training, prompting out-of-distribution actions.
- Transformer return predictions $P(R_t \mid \dots)$ frequently diverge from actual empirical distributions, breaking standard Bayesian inference.
Methods
MTRO operates purely at inference time on top of an existing, frozen pre-trained Multi-Game DT model. It introduces two complementary components:
Offline Dataset ──────> DERD: P_offline(expert | R)
│
Transformer Output ───> BARP: α(R_t) via KL-divergence ──> Corrected Target Return R̂
-
Data-driven Expert Return Distribution (DERD):
Instead of assuming an exponential prior $P(\text{expert}_t \mid R_t) \propto \exp(\kappa \frac{R_t - R_{\text{low}}}{R_{\text{high}} - R_{\text{low}}})$, DERD calculates empirical proportions directly from the offline dataset: $$P_{\text{offline}}(\text{expert}_t \mid R_t) \propto \frac{n_{\text{expert}}^{\tilde{R}_t}}{N(\tilde{R}_t)}$$ where $n_{\text{expert}}^{\tilde{R}_t}$ is the number of expert-labeled episodes achieving quantized return $\tilde{R}_t$, and $N(\tilde{R}_t)$ is the total episode count. This captures the true, game-specific score landscape (e.g., normal vs. bimodal distributions). -
Bayes-Adjusted Return Prediction (BARP):
When the transformer's predicted return distribution $P(R_t \mid \dots)$ is inaccurate, standard Bayes conditioning fails. BARP measures the discrepancy over the first $\ell$ steps ($\ell = 20$) using the Kullback–Leibler (KL) divergence between the model's average return predictions and the true dataset return frequencies: $$\alpha(R_t) = D_{\text{KL}}\left(\frac{1}{\ell}\sum_{t'=1}^\ell P(R_{t'} \mid \dots) \;\middle\|\; \frac{N(\tilde{R}_1)}{N_{\text{total}}}\right) + 1$$ It then interpolates between the model's prediction and the empirical dataset prior in log-space: $$\log P(R_t, \dots \mid \text{expert}_t) \propto \log P_{\text{offline}}(\text{expert}_t \mid R_t) + \frac{1}{\alpha(R_t)}\log P(R_t \mid \dots) + \left(1 - \frac{1}{\alpha(R_t)}\right)\log \frac{N(\tilde{R}_t)}{N_{\text{total}}}$$ If prediction error is large ($\alpha > 1$), it falls back toward the reliable empirical offline return distribution.
Datasets
- DQN Replay Dataset (Atari): Evaluation was conducted on 39 Atari games where human scores are publicly available.
- Trajectories were collected across 5 DQN agents (50 million steps each), with clipped rewards $[-1, 1]$ and quantized returns $\{-20, 100\}$.
- The top 10% of training episodes per game were designated as expert-level demonstrations.
- The authors used the official public checkpoint of the 200M-parameter Multi-Game DT. No new benchmarks were created.
Key Insights and Ideas
- Model return distributions diverge wildly from reality: In games like Breakout or Amidar, transformer-predicted return distributions often skew heavily away from actual game returns, invalidating naive Bayesian sampling.
- Feasible returns beat arbitrarily high returns: Standard Multi-Game DT often samples target returns in upper brackets ($R = 60 \sim 100$) that are entirely absent from the game's dataset. MTRO forces the model to condition on return ranges that actually exist in training, preventing out-of-distribution degeneration.
- Performance gains without retraining: By simply patching inference-time conditioning via DERD and BARP, agents achieve significant performance boosts without gradient updates.
Key Results
Experiments evaluated agents across 50 trials per game using Human Normalized Scores (HNS) and aggregate Interquartile Mean (IQM):
- Overall Benchmark Performance: MTRO achieved an IQM of 1.73, outperforming baseline Multi-Game DT (1.35, a +28% relative gain), Naïve adjustment (1.59), and an ablation without BARP (1.61).
- Per-Game Win/Loss Rates: Compared to Multi-Game DT:
- MTRO improved performance by $>10\%$ in 14 games and declined in only 4 games.
- In contrast, removing DERD resulted in 8 improved vs. 12 declined, highlighting that data-driven priors are the core performance driver.
- Notable Spikes: Dramatic improvements were observed in games like Atlantis (mean HNS increased from $3.935 \to 14.769$) and Breakout ($8.494 \to 11.306$).
Limitations and Future Work
- Dependence on Expert Data in Offline Logs: MTRO relies on having identifiable expert data in the offline corpus (here, the top 10% of DQN trajectories). In sparse-reward or purely exploratory datasets where no expert runs exist, DERD cannot estimate expert likelihood.
- Heuristic Expert Definition: The decision to designate the final 10% of DQN replay steps as "expert" is a heuristic that may not generalize neatly to complex real-world datasets.
- Broader Horizons: Future extensions could apply MTRO principles to single-game decision transformers, continuous control tasks, or modify the Bayesian conditioning to generate controlled sub-optimal behaviors (e.g., intermediate skill levels for game bots).
Summary updated