NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MetaSlot: Break Through the Fixed Number of Slots in Object-Centric Learning

Hongjia Liu, Rongzhen Zhao, Haohan Chen, Joni Pajarinen

Abstract

Object-Centric Learning (OCL) aims to bridge the gap between raw sensory input and structured symbolic representations by decomposing scenes into discrete, manageable entities known as "slots." While Slot Attention (SA) has emerged as a standard mechanism for this task, it suffers from two fundamental limitations: a rigid requirement for a fixed number of slots and a lack of semantic consistency across different scenes due to random initialization. This paper introduces MetaSlot, a novel framework that enables dynamic slot allocation and provides a semantically grounded initialization through a global codebook of object prototypes. By integrating a two-stage pruning and refinement process with a progressive noise-injection strategy, MetaSlot achieves state-of-the-art performance in unsupervised object discovery across static images and complex video sequences.

1. Introduction

The human visual system naturally decomposes complex environments into individual objects, a capability that remains a significant challenge for artificial intelligence. Object-Centric Learning (OCL) seeks to replicate this by clustering image features into a set of vectors, or slots. However, the current gold standard, Slot Attention, is constrained by a fixed hyperparameter $K$, representing the number of slots. This leads to "over-segmentation" in simple scenes (where a single object is split across multiple slots) and "under-segmentation" in complex scenes (where multiple objects are merged into one).

Furthermore, because slots are typically initialized with random Gaussian noise, there is no inherent correspondence between slots across different images. MetaSlot addresses these "Achilles' heels" by introducing a learnable, global prior that allows the model to adaptively determine the necessary number of slots for any given scene.

2. The MetaSlot Framework

MetaSlot is designed as a "plug-and-play" upgrade for existing OCL backbones. It replaces the standard single-pass attention mechanism with a two-stage process guided by a global codebook.

2.1 Stage 1: Prototype-Guided Pruning

Instead of relying on random noise, MetaSlot utilizes a global codebook—a library of "object prototypes" learned across the entire dataset via Vector Quantization (VQ). In the first stage, the model performs an initial pass of Slot Attention. These intermediate slots are then mapped to the nearest prototypes in the codebook. If multiple slots map to the same prototype (e.g., three slots all attempting to represent different parts of the same car), MetaSlot prunes the redundant slots. This ensures that only unique, semantically distinct initializations proceed to the next stage.

2.2 Stage 2: Masked Refinement

The surviving slots undergo a second stage called Masked Slot Attention (MSA). By applying a binary mask derived from the pruning stage, the model ensures that only the "active" slots participate in the final feature aggregation. This mechanism effectively allows the model to use a variable number of slots per image, scaling its representational capacity to the complexity of the scene.

2.3 Progressive Noise Injection

To stabilize the training of the codebook and align the "prior" (the prototypes) with the "posterior" (the actual image features), the authors implement a noise-injection strategy. Gaussian noise is added to the slots and gradually reduced over successive attention iterations. This process, analogous to simulated annealing, encourages broad exploration of the feature space in early iterations before converging on precise object boundaries.

3. Experimental Evaluation

The researchers evaluated MetaSlot across a diverse range of benchmarks, including synthetic data (ClevrTex), real-world images (MS COCO 2017, PASCAL VOC 2012), and high-quality video (HQ-YTVIS).

3.1 Quantitative Results

MetaSlot consistently outperformed standard Slot Attention variants across all tasks:

  • Unsupervised Object Discovery: On the ClevrTex dataset, MetaSlot improved the Adjusted Rand Index (ARI)—a key metric for clustering quality—from 66.1 to 81.9 when integrated with a Diffusion-based backbone.
  • Video Segmentation: In the HQ-YTVIS video dataset, MetaSlot nearly doubled the performance of the baseline VideoSAUR model, increasing the ARI from 33.0 to 60.0.
  • Downstream Tasks: The model also showed superior performance in set prediction tasks, such as predicting object categories and bounding boxes, indicating that the slots capture higher-quality semantic and spatial information.

3.2 Qualitative Insights

Visualizations demonstrate that MetaSlot successfully resolves the fragmentation issues common in baseline models. While standard Slot Attention often splits large entities (like trains or people) into multiple slots, MetaSlot correctly identifies them as single entities by merging redundant prototypes. Furthermore, because slots are tied to specific codebook indices, they become interpretable; a specific prototype index may consistently represent a specific class of object across the entire dataset.

4. Discussion and Future Work

MetaSlot represents a significant step toward more flexible and interpretable object-centric representations. By moving the bottleneck from a fixed hyperparameter to a learnable codebook, the model gains the ability to handle varying scene complexities autonomously.

However, some limitations remain. The current architecture relies on absolute positional encodings, which may limit translation equivariance. Additionally, while the prototypes capture global shapes and semantics, future iterations could benefit from decomposing objects into finer-grained "attribute prototypes" (e.g., separate codes for color, texture, and shape). Finally, investigating the model's robustness to out-of-distribution (OOD) scenarios—where it encounters objects not represented in its learned codebook—remains a critical area for future research.

5. Conclusion

MetaSlot breaks the fixed-slot bottleneck that has long hindered Slot Attention. Its ability to dynamically allocate slots and provide semantically consistent initializations makes it a powerful, architecture-agnostic tool for the next generation of object-centric vision models.

Summary updated

BibTeX
@inproceedings{liu2025metaslot,
  author = {Hongjia Liu and Rongzhen Zhao and Haohan Chen and Joni Pajarinen},
  title = {{MetaSlot: Break Through the Fixed Number of Slots in Object-Centric Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=CJ00kttEjh},
}
Figure