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

TL;DR

Classic Slot Attention forces a fixed number of slots onto every image regardless of its complexity, causing single objects to be split up or missed entirely. MetaSlot solves this by introducing a global codebook of object prototypes that dynamically prunes redundant slots, allowing the model to adapt to variable object counts seamlessly. This plug-and-play upgrade delivers substantial performance gains and highly interpretable object representations across multiple vision tasks.

What Problem Does This Paper Address?

Object-Centric Learning (OCL) aims to break down visual scenes into structured, independent representations called "slots"—essentially the digital equivalent of discrete objects. The standard tool for this, Slot Attention (SA), suffers from two major bottlenecks: it requires a predefined, static slot count, and it initializes slots randomly.

When a real-world scene contains fewer objects than the allocated slots, standard SA suffers from over-segmentation, splitting a single object (like a train or a person) into arbitrary parts just to fill its slot quota. Conversely, random initialization means slots lack a consistent semantic meaning across different images. MetaSlot tackles these issues by allowing the model to dynamically adjust its slot count based on scene complexity while grounding slot initialization in consistent, learned object concepts.

Methods

MetaSlot introduces a two-stage aggregate-and-deduplicate framework that replaces the random initialization of standard Slot Attention with a global Vector Quantized (VQ) codebook of object prototypes:

  1. First-Stage Aggregation & Prototype-Guided Pruning: Input features are first clustered into intermediate slots ($S^{mid}$). Each slot is then matched against a global codebook of learned object prototypes using a nearest-neighbor search. If multiple slots map to the exact same prototype, a duplicate-removal mask filters out the redundancies, dynamically shrinking the slot pool to match the actual number of unique objects in the scene.
  2. Second-Stage Aggregation & Mask-Guided Refinement: The remaining unique slots are refined using Masked Slot Attention. To bridge the "cold-start" gap between discrete prototypes and continuous image features, the authors inject progressively weaker Gaussian noise into each iteration. This acts as a form of implicit simulated annealing, encouraging exploration early on and precise alignment later.
  3. Prototype Updates: The global codebook is continually updated using a K-means-based exponential moving average (EMA) strategy derived from the final refined slots.
Figure 1: Overview of the MetaSlot framework (depicted on the DINOSAUR backbone for clarity; agnostic to the underlying object-centric architecture). (i) We build and continually update a codebook of "prototype slots" by vector-quantizing slots sampled across the dataset. (ii) Input features Z are first aggregated via Slot Attention to produce an intermediate slot set Smid; we then remove duplicate slots in Smid by matching them against the prototype slots, yielding the masked subset ˆSmask. (iii) Finally, ˆSmask is passed through Masked Slot Attention with progressively attenuated noise to generate the refined slots Sfinal, which are then decoded to reconstruct the original input.

Datasets

The authors evaluated MetaSlot across both synthetic and real-world benchmarks:

  • ClevrTex: A synthetic dataset featuring complex textures and roughly 10 geometric objects per image.
  • MS COCO 2017: A premier real-world dataset used to test challenging panoptic and instance segmentation tasks.
  • PASCAL VOC 2012: A standard real-world image dataset utilized for instance segmentation.
  • HQ-YTVIS & MOVi-C: Real-world and synthetic video datasets used to demonstrate MetaSlot's adaptability to video-level object discovery.

Key Insights and Ideas

  • Platonic Forms for Machine Vision: The global codebook acts much like Plato's "world of forms." It stores idealized, abstract concepts of objects (e.g., "person", "truck", "umbrella") across the entire dataset, which then serve as structurally sound starting points for slots in any individual image.
  • Dynamic Allocation via De-duplication: Rather than trying to predict the exact number of objects upfront (a notoriously difficult task), MetaSlot over-allocates slots initially and then prunes them based on semantic redundancy.
  • Annealed Noise as an Explorer: Injecting decaying noise during the second attention stage relaxes the entropy constraints early in training. This prevents the model from getting stuck in sub-optimal local minima when matching discrete prototypes to continuous visual features.

Key Results

MetaSlot serves as a seamless, plug-and-play replacement for standard Slot Attention and was validated across Transformer, MLP, and Diffusion-based decoders.

  • Object Discovery Superiority: MetaSlot consistently outperformed competitive baselines like DINOSAUR, SLATE, and SlotDiffusion. For example, on the ClevrTex dataset using a diffusion decoder, MetaSlot achieved an Adjusted Rand Index (ARI) of 81.9, compared to SlotDiffusion's 66.1.
  • Eliminating Over-Segmentation: Qualitative visualizations demonstrated that while baseline models split single objects into multi-colored fragments to satisfy fixed slot constraints, MetaSlot successfully grouped entire objects into single, semantically coherent slots.
Table 1: Object discovery performance with DINOv2 ViT (s/14) for OCL encoding. The input resolution is 256×256 (224×224). Tfd, MLP and Dfz are Transformer, MLP, and Diffusion [78] for OCL decoding respectively.
Figure 2: Qualitative results show that MetaSlot’s dynamic slot allocation mitigates BO-QSA’s over-segmentation, such as splitting a train into unrelated parts, due to its fixed slot count.

Limitations and Future Work

Despite its strong performance, the authors note a few key limitations:

  • Translation Equivariance: MetaSlot inherits absolute positional encodings from original Slot Attention architectures. This means it isn't fully equivariant to image translations; moving an object to a different part of the frame might cause the codebook to misidentify its prototype.
  • Coarse vs. Fine-Grained Prototypes: The global codebook excels at capturing global shapes and broad semantic categories but currently overlooks finer-grained attribute compositions (such as color or texture variations within an object class).
  • Out-of-Distribution (OOD) Generalization: While promising, the framework still requires more extensive evaluation under severe real-world domain shifts to verify its robustness in completely unseen environments.

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