Long-Context Linear System Identification

Oğuz Kaan Yüksel, Mathieu Even, Nicolas Flammarion

Introduction

In the field of system identification, researchers attempt to estimate the governing parameters of a dynamical system by observing its trajectories over time. While the theoretical foundations for "order-1" systems—where the next state depends solely on the current state—are well-established, real-world data across domains like robotics and econometrics frequently exhibit long-range dependencies. These are typically modeled as $p^{th}$-order vector autoregressions, where a state $x_t$ depends on a window of $p$ previous states.

The primary challenge in analyzing these systems is that existing mathematical tools for order-1 dynamics do not easily scale to $p > 1$. Standard "mixing time" arguments suggest that as the context window grows, the system takes longer to reach a steady state. Theoretically, this slow mixing should make the system's parameters harder to learn. This paper addresses a fundamental question: Does a long context window actually hinder our ability to learn a linear system's parameters?

The "Learning-Without-Mixing" Phenomenon

The paper's most significant contribution is the formalization of a "learning-without-mixing" phenomenon. The authors reveal that the difficulty of learning a system depends primarily on the total number of observations, rather than how quickly the system "forgets" its past.

Even if a system mixes very slowly due to an extended context window, its parameters can still be learned at a rate comparable to independent and identically distributed (i.i.d.) data. The temporal dependencies do not deflate the statistical value of each sample as much as previously feared; instead, the effective sample size is simply $N(T-p)$, where $N$ is the number of trajectories and $T$ is the trajectory length.

Methodology

The authors focus on Long-Context Linear Autoregressive Models, defined by the equation: $$x_t = \sum_{k=1}^p A_k^* x_{t-k} + \xi_t$$

To estimate the transition matrices $A_k^*$, they employ a Constrained Least Squares (CLS) estimator. Unlike standard Ordinary Least Squares (OLS), CLS restricts the search space to a set of matrices with a bounded operator norm, ensuring stability.

To derive sharp statistical rates without relying on traditional mixing-time arguments, the researchers utilize empirical process theory and Freedman’s inequality for martingales. This mathematical framework allows them to analyze how tightly the data concentrates around its predictable variation without being penalized by the system's slow mixing properties.

Key Results and Scaling Laws

The paper provides the first sharp non-asymptotic sample complexity bounds for identifying linear systems with long-range dependencies. The authors validate these theoretical scaling laws using synthetic datasets, varying state dimensions ($d$), context lengths ($p$), trajectory counts ($N$), and trajectory lengths ($T$).

  • Full-Rank Rate: The estimation error (measured in Frobenius norm) scales as $\tilde{O}\left(\frac{pd^2}{N(T-p)}\right)$. This perfectly matches the parametric rate for i.i.d. multivariate regression, adjusted for the context length $p$.
  • Low-Rank Representations: When the $A_k$ matrices share a low-dimensional structure (rank $r \ll d$), the estimation rate improves to $\tilde{O}\left(\frac{prd}{N(T-p)}\right)$. This demonstrates that rank-regularized estimators can successfully adapt to lower-dimensional structures in complex dynamical systems.

The "Blessing" of Misspecification

Beyond perfectly specified models, the authors explore what happens when a practitioner intentionally or accidentally chooses a context length $p'$ that is shorter than the true length $p$.

Surprisingly, in strictly stable systems, fitting a shorter context window can be statistically advantageous. If the long-term dependencies are relatively small, ignoring them reduces the total number of parameters that need to be estimated. This leads to faster convergence and more accurate estimation for the primary, recent dependencies. The sample complexity in this scenario depends only on the chosen $p'$, allowing the first $p'$ matrices to be learned effectively.

Limitations and Future Directions

While the paper establishes strong statistical foundations, several avenues remain open for future research:

  • Computational Efficiency: The low-rank statistical rates are theoretically proven, but the corresponding estimator relies on a non-convex rank constraint. Finding a polynomial-time algorithm (such as one using nuclear norm relaxation) that achieves these exact rates is an open challenge.
  • Stability Constraints: The favorable misspecification results currently apply only to strictly stable systems, which eventually return to equilibrium. Extending these guarantees to marginally stable systems, where effects can persist indefinitely, requires further investigation.
  • Algorithm Design: With the theoretical limits now established, the next logical step is developing efficient, adaptive algorithms capable of exploiting these long-context properties in real-time applications.

Summary updated

BibTeX
@inproceedings{yuksel2025long,
  author = {Oğuz Kaan Yüksel and Mathieu Even and Nicolas Flammarion},
  title = {{Long-Context Linear System Identification}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=2TuUXtLGhT},
}
Figure