T2S-MPC: Real-Time Online Adaptive Model Predictive Control for Continuously Changing Dynamics
Robots deployed in the physical world often operate under time-varying dynamics, where evolving disturbances, contact conditions, and system properties can cause persistent model mismatch and degrade closed-loop performance. Learning-based model predictive control (MPC) provides a natural framework for addressing this mismatch, but existing online approaches face challenges in continuously adapting expressive dynamics models while meeting tight computational requirements. We propose two-timescale model predictive control (T2S-MPC), a fully online learning-based MPC framework for real-time control under continuously changing dynamics. T2S-MPC learns a neural residual dynamics model using a two-timescale update scheme: the linear output layer adapts rapidly to recent changes, while the hidden- layer representation is refined more slowly using accumulated deployment data. A time-conditioned dynamics model captures temporal variation over the prediction horizon, while a local linear approximation of the learned residual enables efficient integration with MPC. We evaluate T2S-MPC on quadro- tor tracking under time-varying wind and quadruped locomotion under changing environmental conditions, with further hardware validation on a physical quadrotor under dynamically varying wind. Results demonstrate effective online adaptation and real-time closed-loop control under continuously evolving dynamics, outperforming learning-based MPC baselines. Code and demonstration videos are available at https://github.com/Zeyuu0920/real-time-T2S-MPC.
Authors
- Z. M. Wang (ORCID: https://orcid.org/0000-0002-1360-6218)
- Enrique Mallada (ORCID: https://orcid.org/0000-0003-1568-1833)
- Laixi Shi (ORCID: https://orcid.org/0000-0003-4038-8620)
- Zeyu Shen
- Shiji Peng
Institutions
- Johns Hopkins University (US)
Publication Details
- Journal
- arXiv
- Published
- 2026-12-02
- Primary Topic
- Advanced Control Systems Optimization
- Type
- preprint