Physical Reasoning Using Dynamics-Aware Models

Eltayeb Ahmed, Anton Bakhtin, Laurens van der Maaten, Rohit GirdharOpenReview 2021

Abstract

A common approach to solving physical reasoning tasks is to train a value learner on example tasks. A limitation of such an approach is that it requires learning about object dynamics solely from reward values assigned to the final state of a rollout of the environment. This study aims to address this limitation by augmenting the reward value with self-supervised signals about object dynamics. Specifically, we train the model to characterize the similarity of two environment rollouts, jointly with predicting the outcome of the reasoning task. This similarity can be defined as a distance measure between the trajectory of objects in the two rollouts, or learned directly from pixels using a contrastive formulation. Empirically, we find that this approach leads to substantial performance improvements on the PHYRE benchmark for physical reasoning (Bakhtin et al., 2019), establishing a new state-of-the-art.

Introduction

Physical reasoning—the ability to predict how objects will interact under forces like gravity and momentum—is a cornerstone of intelligent behavior. In artificial intelligence, this is often framed as a reinforcement learning problem where an agent must solve puzzles by placing objects in a scene. Traditional "dynamics-agnostic" models treat the environment as a black box, learning only from the final success or failure of an action. While "dynamics-modeling" approaches attempt to predict future states frame-by-frame, they are often computationally expensive and struggle with the chaotic nature of physical systems.

This research proposes a middle path: Dynamics-Aware Deep Q-Networks. By augmenting standard value learners with self-supervised signals from simulator rollouts, models can learn to "feel" the physics of a scene without the overhead of explicit future prediction.

Methodology

The core innovation is the addition of an auxiliary "dynamics-aware" loss function to a standard ResNet-based DQN. This loss encourages the model to learn internal representations that reflect the physical consequences of an action. The researchers explored two primary implementations:

  1. Hand-crafted Loss: Utilizes ground-truth simulator data (e.g., object coordinates) to train the model to recognize when different actions lead to physically similar trajectories.
  2. Self-supervised Loss: A pixel-based approach using a contrastive formulation. The model learns to match an initial scene-action pair to a "rollout embedding" that summarizes the visual execution of the simulation.

Importantly, these auxiliary losses are only utilized during the training phase. At inference, the model remains as computationally efficient as a standard DQN.

Ablation studies showing the impact of auxiliary loss, projection layers, and temporal frame selection on performance.

Experimental Results

The approach was evaluated on the PHYRE (PHysical REasoning) benchmark, covering both within-template and cross-template generalization. The dynamics-aware model achieved a new state-of-the-art, reaching a score of 86.2 AUCCESS on the PHYRE-1B within-template setting, significantly outperforming baseline DQNs (~77.6) and previous leaders like RPIN.

Ablation studies (Figure 1) demonstrate that the choice of combination functions and the number of bins in the similarity measure are critical to performance. Interestingly, the self-supervised pixel-based approach performed as well as, and sometimes better than, the hand-crafted approach that had access to perfect object coordinates.

Qualitative Analysis: Ruling Out the Impossible

One of the most significant advantages of dynamics awareness is the model's ability to identify "dead zones" in the action space. While a baseline DQN might suggest actions that are physically unviable (e.g., ignoring the effect of a slanted floor), the dynamics-aware model develops a physical intuition that allows it to focus on viable trajectories.

Visualization of action space similarity thresholds. The dynamics-aware model (Ours) more accurately clusters viable actions compared to the baseline, effectively filtering out physically impossible outcomes.

As shown in Figure 6, the dynamics-aware model produces much cleaner action space representations. By setting similarity thresholds, the model can isolate the specific cluster of actions that lead to the desired physical outcome, whereas the baseline model remains confused by physically irrelevant variations.

Conclusion

By bridging the gap between pure trial-and-error learning and explicit dynamics modeling, this work establishes a robust framework for physical reasoning. The resulting models are not only more accurate but also maintain the inference speed required for real-time applications. Future research will look toward extending these dynamics-aware representations to 3D environments and complex materials like fluids or deformable objects.

Summary updated

BibTeX
@misc{ahmed2021physical,
  author = {Eltayeb Ahmed and Anton Bakhtin and Laurens van der Maaten and Rohit Girdhar},
  title = {{Physical Reasoning Using Dynamics-Aware Models}},
  year = {2021},
  eprint = {2102.10336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.10336},
  howpublished = {OpenReview},
}
Figure