Zero-Shot Function Encoder-Based Differentiable Predictive Control

Hassan Iqbal, Xingjian Li, Tyler Ingebrand, Adam J. Thorpe, Krishna Kumar, Ufuk Topcu, Ján DrgonaarXiv 2025 · DOI

In the domain of autonomous systems—ranging from drones navigating turbulent winds to chemical plants managing shifting reactions—Model Predictive Control (MPC) has long been considered the gold standard. MPC provides foresight by predicting future states, yet it suffers from two significant drawbacks: high computational costs for online optimization and the requirement for a near-perfect mathematical model of the system.

A recent paper titled "Zero-Shot Function Encoder-Based Differentiable Predictive Control" introduces a novel framework that bridges the gap between the predictive power of MPC and the execution speed of neural networks. This approach enables systems to adapt to new dynamics instantly (zero-shot) without the need for retraining.

The Challenge: Speed vs. Flexibility

Traditional control methods typically face a trade-off between speed and flexibility. MPC is flexible but computationally intensive, solving complex optimization problems at every time step. Conversely, standard learning-based controllers are fast but brittle; a change in system parameters, such as a drone's mass or motor degradation, often leads to failure because the model was trained on static dynamics.

Adapting to such changes usually requires online system identification followed by re-optimization or retraining—processes that are often too slow for safety-critical, high-speed applications. The authors address this by developing a controller that adjusts to novel system variations the moment it receives a few data points, requiring no additional training.

Methodology: The FE-DPC Framework

The proposed architecture consists of two primary components: the Function Encoder Neural ODE (FE-NODE) and Differentiable Predictive Control (DPC).

Offline Learning of Dynamics and Policies

Instead of learning a single specific model, the FE-NODE learns a set of "basis functions" that describe a broad family of dynamical systems. During the offline phase, the system is trained to identify the building blocks of the dynamics. The DPC component then trains a neural network policy by "unrolling" these dynamics. Crucially, the policy is conditioned on both the current state and the coefficients ($c$) generated by the Function Encoder. This allows the neural network to learn a "universal" strategy applicable across a wide range of possible dynamics.

The offline learning phase involves training the FE-NODE basis functions (Algorithm 1) and the parametric neural policy (Algorithm 2).

Online Zero-Shot Adaptation

At runtime, when the controller encounters a specific system, it uses a small window of measurement data to solve a simple linear problem. It identifies the coefficients ($c$) that best combine the pre-learned basis functions to represent the current environment. Because the representation of dynamics is a linear combination in the latent space, this identification can be performed using Regularized Least Squares, which is mathematically efficient and extremely fast.

The online adaptation phase (Algorithm 3) identifies new coefficients from trajectories and applies the adaptive policy in a zero-shot manner.

Experimental Evaluation

The researchers evaluated the FE-DPC method on four simulated benchmarks of increasing complexity:

  • Van der Pol Oscillator: Testing stabilization in a classic nonlinear system.
  • Two-Tank System: A level-regulation task involving fluid dynamics.
  • Glycolytic Oscillator (GO): A highly nonlinear, 7-dimensional biochemical system.
  • 12D Quadrotor: A high-dimensional flight model where mass and moments of inertia vary abruptly.

Key Results and Insights

  • Significant Computational Speedups: Compared to standard "White-Box" MPC using the CasADi solver, FE-DPC was 2.3x to 71.5x faster. The speedup was most pronounced in the high-dimensional 12D Quadrotor task.
  • Competitive Accuracy: FE-DPC achieved tracking errors comparable to white-box MPC, despite the latter having the advantage of knowing the exact underlying physics equations.
  • Robust Zero-Shot Adaptation: In scenarios where system parameters were switched mid-simulation (e.g., a drone suddenly carrying a heavier load), FE-DPC maintained stability and reference tracking without any retraining.

Conclusion and Future Directions

While the FE-DPC framework offers a powerful solution for adaptive control, it remains data-dependent; the FE-NODE requires a diverse set of historical trajectories to generalize effectively. Future work may involve exploring more advanced neural architectures, such as Transformers, or utilizing dimensionality reduction techniques like PCA to further optimize the latent representation of dynamics. Nonetheless, this research marks a significant step toward deploying fast, adaptive, and reliable autonomous systems in unpredictable real-world environments.

Summary updated

BibTeX
@misc{iqbal2025zero,
  author = {Hassan Iqbal and Xingjian Li and Tyler Ingebrand and Adam J. Thorpe and Krishna Kumar and Ufuk Topcu and Ján Drgona},
  title = {{Zero-Shot Function Encoder-Based Differentiable Predictive Control}},
  year = {2025},
  eprint = {2511.05757},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.05757},
}
Figure