Skip to main content
QUICK REVIEW

[Paper Review] Learning to Fly via Deep Model-Based Reinforcement Learning

Philip Becker-Ehmck, Maximilian Karl|arXiv (Cornell University)|Mar 19, 2020
Reinforcement Learning in RoboticsComputer Science59 references24 citations
TL;DR

This paper presents a model-based reinforcement learning approach that trains a quadrotor controller entirely from raw sensor data using a learned latent dynamics model, enabling end-to-end flight control with under 30 minutes of real-world experience. The method uses differentiable, stochastic trajectory rollouts and online inference on a Raspberry Pi, achieving real-time control without prior physics knowledge or external simulators.

ABSTRACT

Learning to control robots without requiring engineered models has been a long-term goal, promising diverse and novel applications. Yet, reinforcement learning has only achieved limited impact on real-time robot control due to its high demand of real-world interactions. In this work, by leveraging a learnt probabilistic model of drone dynamics, we learn a thrust-attitude controller for a quadrotor through model-based reinforcement learning. No prior knowledge of the flight dynamics is assumed; instead, a sequential latent variable model, used generatively and as an online filter, is learnt from raw sensory input. The controller and value function are optimised entirely by propagating stochastic analytic gradients through generated latent trajectories. We show that "learning to fly" can be achieved with less than 30 minutes of experience with a single drone, and can be deployed solely using onboard computational resources and sensors, on a self-built drone.

Motivation & Objective

  • To enable end-to-end training of a quadrotor controller without prior knowledge of drone dynamics or engineered simulators.
  • To reduce reliance on extensive real-world rollouts by leveraging a learned dynamics model for data-efficient policy optimization.
  • To deploy the entire control pipeline—including model inference and policy execution—onboard a low-cost embedded system (Raspberry Pi 4) using only raw sensor inputs.
  • To demonstrate that a controller trained in a learned simulator can generalize to real-world flight with partial and noisy observations.
  • To close the simulation-to-reality gap by training the dynamics model directly from raw sensor sequences, avoiding the need for hand-designed simulators.

Proposed method

  • A variational inference-based latent state-space model (LSSM) is trained end-to-end from raw sensor observations (e.g., IMU, GPS) to represent the drone's dynamics in a low-dimensional latent space.
  • The dynamics model is differentiable and used to generate stochastic trajectories for policy optimization via backpropagation through stochastic variables using the reparameterization trick.
  • The controller and value function are trained using stochastic analytic gradients by propagating through the learned dynamics model and latent trajectories.
  • An online inference network (filter) estimates the current latent state from observations using a conditional posterior distribution, enabling real-time state estimation on the drone.
  • The policy is trained via a differentiable reinforcement learning algorithm (e.g., SAC or PPO-like) using rollouts from the learned model, with rewards shaped from the latent state.
  • All components—dynamics model, inference network, policy, and value function—are implemented as deep neural networks and optimized jointly using stochastic gradient descent.

Experimental results

Research questions

  • RQ1Can a drone be trained to fly to a goal using only raw sensor data and no prior knowledge of its dynamics or physics?
  • RQ2How effective is a learned latent dynamics model in enabling data-efficient, real-time control on a real drone with minimal real-world interaction?
  • RQ3Can a model-based RL policy trained in a learned simulator generalize to real-world deployment without sim-to-real domain randomization or fine-tuning?
  • RQ4What is the computational and memory overhead of running the full model-based control pipeline onboard a low-power embedded system like a Raspberry Pi 4?
  • RQ5To what extent can a differentiable, end-to-end learned dynamics model replace the need for handcrafted simulators in robotic control?

Key findings

  • The controller was successfully trained using only 25,000 model steps (equivalent to ~30 minutes of real-world flight) on a single drone, demonstrating high data efficiency.
  • The entire control pipeline, including the dynamics model, inference network, and policy, was deployed and executed in real time on a Raspberry Pi 4 with onboard sensors.
  • The method achieved stable, goal-directed flight using only raw IMU and GPS data, without requiring full-state observations or prior knowledge of the drone’s dynamics.
  • The learned latent dynamics model enabled accurate state estimation under noisy and partial observations, supporting robust online control.
  • The approach outperformed model-free baselines in sample efficiency and demonstrated generalization across different drone configurations without architectural changes.
  • The use of stochastic analytic gradients through the learned model enabled effective policy optimization without relying on reward shaping or domain randomization.

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.