Learning Disentangled Representation in Object-Centric Models for Visual Dynamics Prediction via Transformers

Sanket Gandhi, Atul, Samanyu Mahajan, Vishal Sharma, Rushil Gupta, Arnab Kumar Mondal, Parag SinglaarXiv 2024 · DOI

Abstract

Predicting future states in visual scenes is a fundamental challenge for autonomous agents. While object-centric models have improved dynamics prediction by decomposing scenes into discrete "slots," these slots often remain monolithic, failing to generalize to novel attribute combinations. We present DisFormer, a novel framework that decomposes objects into disentangled "blocks" representing specific attributes like color, shape, and position. By leveraging iterative refinement and concept vectors, DisFormer achieves state-of-the-art accuracy and demonstrates superior robustness in out-of-distribution (OOD) scenarios.

Introduction

Visual dynamics prediction—foreseeing how a scene evolves—is critical for tasks ranging from robotic manipulation to model-based reinforcement learning. Recent "object-centric" approaches treat scenes as collections of objects. However, most existing models represent each object as a single high-dimensional vector. This lack of internal structure leads to poor generalization; for instance, a model trained on red circles and blue squares may struggle to predict the behavior of a blue circle. This "Out-of-Distribution" (OOD) problem stems from the failure to disentangle independent physical properties.

Methods: The DisFormer Architecture

DisFormer addresses these limitations through a modular pipeline designed to extract and predict disentangled object attributes.

The DisFormer architecture featuring the Mask Extractor, Block Extractor, and Dynamics Predictor.

1. Mask Extractor

To obtain high-fidelity object masks without supervision, DisFormer combines Slot Attention for Video (SAVi) with the Segment Anything Model (SAM). SAVi identifies rough object regions, which serve as prompts for SAM to generate precise, temporally consistent masks.

2. Block Extractor

The core innovation is the decomposition of each object into a set of blocks. Each block is a linear combination of learnable concept vectors that act as a basis for various attributes. Through iterative refinement, the model discovers which concepts (e.g., color, position) belong to which block.

3. Dynamics Predictor and Decoder

A Transformer-based predictor operates on these blocks. A "block coupler" (self-attention layer) enables communication between blocks of the same object while maintaining permutation equivariance. Finally, an extended Spatial Broadcast Decoder reconstructs the future frames from the predicted blocks.

Experiments and Results

The model was evaluated on four benchmarks: 2D Bouncing Circles (2D-BC), 2D Bouncing Shapes (2D-BS), OBJ3D, and CLEVRER. To test compositional generalization, OOD variants were created by introducing unseen attribute combinations.

Quantitative Performance

DisFormer consistently outperformed state-of-the-art models, including GSWM and SlotFormer. As shown in the table below, DisFormer achieves the lowest Pixel Error (PErr) and highest PSNR across both in-distribution and OOD settings.

Quantitative comparison of DisFormer against baseline models on 2D benchmarks.

In OOD scenarios, the performance gap between DisFormer and its competitors widened. For example, in the 2D-BC OOD test, DisFormer maintained high accuracy while other models saw significant degradation, outperforming the nearest competitor by approximately 15% in relative Pixel Error.

Interpretability

Probing experiments confirmed that the learned blocks correlate strongly with ground-truth physical attributes. Specific blocks were found to encode X-position, Y-position, or color, validating that the model successfully discovered disentangled representations without explicit labels.

Conclusion

DisFormer demonstrates that disentangling object attributes into discrete blocks significantly enhances the robustness and accuracy of visual dynamics prediction. By moving beyond monolithic object slots, the model achieves superior compositional generalization. Future work will focus on extending this approach to high-resolution real-world video and action-conditioned environments for robotics.

Summary updated

BibTeX
@misc{gandhi2024learning,
  author = {Sanket Gandhi and Atul and Samanyu Mahajan and Vishal Sharma and Rushil Gupta and Arnab Kumar Mondal and Parag Singla},
  title = {{Learning Disentangled Representation in Object-Centric Models for Visual Dynamics Prediction via Transformers}},
  year = {2024},
  eprint = {2407.03216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.03216},
}
Figure