Skip to main content
QUICK REVIEW

[Paper Review] Task-Agnostic Dynamics Priors for Deep Reinforcement Learning

Yilun Du, Karthik Narasimhan|arXiv (Cornell University)|May 13, 2019
Reinforcement Learning in RoboticsComputer Science38 references10 citations
TL;DR

This paper proposes learning task-agnostic dynamics priors from video data using a novel spatial memory architecture (SpatialNet) to improve sample efficiency and generalization in model-based deep reinforcement learning. By pre-training a frame predictor on diverse physics videos and fine-tuning it on target tasks, the method enables faster policy learning and superior performance—achieving up to 130% higher performance on PhysShooter and 56.5% higher on Asteroids compared to baselines.

ABSTRACT

While model-based deep reinforcement learning (RL) holds great promise for sample efficiency and generalization, learning an accurate dynamics model is often challenging and requires substantial interaction with the environment. A wide variety of domains have dynamics that share common foundations like the laws of classical mechanics, which are rarely exploited by existing algorithms. In fact, humans continuously acquire and use such dynamics priors to easily adapt to operating in new environments. In this work, we propose an approach to learn task-agnostic dynamics priors from videos and incorporate them into an RL agent. Our method involves pre-training a frame predictor on task-agnostic physics videos to initialize dynamics models (and fine-tune them) for unseen target environments. Our frame prediction architecture, SpatialNet, is designed specifically to capture localized physical phenomena and interactions. Our approach allows for both faster policy learning and convergence to better policies, outperforming competitive approaches on several different environments. We also demonstrate that incorporating this prior allows for more effective transfer between environments.

Motivation & Objective

  • Address the challenge of sample inefficiency and poor generalization in model-free deep reinforcement learning.
  • Overcome the difficulty of learning accurate dynamics models from scratch in new environments with limited interaction.
  • Leverage shared physical priors—such as motion, collision, and elasticity—across diverse environments to improve model-based RL.
  • Enable faster and more stable policy learning by initializing dynamics models with pre-trained priors from unstructured video data.
  • Demonstrate improved zero-shot and few-shot transfer performance across different environments by decoupling dynamics model learning from policy learning.

Proposed method

  • Pre-train a frame prediction model (SpatialNet) on a large collection of unstructured videos showing moving objects and physical interactions.
  • Design SpatialNet with a convolutional encoder, a 3D spatial memory block, and a convolutional decoder to preserve fine-grained spatial and temporal dynamics.
  • Use the pre-trained SpatialNet as an initialization for the dynamics model in a model-based RL agent, which then fine-tunes on task-specific experience.
  • Incorporate predicted future frames as additional context into the policy network, similar to the IPA framework, to improve decision-making.
  • Decouple dynamics model learning from policy learning, enabling independent transfer of dynamics priors across environments with different tasks.
  • Apply the method in three domains: PhysWorld (2D physics games), PhysShooter3D (3D rigid-body dynamics), and stochastic Atari games with sticky actions.

Experimental results

Research questions

  • RQ1Can pre-training a frame predictor on diverse physics videos yield a generalizable dynamics prior that improves sample efficiency in RL?
  • RQ2How does using a task-agnostic dynamics prior affect policy learning speed and final performance compared to training from random initialization?
  • RQ3To what extent can a pre-trained dynamics model transfer across environments with different tasks but similar physical dynamics?
  • RQ4Does decoupling dynamics model learning from policy learning improve generalization and transfer performance?
  • RQ5In what scenarios does dynamics prediction provide a performance advantage, and when might it be detrimental?

Key findings

  • The proposed method achieved up to 130% higher performance on the PhysShooter environment compared to the strongest baseline (IPA).
  • On the Atari game Asteroids, the method achieved a 56.5% performance increase over the baseline, with a final score of 2098 (±102) compared to 1340 (±351).
  • Transferring a pre-trained SpatialNet model fine-tuned on a different task (e.g., PhysForage) yielded a 27% performance increase over using only PhysVideos, reaching 53.66 on PhysShooter.
  • Transferring only the dynamics model (without policy) led to better performance (53.66) than transferring both model and policy (40.40), demonstrating the benefit of decoupling.
  • In environments like Pong and Ice Hockey, where agents learned exploitable repetitive strategies, dynamics prediction provided no benefit, confirming that the method’s advantage is context-dependent.
  • The SpatialNet architecture achieved lower frame prediction error and better generalization than prior methods due to its spatial memory mechanism preserving localized physical interactions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.