Abstract
Estimating the parameters of linear dynamical systems from a single trajectory of data is a fundamental challenge in reinforcement learning and time-series analysis. While offline methods like Ordinary Least Squares (OLS) are well-understood, streaming algorithms often struggle with the inherent temporal correlations in the data, leading to statistical bias. This paper introduces Stochastic Gradient Descent with Reverse Experience Replay (SGD-RER), a first-order streaming method that achieves information-theoretically optimal error rates. By processing data buffers in reverse chronological order, SGD-RER effectively decorrelates samples, matching the performance of offline estimators while maintaining computational efficiency.
Introduction
In many real-world applications, we seek to identify the transition matrix $A^*$ of a linear time-invariant (LTI) system governed by the equation $X_{\tau+1} = A^* X_\tau + \eta_\tau$, where $\eta_\tau$ represents noise. In a streaming setting, data points arrive sequentially, and the current state $X_\tau$ is intrinsically linked to previous states and noise terms.
Standard Stochastic Gradient Descent (SGD) typically assumes independent and identically distributed (i.i.d.) samples. When applied to streaming time-series data, the correlation between the current sample's noise and future states introduces a persistent bias that prevents the estimator from converging to the true parameter. Even traditional "Experience Replay" techniques, which sample randomly from a buffer, fail to eliminate this bias for practical buffer sizes.
The SGD-RER Algorithm
To overcome the limitations of standard streaming methods, we propose SGD-RER. The algorithm leverages a specific data-processing strategy designed to "unravel" temporal dependencies.
Buffering and Reverse Replay
The core innovation lies in how data is sampled and processed. Data is collected into discrete buffers of size $B$, separated by gaps of size $u$. These gaps ensure that the buffers are approximately independent of one another. Within each buffer, the algorithm performs SGD updates in reverse chronological order.
In a standard forward update, the state $X_\tau$ is correlated with the noise $\eta_{\tau-1}$ that generated it. By reversing the sequence within the buffer, the algorithm ensures that the state used in the update is independent of the subsequent noise term in the reversed sequence. This "reverse replay" effectively decorrelates the samples, satisfying the independence requirements of SGD without discarding significant amounts of data.
Tail Averaging and Efficiency
To further stabilize the estimation, SGD-RER employs tail averaging, maintaining a running average of iterates from the latter half of each buffer. As a first-order method, it relies solely on gradients, avoiding the expensive matrix inversions required by online OLS variants. This makes the algorithm highly scalable and suitable for high-dimensional or sparse settings.
Performance and Key Insights
The effectiveness of SGD-RER is rooted in its ability to break the "mixing time barrier." Most streaming methods for dependent data have error rates tied to the system's mixing time—the duration required for the system to lose memory of its past states. SGD-RER’s leading error term is nearly independent of this mixing time, allowing it to match the statistical efficiency of offline OLS.
Empirical evaluations using synthetic Gaussian VAR(1) models demonstrate that while standard SGD and standard Experience Replay (SGD-ER) eventually hit an error floor due to bias, SGD-RER continues to improve. It tracks the performance of the OLS estimator while maintaining a space complexity of $O(Bd + d^2)$, where the buffer size $B$ grows only logarithmically with the total number of samples $T$.
Furthermore, the method is adaptable to sparse LTI systems. When the sparsity pattern of $A^*$ is known, SGD-RER achieves error rates that scale with the number of non-zero entries rather than the full dimensionality of the matrix.
Conclusion and Future Work
SGD-RER provides a robust framework for streaming system identification by exploiting the directional nature of Markovian dependencies. While it achieves minimax optimality for fully observed systems, several avenues for future research remain. These include extending the method to handle unknown sparsity patterns, adapting it for partially observed systems (similar to Kalman Filtering), and incorporating external control inputs to broaden its applicability in reinforcement learning and control theory.
Summary updated