TL;DR
Model Predictive Control (MPC) usually assumes a robot's dynamic parameters stay constant across its future planning horizon, causing it to fail when unmodeled forces change over time. This paper introduces HyperMPC, which uses a lightweight neural network to predict time-varying trajectories of model parameters based on past history and planned future actions. This approach drastically improves long-horizon prediction and control performance without adding any computational overhead to the internal MPC optimization loop.
What Problem Does This Paper Address?
Gradient-based Model Predictive Control (MPC) is a cornerstone of modern robotics, enabling systems like agile drones or autonomous racing cars to operate at their physical limits. However, its success hinges on having an accurate yet computationally efficient model of the system's dynamics. To keep the optimization problem fast and solvable in real-time, engineers typically rely on simplified analytical physics models.
The catch? These simplified models inevitably miss complex, unobserved physical phenomena—such as gear backlash, a swinging payload suspended from a drone, or tire deformation during aggressive racing cornering. While traditional adaptive MPC can update model parameters at each time step to compensate for errors, it assumes these parameters will remain constant across the future planning horizon. This inability to anticipate how unmodeled dynamics will evolve over the horizon leads to poor long-term predictions and degraded control performance.
Methods
The authors propose the Hyper Prediction Model (HyperPM) and its control framework integration, HyperMPC. Instead of treating parameters as static constants during the future horizon, HyperPM forecasts a continuous trajectory of time-varying parameters ($\theta[t_c, t_c + t_p]$).
Key architectural components include:
- History Encoder: A Gated Recurrent Unit (GRU) combined with a Multi-Layer Perceptron (MLP) processes the recent history of states and controls to recover a latent representation of the unobserved dynamics.
- Expected Controls Preprocessor: Future planned controls from the previous MPC iteration are compactly represented using B-spline control points. This makes the network focus on general control trends rather than high-frequency noise and allows it to handle flexible sampling frequencies.
- Causal Masked MLP: This component predicts parameter deviations over time while explicitly masking weights to enforce causality—ensuring future actions don't retroactively affect past parameters.
- Long-Horizon Training: Rather than training on simple one-step prediction errors, HyperPM is optimized using Backpropagation Through Time (BPTT) by rolling out a 4th-order Runge-Kutta (RK4) integrator over the full prediction horizon.
Crucially, because this parameter trajectory is computed in a single forward pass before entering the MPC optimization loop, the internal MPC solver still sees a standard differential equation structure. This completely avoids adding computational complexity to the real-time optimization solver.
Datasets
The method was validated across three distinct experimental setups:
- Simulated Pendulum with Backlash: A MuJoCo simulation of a pendulum featuring a 30-degree clearance-induced dead zone (backlash) during motion reversal.
- Simulated Drone with Suspended Payload: A MuJoCo environment based on a Skydio X2 quadrotor carrying a 0.5kg point-mass payload via a 1m rope, introducing complex, unobserved swing dynamics.
- Real-World F1TENTH Autonomous Racing: Evaluated on a physical 1/8th scale RC car (Xray GTXE'22). The authors collected a 36-minute dataset of expert human driving across various tracks to capture highly nonlinear tire slip and load transfer dynamics.
Key Insights and Ideas
- Anticipation over Adaptation: Traditional adaptive controllers are reactive—they figure out the current system parameters and assume they stay the same. HyperPM is proactive; by conditioning on planned future actions, it can predict how those actions will cause unmodeled states (like a payload swinging forward under braking) to evolve.
- Physics-Informed Interpretability: Because HyperPM modifies the parameters of an underlying analytical model rather than acting as a pure black-box residual network, its outputs remain physically interpretable. For example, in the F1TENTH racing task, HyperPM accurately captured the unmodeled physical phenomenon of dynamic load transfer during braking by dynamically shifting the rear-axle distance parameter ($l_r$).
- Robustness via Noise Injection: To prevent the model from overfitting to the exact future actions seen during training, the authors injected Gaussian noise into the B-spline control points of future actions, significantly improving deployment stability.
Key Results
The authors compared HyperMPC against several baselines, including models with constant parameters (const), standard HyperDynamics (HD), and residual neural networks (res).
- Pendulum Swing-Up: HyperPM improved long-horizon prediction accuracy by 33.19% over constant-parameter models. In the downstream control task, HyperMPC achieved a 100% success rate in swinging up and stabilizing the pendulum, whereas all other baselines failed completely (0% success) or caused numerical solver failures.
- Drone Trajectory Tracking: HyperPM reduced nominal model prediction errors by 73.12%. It consistently outperformed an "oracle" baseline that had perfect instantaneous access to the true payload forces but assumed they stayed constant over the horizon.
- Real-World F1TENTH Racing: HyperPM achieved a 48.75% reduction in prediction error compared to static models. In real-world track deployments, HyperMPC achieved the lowest total cost and safety penalties (track boundary violations). Crucially, it maintained an identical MPC solve time (~10.6 ms) to the simplest baseline, proving its real-time viability.
Limitations and Future Work
- Dependence on Planned Controls: HyperPM relies heavily on the accuracy of the expected future control trajectory. If the robot encounters a massive unexpected external disturbance, the planned control sequence becomes inaccurate, which can degrade the parameter predictions.
- Policy Mismatch: The training datasets were collected using specific policies (e.g., human expert drivers). When the deployed HyperMPC policy behaves differently, the system can experience a distribution shift. The authors note that integrating online learning to continuously adapt HyperPM to its own deployment policy is a vital next step.
Summary updated