Boosting Object Representation Learning via Motion and Object Continuity

Quentin Delfosse, Wolfgang Stammer, Thomas Rothenbacher, Dwarak Vittal, Kristian Kersting

TL;DR

Researchers have introduced Motion and Object Continuity (MOC), a model-agnostic training scheme that uses temporal cues to supercharge unsupervised object discovery. By teaching models that objects move and persist over time, MOC significantly improves the quality of latent representations, leading to faster training and better performance in downstream tasks like reinforcement learning and few-shot classification.

What Problem Does This Paper Address?

In the quest for human-centric AI, "object-centric" learning is a holy grail. The idea is to have models perceive the world as a collection of distinct objects rather than just a grid of pixels. While recent unsupervised models (like SPACE or Slot Attention) are great at reconstructing images, they often fail when asked to reason about those objects.

The authors identify two main failure modes:

  1. Type I Errors: The model simply fails to detect the object (e.g., missing the ball in Pong).
  2. Type II Errors: The model detects the object but creates a "cluttered" or suboptimal latent representation that makes it hard for a downstream agent to distinguish between different classes of objects.

Most existing models only optimize for reconstruction—they try to redraw the scene perfectly. However, a perfect drawing doesn't guarantee a deep understanding of what the objects actually are.

Fig. 2: Unsupervised models often produce cluttered latent spaces (right) and struggle with detection in simple games like Pong (left).

Methods

The authors propose the MOC training scheme, which can be bolted onto almost any existing object detection architecture. It leverages two fundamental physical intuitions:

  1. Motion Supervision (M): In a dynamic environment, things that move are usually objects. MOC uses optical flow (a technique to estimate pixel movement between frames) to provide the model with "hints" or priors about where objects are located. This helps fix Type I errors.
  2. Object Continuity (OC): Objects don't just pop in and out of existence; they persist and move gradually. MOC introduces a contrastive loss that encourages the model to give the same object similar encodings across consecutive frames. If a "thing" in Frame A is in nearly the same spot in Frame B and looks similar, the model is penalized if its internal representation changes too much. This addresses Type II errors by organizing the latent space.
Fig. 3: The MOC overview. Motion information provides location priors, while the continuity loss aligns object encodings over time.

Datasets

To rigorously test their method, the authors created Atari-OCTA, a new labeled version of the classic Atari 2600 benchmark.

  • Atari-OCTA: Unlike standard Atari datasets, this one includes ground-truth labels for object positions, sizes, and classes (e.g., "player," "missile," "enemy").
  • The evaluation spanned eight diverse games, including Pong, Space Invaders, Boxing, and Ms. Pacman, providing a mix of static and dynamic backgrounds.

Key Insights and Ideas

  • Temporal Cues are "Free" Supervision: We don't need humans to label every frame if we use the inherent structure of video. The fact that objects move and persist provides a powerful, natural supervisory signal.
  • Reconstruction is Not Enough: A model can be a perfect "photocopier" without understanding the scene. By adding the continuity loss, the model is forced to learn identity, not just appearance.
  • Model Agnosticism: MOC isn't a new architecture; it's a training strategy. The authors proved this by applying it to two very different baselines: the VAE-based SPACE and the slot-based Slot Attention.

Key Results

The improvements were dramatic across the board:

  • Object Discovery (Q1): For the SPACE model, average foreground detection (F-score) jumped from 38% to 85%. For Slot Attention, the Adjusted Rand Index (ARI) went from a dismal 4% to 95%.
  • Convergence Speed: MOC-enabled models learned much faster. In SPACE, it took an average of 1,820 steps to reach a 50% F-score without MOC, but only 280 steps with it—a 7x speedup.
  • Representation Quality (Q2 & Q3): The latent spaces became much more organized. This was measured via Adjusted Mutual Information (AMI) and few-shot classification. In Space Invaders, few-shot accuracy was significantly higher even with very few samples.
  • Reinforcement Learning: When used as the "eyes" for an RL agent playing Boxing, the MOC-trained agent outperformed the baseline and even achieved higher average scores than humans.
Fig. 6: MOC significantly boosts few-shot classification accuracy across different sample sizes.

Limitations and Future Work

While MOC is a major step forward, the authors note a few hurdles:

  • Optical Flow Dependency: The current implementation uses a simple optical flow technique. While it works for Atari, more complex, real-world environments would require more sophisticated (and computationally expensive) flow estimators.
  • Static Object Bias: Because MOC relies on motion, it naturally prioritizes moving objects. The authors use a scheduling approach to help the model eventually "see" static objects, but this remains a delicate balance.
  • Stability: The Slot Attention implementation showed higher variance in representation quality compared to SPACE, suggesting that some architectures might need more tuning to fully benefit from the continuity loss.

Future work aims to explore how these object-centric representations can be improved further by incorporating the agent's own actions and rewards directly into the learning process.

Summary updated

BibTeX
@inproceedings{delfosse2023boosting,
  author = {Quentin Delfosse and Wolfgang Stammer and Thomas Rothenbacher and Dwarak Vittal and Kristian Kersting},
  title = {{Boosting Object Representation Learning via Motion and Object Continuity}},
  booktitle = {ECML/PKDD},
  year = {2023},
  url = {https://openreview.net/forum?id=PRpe3Dl8FK},
}
Figure