COPHY: Counterfactual Learning of Physical Dynamics

Fabien Baradel, Natalia Neverova, Julien Mille, Greg Mori, Christian Wolf

Introduction

Predicting the future of a physical system is a fundamental challenge in artificial intelligence. While standard video prediction models can extrapolate motion from initial frames, they often fail when faced with hidden physical properties like mass or friction. True physical reasoning requires counterfactual thinking: the ability to predict "what would happen if" a scene were altered.

In the real world, many physical properties are "confounders"—unobservable from a static image. To predict how a tower will fall if a specific block is moved, an agent must first observe the tower's behavior in its original state to infer these hidden properties. The CoPhy paper introduces a new benchmark and a neural architecture, CoPhyNet, designed to bridge this gap by performing causal inference on physical dynamics.

The CoPhyNet Architecture

CoPhyNet is designed to handle the causal chain of counterfactuals: given an observed sequence $(A \to B)$ and a hypothetical change to the start $(C = \text{do}(A))$, the model predicts the new outcome $D$.

An intervention on a block tower represented by the 'do' operator.

The pipeline consists of three main stages:

  1. De-rendering: A CNN detects objects and estimates their 3D positions from raw RGB input.
  2. Unsupervised Confounder Estimation: The model observes the original sequence $(A, B)$. It uses a Graph Convolutional Network (GCN) to model spatial interactions and a Recurrent Neural Network (RNN) to distill these observations into a latent representation $U$. This $U$ captures hidden "confounders" like mass and friction without explicit labels.
  3. Counterfactual Prediction: To predict the alternative future $D$, the model takes the modified initial state $C$ and the latent vector $U$. It employs a gated mechanism to predict "whether-causation" (stability) and "how-causation" (3D trajectory).

The CoPhy Benchmark

To evaluate this capability, the authors introduced the CoPhy Benchmark, a large-scale synthetic dataset comprising 300,000 experiments across three scenarios: BlocktowerCF, BallsCF, and CollisionCF.

The observed sequence of bouncing balls from initial state X0 to final state XT.

The benchmark is designed to be "bias-free." For any given setup, multiple outcomes are possible depending on hidden confounders. This ensures that a model cannot succeed by memorizing visual patterns; it must perform genuine causal inference.

Experimental Results

CoPhyNet demonstrates significant improvements over standard feedforward models like Interaction Networks (IN) and Network Physics Engines (NPE). These baselines typically fail because they cannot account for the hidden confounders that CoPhyNet extracts from the "original" sequence.

A key finding was the comparison to human performance. In the BlocktowerCF task, CoPhyNet achieved a 2D pixel error of 28.25, significantly outperforming human participants, who averaged an error of 54.54. Humans tend to rely on simple inductive biases (e.g., assuming stability) rather than calculating the physical implications of an intervention. Furthermore, the model showed a strong ability to generalize to unseen scenarios, such as predicting the behavior of 4-block towers after being trained only on 3-block towers.

Conclusion and Future Work

While CoPhyNet represents a major step forward in counterfactual reasoning, several challenges remain. The current model relies on a synthetic 3D environment and a pre-defined de-rendering module. Future work will need to address the "sim-to-real" gap, where visual data is noisier and dynamics are more complex. Additionally, moving toward a system that discovers objects and properties in a completely unsupervised, pixel-to-pixel fashion remains a frontier for physical AI.

Summary updated

BibTeX
@inproceedings{baradel2020cophy,
  author = {Fabien Baradel and Natalia Neverova and Julien Mille and Greg Mori and Christian Wolf},
  title = {{COPHY: Counterfactual Learning of Physical Dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=9BG7zQhaYIx},
}
Figure