All models

Slot Attention

Attention module that groups input features into a set of exchangeable object slots by iterative competition.

Segmentation · 61 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 (32 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
54.3K
Operations
61
Framework
PyTorch
Recurrent
Yes
Published
NeurIPS 2020
Cited by
327 (as of 29 October 2026)
Authors
Francesco Locatello, Dirk Weissenborn, Thomas Unterthiner and others
License
Apache-2.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
m20466
Graph hash
af67ac3f3ff1c3e36ed724e48becd7ef62003c496af61feb6d26ea5372b6fabd
Skeleton hash
e3d837a4b1999ba0f3f7609475c998df7d8f12aefb41410cf8e31b08a9a01ff8
Architecture hash
3ad7ba18f8608e4567c760839c744e686feca242817243cb8f85ab0f2bacafdc
Diagram SHA-256
bc1ada5ec7eeb94bfea5cb49bf8476bb4cffd479ea3b9bd47a518b0517616577
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 model is the Slot Attention module on its own, which maps a set of N input feature vectors to a set of K slots.

Slot Attention is an architectural component that sits on top of perceptual representations, such as the output of a convolutional neural network, and produces a set of task-dependent abstract representations called slots. The slots are exchangeable and can bind to any object in the input, which they do by competing over multiple rounds of attention.

The slots start as independent samples from a Gaussian distribution with shared, learnable parameters. At each iteration they compete to explain parts of the input through a softmax-based attention mechanism and then update their representation with a recurrent function. That function is a Gated Recurrent Unit (GRU), and the paper's experiments run T = 3 iterations. Because the initial slots are sampled from a common distribution, the module can be run with a different number of slots at test time.

The paper trains Slot Attention on unsupervised object discovery and supervised property prediction and reports that the learned representations generalize to unseen compositions. It identifies two properties of the module: the output is invariant to permutations of the input and equivariant to the order of the slots.

Key idea. Slot Attention maps perceptual features to a set of exchangeable slots that bind to objects by competing over multiple rounds of attention.

  • Slot Attention
  • object-centric learning
  • slots
  • object discovery
  • unsupervised object discovery
  • set prediction
  • object-centric autoencoder
  • iterative attention
  • CLEVR

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{locatello2020objectcentriclearningslotattention,
      title={Object-Centric Learning with Slot Attention}, 
      author={Francesco Locatello and Dirk Weissenborn and Thomas Unterthiner and Aravindh Mahendran and Georg Heigold and Jakob Uszkoreit and Alexey Dosovitskiy and Thomas Kipf},
      year={2020},
      eprint={2006.15055},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2006.15055}, 
}