Dream to Fly: Model-Based Reinforcement Learning for Vision-Based Drone Flight

Angel Romero, Ashwin Shenai, Ismail Geles, Elie Aljalbout, Davide Scaramuzza · OpenReview

TL;DR

This paper presents a novel approach to autonomous drone flight for racing, enabling drones to learn complex maneuvers directly from raw camera pixels to control commands using model-based reinforcement learning (MBRL) with DreamerV3. This method bypasses the need for intermediate representations or imitation learning, achieving agile flight and demonstrating an emergent "perception-aware" behavior where the drone naturally focuses on relevant visual cues.

What Problem Does This Paper Address?

Autonomous drone racing is a demanding benchmark for AI, pushing the boundaries of perception, planning, and control. While human pilots navigate these complex tracks using only visual input from a single camera, existing AI approaches often struggle. Many successful AI systems rely on simplifying the visual input by extracting intermediate representations (like binary masks of gates) or require extensive pre-training with human demonstrations (imitation learning). This paper tackles the challenge of training an AI agent to fly a drone through a race track directly from raw, high-dimensional pixel observations to low-level control commands, mimicking human pilots and avoiding the need for explicit state estimation or prior human guidance.

Methods

The core of this work is the application of DreamerV3, a state-of-the-art model-based reinforcement learning (MBRL) algorithm, to the problem of vision-based drone flight. MBRL agents learn a "world model" of the environment's dynamics, allowing them to "imagine" future states and plan actions within this learned model. This is in contrast to model-free methods (like PPO or SAC) that learn directly from real-world interactions.

Key aspects of their approach include:

  • End-to-End Pixel-to-Command: The system takes raw RGB camera images as input and outputs control commands (collective thrust and body rates) without any intermediate processing or feature extraction.
  • DreamerV3 Architecture: This involves two main components:
  • World Model: Learns a compact, latent representation of the environment's dynamics using a Recurrent State Space Model (RSSM). This model predicts future states, rewards, and whether an episode continues.
  • Actor-Critic Policy: Trained within the learned world model using "imagined" trajectories. This allows for efficient learning from simulated experiences generated by the world model, significantly reducing the need for real-world interactions.
  • Emergent Perception-Aware Behavior: A crucial finding is that the learned policy naturally develops a behavior where the drone's camera actively steers towards visually rich areas, specifically the racing gates. This occurs without any explicit reward shaping to encourage such viewing behavior.

Datasets

The paper primarily uses a simulated environment for training and evaluation. This simulation environment combines Flightmare and Agilicious for realistic quadrotor dynamics and track generation, integrated with the Habitat simulator for high-speed, in-the-loop rendering. The input images are resized to 64x64 RGB pixels.

For real-world validation, they use a physical quadrotor in a hardware-in-the-loop (HIL) setup. This means the drone's sensors receive rendered images from the simulator, and the control commands generated by the learned policy are sent to the real drone.

Key Insights and Ideas

  • MBRL's Sample Efficiency Advantage: DreamerV3, as an MBRL approach, significantly outperforms model-free methods like PPO and SAC in learning complex visuomotor tasks from pixels. This highlights the power of learning a world model for efficient exploration and skill acquisition.
  • The Power of End-to-End Learning: By training directly from pixels to commands, the system automatically learns to focus on relevant visual information. This leads to the emergent "perception-aware" behavior, where the drone's camera actively seeks out gates, a behavior that previously required explicit reward engineering.
  • Closing the Perception-Action Loop: This work demonstrates a successful implementation of closing the loop between visual perception and motor control in a challenging robotic task, directly from raw sensory input.
  • Minimal Sim-to-Real Gap: The real-world deployment shows a strong similarity between simulated and actual trajectories, indicating that the learned dynamics model and policy transfer well to the physical system.

Key Results

  • Successful Convergence: DreamerV3 successfully learned to navigate three challenging drone racing tracks (Circle, Kidney, and Figure 8) to convergence, achieving significantly higher rewards than PPO and SAC.
  • Superior Performance vs. Baselines: Model-free baselines (PPO and SAC) struggled to converge and failed to execute meaningful flight maneuvers, resulting in consistently low reward values.
  • Emergent Behavior: The drone autonomously learned to orient its camera towards gates, even when no explicit reward encouraged this. An ablation study confirmed this behavior is driven by the need to perceive gates for navigation.
  • Real-World Deployment: The learned policies were successfully deployed on a physical quadrotor in a HIL setup, demonstrating a small sim-to-real gap and achieving agile flight at speeds up to 9 m/s.

Limitations and Future Work

  • Computational Cost: Training DreamerV3 is computationally intensive, requiring approximately 240 hours to converge.
  • Real Camera Observations: While the HIL setup validates the policy, transferring directly to real camera pixel observations (without rendering) presents additional challenges.
  • Photorealistic Simulation: The authors suggest using more photorealistic simulators to further bridge the sim-to-real gap.
  • Computational Efficiency: Improving the computational efficiency of the world model is a key area for future work.
  • Exploring Other Modalities: Investigating other observation modalities beyond RGB could also be beneficial.

Summary updated

BibTeX
@misc{romero2025dream,
  author = {Angel Romero and Ashwin Shenai and Ismail Geles and Elie Aljalbout and Davide Scaramuzza},
  title = {{Dream to Fly: Model-Based Reinforcement Learning for Vision-Based Drone Flight}},
  year = {2025},
  eprint = {2501.14377},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.14377},
}
Figure