How to Train Your Quadrotor: A Framework for Consistently Smooth and Responsive Flight Control via Reinforcement Learning

Siddharth Mysore, Bassel Mabsout, Kate Saenko, Renato Mancuso

This paper, published by researchers at Boston University and the MIT-IBM Watson AI Lab, presents a significant step forward in the "sim-to-real" pipeline for robotics. It introduces RE+AL (REinforcement-based transferable Agents through Learning), a framework designed to train Reinforcement Learning (RL) agents that provide smooth, responsive, and—most importantly—reliable low-level flight control for quadrotors.

TL;DR

RE+AL solves the "jittery" control problem in RL-based flight by using a novel multiplicative reward structure and realistic goal generation. The result is a 10x reduction in training time and the first RL-based controller to consistently outperform a well-tuned PID controller on real-world racing hardware.

What Problem Does This Paper Address?

Training RL agents for continuous control (like keeping a drone level) is notoriously difficult due to the reality gap. Simulators are imperfect; an agent might learn to exploit a simulator's physics to get a high score, but when flashed onto a real drone, those same "exploits" manifest as high-frequency oscillations (jitter).

Previous state-of-the-art frameworks, such as Neuroflight, proved that RL could fly a drone, but the results were often unstable. Agents would vibrate at frequencies high enough to overheat motors and drain batteries, and only a tiny fraction of trained agents were actually "flight-worthy" upon transfer to hardware. RE+AL aims to make this process consistent, smooth, and efficient.

Methods

The authors identify three key areas for improvement over standard RL training:

  1. Multiplicative Reward Composition: Standard RL usually adds reward components together ($r = r_1 + r_2 + ...$). This allows an agent to "cheat" by maximizing one reward while ignoring another. RE+AL uses a geometric mean of normalized rewards. This acts like a logical "AND" gate—if any single performance metric (like smoothness or tracking) is poor, the total reward collapses. This forces the agent to satisfy all objectives simultaneously.
  2. Enhanced State Space: To encourage smoothness, the authors added the previous action to the agent's state. By knowing what it just did, the agent can more effectively learn to minimize drastic changes in motor output.
  3. Perlin Noise Goal Generation: Instead of training the agent to respond to simple "step" inputs (sudden jumps in target speed), they used Perlin noise to generate smooth, continuously changing set-points. This better mimics the fluid commands of a human pilot and prevents the agent from over-fitting to static conditions.
  4. Algorithm: They utilized the standard Proximal Policy Optimization (PPO) algorithm, demonstrating that the secret to better performance lay in the environment design rather than a new RL algorithm.

Datasets

  • GymFC: An OpenAI Gym-compatible flight control simulator built on the Gazebo physics engine.
  • NF1 Racing Quadrotor: A high-performance physical drone used for real-world validation.
  • OpenAI Gym Benchmarks: To prove their multiplicative reward idea was generalizable, they tested it on standard benchmarks: HalfCheetah, Ant, Acrobot, and Pendulum.

Key Insights and Ideas

  • The "AND" Logic of Rewards: The move from additive to multiplicative rewards is the "aha moment." In additive systems, a "tracking" reward might be so high that the agent doesn't care if it vibrates the motors to death (the "smoothness" penalty). Multiplicative rewards make the agent "brittle" during training in a way that ensures high-quality behavior across all metrics.
  • Temporal Awareness: You cannot be smooth if you are "forgetful." Including the previous action in the state vector is a low-cost way to give the neural network the context it needs to avoid jerky movements.
  • Sim-to-Real is about Frequency: The authors analyzed the "Actuation Playback Gap." They found that while the simulator drifts from reality over long periods, it is quite accurate over very short windows (0.003s). Since their controller runs at 730Hz, it only needs the simulator to be "right" for a few milliseconds at a time to learn transferable skills.

Key Results

  • Training Efficiency: Training time dropped from 9 hours to under 50 minutes (a 10x speedup).
  • Reliability: 100% of agents trained with RE+AL were flight-capable, compared to the "one out of dozens" success rate of previous methods.
  • Smoothness: High-frequency oscillations were slashed. Peak oscillatory frequency dropped from 330Hz to 130Hz, with significantly lower amplitudes.
  • Power Consumption: RE+AL agents drew an average of 5.86 Amps, significantly beating the baseline Neuroflight agent (22.87 Amps) and even outperforming a tuned PID controller (8.07 Amps).

Limitations and Future Work

  • Yaw Bias: The authors noted a persistent bias where agents prioritize yaw tracking over roll and pitch, occasionally leading to "glitches" or sudden perturbations during aggressive yaw maneuvers.
  • Manual Tuning: While the multiplicative reward reduces the need for weight tuning, the choice of the $\beta$ (the error bound) and the specific reward components still require some domain expertise.
  • Future Directions: The team suggests incorporating more advanced learning techniques to further close the reality gap and applying this framework to even more complex aerobatic maneuvers that classical PID controllers cannot handle.

Summary updated

BibTeX
@article{mysore2021how,
  author = {Siddharth Mysore and Bassel Mabsout and Kate Saenko and Renato Mancuso},
  title = {{How to Train Your Quadrotor: A Framework for Consistently Smooth and Responsive Flight Control via Reinforcement Learning}},
  journal = {ACM Trans. Cyber Phys. Syst.},
  year = {2021},
  url = {https://openreview.net/forum?id=FJv0LkgyRiN},
}

Loading related content...

Figure