Improving Transformer World Models for Data-Efficient RL

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Dedieu, Antoine, Ortiz, Joseph, Lou, Xinghua, Wendelken, Carter, Lehrach, Wolfgang, Guntupalli, J Swaroop, Lazaro-Gredilla, Miguel, Murphy, Kevin Patrick
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913945337462784
author Dedieu, Antoine
Ortiz, Joseph
Lou, Xinghua
Wendelken, Carter
Lehrach, Wolfgang
Guntupalli, J Swaroop
Lazaro-Gredilla, Miguel
Murphy, Kevin Patrick
author_facet Dedieu, Antoine
Ortiz, Joseph
Lou, Xinghua
Wendelken, Carter
Lehrach, Wolfgang
Guntupalli, J Swaroop
Lazaro-Gredilla, Miguel
Murphy, Kevin Patrick
contents We present three improvements to the standard model-based RL paradigm based on transformers: (a) "Dyna with warmup", which trains the policy on real and imaginary data, but only starts using imaginary data after the world model has been sufficiently trained; (b) "nearest neighbor tokenizer" for image patches, which improves upon previous tokenization schemes, which are needed when using a transformer world model (TWM), by ensuring the code words are static after creation, thus providing a constant target for TWM learning; and (c) "block teacher forcing", which allows the TWM to reason jointly about the future tokens of the next timestep, instead of generating them sequentially. We then show that our method significantly improves upon prior methods in various environments. We mostly focus on the challenging Craftax-classic benchmark, where our method achieves a reward of 69.66% after only 1M environment steps, significantly outperforming DreamerV3, which achieves 53.2%, and exceeding human performance of 65.0% for the first time. We also show preliminary results on Craftax-full, MinAtar, and three different two-player games, to illustrate the generality of the approach.
format Preprint
id arxiv_https___arxiv_org_abs_2502_01591
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Improving Transformer World Models for Data-Efficient RL
Dedieu, Antoine
Ortiz, Joseph
Lou, Xinghua
Wendelken, Carter
Lehrach, Wolfgang
Guntupalli, J Swaroop
Lazaro-Gredilla, Miguel
Murphy, Kevin Patrick
Machine Learning
Artificial Intelligence
We present three improvements to the standard model-based RL paradigm based on transformers: (a) "Dyna with warmup", which trains the policy on real and imaginary data, but only starts using imaginary data after the world model has been sufficiently trained; (b) "nearest neighbor tokenizer" for image patches, which improves upon previous tokenization schemes, which are needed when using a transformer world model (TWM), by ensuring the code words are static after creation, thus providing a constant target for TWM learning; and (c) "block teacher forcing", which allows the TWM to reason jointly about the future tokens of the next timestep, instead of generating them sequentially. We then show that our method significantly improves upon prior methods in various environments. We mostly focus on the challenging Craftax-classic benchmark, where our method achieves a reward of 69.66% after only 1M environment steps, significantly outperforming DreamerV3, which achieves 53.2%, and exceeding human performance of 65.0% for the first time. We also show preliminary results on Craftax-full, MinAtar, and three different two-player games, to illustrate the generality of the approach.
title Improving Transformer World Models for Data-Efficient RL
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2502.01591