SPOT: Self-Training with Patch-Order Permutation for Object-Centric Learning with Autoregressive Transformers

Ioannis Kakogeorgiou, Spyros Gidaris, Konstantinos Karantzalos, Nikos Komodakis

Abstract

Unsupervised object-centric learning (OCL) aims to decompose complex scenes into distinct entities without human-provided labels. While slot-based autoencoders have shown promise, they often suffer from an "encoder gap" and a "lazy decoder" that ignores latent slots in favor of local pixel correlations. We present SPOT (Self-training with Patch-Order Permutation), a framework that enhances object discovery by distilling high-quality attention masks from a teacher decoder and employing a novel patch-shuffling strategy. SPOT achieves state-of-the-art results on challenging real-world datasets, including MS COCO and PASCAL VOC.

Introduction

The goal of unsupervised object-centric learning is to enable models to naturally understand that objects in a scene—such as a dog, a leash, or a bench—are distinct entities. The current standard involves slot-based autoencoders where an encoder compresses an image into latent "slots" and a decoder reconstructs the image. However, modern Autoregressive (AR) Transformers are often too powerful; they "cheat" by predicting patches based on immediate neighbors, effectively bypassing the object-level information stored in the slots. This results in poor object discovery and messy segmentation masks.

Methodology

SPOT introduces two primary technical innovations to bridge the encoder gap and force the decoder to utilize latent representations.

1. Self-Training via Slot-Attention Distillation

The researchers observed that even when an encoder's initial masks are noisy, the decoder's cross-attention masks (which dictate how the model looks at slots to rebuild the image) are often significantly sharper and more object-aligned.

The SPOT framework uses a teacher-student distillation process to refine object slots via Hungarian matching.

As shown in the architecture above, SPOT employs a two-stage distillation process. A "Teacher" model provides superior decoder masks which are then used to supervise a "Student" model's encoder. Hungarian matching is utilized to ensure that the student's slots align correctly with the teacher's slots before calculating the distillation loss.

2. Patch-Order Permutation

To mitigate the "lazy decoder" problem, SPOT breaks the standard top-left to bottom-right prediction sequence. In a fixed sequence, patches at the end of the chain have so much context from previous pixels that they ignore the latent slots.

SPOT utilizes various patch-order permutations to prevent the autoregressive decoder from relying solely on local context.

By randomly choosing from multiple paths (e.g., bottom-to-top, right-to-left, or spiral) during training, the model cannot rely on a fixed neighborhood. This forces the AR decoder to look at the slots to understand the global structure of what it is reconstructing. This permutation strategy flattens the gradient imbalance, making slot representations more robust across the entire image.

Experimental Results

SPOT was evaluated on several benchmarks, including MS COCO 2017, PASCAL VOC 2012, and the MOVi synthetic datasets.

  • State-of-the-Art Performance: On MS COCO, SPOT achieved a 35.0 MBOi (Mean Best Overlap at instance level), a significant improvement over the previous state-of-the-art, DINOSAUR (32.3).
  • Qualitative Improvements: Visual analysis indicates that SPOT is more effective at avoiding over-segmentation, correctly grouping complex objects into single slots rather than splitting them based on color or texture.
  • Inference Efficiency: The patch-permutation trick is a training-time augmentation. At inference, the model can revert to a standard scan, adding zero computational overhead.

Discussion and Limitations

While SPOT significantly advances unsupervised segmentation, some challenges remain. The model currently requires a fixed slot count defined upfront and struggles with very small objects due to the 16x16 patch size of the underlying Vision Transformer. Additionally, the model occasionally exhibits a preference for semantic categories (grouping two similar objects into one slot) rather than strict instance-level separation.

Future work may involve dynamic slot allocation and higher-resolution patch processing to better capture small-scale scene details.

Summary updated

BibTeX
@inproceedings{kakogeorgiou2023spot,
  author = {Ioannis Kakogeorgiou and Spyros Gidaris and Konstantinos Karantzalos and Nikos Komodakis},
  title = {{SPOT: Self-Training with Patch-Order Permutation for Object-Centric Learning with Autoregressive Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure