Logarithmic Regret for Nonlinear Control

James Wang, Bruce D. Lee, Ingvar M. Ziemann, Nikolai MatniL4DC 2025 · DOI

Abstract

In the field of reinforcement learning and control, achieving "fast learning"—where the cost of uncertainty grows only logarithmically with time—has long been a benchmark for efficiency. While well-established for linear systems, extending these rates to nonlinear dynamics has remained a significant challenge. This paper demonstrates that logarithmic regret is achievable for a broad class of unknown nonlinear dynamical systems by leveraging the "persistence of excitation" (PE) inherent in optimal control policies. By utilizing a "Continuous Refinement" algorithm, the authors show that a learner can converge to optimal performance rapidly without the need for excessive exploratory noise, provided the optimal behavior of the system is naturally informative.

Introduction

A fundamental challenge in controlling unknown systems, such as robotic platforms or medical dosing models, is the exploration-exploitation trade-off. To minimize costs, a controller must exploit its current knowledge; however, to improve its model of the underlying physics, it must experiment. This experimentation incurs regret: the cumulative difference between the cost incurred by the learner and the cost that would have been incurred by an agent with perfect knowledge of the system parameters.

In most complex nonlinear settings, regret typically grows at a rate of $\sqrt{N}$, where $N$ is the number of interactions. In high-stakes applications, this rate may be too slow. While logarithmic regret ($\log N$) was known to be possible for simple Linear Quadratic Regulators (LQR), this paper addresses whether such fast rates can be extended to general nonlinear systems where parameters may appear nonlinearly in the dynamics.

Methodology: The Continuous Refinement Algorithm

The authors propose Algorithm 1: Continuous Refinement, a two-phase approach designed to transition from initial uncertainty to high-precision control:

  1. Initial Exploration (Warm-up): The learner begins with a known, slightly randomized policy to collect an initial dataset. By solving a nonlinear least-squares problem, the learner establishes a baseline estimate of the system parameters and defines a "confidence ball" representing the likely location of the true parameters.
  2. Iterative Refinement: In subsequent episodes, the learner adopts a Certainty Equivalent policy. This means the agent acts as if its current best estimate is the absolute truth. The resulting trajectory data is then used to update the parameter estimate via an online gradient descent-style step.

The Persistency of Excitation (PE) Condition

The core theoretical contribution is the application of the Persistency of Excitation condition. The authors argue that if the optimal policy for a given task is naturally "exciting"—meaning it moves the system in a way that reveals hidden parameters—then simply attempting to perform the task well is sufficient for learning. This eliminates the need for the learner to "force" exploration through artificial noise, which often leads to higher regret.

Theoretical Foundations

To bridge the gap between prediction error (how well the model predicts the next state) and parameter error (how close the estimated parameters are to the truth), the authors employ the Lojasiewicz condition. This mathematical framework allows the analysis to handle systems where the relationship between parameters and system behavior is highly complex and nonlinear. By connecting classical system identification concepts with modern regret analysis, the paper proves that under the PE condition, expected regret grows only as $\text{poly}(\dots) \log N$.

Furthermore, the authors provide a safety net: if the optimal policy is not informative (lacking PE), a simpler "Explore-Then-Commit" strategy still guarantees $\sqrt{N} \log N$ regret, ensuring that the learner does not fail catastrophically even in less-than-ideal conditions.

Empirical Validation

The theoretical findings were validated through two primary simulations:

  • Toy 2D Nonlinear System: A custom environment featuring exponential and fractional terms designed to test complex nonlinear parameter dependencies. In this setting, the regret curve followed the predicted logarithmic trend.
  • Cartpole System: A classic control benchmark where a pole must be balanced on a moving cart. The authors utilized a Neural Network (Multi-Layer Perceptron) as the policy class. The results demonstrated that the cost of the learned controllers converged rapidly to the "best-in-class" benchmark, showing that the theory holds even when paired with modern deep learning architectures.

Discussion and Future Work

While this paper marks a significant step forward in nonlinear control, several challenges remain:

  • Computational Complexity: The algorithm requires solving a full policy optimization problem in every episode, which may be computationally prohibitive for very high-dimensional systems.
  • Episodic vs. Continuous Learning: The current analysis assumes an episodic structure with periodic resets. Extending these logarithmic bounds to a single, continuous trajectory remains a primary objective for future research.
  • Mixing and Stability: The current bounds depend polynomially on the episode length. Future work may reduce this to a linear dependence by incorporating assumptions regarding system stability or "mixing" times.

In conclusion, this work provides the first proof of polylogarithmic regret for general nonlinear systems with nonlinear parameter dependencies, offering a robust framework for fast learning in complex, unknown environments.

Summary updated

BibTeX
@inproceedings{wang2025logarithmic,
  author = {James Wang and Bruce D. Lee and Ingvar M. Ziemann and Nikolai Matni},
  title = {{Logarithmic Regret for Nonlinear Control}},
  booktitle = {L4DC},
  year = {2025},
  doi = {10.48550/arxiv.2501.10261},
}
Figure