Online Policy Optimization in Unknown Nonlinear Systems

Yiheng Lin, James A. Preiss, Fengze Xie, Emile Anand, Soon‐Jo Chung, Yisong Yue, Adam Wierman · DOI

Abstract: We study online policy optimization in nonlinear time-varying dynamical systems where the true dynamical models are unknown to the controller. This problem is challenging because, unlike in linear systems, the controller cannot obtain globally accurate estimations of the ground-truth dynamics using local exploration. We propose a meta-framework that combines a general online policy optimization algorithm ($\texttt{ALG}$) with a general online estimator of the dynamical system's model parameters ($\texttt{EST}$). We show that if the hypothetical joint dynamics induced by $\texttt{ALG}$ with known parameters satisfies several desired properties, the joint dynamics under inexact parameters from $\texttt{EST}$ will be robust to errors. Importantly, the final policy regret only depends on $\texttt{EST}$'s predictions on the visited trajectory, which relaxes a bottleneck on identifying the true parameters globally. To demonstrate our framework, we develop a computationally efficient variant of Gradient-based Adaptive Policy Selection, called Memoryless GAPS (M-GAPS), and use it to instantiate $\texttt{ALG}$. Combining M-GAPS with online gradient descent to instantiate $\texttt{EST}$ yields (to our knowledge) the first local regret bound for online policy optimization in nonlinear time-varying systems with unknown dynamics.

Introduction

In classical control theory, researchers often assume access to a perfect mathematical model of the system. However, real-world systems like drones or robotic arms are subject to wear, environmental shifts, and unmodeled physics. Online policy optimization aims to update controllers in real-time based on incoming data.

Nonlinear systems present a significant challenge: unlike linear systems, local exploration does not necessarily provide information about global system behavior. Most existing methods require a known model or are restricted to simple linear dynamics. This work addresses the question: Can we optimize a control policy for an unknown, time-varying, nonlinear system without needing to learn a globally accurate model?

The Meta-Framework

The proposed solution is a two-part meta-framework that decouples the optimization of the controller from the estimation of the system's unknown dynamics.

  1. ALG (The Optimizer): An online policy optimization algorithm that updates the controller's parameters $\theta_t$.
  2. EST (The Estimator): An online regression module that predicts the unknown components of the system's dynamics, providing estimates $\hat{a}_t$.
The proposed meta-framework architecture, integrating an online policy optimizer (ALG) with a model parameter estimator (EST).

By analyzing the joint dynamics of the controller and the physical system, the authors prove that if the optimizer (ALG) is robust to small perturbations, it can successfully handle the inevitable errors made by the estimator (EST). This "lazy learning" philosophy implies that the controller only needs to fit the trajectory it is currently visiting, rather than learning a globally accurate model of the entire state space.

Algorithmic Implementation: M-GAPS

To make this framework practical, the authors introduced Memoryless Gradient-based Adaptive Policy Selection (M-GAPS). While previous state-of-the-art algorithms required memory that grew over time ($O(\log T)$), M-GAPS utilizes an auxiliary internal state to track partial derivatives. This achieves $O(1)$ memory and computational complexity per time step without sacrificing performance.

Algorithm 1: The Meta-Framework loop for online policy optimization and parameter estimation.

As shown in Algorithm 1, at each time step, the controller decides an input $u_t$, the system evolves, and the estimator updates its parameters based on a noisy observation $\tilde{f}_t$ of the system's behavior.

Key Insights and Results

  • Robustness via Contraction: The framework relies on "contraction stability," ensuring that errors in model estimation do not explode. The system naturally tends to stay near the intended path even with imperfect information.
  • First Local Regret Bound: The authors provide the first sublinear local regret bound for unknown nonlinear time-varying systems, showing an expected local regret of roughly $O(T^{3/4})$ under specific conditions.
  • Efficiency and Performance: In simulations involving scalar discrete-time nonlinear systems with abrupt parameter jumps, the M-GAPS framework significantly outperformed traditional adaptive controllers, adapting quickly to minimize cumulative costs.

Limitations and Future Work

The current instantiation of the framework relies on "matched disturbances," where the controller has sufficient authority to cancel out unknown nonlinearities. Future research may explore "unmatched" cases and move toward entirely non-parametric estimation, such as using deep neural networks for the EST module, to further generalize the framework's applicability to complex robotic systems.

Summary updated

BibTeX
@inproceedings{lin2024online,
  author = {Yiheng Lin and James A. Preiss and Fengze Xie and Emile Anand and Soon‐Jo Chung and Yisong Yue and Adam Wierman},
  title = {{Online Policy Optimization in Unknown Nonlinear Systems}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  url = {https://openreview.net/forum?id=JoFk5ZZSap},
}
Figure