All models

IRIS_tokenizer

The discrete autoencoder of IRIS: it turns a 64x64 Atari frame into 16 tokens from a 512-word codebook and back.

Reinforcement learning and control · 535 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (10 KB)

Open in a new tab

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
4M
Operations
535
Framework
PyTorch
Recurrent
No
Published
ICLR 2023
Cited by
25 (as of 17 October 2026)
Authors
Vincent Micheli, Eloi Alonso, François Fleuret
License
GPL-3.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1416
Graph hash
d48eb1a1941a7a4e8714964b09bb96e39782de88206296c1698e9d9c237a284b
Skeleton hash
34da717062b55e9716b97c40ed842c2fbd5fa498b1e6aa091b36e13575b82137
Architecture hash
91962d4936bb88213edde22073442eb7879c4a4598d12636d2d9d3c93b5db10c
Diagram SHA-256
02ece55ff8e7a53bb9426970de4264c4d40e5a1c34653b9457aac767cc387615
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

This is the tokenizer half of IRIS, a data-efficient reinforcement learning agent that learns in a world model composed of a discrete autoencoder and an autoregressive Transformer. The approach casts dynamics learning as a sequence modeling problem, where the autoencoder builds a language of image tokens and the Transformer composes that language over time. The captured member is the discrete autoencoder alone: the encoder E and decoder D that learn a symbolic language of their own to represent high-dimensional images as a small number of tokens.

The encoder converts an input image into K tokens from a vocabulary of size N. The image is first passed through a convolutional neural network producing an output of K vectors of dimension d, and each becomes the index of the closest embedding vector in the embedding table. Conversely, the CNN decoder turns K tokens back into an image. For the Atari setting the frames are 64 x 64, the encoder has 4 layers with 2 residual blocks per layer, 64 channels in its convolutions and self-attention layers at resolution 8 and 16, and the embedding table has a vocabulary size of 512, 16 tokens per frame and a token embedding dimension of 512.

The autoencoder is trained on previously collected frames with an equally weighted combination of an L1 reconstruction loss, a commitment loss and a perceptual loss, using a straight-through estimator to enable backpropagation through the discrete step. The reason the tokenization matters is cost: treating pixels as image tokens would be computationally intractable since standard Transformer architectures scale quadratically with sequence length. The paper notes that with 16 tokens per frame the autoencoder often erases the player, switches colors and misplaces rewards, and that increasing the token count fixes the reconstruction. With the equivalent of only two hours of gameplay in the Atari 100k benchmark, the full IRIS agent achieves a mean human normalized score of 1.046 and outperforms humans on 10 out of 26 games.

Key idea. IRIS showed that a discrete autoencoder plus a GPT-like Transformer makes a world model accurate enough to train an Atari agent purely in imagination, setting a new state of the art for methods without lookahead search.

  • IRIS
  • IRIS tokenizer
  • IRIS discrete autoencoder
  • Transformers are Sample-Efficient World Models
  • Imagination with auto-Regression over an Inner Speech
  • world model
  • discrete autoencoder
  • VQ-VAE tokenizer
  • image tokens
  • Atari 100k
  • sample-efficient 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{micheli2023transformerssampleefficientworldmodels,
      title={Transformers are Sample-Efficient World Models}, 
      author={Vincent Micheli and Eloi Alonso and François Fleuret},
      year={2023},
      eprint={2209.00588},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2209.00588}, 
}