Learning Explicit Object-Centric Representations with Vision Transformers

Oscar Vikström, Alexander IlinarXiv 2022 · DOI

Introduction

Object-centric learning aims to decompose visual scenes into discrete, manageable entities—such as objects and backgrounds—without explicit supervision. While Vision Transformers (ViTs) have become a cornerstone of modern computer vision, most object-centric models still rely on complex iterative procedures like Slot Attention or specialized architectural priors. This research explores whether the principles of Masked Autoencoders (MAE) can be adapted to learn explicit object representations in a purely Transformer-based framework.

Methodology

The proposed architecture is a fully Transformer-based autoencoder designed to identify and segment objects through a reconstruction task.

The proposed architecture: A Transformer-based autoencoder that uses masking and a mixture-of-components strategy to reconstruct images object-by-object.

Architecture Components

  1. Encoder: A standard ViT processes visible (unmasked) image patches. It incorporates $K$ learnable "class tokens" that serve as "slots" to capture object-specific information.
  2. Object Function: This module generates segmentation masks using a dot-product attention mechanism between the class tokens and patch embeddings. Object representations (slots) are then computed as weighted averages of these patches.
  3. Broadcasting and Decoding: To reconstruct the scene, the model repeats the object representations and concatenates them with spatial information from the attention masks. A lightweight decoder then reconstructs each object and its corresponding alpha mask individually. The final image is formed by summing these components.

Training Strategy

A key innovation is the dynamic masking schedule. The model begins training with a high masking ratio, forcing it to reason about global object shapes from minimal data. This ratio is linearly decreased to zero as training progresses.

Experimental Evaluation

The model was evaluated on several multi-object benchmarks, ranging from simple 2D shapes to complex 3D scenes with textures.

  • Synthetic Benchmarks: On Tetrominoes and CLEVR6, the model achieved state-of-the-art performance with Adjusted Rand Index (ARI-FG) scores of 99.5% and 96.2%, respectively.
  • Complex Textures: The model was also tested on ClevrTex, which features intricate materials and lighting.
Qualitative results on the ClevrTex dataset, demonstrating the model's ability to decompose complex, textured scenes into individual object components and masks.

Key Insights

The research highlights several critical findings:

  • Masking as a Regularizer: Masking is essential for convergence on complex datasets like CLEVR6. It forces the model to develop internal concepts of "objects" to fill in missing information.
  • Entropy Constraints: Two entropy-based losses are employed: pixel entropy to ensure sharp segmentation boundaries, and object entropy to prevent a single object from being split across multiple slots.
  • Efficiency: By avoiding iterative slot-attention loops, the model is highly efficient. Training on Tetrominoes takes less than two hours on a single V100 GPU.

Conclusion and Future Work

While the model demonstrates strong performance on synthetic and textured datasets, it faces stability challenges on highly complex data, occasionally splitting objects into spatial segments. Future work may involve integrating this masked autoencoding approach with other self-supervised objectives to improve robustness and segmentation of fine details.

Summary updated

BibTeX
@misc{vikstrom2022learning,
  author = {Oscar Vikström and Alexander Ilin},
  title = {{Learning Explicit Object-Centric Representations with Vision Transformers}},
  year = {2022},
  eprint = {2210.14139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.14139},
}
Figure