AutoTune: Controller Tuning for High-Speed Flight

Antonio Loquercio, Alessandro Saviolo, Davide Scaramuzza

Introduction

Flying quadrotors at their physical limits—speeds exceeding 50 km/h—requires a delicate balance of controller parameters, often referred to as gains. As velocity increases, drones become hypersensitive to these settings; a configuration optimized for stable hovering will likely result in a crash during high-speed maneuvers like a "Power Loop" or sharp banking turns. This sensitivity arises from complex, unmodeled aerodynamic effects and noisy actuation that only manifest at high speeds.

The Challenge of High-Speed Control

Traditionally, controller tuning is performed by human experts through iterative trial-and-error or by optimization algorithms that assume a well-behaved, convex landscape. However, research into high-speed flight reveals that the relationship between controller parameters and performance is highly non-convex, multi-modal, and extremely sensitive. Standard methods like Bayesian Optimization or the "MIT rule" frequently converge on local minima or fail to generalize across diverse racing tracks. In these regimes, the "region of success" in the parameter space shrinks drastically; a minor deviation in tuning that is negligible at 10 m/s can lead to catastrophic failure at 20 m/s.

The AutoTune Methodology

To address these challenges, the AutoTune framework moves away from analytical models in favor of a data-driven, sampling-based approach. The system is built on four pillars:

  1. Metropolis-Hastings (M-H) Sampling: Instead of relying on gradient-based descent, AutoTune utilizes M-H sampling to explore the parameter space. This stochastic approach allows the algorithm to escape local minima and effectively handle the noisy performance evaluations inherent in robotics.
  2. Trajectory Segmentation: Recognizing that different maneuvers (e.g., a sharp descent vs. a flat sprint) require distinct controller behaviors, AutoTune splits trajectories into segments. Each segment is assigned independent parameters which are then optimized jointly.
  3. Informed Initialization: To accelerate convergence, a Gradient Boosting regressor—trained on prior successful flights—predicts high-quality starting parameters based on the trajectory's geometry.
  4. Model Predictive Control (MPC): While the framework is general, it is specifically demonstrated by tuning the cost matrices and horizon length of an MPC controller.
The AutoTune pipeline: trajectory segmentation followed by Metropolis-Hastings sampling to optimize controller parameters.

Experimental Validation

AutoTune was rigorously evaluated across three environments:

  • High-Fidelity Simulation: Using Microsoft AirSim and Flightmare, the system was tested on six diverse trajectories, including spirals and flips.
  • Competition Benchmarks: The framework was compared against top-performing entries from the 2019 AirSim Game of Drones competition.
  • Physical World Testing: Validation took place in a 30x30x8m motion-capture arena, where a physical quadrotor successfully executed a "Split-S" maneuver at speeds over 50 km/h.

Key Results and Performance

AutoTune demonstrated a significant performance leap over existing baselines. In simulation, it outperformed Bayesian Optimization and Particle Swarm Optimization by up to 90% in trajectory completion on complex tracks like the Spiral. In the Game of Drones benchmark, it improved upon the previous winner's lap time by 25%.

Crucially, the system proved superior to human intuition. Even graduate students specializing in quadrotor dynamics were unable to match AutoTune's performance, highlighting the counter-intuitive nature of high-speed aerodynamics.

AutoTune significantly outperforms human experts, consistently reaching 100% trajectory completion while human performance remains sub-optimal and inconsistent.

In physical deployments, AutoTune reduced average tracking error by 6% and maximum displacement by 12% compared to human-tuned parameters. Furthermore, the informed initialization regressor reduced the required sample count by 88%, making the optimization process highly efficient.

Conclusion and Future Work

AutoTune provides a robust solution for the non-convex problem of high-speed controller tuning. While currently reliant on high-fidelity simulation to ensure safety during the tuning phase, future work aims to bridge the "sim-to-real" gap further. The authors suggest that incorporating formal stability guarantees and developing safe online tuning methods will be essential for deploying these capabilities in real-time, safety-critical applications without the risk of physical crashes.

Summary updated

BibTeX
@article{loquercio2022autotune,
  author = {Antonio Loquercio and Alessandro Saviolo and Davide Scaramuzza},
  title = {{AutoTune: Controller Tuning for High-Speed Flight}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2022},
  doi = {10.1109/lra.2022.3146897},
}
Figure