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 enables unsupervised object discovery in videos by directly processing RGB frames rather than relying on pre-computed optical flow. By enforcing temporal consistency across randomly paired frames, the model learns a sense of "object permanence," allowing it to segment objects even when they stop moving, all while achieving state-of-the-art performance at a blazing 100 FPS.

What Problem Does This Paper Address?

Discovering objects in videos without manual annotations (unsupervised discovery) usually relies on motion cues. Most existing methods use optical flow—a representation of how pixels move between frames—as their primary input. However, this approach has three major flaws:

  1. The "Statics" Problem: If an object stops moving or is partially occluded, it disappears from the optical flow field, leaving the model with no cues to find it.
  2. Texture Loss: Optical flow is a "lossy" encoding that throws away rich texture information, making it difficult to maintain temporal consistency (tracking the same object over time).
  3. Computational Overhead: Calculating dense optical flow is slow, creating a bottleneck for real-time applications.

The authors aim to build a model that uses raw RGB frames to exploit both motion and texture, ensuring that objects are recognized as persistent entities even when they are momentarily still.

Methods

The authors propose the Motion-inductive Object Discovery (MOD) model. Its architecture consists of several key stages:

  • Spatial-temporal Visual Encoder: It uses a SwinV2-T backbone to extract features from individual frames, followed by a Transformer-based global fusion module to build dependencies across the entire video clip.
  • Random-paired Frame Comparator: Instead of just looking at adjacent frames, the model randomly pairs frames from the sequence. This forces the model to estimate motion at different "paces" and even handle static cases (where the same frame is paired with itself), pushing it to rely on temporal coherence rather than just raw pixel shifts.
  • Dual-layered Flow Decoder: Inspired by slot attention, this module decomposes the scene into two layers: foreground and background. It reconstructs the optical flow by compositing these layers using inferred "opacity weights," which effectively serve as the segmentation masks.
Figure 2. Model architecture. Our model first extracts spatial features of consecutive frames by the visual encoder. To jointly model the temporal relation, we aggregate and interact among the multi-frame features with late-fusion. We randomly pair two frames’ visual representations and pass them into the frame comparator to encode relative motion. Then, we decode the flow from random-paired frames. Through iterative routing, we adopt a dual-layer representation for the flow reconstruction, i.e., outputting the foreground and background flows separately, and composing them with inferred opacity weights. The whole training procedure does not require supervision from any mask annotations.

Training Strategy: The model is self-supervised. During training, it uses an off-the-shelf flow estimator (like RAFT) as a "teacher" to provide a reconstruction target. Crucially, it employs a Temporal Consistency Loss, which ensures that the segmentation mask for a specific frame remains the same regardless of which other frame it is paired with for motion estimation.

Datasets

The model was evaluated on three standard benchmarks for unsupervised video object segmentation:

  • DAVIS2016: 50 high-quality video sequences with pixel-accurate annotations.
  • SegTrackv2: 14 sequences featuring challenges like motion blur and complex deformations.
  • FBMS-59: 59 sequences with varied resolutions and multiple moving objects.

For all datasets, the authors followed the standard protocol of merging multi-object annotations into a single foreground mask for evaluation.

Key Insights and Ideas

  • Object Permanence via RGB: By using RGB frames, the model retains texture cues. Even if an object stops moving (becoming invisible in a flow field), its visual features remain, allowing the model to "remember" it.
  • The Power of Random Pairing: Pairing frames at random intervals (e.g., frame 1 with frame 5) provides a much stronger signal for object discovery than just looking at consecutive frames. It helps the model distinguish between transient noise and persistent objects.
  • Efficiency is a Feature: By moving the flow estimation "inside" the model as a training-only induction task, the inference process becomes significantly faster because it no longer needs to wait for external flow pre-computation.
Figure 1. Illustration about Bicycle Motocross (BMX) sequence on SegTrackv2 [38]. The red boxes and the yellow boxes refer to the arm and the back of the player, respectively. Flow-only method [70] fails to track the same region in a temporal consistent fashion since it derives the foreground region directly from current optical flow. However, our methodology of processing a RGB video clip develops a sense of object permanence and solves the issue.
Figure 1 shows how flow-only methods fail when motion cues are weak (yellow/red boxes), whereas MOD maintains the object shape.

Key Results

MOD sets new performance bars for unsupervised methods:

  • Accuracy: On DAVIS2016, it achieved 73.9% mIoU without any post-processing, outperforming the previous state-of-the-art (MG) by 5.8%. With test-time adaptation, this rose to 79.2%.
  • Speed: The model reaches a throughput of 100 FPS on a standard Tesla V100 GPU, making it highly practical compared to flow-dependent pipelines.
  • Ablation Studies: The authors confirmed that both the temporal fusion module and the consistency loss are critical. Removing the temporal fusion dropped DAVIS performance from 73.9% to 68.3%.
Quantitative Comparison

Limitations and Future Work

  • Memory Constraints: Processing multiple consecutive RGB frames simultaneously is memory-intensive, which limited the authors to a maximum window of 7 frames.
  • Single Object Focus: The current dual-layer approach effectively groups all moving things into one "foreground" slot. The authors note that extending this to segment multiple distinct objects (multi-slot discovery) is a promising future direction.
  • Pre-training: The model was trained from scratch. Leveraging large-scale pre-trained visual features could potentially further boost performance and reduce training time.

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