Explicitly Disentangled Representations in Object-Centric Learning

Riccardo Majellaro, Jonathan Collu, Aske Plaat, Thomas M. MoerlandarXiv 2024

TL;DR

The paper introduces DISA (DIsentangled Slot Attention), a novel architecture that explicitly separates an object's shape, texture, position, and scale into distinct, pre-defined parts of its latent representation. By using architectural biases like dual encoders and edge-filtering, DISA achieves superior image reconstruction and enables creative tasks like transferring textures between different shapes without any supervision.

What Problem Does This Paper Address?

Deep learning models often struggle to understand visual scenes the way humans do—as a collection of distinct objects with individual properties. "Object-centric learning" aims to fix this by representing each object in a scene as a separate vector, or "slot."

However, even in these models, properties like an object's color (texture) and its form (shape) often get "entangled" in the same slot. This makes it hard to interpret what the model has learned or to perform compositional tasks, like imagining a blue square as a red circle. While previous work successfully disentangled spatial factors (position, scale), explicitly separating intrinsic properties like shape and texture in an unsupervised, non-probabilistic way remained an open challenge.

Methods

The authors propose DIsentangled Slot Attention (DISA). The core innovation is a multi-path architecture designed to force specific information into specific latent dimensions:

  1. Dual Encoders: The model uses two separate encoders. The Shape Encoder receives a version of the image processed by a Sobel filter, which strips away color and texture, leaving only edges. This biases the encoder to focus purely on geometry. The Texture Encoder looks at the original image.
  2. Invariant Slot Attention (ISA): DISA builds on the ISA framework to extract not just shape, but also per-object position ($P_i$) and scale ($S_i$) vectors.
  3. Dual Decoders: To ensure the latent slots are used as intended, DISA uses two decoders. The Mask Decoder predicts object masks using only the shape vectors. The Texture Decoder uses both shape and texture vectors to reconstruct the object's appearance, ensuring the texture "fits" the shape.
  4. Variance Regularization: A simple but effective loss term encourages the latent features to be consistent across different objects, preventing "leakage" where shape information might hide in a texture slot.
Figure 1: Architecture of DISA. The input image (top-left) is first fed through a Sobel filter to partly remove texture information (bottom-left). This filtered image is then encoded and passed through an Invariant Slot Attention (Biza et al., 2023) module to extract object-centric shape (Shapei), position (Pi), and scale (Si) vectors (bottom-middle). This information is used to decode a mask for each object (bottom-right). The initial input image is encoded (top-left) and then combined with the object attention masks from the ISA module to produce a texture vector (Texturei) per object (top-middle). These texture representations are combined with their associated shape, position, and scale to decode the textures of the objects (top-right). Note that we need to add the shape, location, and scale information as the texture decoding should fit the already predicted masks. Finally, the decoded masks and textures are combined into an image reconstruction (right).

Datasets

The model was evaluated on four popular synthetic benchmarks for object-centric learning:

  • Tetrominoes: Simple 2D Tetris-like blocks.
  • Multi-dSprites: 2D shapes (heart, oval, square) with varying colors and positions.
  • CLEVR6: A filtered version of the 3D CLEVR dataset with up to 6 objects.
  • CLEVRTex: A more challenging version of CLEVR featuring complex, realistic textures.

Key Insights and Ideas

  • Explicit vs. Emergent Disentanglement: Most models hope disentanglement "just happens" during training. DISA is explicit; researchers decide beforehand exactly which dimensions will store shape vs. texture.
  • Architectural Bias is Powerful: Instead of complex mathematical constraints, DISA uses a simple image processing tool (the Sobel filter) to create a strong inductive bias that guides the learning process.
  • Compositional Creativity: Because the representation is modular, the model can perform "zero-shot" creative tasks. For example, it can take the texture from a shiny sphere and apply it to a matte cube it has never seen in that combination before.

Key Results

  • Superior Reconstruction: DISA significantly outperforms standard Slot Attention (SA) and Invariant Slot Attention (ISA) in image reconstruction quality. On the Multi-dSprites dataset, DISA achieved a Mean Squared Error (MSE) of $2.20 \times 10^{-4}$, compared to $22.90$ for SA and $4.57$ for ISA.
Table 2: MSE (↓) averaged over 3 seeds and represented in the format mean ± stddev. All the numbers in the table are scaled by 104. For ISA (on Tetrominoes and CLEVR6) and SA, we perform 10 evaluations of each test image to address the stochasticity arising from the sampling (Appendix D.1). DISA significantly surpasses the baselines in terms of reconstruction quality in most cases.
  • Quantifying Disentanglement: The authors used "inverse property prediction" to test their model. They tried to train a small network to predict an object's color using only its shape vector. In a perfectly disentangled model, this should be impossible (accuracy should match a random guess). DISA achieved near-perfect results on simpler datasets, showing that shape and texture were successfully isolated.
Quantitative results on property prediction
  • Generative Power: Qualitatively, the model excels at transferring textures between objects and generating novel textures by sampling from its learned latent space.

Limitations and Future Work

While DISA works exceptionally well on simple shapes, the authors noted some "information leakage" on the complex CLEVRTex dataset. In these cases, some shape information still managed to slip into the texture slots. Future work could involve using even stronger filters or more sophisticated regularization to prevent this. Additionally, DISA currently treats "texture" as one big group; a natural next step would be to further disentangle texture into components like color, material, and reflectance.

Summary updated

BibTeX
@misc{majellaro2024explicitly,
  author = {Riccardo Majellaro and Jonathan Collu and Aske Plaat and Thomas M. Moerland},
  title = {{Explicitly Disentangled Representations in Object-Centric Learning}},
  year = {2024},
  eprint = {2401.10148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.10148},
}
Figure