NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SlotFormer: Unsupervised Visual Dynamics Simulation with Object-Centric Models

Ziyi Wu, Nikita Dvornik, Klaus Greff, Thomas Kipf, Animesh Garg

TL;DR

SlotFormer is a Transformer-based model that learns to simulate complex physical dynamics directly from video without any human supervision. By decomposing scenes into object-centric "slots" and using a Transformer to predict their future states, it achieves state-of-the-art long-term video prediction. Furthermore, it provides a learned "world model" that significantly boosts performance on downstream tasks like Visual Question Answering (VQA) and robotic planning.

What Problem Does This Paper Address?

Predicting how a scene will evolve—such as knowing that a rolling ball will hit a cube and cause it to slide—is a fundamental aspect of physical intelligence. Traditionally, researchers have approached this in two ways:

  1. Pixel-level prediction: Models try to predict the next frame's pixels directly. These often "forget" that objects exist, leading to blurry, unrealistic "ghosting" effects over long periods.
  2. Object-centric models: These decompose scenes into individual objects (slots). However, previous versions often used separate, complex modules to handle spatial interactions (how objects affect each other) and temporal evolution (how they move over time), making them difficult to train and less effective at long-term reasoning.

The core challenge is to create a model that is both unsupervised (doesn't need manual object labels) and capable of long-term, consistent simulation of multiple interacting objects.

Methods

SlotFormer introduces a deceptively simple but powerful architecture that treats dynamics as a sequence-to-sequence problem over object representations.

SlotFormer Architecture
  • Step 1: Object Extraction: The model uses a pre-trained object-centric model (like Slot Attention or SAVi) to turn each video frame into a set of $N$ vectors, or "slots." Each slot ideally captures the features of a single object (position, color, shape).
  • Step 2: The Transformer Engine: Instead of using a Recurrent Neural Network (RNN) or a Graph Neural Network (GNN), SlotFormer uses a standard Transformer encoder. It takes slots from multiple past "burn-in" frames as input.
  • Step 3: Temporal Positional Encoding: To tell the Transformer the order of the frames without breaking the "set" nature of the objects, the authors apply the same temporal encoding to all slots within the same frame. This preserves permutation equivariance—the model doesn't care which slot is "first" in the list, only which frame it came from.
  • Step 4: Parallel Prediction: Unlike language models that predict one word at a time, SlotFormer predicts all object slots for the next timestep simultaneously. This reduces error accumulation during long-term "rollouts" (simulating many steps into the future).

Datasets

The authors evaluated SlotFormer across four diverse benchmarks:

  • OBJ3D & CLEVRER: Synthetic videos of geometric objects colliding. Used for video prediction and testing the model's ability to handle object entry/exit.
  • Physion: A challenging VQA dataset featuring realistic physical phenomena (sliding, rolling, bouncing).
  • PHYRE: A benchmark for physical reasoning and action planning where a model must "imagine" the result of an action to solve a puzzle.

Key Insights and Ideas

  • Joint Spatio-Temporal Reasoning: By feeding slots from multiple frames into a Transformer, the model learns spatial interactions (collisions) and temporal patterns (velocity) in a single unified step.
  • Dynamics as a "Free" Superpower: The paper demonstrates that a model trained purely to predict the future (unsupervised) can be plugged into a VQA or planning model to provide "free" performance gains. It acts as a mental simulator that the downstream model can consult.
  • Parallelism Matters: Predicting all slots at once for a given timestep, rather than autoregressively within the frame, makes the training more stable and the long-term predictions much sharper compared to previous slot-based methods.

Key Results

Qualitative comparison of long-term video prediction
  • Superior Video Quality: On the OBJ3D dataset, SlotFormer achieved an LPIPS score of 0.08 (lower is better), significantly outperforming the state-of-the-art G-SWM (0.10) and PredRNN (0.12). Qualitatively, as seen above, it avoids the blurriness, wrong dynamics, and "disappearing object" problems of its predecessors.
  • VQA Boost: On CLEVRER’s predictive questions (e.g., "Will the green ball hit the cylinder?"), adding SlotFormer rollouts boosted accuracy from 87.3% to 93.3%, even outperforming models that used ground-truth object labels.
  • Effective World Model: In the PHYRE planning task, SlotFormer achieved an AUCCESS score of 82.0, which is competitive with specialized methods that require ground-truth object masks, despite SlotFormer being entirely unsupervised.

Limitations and Future Work

  • Scaling to the Real World: While SlotFormer works excellently on synthetic data, it relies on the underlying object-centric model (like SAVi) to extract slots. Current slot-based models still struggle with the visual complexity of real-world "in-the-wild" videos.
  • Deterministic Nature: SlotFormer is currently deterministic. In the real world, the future is often stochastic (uncertain). The authors note that adding multi-modality to handle uncertainty is a key next step.
  • Two-Stage Training: The model currently requires pre-training the slot extractor first. The authors suggest that joint training of the extractor and the dynamics module could lead to even better performance.

Summary updated

BibTeX
@inproceedings{wu2023slotformer,
  author = {Ziyi Wu and Nikita Dvornik and Klaus Greff and Thomas Kipf and Animesh Garg},
  title = {{SlotFormer: Unsupervised Visual Dynamics Simulation with Object-Centric Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=TFbwV6I0VLg},
}
Figure