Abstract
Deep Reinforcement Learning (RL) has shown significant potential for robotics but typically suffers from poor sample efficiency, requiring millions of interactions to learn simple tasks. This is particularly problematic for aerial robotics, where battery life is short and crashes are costly. This paper introduces a model-based reinforcement learning (MBRL) framework that allows a custom-built quadrotor to learn flight control from scratch in under 30 minutes of real-world experience. By learning a probabilistic "world model" of its own dynamics from raw sensor data, the drone can "dream" trajectories to optimize its controller entirely onboard a Raspberry Pi 4.
Introduction
The "sim-to-real gap" remains a major hurdle in deploying RL on physical hardware. Building high-fidelity simulators for custom drones requires extensive expert knowledge of aerodynamics. This research proposes skipping manual engineering by having the drone learn its own simulator and controller simultaneously from raw data. The goal is to achieve high sample efficiency and robust control without relying on external motion capture systems or pre-built simulators.
Methodology: Latent State-Space Models
The authors employ a Model-Based Reinforcement Learning (MBRL) approach centered on a Latent State-Space Model (LSSM). Instead of a direct mapping from sensors to actions, the system learns to map noisy sensor data (LiDAR, IMU) into a compact "latent" representation using a hierarchical Variational Autoencoder (VAE).
Crucially, the model utilizes locally linear dynamics. Rather than relying on a single large neural network, the system maintains a set of base matrices combined according to the current state. This architecture provides better generalization and smoother gradients for control. Because the learned model is a differentiable neural network, the researchers can propagate "stochastic analytic gradients" through imagined trajectories, allowing the Actor and Critic to be optimized much more efficiently than standard trial-and-error methods.
Experimental Setup
The training data for this study was generated live using a self-built quadrotor. The hardware configuration includes:
- 24 LiDAR sensors (Time-of-Flight) for distance sensing.
- Inertial Measurement Unit (IMU) for orientation and acceleration.
- Motion Capture (Mocap) data (used primarily for experimental baselines).
The training data consisted of only 30 minutes of flight time (approximately 25,000 steps). Initial data was collected using a simple PID controller to fly to random targets, ensuring a diverse range of dynamics data for the model to learn from.
Key Results and Insights
The researchers tested the drone in a "Fly to Marker" task under various sensor configurations:
- MocapVel (Full State): 100% success rate with a 4.41 cm error.
- Mocap (No Velocity): 100% success rate, though settling time increased from 2.5 to 7.6 seconds as the model inferred velocity from position changes.
- LiDARVel (Onboard Sensors Only): Using only the 24 LiDARs and IMU, the drone achieved a 44% success rate. While lower than the Mocap baselines, this is a significant achievement for a system learning entirely from noisy, onboard sensors.
Key Insights
- Differentiable Simulators: Learning a differentiable model allows the agent to understand the mathematical direction needed for policy improvement, accelerating learning from days to minutes.
- Locally Linear Dynamics: Forcing the model to be locally linear resulted in smoother control and improved sample efficiency compared to pure neural network transitions.
- Handling Partial Observability: The latent variable model successfully inferred hidden states, such as velocity, from sequences of noisy LiDAR pulses.
Limitations and Future Work
Despite the success, several challenges remain. The system currently requires a low-level PID controller for initial stability during data collection. A truly autonomous learner would need to survive the first few seconds of total instability. Additionally, modeling complex non-linear aerodynamics for high-speed, acrobatic flight remains a challenge. Future work will also focus on improving the translation of local sensor measurements into global goal frames to increase success rates in pure LiDAR configurations.
Summary updated