TL;DR
This paper introduces a "spatial locality prior" (SLP) to object-centric learning models, which encourages "slots" (representations of objects) to focus on spatially contiguous image regions, mimicking human visual attention. This simple addition significantly improves object segmentation accuracy across various datasets and models, while also making them more robust to hyperparameter choices.
What Problem Does This Paper Address?
The core goal of object-centric learning is to decompose an image into a set of distinct, interchangeable representations, each corresponding to an object. Current methods achieve this by having "slots" compete for image patches. However, this competition often lacks a strong inductive bias for spatial continuity, leading to slots "claiming" patches that are scattered across the image, rather than forming coherent object representations. This makes it difficult to accurately segment objects, especially in complex scenes. The paper aims to bridge this gap by incorporating a bias that reflects how human vision naturally attends to spatially contiguous regions.
Methods
The key innovation is the Spatial Locality Prior (SLP). This is introduced as an additive term, $\alpha_{kp}$, to the standard attention mechanism in slot-based models. This term biases the attention distribution ($s_{kp}$) of each slot ($k$) over image patches ($p$) to favor spatially contiguous regions.
The $\alpha$ matrix is learned through a Constraint Satisfaction Process (CSP) that aims to:
- Encourage spatial locality: Ensure each slot's attention is focused and compact.
- Discourage overlap: Prevent different slots from attending to the same regions.
This CSP is optimized using a loss function that penalizes non-compact and overlapping attention profiles. Crucially, the initial state of $\alpha$ is learned via bilevel optimization, allowing the model to learn general dataset-wide spatial statistics for slot initialization, which helps break symmetry and disperse initial slot attention.
Datasets
The paper evaluates their approach on a variety of datasets, including:
- Synthetic:
- CLEVR6
- ObjectsRoom
- MultiSprites
- ShapeStacks
- ClevrTex
- MoVi-C
- MoVi-E
- Real-world:
- CUB
- Stanford Dogs
- Stanford Cars
- COCO
- ScanNet
Key Insights and Ideas
- Human vision's spatial bias is key: The "spotlight" metaphor for human attention highlights a fundamental inductive bias that current object-centric models largely ignore. Reintroducing this bias significantly improves performance.
- Simple prior, big impact: A seemingly small addition to the attention mechanism leads to substantial gains across multiple models and datasets.
- Robustness to hyperparameters: SLP makes models less sensitive to the number of slot-update iterations, a common issue in existing methods.
- Symmetry breaking through learned initialization: Bilevel optimization for the initial spatial bias ($\alpha^0$) effectively breaks slot symmetry and guides the learning process.
- Stronger than positional encodings: In some cases, SLP provides a stronger spatial bias than standard positional encoding layers, especially for models like DINOSAUR that don't inherently use them.
Key Results
- Consistent improvements: SLP consistently boosted performance across three different object-centric architectures (Slot Attention, BO-QSA, and DINOSAUR) on eight diverse datasets.
- Significant gains on challenging datasets: For example, on ClevrTex, SLP improved Slot Attention's FG-ARI by nearly 10%.
- Robustness: SLP made models more robust to the number of spatial and slot update iterations. For instance, a single spatial iteration was often sufficient to achieve significant benefits.
- Hyperparameter sensitivity reduction: Models augmented with SLP showed less performance degradation when hyperparameters were varied.
- Out-of-distribution generalization: Despite learning dataset-specific spatial statistics, SLP did not negatively impact OOD generalization, and in some cases, even improved it.
Limitations and Future Work
- Computational complexity: The bilevel optimization for learning the initial spatial bias adds computational overhead. However, the authors note that a single spatial iteration is relatively efficient and still yields benefits.
- Fixed number of slots: Like most slot-based models, the maximum number of slots must be predefined.
- Future directions:
- Extending SLP to video streams, where spatial modulations from one frame can initialize the next.
- Incorporating a depth dimension to spatial attention for 3D understanding and occlusion prediction.
Summary updated