Zero-Shot Transferable Solution Method for Parametric Optimal Control Problems

Xingjian Li, Kelvin Kan, Deepanshu Verma, Krishna Kumar, Stanley J. Osher, Ján DrgonaarXiv 2025 · DOI

Introduction

Optimal control is fundamental to robotics and autonomous systems, aiming to find control inputs that minimize a cost function while satisfying system dynamics. However, traditional numerical solvers often struggle with real-time adaptation when task parameters—such as target locations or obstacle positions—change. While local solvers are precise, they are computationally expensive to re-run from scratch. Conversely, global methods like solving the Hamilton-Jacobi-Bellman (HJB) equation face the "curse of dimensionality."

This paper proposes a Function Encoder (FE) framework designed to bridge this gap. By learning a transferable policy representation, the FE method enables zero-shot adaptation to new control tasks without requiring costly online re-optimization or extensive retraining.

Methodology: The Function Encoder Framework

The core innovation of this work is the decomposition of the control problem into an offline learning phase and a lightweight online inference phase.

Offline Training

During the offline phase, the model uses imitation learning on a dataset of expert-solved trajectories to identify a set of $p$ neural network-based basis functions ($\phi_1, \phi_2, \dots, \phi_p$). These functions are trained to span the policy space for a specific set of system dynamics. Essentially, the model learns a "basis" or "alphabet" of control behaviors that can be linearly combined to solve various tasks within that domain.

Online Inference and Zero-Shot Adaptation

When a new task arrives (defined by a parameter $\eta$), the system does not update the neural network weights. Instead, it computes a set of coefficients $\mathbf{c} = [c_1, c_2, \dots, c_p]$ to construct the new control policy $u$ as a linear combination: $$u \approx \sum_{j=1}^{p} c_j \phi_j$$

Overview of the Function Encoder framework, showing the offline training of basis functions and the online inference for zero-shot policy adaptation.

The authors provide two primary methods for determining these coefficients:

  1. Zero-shot Least Squares (LS): This method uses a small amount of trajectory data to project the new task onto the learned basis functions. It offers high accuracy at the cost of requiring minimal online data.
  2. Zero-shot Operator: An auxiliary "operator network" is trained to map task specifications $\eta$ directly to coefficients $c$. This approach is entirely data-free during deployment and enables near-instantaneous adaptation.

Experimental Evaluation

The FE framework was evaluated on three synthetic benchmarks of increasing complexity:

  • 2D Path Planning: A linear system where an agent must navigate to varying target locations while avoiding a central obstacle.
  • 12D Quadcopter: A high-dimensional, nonlinear system requiring the drone to reach different 3D targets from various initial states.
  • Bicycle Model with Obstacles: A nonlinear model where the agent must navigate around single or double Gaussian obstacles.

Results and Discussion

The FE method demonstrates remarkable accuracy and generalization capabilities. In the 12D quadcopter benchmark, the zero-shot LS approach achieved an objective value error of just 0.4% compared to ground-truth optimal solutions across 27 unseen tasks.

State trajectories for different target states in a 2D path planning task. The red dots (predicted) closely follow the grey dots (true optimal) to reach the blue star (target).

Key Insights

  • Linearity in Policy Space: A significant finding is that while system dynamics are nonlinear, the space of optimal policies for a given system can be effectively approximated as a linear subspace.
  • Semi-Global Feedback: Unlike trajectory optimization, the FE framework produces a feedback policy. This allows the system to recover from perturbations from any state within the trained region, rather than just following a fixed path.
  • Robustness to Task Complexity: In the "Double Obstacle" bicycle experiment, the model successfully identified novel pathing strategies (e.g., choosing to go left or right around an obstacle) by combining learned basis functions, even if those specific paths were not in the training set.

Conclusion

The Function Encoder framework provides a powerful method for real-time, zero-shot adaptation in optimal control. By leveraging the linear structure of the policy space, it achieves near-optimal performance on high-dimensional tasks. Future work will focus on extending this framework to systems with changing dynamics and multi-agent environments where task parameters involve dynamic interactions.

Summary updated

BibTeX
@misc{li2025zero,
  author = {Xingjian Li and Kelvin Kan and Deepanshu Verma and Krishna Kumar and Stanley J. Osher and Ján Drgona},
  title = {{Zero-Shot Transferable Solution Method for Parametric Optimal Control Problems}},
  year = {2025},
  eprint = {2509.18404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18404},
}
Figure