NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Object-Oriented Dynamics Predictor

Guangxiang Zhu, Zhiao Huang, Chongjie Zhang

TL;DR

The Object-Oriented Dynamics Predictor (OODP) is an unsupervised framework that learns to predict how an environment changes by decomposing it into distinct objects rather than just tracking pixels. By focusing on object-to-object relations and class-specific behaviors, OODP achieves remarkable zero-shot generalization, accurately predicting dynamics in novel environments with layouts it has never seen before.

The Problem: Pixel-Level vs. Object-Level Understanding

In model-based reinforcement learning (RL), an agent tries to learn a "world model"—a way to predict what the next state of the world will look like given its current state and a specific action. Traditionally, these models have focused on pixel-level motion.

The problem with pixel-level models is that they are brittle. If you train a model on a specific level of a game and then move a wall or a ladder slightly, the model often fails because it hasn't learned the underlying logic of the environment; it has only memorized specific patterns of pixels. Humans, by contrast, understand the world as a collection of objects (walls, players, tools) with specific properties. This paper aims to bridge that gap by creating a model that learns object-level dynamics capable of generalizing across entirely different layouts.

Methods: How OODP Works

OODP is an end-to-end neural network composed of three primary modules that work together in an unsupervised fashion:

OODP Architecture Overview
  1. Object Detector: This module decomposes the input image into "masks." It separates the world into static objects (like walls and ladders) and dynamic objects (like the agent). Crucially, it treats objects of the same class (e.g., all ladders) as having the same effect on dynamics.
  2. Dynamics Net: This is the "brain" of the system. It predicts the motion of dynamic objects by looking at their relations with nearby objects. It uses a novel Tailor Module that crops a "horizon" around a dynamic object, exploiting the locality principle—the idea that an object is mostly influenced by what is immediately around it.
  3. Background Extractor: This module identifies the parts of the image that never change (the background), allowing the model to focus its computational power on the moving parts.

The system uses Spatial Transformer Networks (STN) to apply the predicted motion to the object masks and then merges everything back together to "reconstruct" the predicted next frame.

Datasets and Evaluation

The authors evaluated OODP on two main environments to test its ability to generalize:

Training vs. Testing Environments in Monster Kong
  • Monster Kong (Pygame Learning Environment): A game environment where an agent must navigate platforms and ladders. This was used to test "k-to-m" zero-shot generalization (e.g., training on just 2 layouts and testing on 10 completely unseen ones).
  • Mars Rover Navigation: A more complex domain using natural landscape images from NASA. Here, the agent (a rover) must navigate a Martian surface where mountains act as obstacles.

Key Insights

  • Class-Specific vs. Object-Specific: Instead of learning how "Object A" interacts with "Object B," OODP learns how a class of objects (e.g., "Ladders") affects a dynamic agent. This is why it can handle a new room with 50 ladders even if it only saw 2 during training.
  • The Locality Principle: By using the Tailor Module to focus only on neighboring objects, the model avoids being overwhelmed by irrelevant information far away in the scene.
  • Unsupervised Object Discovery: The model doesn't need a human to tell it what an "object" is. Through the combination of reconstruction loss and entropy loss, it naturally learns to segment the world into meaningful, interpretable masks.
  • Interpretability: Unlike "black box" pixel predictors, OODP’s intermediate layers are visually interpretable. You can actually look at the masks and see that the model has correctly identified "walls" versus "agents."

Key Results

OODP significantly outperformed state-of-the-art baselines (like CDNA and the AC Model) in generalization tasks:

  • Zero-Shot Accuracy: In Monster Kong, OODP achieved 0.86 accuracy (0-pixel error) after training on only 3 environments. Baselines struggled to reach 0.20 accuracy under the same conditions.
  • Sample Efficiency: OODP can learn accurate dynamics from very few environments, whereas pixel-based models tend to overfit to the specific training layouts.
  • Robustness: The model remained effective even when object appearances were changed (e.g., adding "graffiti" to walls or changing lighting), thanks to the robust feature extraction of its CNN-based detector.

Limitations and Future Work

While OODP is a leap forward for generalization, the authors note several areas for improvement:

  • Long-Term Prediction: The current model focuses on the immediate next frame; extending this to long-term "imagination" is a future goal.
  • Abrupt Changes: The model currently struggles with objects that suddenly appear or disappear (like a projectile being fired).
  • Moving Cameras: The framework assumes a static background. Future versions would need to incorporate camera motion prediction for first-person or scrolling games.
  • Memory: Integrating memory networks (like LSTMs) could help the model handle partially observable environments where objects might be hidden behind others.

Summary updated

BibTeX
@inproceedings{zhu2018object,
  author = {Guangxiang Zhu and Zhiao Huang and Chongjie Zhang},
  title = {{Object-Oriented Dynamics Predictor}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=HJZGE_WuZr},
}
Figure