Visual Interaction Networks.

Nicholas Watters, Andrea Tacchetti, Theophane Weber, Razvan Pascanu, Peter W. Battaglia, Daniel Zoran

Abstract

DeepMind researchers have developed the Visual Interaction Network (VIN), a model that learns to predict the future trajectories of physical objects directly from raw video frames. By combining a convolutional "perceptual front-end" with a relational "dynamics predictor," the VIN can infer hidden properties like mass and the location of invisible objects, outperforming even models that have access to perfect ground-truth data.

Introduction

Humans possess an incredible "intuitive physics" engine; we can watch a ball fly through the air and instinctively know where to move our hands to catch it. In contrast, traditional AI and robotics systems usually require explicit, hand-coded measurements (like exact coordinates and velocities) to make such predictions. The challenge is bridging the gap between vision (raw pixels) and reasoning (physical laws). How can a machine look at a messy video and "understand" the underlying forces, masses, and interactions well enough to predict what happens next?

Methods

The VIN architecture is a hybrid of two powerful neural network concepts:

  1. Visual Encoder (The "Eyes"): A Convolutional Neural Network (CNN) that processes a sequence of three video frames. It maps pixels into a "state code"—a latent representation for each object in the scene that captures its position and velocity.
  2. Dynamics Predictor (The "Brain"): Based on an Interaction Network (IN), this component reasons about objects and their relations (e.g., "Object A is pulling Object B"). The model uses temporal offset aggregation, looking back at multiple previous time steps to handle varying movement speeds.
  3. State Decoder: A simple linear layer that translates internal "state codes" back into human-readable coordinates and velocities.

The entire system is trained end-to-end, where the visual encoder learns to identify objects useful for the dynamics predictor, and the dynamics predictor learns physical laws based on the encoder's output.

The Visual Interaction Network architecture, showing the flow from input frames through encoded state codes to predicted future states.

Experimental Setup

The researchers tested the VIN on several 2D simulated physical systems rendered against complex CIFAR-10 backgrounds:

  • Springs: Objects connected by invisible springs.
  • Gravity: Objects attracting each other via Newton’s Law.
  • Billiards: Elastic collisions with each other and walls.
  • Magnetic Billiards: Charged particles repelling each other.
  • Drift: Objects moving at constant velocity.

They also introduced "hidden property" challenges, such as Springs with Invisibility (inferring a masked object's location) and Variable Mass (accounting for different object sizes during collisions).

Results and Key Insights

The VIN consistently outperformed standard Visual RNNs and LSTMs across all tested scenarios. On 3-object datasets, the VIN achieved accuracy within 6% of the frame width even after objects traversed the entire screen.

Comparison of Inverse Normalized Loss across different physical systems and conditions. The VIN (red) consistently outperforms Visual LSTM (blue) and Visual RNN (green) baselines.

The "Noise Advantage"

A surprising finding was that the VIN often outperformed models trained on "perfect" ground-truth state data. The visual encoder's natural noise forces the dynamics predictor to be robust, preventing the "compounding error" problem where small initial mistakes lead to total prediction collapse over time.

Implicit Inference

The model demonstrates an ability to "hallucinate" unseen properties. In the "Invisible" dataset, the VIN successfully located hidden objects to within 4% of the frame width simply by observing the anomalous movement of visible objects.

Conclusion

The Visual Interaction Network demonstrates that factored representations—treating a scene as a set of interacting objects—are key to generalizing physical laws from pixels. While currently limited to synthetic 2D data, the VIN's ability to generate accurate long-term rollouts and infer hidden properties suggests a path toward more capable AI agents in 3D environments. Future work will focus on integrating these physical predictions into reinforcement learning agents for complex planning tasks.

Summary updated

BibTeX
@inproceedings{watters2017visual,
  author = {Nicholas Watters and Andrea Tacchetti and Theophane Weber and Razvan Pascanu and Peter W. Battaglia and Daniel Zoran},
  title = {{Visual Interaction Networks.}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=HkE32dZ_ZS},
}
Figure