NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimizing Control-Friendly Trajectories with Self-Supervised Residual Learning

Kexin Guo, Zihan Yang, Yuhang Liu, Jindou Jia, Xiang Yu

TL;DR

This paper introduces a framework for quadrotors that learns "residual physics"—the gap between simplified math models and messy reality—using self-supervised learning. Instead of just building a better controller to fight these forces, the authors develop a trajectory optimizer that plans "control-friendly" paths, specifically avoiding maneuvers where unmodeled physics would make tracking difficult.

What Problem Does This Paper Address?

In robotics, we usually split the task into two steps: planning (finding a path) and control (following that path). For aggressive maneuvers, like high-speed drone flight, our standard mathematical models (nominal dynamics) fail to account for complex effects like aerodynamic drag or propeller-motor interactions.

Traditionally, researchers try to fix this at the control level by making controllers more complex or "smarter." However, this often requires heavy onboard computation or tedious fine-tuning. This paper asks: What if we just planned trajectories that are easier to control in the first place? By identifying where the model is most "wrong" and planning to avoid those high-residual areas, even a simple baseline controller can achieve high-precision tracking.

Methods

The authors propose a two-stage approach:

  1. Self-Supervised Residual Learning: They create a "hybrid model" that combines standard physics equations with a neural network (a regressor) that captures the "residuals" (the errors).
  2. Innovation: Instead of training the network on noisy state derivatives (like acceleration), they use a Neural ODE approach. They compare the entire rollout of the model against real trajectory data. By using analytic gradients derived from optimal control theory (the adjoint method), they can train the model to be stable over long horizons with arbitrary time steps.
  3. Control-Friendly Trajectory Optimization: Once the residual model is learned, they plug it into a new trajectory optimizer.
  4. The Objective: Unlike standard "minimum-snap" planners that just look for smooth curves, this optimizer minimizes a cost function that includes the norm of the learned residual. It essentially tells the drone: "Don't go where the physics gets weird."
    • Implementation: They use a direct multiple shooting method and the CasADi toolkit to solve the resulting non-linear programming (NLP) problem efficiently.

Datasets

The researchers evaluated their method using both simulation and real-world hardware:

  • Simulation Dataset: 40 trajectories generated via random waypoint sampling, totaling about 8,000 discrete states.
  • Real-World Dataset: They used a quadrotor equipped with an STM32-F7 microcontroller and a UWB telemetry module. They recorded 16 aggressive trajectories (approx. 15 seconds each) for training and testing, and 3 "out-of-distribution" trajectories (higher mean acceleration) to test the model's ability to generalize. This resulted in over 10,000 discrete state-reference pairs.

Key Insights and Ideas

  • Planning vs. Compensation: Most "learning for control" papers focus on compensating for errors. This paper focuses on avoiding them. By minimizing residuals during planning, the "burden" on the controller is significantly reduced.
  • Labels are Noisy, Trajectories are Not: Training a network to predict acceleration directly is hard because sensors are noisy. Training a network so that its integral matches a smooth recorded path (self-supervision) is much more robust.
  • Generalization: Interestingly, the residual physics identified under one controller can generalize to others. The "control-friendly" path remains friendly even if you swap a Model Predictive Controller (MPC) for a simpler Differential Flatness-Based Controller (DFBC).

Key Results

  • Model Accuracy: The hybrid model reduced the Root Mean Square Error (RMSE) of acceleration prediction by over 60% in simulation and roughly 35-40% in real-world tests compared to a physics-only nominal model.
  • Tracking Performance: In real-world "pretzel-shaped" flight tests, the "Minimum-Residual" trajectory resulted in significantly lower positional tracking error than standard "Minimum-Snap" trajectories.
  • Efficiency: Despite using a neural network in the optimization loop, the computational time was comparable to traditional trajectory optimization methods, making it feasible for practical engineering workflows.

Limitations and Future Work

  • Offline Nature: The learning process is currently offline. If the environment changes (e.g., a new payload is added or a motor degrades), the model needs to be retrained. The authors suggest online adaptation as a future step.
  • The "Aggression" Trade-off: Minimizing residuals can sometimes lead the optimizer to choose a "tamer" path. There is a delicate balance between being aggressive and being "control-friendly" that requires careful tuning of regularization weights.
  • Model Complexity: While the MLP used is small (two layers of 32 units), scaling this to even more complex robotic systems might increase the optimization time beyond what "real-time" planning allows.

Summary updated

BibTeX
@misc{guo2026optimizing,
  author = {Kexin Guo and Zihan Yang and Yuhang Liu and Jindou Jia and Xiang Yu},
  title = {{Optimizing Control-Friendly Trajectories with Self-Supervised Residual Learning}},
  year = {2026},
  eprint = {2601.02738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.02738},
}
Figure