TransDreamer
Model-based reinforcement learning agent whose world model and policy are built on transformers.
Reinforcement learning and control · 452 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 48M
- Operations
- 452
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022
- Cited by
- 210 (as of 29 November 2026)
- Authors
- Chang Chen, Yi-Fu Wu, Jaesik Yoon, Sungjin Ahn
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m21029
- Graph hash
- c7cb1c44ab2269f4e0c0f80b00c74b7244f22ad10a9cca015a2e4f435f298acc
- Skeleton hash
- 7908eeeca5ed6a066ff736b1840cd1cb19b21063d242c5cf9f33f4c5cba54c42
- Architecture hash
- c0545830cd37c40cd320872dbabba5603ccd2e7ec90d15a66639be76a2abddd7
- Diagram SHA-256
- 72b6c698d80139d280610fc775ec88fe4ad9c836cbfbc7f44eb7656019862f29
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
TransDreamer is a model-based reinforcement learning (MBRL) agent built on transformers. It starts from the Dreamer agent, whose world model and policy networks inherit the limitations of recurrent neural networks. The authors ask how an MBRL framework can benefit from transformers, and what the challenges are in doing so.
Its world model, the Transformer State-Space Model, uses a transformer to predict dynamics. The policy network is also transformer-based and shares this world model, which the authors say made training stable. The experiments cover 2D visual and 3D first-person visual reinforcement learning tasks that require long-range memory access. On these tasks the paper reports that TransDreamer outperformed Dreamer. The released code is built on the DreamerV2 codebase and supports Atari and Crafter.
Key idea. The paper builds a model-based reinforcement learning agent whose world model, the Transformer State-Space Model, predicts dynamics with a transformer and is shared with a transformer-based policy network.
- TransDreamer
- transformer world model
- Transformer State-Space Model
- model-based reinforcement learning
- MBRL
- world model
- visual reinforcement learning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2024transdreamerreinforcementlearningtransformer,
title={TransDreamer: Reinforcement Learning with Transformer World Models},
author={Chang Chen and Yi-Fu Wu and Jaesik Yoon and Sungjin Ahn},
year={2024},
eprint={2202.09481},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2202.09481},
}