Papers › Transformers are Sample-Efficient World Models

Transformers are Sample-Efficient World Models

1 Sep 2022arXiv:2209.00588archive 2025-07-28

Vincent Micheli, Eloi Alonso, François Fleuret

Deep reinforcement learning agents are notoriously sample inefficient, which considerably limits their application to real-world problems. Recently, many model-based methods have been designed to address this issue, with learning in the imagination of a world model being one of the most prominent approaches. However, while virtually unlimited interaction with a simulated environment sounds appealing, the world model has to be accurate over extended periods of time. Motivated by the success of Transformers in sequence modeling tasks, we introduce IRIS, a data-efficient agent that learns in a world model composed of a discrete autoencoder and an autoregressive Transformer. With the equivalent of only two hours of gameplay in the Atari 100k benchmark, IRIS achieves a mean human normalized score of 1.046, and outperforms humans on 10 out of 26 games, setting a new state of the art for methods without lookahead search. To foster future research on Transformers and world models for sample-efficient reinforcement learning, we release our code and models at https://github.com/eloialonso/iris.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2209.00588")

Code

Syntology Ran 17 of 26 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 15 ran with no contract checked.

By repository: official repository: 26 samples from 1 repository, 17 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

eloialonso/iris officialmentioned in papermentioned on GitHubpytorch report
vmicheli/delta-iris mentioned on GitHubpytorchGPL-3.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

26 samples harvested; 17 ran; 1 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
15ran
9unverified

Licence: 26 of the 26 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from eloialonso/iris. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AssignWithoutInplaceCheck eloialonso/iris/src/models/world_model.py official repository ran GPL-3.0 (copyleft) · pointer only · 7f939e4da5014501 · report
AttnBlock eloialonso/iris/src/models/world_model.py official repository ran GPL-3.0 (copyleft) · pointer only · 9d1f4ad302b969e4 · report
Cache eloialonso/iris/src/models/world_model.py official repository ran GPL-3.0 (copyleft) · pointer only · 256e6e8e5c0039da · report
Downsample eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic fingerprinted GPL-3.0 (copyleft) · pointer only · e8df5d8fcd9e9339 · report
Embedder eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · 2def3130991aaf3c · report
EncoderDecoderConfig eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · cd65aa1097b08332 · report
Head eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · b4868fbed7dce84a · report
KVCache eloialonso/iris/src/models/world_model.py official repository ran GPL-3.0 (copyleft) · pointer only · 93bd9c4b1f02db59 · report
KeysValues eloialonso/iris/src/models/world_model.py official repository ran GPL-3.0 (copyleft) · pointer only · fba3ef4043569d6f · report
LossWithIntermediateLosses eloialonso/iris/src/models/world_model.py official repository ran GPL-3.0 (copyleft) · pointer only · d7a1b7c2fadc881a · report
Normalize eloialonso/iris/src/models/world_model.py official repository ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 41ffde6c773af0d6 · report
Slicer eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · 3e962c6d7a040002 · report
TokenizerEncoderOutput eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · bf4dc4c0382a6bd0 · report
TransformerConfig eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · 06c7be0a3042efdc · report
Upsample eloialonso/iris/src/models/world_model.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 53918c7471cbccdc · report
WorldModelOutput eloialonso/iris/src/models/world_model.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · 419935433daf0f1b · report
nonlinearity eloialonso/iris/src/models/world_model.py official repository ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 3f6efbafceb71819 · report
Block eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · ee23a284027c25be · report
Decoder eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · 4e93d0d0e4839243 · report
Encoder eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · aee0695eaeb766c4 · report
ResnetBlock eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · caffc15eb259ebb0 · report
SelfAttention eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · f16fd90513419812 · report
Tokenizer eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · 79b0b0b918ab2ac4 · report
Transformer eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · d65bf756384c37cd · report
WorldModel eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · cfb3154cdccd72da · report
init_weights eloialonso/iris/src/models/world_model.py official repository unverified GPL-3.0 (copyleft) · pointer only · 7fc674de9a0a0a02 · report

Tasks

Atari Games 100kDeep Reinforcement LearningReinforcement LearningReinforcement Learning (RL)reinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionAverage PoolingBPEBatch NormalizationConvolutionDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMonte-Carlo Tree SearchMuZeroMulti-Head AttentionPosition-Wise Feed-Forward LayerPrioritized Experience ReplayReLUResidual BlockResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections