L4DC 2026 Learning for Dynamics and Control · Oral

Zero-Shot Function Encoder-Based
Differentiable Predictive Control

1The University of Texas at Austin   2Johns Hopkins University

A controller trained for one system can struggle when its dynamics change. FE-DPC learns a space of dynamics and a policy conditioned on that space. At deployment, observations identify a compact coefficient vector, which adapts the control action without retraining the neural networks or solving an online model predictive control problem.

Original FE-DPC method diagram. Offline: trajectory data train function-encoder neural ODE bases using a time-stepper and system-identification loss. A coefficient-conditioned policy is then trained through the pretrained FE-NODE using reference-tracking and constraint penalties, with gradients returning to the policy. Online: new trajectories update the function-encoder coefficients, which condition the frozen policy together with the state and control parameters.
Learn offline, adapt online. The original graphical abstract shows all three stages: dynamics learning, policy learning, and coefficient-based adaptation. Original PDF · Full-resolution figureSwipe horizontally to inspect the figure.
The University of Texas at Austin Johns Hopkins Whiting School of Engineering SOLARIS Lab Ralph O’Connor Sustainable Energy Institute

Problem and contribution

Control across a family of unknown dynamics

Research summary. The goal is to learn a feedback policy for nonlinear systems whose dynamics parameters may be unknown or change during operation. The policy must account for the current state, the task, and the system being controlled.

$$\dot{\mathbf{x}}=\mathbf{f}(\mathbf{x},\mathbf{u};\boldsymbol{\nu}),\qquad \mathbf{u}=\pi(\mathbf{x};\boldsymbol{\xi},\boldsymbol{\nu}),\qquad h(\mathbf{x};\boldsymbol{\xi})\leq0,\quad g(\mathbf{u};\boldsymbol{\xi})\leq0.$$

Here, \(\boldsymbol{\nu}\) specifies the dynamics and \(\boldsymbol{\xi}\) specifies objectives and constraints. Classical model predictive control (MPC) repeatedly solves a finite-horizon optimization problem. Differentiable predictive control (DPC) instead trains an explicit policy offline by differentiating through model rollouts. FE-DPC supplies the adaptable learned model that this training requires.

A learned dynamics space

Function-encoder neural ordinary differential equations (FE-NODEs) represent different systems using shared neural basis functions and system-specific coefficients.

A policy that uses the representation

The coefficient vector conditions a self-supervised DPC policy, connecting system identification directly to feedback control.

Adaptation tested in simulation

Four nonlinear benchmarks examine prediction, control, and responses to parameter switches. The authors release training code, evaluation notebooks, and checkpoints.

The method

Two offline learning stages. One online update.

01Offline · learn the dynamics

Fit shared neural ODE basis functions

Collect state–input–next-state transitions from a family of systems. Infer each system’s coefficients and optimize the neural bases by minimizing prediction error through the numerical time-stepper.

$$\widehat{\mathbf f}(\mathbf{x},\mathbf u;\mathbf c)=\sum_{j=1}^{B}c_j\mathbf g_j(\mathbf{x},\mathbf u;\boldsymbol\theta_j),\qquad \widehat{\mathbf x}_{k+1}=\mathbf x_k+\int_{t_k}^{t_{k+1}}\widehat{\mathbf f}(\mathbf{x}(t),\mathbf u_k;\mathbf c)\,\mathrm dt.$$

The bases \(\mathbf g_j\) are shared across the family; the vector \(\mathbf c\) selects an approximation to a particular system’s dynamics. The paper uses fourth-order Runge–Kutta integration.

02Offline · learn the policy

Backpropagate through closed-loop trajectories

Use the pretrained FE-NODE as a differentiable simulator. Sample initial states, task parameters, and inferred coefficients; roll out the feedback policy; then update its weights \(\mathbf W\) using the control objective.

$$\mathbf u_k=\pi_{\mathbf W}(\mathbf x_k;\boldsymbol\xi,\mathbf c),\qquad \min_{\mathbf W}\;\mathbb E_{\mathbf x_0,\boldsymbol\xi,\mathbf c}\!\left[\sum_{k=0}^{N-1}\!\left(\ell(\mathbf x_k,\mathbf u_k,\boldsymbol\xi)+p(h(\mathbf x_k,\boldsymbol\xi))+p(g(\mathbf u_k,\boldsymbol\xi))\right)+p_N(\mathbf x_N)\right].$$

Gradients pass through the rollout to the policy. Training uses task losses rather than optimal-control labels. In this formulation, constraints enter as soft penalties; minimizing them does not by itself certify feasibility.

03Online · infer and control

Update coefficients, keep network weights fixed

From observed transitions, form an empirical Gram matrix \(\mathbf G\) and projection vector \(\mathbf F\). Solve the regularized least-squares system, then evaluate the policy with the updated coefficients and the current state.

$$(\mathbf G+\lambda\mathbf I)\mathbf c=\mathbf F,\qquad \mathbf u_k=\pi_{\mathbf W}(\mathbf x_k;\boldsymbol\xi,\mathbf c).$$

“Zero-shot” means no neural-network retraining. Online adaptation still needs observations and a coefficient solve. It avoids solving the full MPC problem online.

How transitions determine the coefficients

Algorithm 3 uses \(m\) samples and a finite-difference approximation to the state derivative:

$$G_{ij}=\frac{1}{m}\sum_{l=1}^{m}\left\langle\mathbf g_i(\mathbf x_k^l,\mathbf u_k^l),\mathbf g_j(\mathbf x_k^l,\mathbf u_k^l)\right\rangle,\qquad F_i=\frac{1}{m}\sum_{l=1}^{m}\left\langle\frac{\mathbf x_{k+1}^l-\mathbf x_k^l}{\Delta t},\mathbf g_i(\mathbf x_k^l,\mathbf u_k^l)\right\rangle.$$

The paper uses \(m=100\) data points to infer coefficients in each benchmark. Tikhonov regularization \(\lambda>0\) stabilizes the coefficient calculation. Both the basis and policy weights stay fixed during online evaluation.

Method: paper §2–3, Eqs. (1)–(3), Algorithms 1–3. The experiments use 11, 11, 21, and 32 basis functions for Van der Pol, two-tank, glycolytic oscillator, and quadrotor, respectively (§4 and Appendix A.2).

Numerical experiments

Adaptation under changing dynamics

All results below are simulations reported in the paper. Figures are reproduced from the original vector assets, with their axes and legends intact. They show observed benchmark behavior, not a general stability or safety guarantee.

Van der Pol: stabilizing after a dynamics switch

The controller regulates a nonlinear oscillator with unknown \(\mu\) and a direction parameter \(d\in\{-1,1\}\). The example compares uncontrolled predictions and controlled trajectories, first for fixed dynamics and then for a switch after 25 simulation steps.

Four original Van der Pol panels: uncontrolled fixed dynamics, controlled fixed dynamics, uncontrolled switching dynamics, and controlled switching dynamics. Legends distinguish true and predicted states, control input, reference, and system switches.
Figure 3. Fixed dynamics (left two panels) and switching dynamics (right two panels). The displayed controlled trajectories return toward the origin. View original PDF.

Two-tank: tracking as the system and reference change

A pump and valve regulate two liquid levels. The reported 700-step rollout changes both the system parameters and the reference. FE-DPC adjusts through coefficient inference while retaining the same policy weights.

Original two-tank plot showing tank states and references over time, with vertical markers for system switches and a second panel showing pump and valve inputs with bounds.
Figure 4. Reference tracking through multiple system switches. Tank levels (top) and bounded pump/valve inputs (bottom) are shown as reported. View original PDF.

Glycolytic oscillator: a stiff, seven-state system

This biochemical model couples seven species. Only the first state is directly actuated and tracked. The control comparison uses a prediction horizon of 50 for FE-DPC and white-box MPC (WB-MPC), which has access to the true dynamics.

Original glycolytic oscillator comparison: FE-DPC on the left and white-box MPC on the right, showing first-state tracking error above the control input and its bounds.
Figure 6. FE-DPC (left) and WB-MPC (right). Both exhibit a reference offset when the input saturates; WB-MPC has lower reported tracking MSE on this benchmark. View original PDF.
Inspect the learned dynamics under parameter switches
Original glycolytic dynamics plot showing true and predicted state trajectories and prediction errors during repeated parameter switches.
Figure 5. Uncontrolled dynamics: system parameters change every 500 steps, and predictions are reset to the true states every 50 steps. This is not an uninterrupted long-horizon prediction. View original PDF.

