Learning Long-term Visual Dynamics with Region Proposal Interaction Networks

Haozhi Qi, Xiaolong Wang, Deepak Pathak, Yi Ma, Jitendra Malik

TL;DR

Researchers from UC Berkeley, UCSD, and CMU have developed Region Proposal Interaction Networks (RPIN), a model that predicts long-term physical object movements directly from video. By combining classic computer vision techniques like RoIPooling with interaction networks, they’ve created a "middle ground" that outperforms previous methods in both prediction accuracy and the ability to plan complex tasks, such as multi-cushion billiards.

The Challenge of Long-Term Visual Dynamics

Predicting how objects will move and interact over a long period—known as "long-term visual dynamics"—remains a significant hurdle in modern machine learning. Current approaches usually fall into two extremes:

  1. Pixel-space models: These attempt to predict the next frame of a video pixel-by-pixel. They often become "blurry" over time and struggle to generalize to new scenes.
  2. State-space models: These use abstract coordinates (like X, Y positions) to calculate Newtonian physics. While accurate, they are detached from raw visual input and often require "cheating" by having access to underlying simulator data.

The core challenge is creating a model that can look at a raw image, understand that distinct "objects" exist, and predict their complex interactions (collisions, bouncing, stacking) over several seconds without losing track of reality.

Visual comparison of ground-truth trajectories versus RPIN predictions in real-world billiards and PHYRE environments.

Methods: Region Proposal Interaction Networks (RPIN)

To bridge the gap between pixel-level and state-level prediction, the authors propose RPIN, which operates in a latent "region-proposal" feature space.

The RPIN architecture, showcasing the use of RoIPooling to extract object features and a Convolutional Interaction Network to model object dynamics over time.

The architecture consists of three main stages:

  • Object-Centric Representation: Instead of looking at the whole image or just a tiny crop, RPIN uses RoIPooling (a staple in object detection). This allows the model to extract features for a specific object while still "seeing" the immediate context around it. Context is crucial; previous "cropping" methods failed because they didn't know where walls or obstacles were.
  • Convolutional Interaction Networks (CIN): Standard Interaction Networks use simple MLPs (Multi-Layer Perceptrons) to model how objects affect each other, treating objects as point-masses. RPIN replaces these with convolutions. This key innovation preserves the spatial structure and shape of the object within its feature map, allowing the network to understand that an object's shape affects how it interacts with its environment.
  • Trajectory Prediction: The model reasons about interactions over the previous $k$ time steps to predict the future location and shape (mask) of every object in the scene.

Datasets and Evaluation

The model was rigorously evaluated across four diverse datasets:

  • PHYRE: A physical reasoning benchmark where an agent must solve puzzles (e.g., "make the green ball touch the blue wall").
  • ShapeStacks (SS): A dataset of various 3D shapes (cubes, cylinders) being stacked and potentially falling.
  • Simulation Billiards (SimB): A controlled environment used to test generalization to different numbers of balls.
  • Real World Billiards (RealB): Professional "Three-cushion Billiards" videos from YouTube, testing the model on noisy, real-world visual data.

Key Results and Insights

By treating images as a "window into the world" rather than just a grid of pixels to be reconstructed, RPIN gains the benefits of object-level reasoning without losing the rich information present in visual data. This approach yielded several impressive results:

  • Massive Error Reduction: On the challenging PHYRE dataset, RPIN reduced prediction error by 75% compared to the best previous baselines.
  • Superior Planning: In tasks requiring a single "shot" to solve a puzzle (like billiards), RPIN achieved state-of-the-art performance, significantly outperforming deep reinforcement learning agents (DQN).
  • Generalization: The model showed a remarkable ability to generalize. For example, a model trained on 3 billiard balls could still accurately predict dynamics when 5 balls were placed on the table—a feat that "Global Encoding" models cannot perform.
  • Long-Horizon Stability: While baseline models often saw balls "penetrating" walls or other objects after a few seconds, RPIN maintained physical plausibility over much longer durations.

Limitations and Future Work

While RPIN represents a significant step forward, it has limitations. The current version requires object bounding boxes as input. While these can be provided by an off-the-shelf detector, the model is not yet fully "end-to-end" from raw pixels without any prior object knowledge. Additionally, the model assumes static environment parts (like the table and walls) are rendered from the initial frame, making dynamic environments a future challenge.

Ultimately, the authors suggest that the next step is applying these long-term "intuitive physics" models to real-world robotic manipulation and control.

Summary updated

BibTeX
@inproceedings{qi2021learning,
  author = {Haozhi Qi and Xiaolong Wang and Deepak Pathak and Yi Ma and Jitendra Malik},
  title = {{Learning Long-term Visual Dynamics with Region Proposal Interaction Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=oO7zyKgWM7y},
}
Figure