Learning nonlinear dynamical systems from a single trajectory

Dylan J. Foster, Tuhin Sarkar, Alexander Rakhlin

Abstract

This paper presents a computationally efficient framework for learning the parameters of nonlinear dynamical systems from a single observed trajectory. By integrating Lyapunov stability theory from control systems with statistical learning theory, the authors demonstrate that stable systems generate data that is sufficiently well-conditioned for optimal parameter recovery. The proposed algorithm, a variant of the GLMtron, handles non-smooth link functions such as the ReLU and achieves statistically optimal sample complexity without requiring the strict monotonicity or invertibility assumptions prevalent in prior literature.

Introduction

In traditional machine learning, the assumption that data points are independent and identically distributed (i.i.d.) is fundamental. However, in domains such as robotics, finance, and climate science, data is inherently sequential. In these settings, we observe a trajectory where each state $x_{t+1}$ depends on the previous state $x_t$. Learning from a single trajectory is a significant challenge because the temporal dependencies entangle the signal with the noise, complicating the estimation of the underlying system parameters.

While linear dynamical systems ($x_{t+1} = Ax_t + \epsilon_t$) are well-understood, nonlinear systems present substantial hurdles. This research focuses on Generalized Linear Models (GLMs) in a dynamical context, defined by the transition function:

$$x_{t+1} = \sigma(\Theta^\star x_t) + \epsilon_t$$

where $\Theta^\star$ is the weight matrix to be recovered, $\sigma$ is a nonlinear link function, and $\epsilon_t$ is additive noise. The authors aim to recover $\Theta^\star$ using only one sequence of observations, moving beyond previous constraints that required strictly increasing link functions or restrictive bounds on the spectral norm of the weight matrices.

Methodology

The authors introduce Algorithm 1, an adaptation of the "GLMtron" algorithm designed to handle dependent data. The approach relies on three primary technical pillars:

1. The Pseudogradient Trick

Standard gradient descent on non-convex loss functions often leads to computational intractability. To circumvent this, the algorithm utilizes a "pseudogradient" update. By essentially ignoring the derivative of the nonlinear link function $\sigma$ during the update step, the algorithm maintains linear time complexity. This modification is particularly robust, allowing the learner to process non-smooth functions like the Rectified Linear Unit (ReLU).

2. Lyapunov Stability as a Statistical Tool

A central challenge in learning from a single trajectory is ensuring the data "covers" the state space enough to identify the parameters. The authors employ Lyapunov functions—a cornerstone of control theory—to certify the stability of the system. They prove that if a system is globally exponentially stable (g.e.s.), the resulting trajectory is guaranteed to be well-behaved (mathematically, the empirical covariance matrix remains well-conditioned). This ensures the system neither explodes to infinity nor collapses to a point, providing a rich enough signal for statistical estimation.

3. Projected Gradient Descent

The algorithm iteratively updates the estimate of the weight matrix and projects it back onto a feasible set defined by a Frobenius norm bound $W$. This ensures the estimates remain within a physically and mathematically plausible range throughout the learning process.

Key Insights and Theoretical Contributions

Stability Implies Learnability

The most significant contribution of this work is the formal bridge established between global exponential stability and lower isometry. The authors show that stability is not just a requirement for system safety, but a sufficient condition for statistical learnability. If a system is stable, the data it generates is inherently well-conditioned for parameter recovery.

Beyond Strict Monotonicity

Previous research into GLMs typically required the link function $\sigma$ to be strictly increasing. This paper breaks that convention by showing that parameters for the ReLU function (which is non-invertible and flat for negative inputs) can be recovered. The authors demonstrate that as long as the system includes Gaussian noise to occasionally "push" the state into the active region of the ReLU, the underlying weights can be identified.

Optimal Complexity and Spectral Bounds

The analysis shows that the proposed approach achieves a sample complexity of $O(\sqrt{d^2/n})$, which is statistically optimal for this class of problems. Furthermore, the authors relax the requirements on the weight matrix. While prior work required the spectral norm to be less than one, this analysis only requires a bound on a generalization of the spectral radius, a much more natural and less restrictive assumption for stable dynamical systems.

Results

The theoretical analysis yields several key performance guarantees:

  1. Computational Efficiency: The algorithm scales linearly with the number of samples and the size of the weight matrix, making it suitable for high-dimensional systems.
  2. Recovery Rates:
    • For general Lipschitz link functions, the algorithm achieves a "slow" error rate of $1/\sqrt{n}$.
  3. For strictly increasing link functions (e.g., Leaky ReLU), it achieves a "fast" prediction error rate of $1/n$ and a parameter recovery rate of $1/\sqrt{n}$ in the Frobenius norm.
  4. ReLU Success: The paper provides the first formal guarantees for recovering ReLU dynamics under Gaussian noise, a vital step toward understanding the training of neural-network-like dynamics.

Discussion and Limitations

While the paper provides a robust theoretical foundation, certain limitations remain. The error bounds for ReLU systems contain terms that depend exponentially on stability parameters, suggesting that systems which are only "marginally" stable may require very long trajectories for accurate learning. Additionally, the current framework is specific to GLMs; extending these guarantees to more complex, multi-layer recurrent neural networks (RNNs) is a clear path for future research. Finally, the algorithm assumes the learner knows the system is stable and possesses a bound $W$ on the weights; developing "agnostic" learners that can function without these priors remains an open challenge.

Summary updated

BibTeX
@inproceedings{foster2020learning,
  author = {Dylan J. Foster and Tuhin Sarkar and Alexander Rakhlin},
  title = {{Learning nonlinear dynamical systems from a single trajectory}},
  booktitle = {L4DC},
  year = {2020},
}
Figure