Unsupervised Intuitive Physics from Past Experiences

Sébastien Ehrhardt, Aron Monszpart, Niloy J. Mitra, Andrea VedaldiarXiv 2019

Abstract

This paper presents an unsupervised meta-learning framework designed to acquire "intuitive physics" directly from raw video data. By summarizing past experiences into compact "dynamic images," the model infers latent environmental properties—such as obstacle geometry and appearance—without manual labels or ground-truth physical parameters. The system employs a predictor-generator architecture to simulate future states and render them into realistic frames. Evaluated on diverse 2.1D synthetic environments, the model demonstrates strong generalization across time, space, and object counts, performing comparably to supervised interaction networks.

Introduction

Humans and animals possess an "intuitive physics"—a sense of how the world works that allows us to predict the trajectory of a falling cup or a bouncing ball. Crucially, we do not just apply general rules; we adapt to new environments "on the fly." For instance, observing a ball pass under a curtain immediately informs us that the curtain is not a solid wall.

Existing AI approaches to physics often require heavy supervision (labels for every object's position and velocity) or rely on hard-coded physics engines. This research tackles the challenge of unsupervised meta-learning for physics: how a system can learn both general laws of motion and specific, hidden properties of a new environment just by watching a few examples.

Methodology

The framework is structured as a meta-learning task consisting of an "inner" and "outer" learning loop. The core innovation lies in how the model processes and utilizes past experiences to inform future predictions.

Compact Experience Summarization

To avoid the computational expense of heavy Recurrent Neural Networks (RNNs) for processing past videos, the authors utilize Dynamic Images. A dynamic image is a single image that encodes motion by taking a weighted average of video frames. This is paired with a Median Image to capture the static background, providing a lightweight yet informative summary of the environment's physical layout.

The model architecture, illustrating the flow from experience summarization to state prediction and frame generation.

The Meta-Learning Pipeline

  1. Meta-Learning Module ($\Psi$): This module takes the summarized experiences and extracts two scenario-specific tensors: an obstacle mask ($m$), which identifies where objects might bounce, and an appearance tensor ($a$), which captures visual characteristics.
  2. The Predictor ($\Phi$): An auto-regressive RNN evolves the physical state of the system. It uses the current state and the inferred obstacle mask $m$ to predict the next physical state.
  3. The Generator ($g$): A conditional generator renders the predicted physical state back into a realistic video frame, using the appearance tensor $a$ to handle complex backgrounds.

Unsupervised Training

The model is trained using video prediction error. It minimizes the difference between its predicted frames and the actual video using a combination of standard $L_2$ loss and a perceptual loss (based on VGG-16 features) to ensure visual sharpness and structural accuracy.

Experiments and Results

The researchers evaluated the model across several synthetic 2.1D environments with varying levels of complexity, including rectangular obstacles (R2, R4), curved obstacles (C), and textured backgrounds (C+T).

Sample frames from the various experimental datasets, including rectangular, curved, and textured environments.

Key Findings

  • Emergent Representations: Without explicit supervision, the model learns to generate internal "obstacle masks" that closely match the actual physical boundaries of the environment.
  • Competitive Performance: The unsupervised model performs nearly as well as "Interaction Networks," which are trained with full access to ground-truth object positions and velocities.
  • Rapid Adaptation: Trajectory prediction error drops dramatically after the model sees just one experience run ($N=1$), demonstrating the efficiency of the meta-learning approach.
  • Zero-Shot Spatial Scaling: Models trained on $64 \times 64$ pixel boards successfully predicted motion on $128 \times 128$ boards, proving the learned physical laws are spatially invariant and local rather than just memorized paths.

Discussion and Future Work

While the model demonstrates a robust ability to infer physics from pixels, it currently operates in 2.1D top-down environments. The authors note that moving to non-frontal, 3D views of the physical world is a significant next step. Additionally, while the model handles multiple objects, it occasionally exhibits artifacts during direct multi-body elastic collisions, suggesting room for improvement in modeling complex local interactions. Future work will explore more sophisticated summary functions to handle the visual and physical complexity of the real world.

Summary updated

BibTeX
@misc{ehrhardt2019unsupervised,
  author = {Sébastien Ehrhardt and Aron Monszpart and Niloy J. Mitra and Andrea Vedaldi},
  title = {{Unsupervised Intuitive Physics from Past Experiences}},
  year = {2019},
  eprint = {1905.10793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.10793},
}
Figure