Learning Long-term Visual Dynamics with Region Proposal Interaction Networks

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

TL;DR

Region Proposal Interaction Networks (RPIN) enable accurate, long-term physical dynamics prediction directly from raw video by reasoning in a latent, object-centric feature space. By combining the spatial awareness of RoIPooling with convolutional interaction reasoning, RPIN significantly outperforms prior methods in complex planning tasks—like multi-cushion billiards—where an agent must commit to a single action and predict its consequences far into the future.

What Problem Does This Paper Address?

Predicting how the physical world evolves is a cornerstone of "physical common sense." However, current AI models struggle with long-term visual dynamics. Most existing approaches fall into two extremes:

  1. Pixel-space prediction: These models try to predict future frames pixel-by-pixel. They often produce blurry results and fail to capture long-range interactions because they get bogged down in low-level details like optical flow.
  2. State-space prediction: These models reason about abstract coordinates (e.g., $x, y$ positions). While efficient, they are often detached from raw sensory input and fail in complex real-world environments where "states" aren't easily defined.

Furthermore, many models rely on Model Predictive Control (MPC), which involves rapid re-planning at every step. This "side-steps" the long-term prediction problem. RPIN targets scenarios where re-planning is impossible—such as hitting a cue ball in "Three-cushion Billiards"—requiring the model to simulate a complex chain of collisions accurately over a long horizon from a single initial action.

Methods

The authors propose a middle ground: treating images as a window into an object-based world. Their architecture, RPIN, consists of three main stages:

  1. Object-Centric Representation: The model uses an Hourglass encoder to extract high-resolution feature maps from input frames. It then applies RoIPooling (Region of Interest Pooling)—a staple of object detection—to extract $d \times h \times w$ feature maps for each object. Unlike prior methods that flatten objects into simple vectors, RPIN preserves spatial information and, crucially, the surrounding environmental context.
  2. Convolutional Interaction Networks (CIN): Traditional Interaction Networks use Multi-Layer Perceptrons (MLPs) to reason about object relations. RPIN introduces CIN, which uses convolutions on the 3D object feature tensors. This allows the model to utilize spatial information to better predict changes in an object's shape and precise location during interactions.
  3. Long-term Rollout: The model predicts the next latent feature map based on a history of $k$ steps. These predicted features are then decoded into future bounding boxes and binary masks.
Figure 2: Our Region Proposal Interaction Network. Given N frames as inputs, we forward them to an encoder network, and then extract the foreground object features with RoIPooling (different colors represent different instances). We then perform interaction reasoning on top of the region proposal features (gray box on the bottom right). We predict each future object feature based on the previous k time steps. We then estimate the object location from each object feature.

Datasets

The model was evaluated on four diverse datasets:

  • PHYRE: A challenging benchmark for physical reasoning where a red ball must be placed to trigger a specific goal (e.g., making a green ball touch a purple one).
  • ShapeStacks (SS): A dataset of stacked geometric primitives (cubes, cylinders) that eventually collapse.
  • Simulation Billiards (SimB): A controlled environment used to test generalization to different numbers of objects and ball sizes.
  • Real World Billiards (RealB): Professional three-cushion billiards videos harvested from YouTube, providing a test for real-world visual complexity.

Key Insights and Ideas

  • Context is King: By using RoIPooling instead of simple image crops, the object features implicitly encode the "environment" (like nearby walls or obstacles). This is why RPIN succeeds where "Object Masking" or "Cropped Image" baselines fail—it knows where the boundaries are.
  • Spatial Reasoning via Convolutions: Moving from MLPs to Convolutions for interaction reasoning (CIN) provides a 10-40% performance boost. Preserving the 2D structure of the object feature map allows the network to "see" how an object's orientation or shape influences its trajectory.
  • Accurate Long-term "Intuition": As shown in Figure 1, the model's predictions don't always perfectly align with ground-truth pixels over 10+ seconds, but they maintain physical plausibility, providing a "strong signal" for successful planning.
Figure 1: Two example of long-term dynamics prediction tasks. Left: three-cushion billiards. Right: PHYRE intuitive-physics dataset (Bakhtin et al., 2019). Our proposed approach makes accurate long-term predictions that do not necessarily align with the ground truth but provide strong signal for planning.

Key Results

  • Massive Error Reduction: On the PHYRE dataset, RPIN reduced prediction error by 75% compared to the best baseline.
  • Superior Planning: In the PHYRE reasoning benchmark, RPIN achieved state-of-the-art performance, outperforming strong baselines like DQN by roughly 8 points in within-task generalization.
  • Generalization: The model generalizes remarkably well. A model trained on 3 balls in a simulator can successfully predict dynamics for 5 balls without any additional training.
  • Horizon Extension: RPIN maintains significantly lower error than baselines when predicting twice as far into the future as it was trained for (see Table 1).
Table 1: We compare our method with different baselines on all four datasets. The left part shows the prediction error when rollout timesteps is the same as training time. The right part shows the generalization ability to longer horizon unseen during training. The error is scaled by 1,000. Our method has significantly improvements on all of the datasets

Limitations and Future Work

  • Input Requirements: The model currently requires object bounding boxes as input. While these can be provided by an off-the-shelf detector (as done in the RealB experiments), a fully end-to-end system that discovers objects unsupervised would be a powerful extension.
  • Deformable Objects: The current focus is on rigid or semi-rigid bodies. Reasoning about highly deformable objects (like cloth or fluids) in a region-proposal space remains an open challenge.
  • Robotic Integration: The authors suggest that applying these long-term "intuitive physics" models to real-world robotic manipulation is a promising next step.

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