Boosting Object Representation Learning via Motion and Object Continuity

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

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: Motivational example: unsupervised object detection models are insufficient for downstream tasks such as classification, exemplified here via SPACE [49] on Atari environments. Top: Example images of SPACE detecting objects on different Atari games. Left: F-score for object detection (blue) and few shot classification accuracy of object encodings via ridge regression (orange, 64 objects per class, 0% accuracy corresponds to no object detected). Right: Two-dimensional t-SNE embedding of object encodings produced by SPACE for Space Invaders.

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: An overview of the MOC training scheme applied to a base object detection model, which provides location and object representations. In our MOC training scheme, (i) motion information (dark blue), is extracted from each frame, allowing to detect objects and directly update the model’s latent location variables (loc). (ii) Object continuity (black + cyan) aligns the encodings (enc) of spatially close objects of consecutive frames using a contrastive loss.

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 improves object representations for the few-shot classification task. Average few-shot accuracy performance (in %) based on latent object representations. We provide a ridge regression model with 1, 4, 16 and 64 encodings per class and test it on a held-out test set. The values are averaged over the 8 investigated Atari-OCTA games for SPACE and Slot Attention (SLAT), with and without MOC. Detailed, per game results are in App. G.2.

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