Transformers and Slot Encoding for Sample Efficient Physical World Modelling
Francesco Petri, Luigi Asprino, Aldo Gangemi
TL;DR
This work tackles efficient physical world modelling by integrating object-centric representations with transformer-based dynamics. The authors introduce the Future-Predicting Transformer Triplet (FPTT), which tokenizes frames via a Vector Quantized VAE and employs a corrector, predictor, and decoder transformer to model and predict object interactions over time. Empirical results on PHYRE-like physical reasoning tasks show that FPTT is more stable and sample-efficient than baselines such as STEVE and decoder-only variants, while achieving strong predictive performance. Limitations include opaque representations and high memory demands, with future plans to test on more realistic datasets and explore causal discovery applications.
Abstract
World modelling, i.e. building a representation of the rules that govern the world so as to predict its evolution, is an essential ability for any agent interacting with the physical world. Recent applications of the Transformer architecture to the problem of world modelling from video input show notable improvements in sample efficiency. However, existing approaches tend to work only at the image level thus disregarding that the environment is composed of objects interacting with each other. In this paper, we propose an architecture combining Transformers for world modelling with the slot-attention paradigm, an approach for learning representations of objects appearing in a scene. We describe the resulting neural architecture and report experimental results showing an improvement over the existing solutions in terms of sample efficiency and a reduction of the variation of the performance over the training examples. The code for our architecture and experiments is available at https://github.com/torchipeppo/transformers-and-slot-encoding-for-wm