Quadrotor: hover across 20 parameterizations

A 12-state nonlinear model varies mass and moments of inertia. The reported test uses 20 parameterizations, each with random initialization and an abrupt dynamics switch between 2 and 20 seconds. The altitude target is 0.4 m.

Original quadrotor simulation: altitude in metres, roll and pitch in radians above the three policy commands. Colored traces show 20 models, the purple region marks switching times, dashed lines mark references and command bounds; altitude approaches 0.4 metres.
Figure 7. The paper reports successful stabilization of all 20 simulated models within its terminal-cost tolerance. The three policy outputs feed the thrust and roll/pitch feedback laws defined in Appendix A.1; yaw torque is set to zero. View original PDF.

Reported accuracy and computation time

The quantitative comparison uses fixed system parameters, separate from the switching demonstrations above. WB-MPC uses the true dynamics through CasADi; FE-DPC uses learned dynamics and a learned policy.

Table 1 · Values reported in arXiv v3 and the PMLR paper
BenchmarkFE-DPC MSEWB-MPC MSEFE-DPC time (s)WB-MPC time (s)
Van der Pol0.0026830.0026530.531.21
Two-tank0.0084520.0041641.136.75
Glycolytic oscillator0.1802990.0323205.89136.07
Quadrotor0.0220030.0242081.93155.85

MSE is the paper’s mean squared state-to-reference error; values should be compared within each benchmark. §4 reports a single NVIDIA RTX 5090 GPU for the experiments. Table 1 does not specify timing batch size, timing aggregation, CPU configuration, or repeated-run uncertainty, so these times are not presented as per-step latency.

Reading the comparison carefully

The listed FE-DPC times are lower for all four benchmarks. WB-MPC has lower MSE in the first three, while the quadrotor table entry favors FE-DPC. The paper’s prose says MPC has the lowest error across all examples and gives an upper speedup of 71.5×; its quadrotor table values instead imply approximately 80.75×. We retain the original measurements without promoting either conflicting summary as a headline result.

Scope and interpretation

What the evidence supports

Data and observability matter

The approach assumes full-state information and historical trajectories that sufficiently represent the dynamics family. Adaptation relies on new transition observations and on the learned basis being useful for the encountered system.

Approximate control, empirical validation

The policy approximates the optimal-control solution. Soft constraint penalties and successful simulations do not establish universal feasibility or closed-loop stability. §3.1 discusses representation results from prior function-encoder work, rather than a new general control guarantee.

Simulation and implementation scope

The paper evaluates four numerical systems; it reports no hardware deployment. The inspected code release includes Van der Pol, two-tank, and glycolytic evaluation notebooks and checkpoints. A corresponding quadrotor experiment was not present in that release.

Version-specific details

This page follows arXiv v3 (15 April 2026), with publication details checked against PMLR. Glycolytic parameter ranges differ between §4, Appendix A.2, and the released data generator, so no unified range is asserted here.

Citation

Published in the Proceedings of the 8th Annual Learning for Dynamics and Control Conference, PMLR 331, pages 299–315, 2026.

Download .bib
@InProceedings{pmlr-v331-iqbal26a,
  title = {Zero-Shot Function Encoder-Based Differentiable Predictive Control},
  author = {Iqbal, Hassan and Li, Xingjian and Ingebrand, Tyler and
            Thorpe, Adam and Kumar, Krishna and Topcu, Ufuk and Drgona, Jan},
  booktitle = {Proceedings of The 8th Annual Learning for Dynamics and Control Conference},
  pages = {299--315},
  year = {2026},
  editor = {Sukhatme, Gaurav and Lindemann, Lars and Tu, Stephen and
            Wierman, Adam and Atanasov, Nikolay},
  volume = {331},
  series = {Proceedings of Machine Learning Research},
  month = {17--19 Jun},
  publisher = {PMLR},
  url = {https://proceedings.mlr.press/v331/iqbal26a.html}
}