Motion-inductive Self-supervised Object Discovery in Videos

Shuangrui Ding, Weidi Xie, Yabo Chen, Rui Qian, Xiaopeng Zhang, Hongkai Xiong, Qi Tian

TL;DR

The Motion-inductive Object Discovery (MOD) model segments moving objects in videos completely unsupervised by ingesting consecutive RGB frames directly rather than relying on precomputed optical flow at test time. By learning to reconstruct optical flow between randomly paired frames via a dual-layered slot-attention representation and enforcing temporal mask consistency, MOD achieves state-of-the-art unsupervised video object segmentation while running at real-time speeds (~100 FPS).

What Problem Does This Paper Address?

Unsupervised video object discovery aims to isolate moving foreground objects without relying on human annotations. Most prior methods rely strictly on optical flow as an input modality. However, flow-only models suffer from two major flaws:

  1. Loss of cues during pauses or occlusion: If an object temporarily stops moving or is partially occluded, its motion signal disappears in the optical flow field.
  2. Missing appearance context: Optical flow discards rich surface textures and appearance patterns, making it difficult to maintain temporal consistency and object permanence across time.

Additionally, extracting dense optical flow for every frame pair introduces heavy computational overhead, making real-time inference nearly impossible.

Methods

Instead of treating optical flow as an input at inference, MOD directly takes a clip of consecutive RGB frames ($T=7$) and uses motion merely as a self-supervised training signal:

  • Spatio-Temporal Visual Encoder: Consecutive frames are independently processed by a Swin-Tiny V2 backbone, followed by a Transformer encoder layer that performs temporal cross-frame fusion.
  • Random-Paired Frame Comparator: The model samples arbitrary frame pairs $(i, j)$—including static pairs where $i=j$ and multi-stride transitions. Their features are concatenated and routed through deformable convolutions and Transformer encoders to construct a relative motion representation.
  • Dual-Layered Slot Flow Decoder: A slot-attention module with two learnable slot queries iteratively competes for foreground vs. background representations. A Swin-based decoder outputs two flow layers along with soft opacity maps ($\alpha$), which are composited to form the reconstructed flow. At test time, the binarized opacity map serves directly as the segmentation mask.
  • Self-Supervised Objectives:
  • Flow Reconstruction Loss: Minimizes the $L_2$ error between composited flow and pseudo-ground-truth flow from an off-the-shelf estimator (RAFT), applied only during training.
  • Temporal Consistency Loss: Because masks computed for frame $i$ paired with frame $j$ or $k$ depict the exact same physical frame, their predicted foreground masks are constrained to match via mean-squared error.
  • Entropy Minimization: Pushes soft opacity weights toward binary ($0$ or $1$) decisions.
  • Optional Test-Time Adaptation: Propagates high-confidence keyframe masks across time using self-supervised DINO ViT features and refines boundaries with a dense CRF.
RGB Frames ──► Spatial Encoder ──► Temporal Fusion ──► Pair Comparator ──► Slot Attention ──► Opacity Mask (Segmentation)
                                                                                             └──► Reconstructed Flow (Training only)

Datasets

The authors evaluate MOD across three standard video object segmentation benchmarks:

  • DAVIS2016: 50 high-quality video sequences (3,455 frames) annotated with pixel-level binary masks.
  • SegTrackv2: 14 challenging sequences (947 frames) featuring complex deformation, motion blur, and slow motion.
  • FBMS-59: 59 sequences with variable resolutions, where multi-object annotations are merged into unified foreground targets following standard evaluation protocols.

No manual annotations or synthetic datasets (such as FlyingChairs) are used to train the segmentation network.

Key Insights and Ideas

  • RGB input builds object permanence: By granting the network access to appearance and temporal context simultaneously, the network continues to segment an object even when it slows down, stops, or experiences occlusion.
  • Random-pairing acts as a motion regularizer: Comparing frames at varied temporal strides forces the model to capture motion at varying paces. Comparing identical frames ($i = j$) provides an extreme boundary condition where the model must rely purely on spatial-temporal context rather than motion cues.
  • Flow as a loss, not an input: Shifting optical flow from an input requirement to a reconstruction target bypasses test-time flow estimation entirely, boosting throughput to ~100 FPS on a single GPU.

Key Results

  • DAVIS2016: Without any post-processing, MOD achieves 73.9% $\mathcal{J}$ (mean IoU), outperforming the flow-based baseline Motion Grouping (MG, 68.3%) by +5.6% and synthetic-trained OCLR (72.1%). With DINO-based test-time adaptation, performance rises to 79.2%.
  • SegTrackv2 & FBMS-59: MOD (without post-processing) achieves 62.2% on SegTrackv2 (+3.6% over MG) and 61.3% on FBMS-59 (+8.2% over MG).
  • Efficiency: Eliminating flow computation at inference enables processing speeds around 100 FPS on a standard 32GB Tesla V100 GPU.

Limitations and Future Work

  • Multi-Instance Ambiguity: In its default configuration, MOD focuses on binary foreground-background separation; decomposing distinct individual instances within the foreground remains unresolved.
  • Memory Constraints: Processing sequences of $T$ high-resolution frames jointly through spatial-temporal attention incurs high GPU memory usage, limiting experiments to $T \le 7$ frames.
  • Dependence on Flow Quality During Training: Training quality relies heavily on the pseudo-ground-truth flow estimator; substituting RAFT with an unsupervised flow model (ARFlow) led to a drop of ~14.7% IoU on DAVIS2016.

Summary updated

BibTeX
@inproceedings{ding2023motion,
  author = {Shuangrui Ding and Weidi Xie and Yabo Chen and Rui Qian and XIAOPENG ZHANG and Hongkai Xiong and Qi Tian},
  title = {{Motion-inductive Self-supervised Object Discovery in Videos}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=K5qR1F14qPE},
}
Figure