SlotMatch: Distilling Object-Centric Representations for Unsupervised Video Segmentation

Diana-Nicoleta Grigore, Neelu Madan, Andreas Mogelmose, Thomas B. Moeslund, Radu Tudor IonescuarXiv 2025

TL;DR

SlotMatch introduces a simple yet highly effective knowledge distillation framework for unsupervised video segmentation that directly aligns object slots between a heavy teacher and a lightweight student using cosine similarity. Remarkably, the distilled student model not only runs up to 2.7× faster and uses 3.6× fewer parameters than its teacher, but it actually outperforms the teacher in segmentation quality across multiple benchmarks.

What Problem Does This Paper Address?

Unsupervised video segmentation aims to break down video frames into distinct, temporally consistent objects without relying on human-annotated labels. Current state-of-the-art methods achieve this using "slot attention"—a mechanism that binds latent vectors (slots) to individual objects in a scene.

However, to achieve high fidelity, these models require massive self-supervised vision backbones (such as DINOv2-B). This reliance makes them computationally bloated, slow, and impractical for real-time applications or deployment on resource-constrained edge devices. The core challenge addressed by this paper is how to shrink these models into a lightweight student architecture without sacrificing their remarkable ability to discover and track objects.

Methods

The authors propose SlotMatch, a dual-model knowledge distillation framework. Instead of performing traditional, heavy pixel-wise or feature-level distillation, SlotMatch operates directly in the latent slot space.

  • The Architecture: A large, frozen teacher model (SlotContrast with a ViT-B encoder) and a lightweight student model (with a ViT-S encoder) process identical video inputs in parallel.
  • Slot-Level Distillation: The core innovation is a simple slot matching loss ($\mathcal{L}_{\text{slot-KD}}$) that minimizes the cosine similarity distance between corresponding student and teacher slots. This pulls the student's representation directly into the teacher's proven semantic space.
  • Direct Index Matching: Instead of using complex assignment algorithms like Hungarian matching to pair student and teacher slots, the authors found that simply assuming direct index correspondence (the $n$-th student slot matches the $n$-th teacher slot) works better and eliminates computational overhead.
  • Auxiliary Losses: To keep the slots informative and distinct, the student is concurrently optimized with a feature reconstruction loss ($\mathcal{L}_{\text{rec}}$) to retain scene details and a temporal slot-slot contrastive loss ($\mathcal{L}_{\text{slot-contrast}}$) to ensure slots remain distinct and consistent over time.
Figure 2. Our SLOTMATCH framework performs knowledge distillation from a large frozen teacher model to a compact trainable student model. Both models process video frames through slot attention mechanisms, with the student learning through three loss components: reconstruction (Lrec), temporal consistency (Lslot-contrast), and our novel slot matching loss (Lslot-KD) that directly aligns corresponding slots between teacher and student models using cosine similarity. Best viewed in color.

Datasets

The framework was evaluated on several challenging benchmarks:

  • MOVi-E: A synthetic dataset generated via the Kubric simulator containing complex object interactions and heavy occlusions (up to 23 objects per scene).
  • YTVIS-2021: A real-world YouTube video instance segmentation dataset featuring diverse indoor and outdoor scenes.
  • DAVIS 2017: A high-quality real-world benchmark with dense, pixel-accurate annotations for fine-grained evaluation.
  • OVIS (Occluded Video Instance Segmentation): Used for zero-shot generalization testing to evaluate robustness against severe, real-world occlusions.
  • MS COCO: An image-based dataset used to verify the method's applicability to static image object discovery.

Key Insights and Ideas

  • Less is More (Feature Distillation is Redundant): The authors provide a mathematical proof showing that minimizing the slot-level distillation loss inherently bounds the reconstruction feature loss. Empirically, adding an explicit feature distillation loss actually degraded performance, proving that direct slot alignment is entirely sufficient.
  • The Student Outperforms the Teacher: In a fascinating twist on typical knowledge distillation, the student model consistently beats its teacher. The authors hypothesize that slot-level supervision acts as a powerful regularizer, preventing the smaller model from overfitting to slot assignments and helping it achieve better generalization and sharper mask boundaries.
  • Strict Matching Over-constrains Learning: Counter-intuitively, omitting Hungarian matching and using direct index matching yielded superior results. Strict bipartite matching appears to over-constrain the optimization landscape, hindering the convergence of the student model.

Key Results

  • Efficiency Gains: SlotMatch reduces the parameter count by 3.6× (from 91M to 25.2M parameters) and cuts down FLOPs by 2.7×. This translates to an inference speedup of up to 2.7× depending on the GPU architecture, running nearly twice as fast on an NVIDIA A100.
  • Quantitative Superiority: On the DAVIS 2017 dataset, the SlotMatch student achieved a video mask precision (mBO) of 31.6, vastly outperforming its teacher SlotContrast (11.8). It also achieved state-of-the-art results on MOVi-E and YTVIS-2021.
  • Qualitative Improvements: Visually, SlotMatch successfully mitigates the "over-clustering" problem common in teacher models (where a single object is fragmented into multiple slots) and cleanly recovers small or partially occluded objects that baseline models miss entirely.
Figure 1. Comparison of SLOTCONTRAST (teacher) versus var- ious student versions (including our SLOTMATCH), showing the trade-off between performance (mean Best Overlap or mBO) vs. inference speed (FPS). Circle area indicates parameter count (in millions). SLOTMATCH (cyan) outperforms its teacher, while being nearly twice as fast on NVIDIA A100. Best viewed in color.
Figure 3. Qualitative segmentation results on MOVi-E (left) and YTVIS-2021 (right). The first row shows raw frames; the second and third rows show slots from the student and teacher models, respectively; the final row presents results from our distillation-based SLOTMATCH. SLOTMATCH recovers missed slots, refines object boundaries, and produces sharper, more consistent slots. Mistakes by the student and teacher models are annotated in red, while corrections and additional detections introduced by SLOTMATCH are highlighted in green. Best viewed in color.

Limitations and Future Work

While SlotMatch marks a major step forward, some limitations persist. In highly complex synthetic scenes or under sudden lighting changes, both the teacher and student models can still struggle to detect certain objects in the initial video frames. Additionally, while the student is significantly lighter than the teacher, further optimization and architectural scaling-down are required to make these object-centric models viable for ultra-low-power edge devices and real-time embedded deployment.

Summary updated

BibTeX
@misc{grigore2025slotmatch,
  author = {Diana-Nicoleta Grigore and Neelu Madan and Andreas Mogelmose and Thomas B. Moeslund and Radu Tudor Ionescu},
  title = {{SlotMatch: Distilling Object-Centric Representations for Unsupervised Video Segmentation}},
  year = {2025},
  eprint = {2508.03411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.03411},
}
Figure