Abstract
The extraction of modular object-centric representations for downstream tasks is an emerging area of research. Learning grounded representations of objects that are guaranteed to be stable and invariant promises robust performance across different tasks and environments. Slot Attention (SA) learns object-centric representations by assigning objects to slots, but presupposes a single distribution from which all slots are randomly initialised. This results in an inability to learn specialized slots which bind to specific object types and remain invariant to identity-preserving changes in object appearance. To address this, we present COnditional Slot Attention (COSA) using a novel concept of Grounded Slot Dictionary (GSD) inspired by vector quantization. Our proposed GSD comprises (i) canonical object-level property vectors and (ii) parametric Gaussian distributions, which define a prior over the slots. We demonstrate the benefits of our method in multiple downstream tasks such as scene generation, composition, and task adaptation, whilst remaining competitive with SA in popular object discovery benchmarks.
Introduction
Human vision naturally segregates the world into distinct objects with stable properties. In machine learning, Slot Attention (SA) attempts this by decomposing scenes into "slots." However, standard SA has a major flaw: it initializes all slots from a single, shared distribution. This makes slots interchangeable and "anonymous"—the model might use Slot 1 for a cube in one image and a sphere in the next.
This lack of "grounding" (connecting representations to stable, real-world categories) makes it difficult for models to perform systematic generalization. If a model doesn't have a consistent "concept" of an object type, it struggles with tasks like generating new scenes or adapting to new logic rules. Conditional Slot Attention (COSA) introduces a "Grounded Slot Dictionary" to address this, allowing neural networks to bind specific slots to consistent object types (like "cube" or "sphere").
Methods: The COSA Architecture
The authors propose moving away from random initialization toward a dictionary-based approach that enables dynamic estimation of the number of objects in a scene and zero-shot scene composition.
Key components include:
- Abstraction Module: Unlike most models that require a fixed number of slots ($K$), COSA uses spectral decomposition of the latent covariance matrix to dynamically estimate how many distinct objects are present.
- Grounded Slot Dictionary (GSD): Inspired by vector quantization (VQ-VAE), this is a learnable "vocabulary" of object types. It consists of canonical property vectors and parametric Gaussian distributions that act as priors for slot initialization.
- Refinement & Discovery: The model selects the most relevant dictionary entries for a given input and uses them to initialize slots, which are then refined using standard iterative attention. A spatial broadcast decoder is used to reconstruct the scene for unsupervised training.
- Reasoning Module: Refined slots are mapped to "rationales"—symbol-like entities that a task predictor uses to solve downstream classification or logic problems.
Key Insights: Grounding and Specialization
The core innovation of COSA is the transition from anonymous slots to specialized ones. By forcing slots to align with a dictionary, the model learns consistent mappings between latent representations and object types.
- Grounding via Specialization: Specific dictionary elements consistently map to specific features or object types. For example, in face datasets, specific slots learn to represent "cheeks," "forehead," or "eyes."
- Dynamic Efficiency: The spectral decomposition method for counting objects allows the model to skip unnecessary computations. On the CLEVR dataset, this dynamic estimation reduced FLOPs by up to 38% compared to fixed-slot models.
- Zero-Shot Composition: Because the dictionary contains grounded "concepts," the model can generate entirely new scenes by simply "prompting" the dictionary (e.g., "give me a slot for a red cylinder and a slot for a blue cube") without needing explicit training for scene generation.
- Interpretable Reasoning: Standard SA slots are interchangeable, which is a bottleneck for reasoning. COSA’s grounded slots provide a stable "rationale" for why a model made a specific prediction, making the AI's logic more interpretable.
Key Results
The model was evaluated across a diverse range of benchmarks, including CLEVR, COCO, and a new FloatingMNIST dataset featuring addition and subtraction tasks.
- Superior Discovery: COSA outperformed standard Slot Attention and other baselines in object discovery. On CLEVR, it achieved a Foreground Adjusted Rand Index (ARI) of 0.96 (vs. 0.93 for SA).
- Robust Generalization: In few-shot task adaptation (training on an "addition" task and testing on "subtraction"), COSA achieved ~60% accuracy with only 100 examples, while standard CNNs and Slot Attention models hovered around 10% (near-random).
- Reconstruction Quality: COSA achieved significantly lower Mean Squared Error (MSE) and Fréchet Inception Distance (FID) across almost all datasets, indicating higher-fidelity object representations.
Limitations and Future Work
While COSA represents a significant step forward, several challenges remain. The variety in generated scenes is currently limited by the size of the Grounded Slot Dictionary. Additionally, the model assumes the latent space can accurately recover all slots, which might fail in extremely cluttered scenes. The dynamic slot estimation also relies on a heuristic regarding the "maximum area" of an object, which may not hold for scenes with extreme scale variations. Future work may involve using contrastive learning to disentangle properties like shape, color, and texture into separate codebooks for even finer control over scene composition.
Summary updated