---
title: Linear Stochastic Approximation
url: https://www.emergentmind.com/topics/linear-stochastic-approximation-lsa
type: topic
---

# Linear Stochastic Approximation

Linear stochastic approximation (LSA) is a class of stochastic recursions for solving a linear system or tracking the stable equilibrium of a linear mean field from noisy matrix–vector observations. In its canonical forms, the iterate is written either as
\[
\theta_{n+1}=\theta_n-\alpha\bigl(\mathbf A_{n+1}\theta_n-\mathbf b_{n+1}\bigr)
\]
or, with a different sign convention and explicit Markovian driver,
\[
\Theta_{k+1}=\Theta_k+\epsilon\bigl(A(X_k)\Theta_k+b(X_k)\bigr).
\]
The subject lies at the intersection of stochastic approximation, linear systems, Markov-process theory, and reinforcement learning, and modern work treats fixed- and diminishing-step regimes, i.i.d. and Markovian noise, iterate averaging, statistical inference, and distributed variants [1709.04073, 1902.00923, 2106.01257].

## 1. Core formulation and target equations

The population object behind LSA is a linear equation of the form
\[
\bar A\theta^\star=\bar b,
\]
or, in the mean-field convention used in several papers,
\[
\dot\theta=\bar A\theta+\bar b.
\]
After centering at the equilibrium, the limiting ODE is often written simply as
\[
\dot\theta=\bar A\theta,
\]
with \(\theta^\star=0\) after recentering. The standard stability hypothesis is that \(-\bar A\) is Hurwitz in the root-finding convention, or equivalently that \(\bar A\) is Hurwitz in the mean-drift convention, so that the deterministic linear dynamics is globally asymptotically stable [1902.00923, 2106.01257].

This formulation covers both static noisy linear systems and linear fixed-point equations. In the i.i.d. fixed-step literature, the random observations \((\mathbf A_n,\mathbf b_n)\) are unbiased estimators of \((A,b)\), and the recursion is analyzed as a stochastic solver of \(A\theta^\star=b\) [2106.01257]. In the Markovian setting, the coefficients are functions of a Markov chain \(Z_k\) or \(X_k\), and the mean system is defined with respect to the invariant distribution \(\pi\), for example
\[
\bar A=\mathbb E_\pi[A(Z_0)],\qquad \bar b=\mathbb E_\pi[b(Z_0)].
\]
For exponential-family variational Bayes, the same algebra appears through the covariance identity
\[
\nabla_\eta \mathcal D(q|p)=\Cov_q[T(x),T(x)]\,\eta-\Cov_q[T(x),\log p(x,y)],
\]
so the stationary condition is an expected linear system \(A\eta=b\); this is the sense in which “stochastic linear regression” is LSA-like [1401.1022].

A useful structural distinction runs through the literature. Some analyses target the last iterate of a fixed-step algorithm; others study Polyak–Ruppert averages
\[
\bar\theta_n=\frac1n\sum_{k=0}^{n-1}\theta_k
\]
or tail averages over the second half of the trajectory. That distinction determines whether the leading error is a steady-state fluctuation of order \(\sqrt{\alpha}\) or an averaged statistical fluctuation of order \(n^{-1/2}\) [2106.01257, 2207.04475].

## 2. Stability mechanisms and analytical frameworks

The central stability device is a quadratic Lyapunov function built from the Lyapunov equation
\[
\bar A^\top P+P\bar A=-I
\]
or, with the opposite sign convention,
\[
A^\top Q+QA=I.
\]
With \(W(\theta)=\theta^\top P\theta\), one obtains a deterministic contraction for the mean ODE and, in the stochastic recursion, a drift inequality plus bias terms. In the Markovian constant-step analysis of linear stochastic approximation, this same quadratic \(W\) is interpreted both as the standard Lyapunov function of the linear ODE and as the Stein function for steady-state performance bounds; in this linear setting, the Stein equation and the Lyapunov equation coincide [1902.00923].

For i.i.d. fixed-step LSA, a complementary framework is random matrix-product analysis. Writing
\[
\Gamma_{m:n}^{(\alpha)}=\prod_{i=m}^n (I-\alpha \mathbf A_i),
\]
the error decomposes into a transient term carried by \(\Gamma_{1:n}^{(\alpha)}\) and a fluctuation term that is a weighted sum of innovations. Tight control of moments of \(\Gamma_{m:n}^{(\alpha)}\) yields sharp non-asymptotic bounds even when the random matrices are non-symmetric and only mean-stable, not pathwise contractive [2106.01257].

In diminishing-step stochastic approximation with Markovian noise, the dominant tool is the ODE method. The extension of the Borkar–Meyn stability theorem to Markovian noise studies
\[
x_{n+1}=x_n+\alpha(n)H(x_n,Y_{n+1}),
\]
the scaled drift \(H_c(x,y)=H(cx,y)/c\), and the ODE at infinity
\[
\dot x=h_\infty(x).
\]
If \(h_\infty\) has \(0\) as a globally asymptotically stable equilibrium and the Markov noise satisfies either strong-law-type asymptotic-rate conditions or a \(V4\)-drift/Poisson route, then the iterates are almost surely bounded and converge to a bounded invariant set of the mean ODE [2401.07844].

Markovian analyses additionally expose mixing time as an explicit parameter. In constant-step LSA with Markovian noise, one typically defines \(\tau_\epsilon\) so that conditional expectations of \(A(X_k)\) and \(b(X_k)\) are within \(\epsilon\) of stationarity after \(k\ge \tau_\epsilon\), with geometric mixing giving \(\tau_\epsilon=O(\log(1/\epsilon))\) [1902.00923]. This dependence survives in finite-time error floors, sample complexity, and, in some distributed settings, interaction with graph-dependent contraction factors [2111.12665].

## 3. Finite-time behavior, moments, and tail phenomena

The modern finite-time theory shows that fixed-step LSA has a sharp transient-versus-stationary decomposition. For Markovian LSA with constant step size \(\epsilon\), one obtains a mean-square bound of the form
\[
E[\|\Theta_k\|^2]\le \text{geometrically decaying transient}+O(\epsilon\tau_\epsilon),
\]
so under geometric mixing the steady-state scale becomes \(O(\epsilon\log(1/\epsilon))\) [1902.00923]. In the same analysis, lower-order moments of \(\|\Theta_k\|^2\) satisfy Gaussian-style bounds up to order \(n=O(1/(\epsilon\tau_\epsilon))\), but sufficiently high steady-state moments may fail to exist. The paper states explicitly that the stationary law is “not Gaussian, not sub-Gaussian, not even sub-exponential in general” [1902.00923].

The i.i.d. fixed-step high-probability theory sharpens this picture. Under bounded random matrices, sub-Gaussian vector noise, and only the assumption that the mean matrix is Hurwitz, the last iterate admits a decomposition into a geometrically decaying transient, a leading fluctuation term with covariance given by the discrete Lyapunov equation
\[
A\Sigma^{(\alpha)}+\Sigma^{(\alpha)}A^\top-\alpha A\Sigma^{(\alpha)}A^\top=\Sigma_\varepsilon,
\]
and higher-order multiplicative-noise corrections. The dominant steady-state fluctuation is \(O(\sqrt{\alpha})\), matching the fixed-step CLT scale, but the confidence dependence is only polynomial under these weak assumptions; the paper proves that Gaussian or exponential concentration cannot hold in general [2106.01257]. This rules out a common misreading of diffusion limits: weak Gaussian limits as \(\alpha\downarrow 0\) do not imply Gaussian tails at a fixed nonzero step size.

For Polyak–Ruppert-averaged fixed-step LSA, the finite-time bounds are sharper still. With i.i.d. or uniformly geometrically ergodic Markov data, the leading term in the moment and high-probability bounds for the averaged iterate matches the local asymptotic minimax covariance, and the admissible fixed step size scales only with \(1+\log d\), not a polynomial in \(d\) [2207.04475]. In the Markov case, the remainder terms depend explicitly on the mixing time \(t_{\mathrm{mix}}\), and the optimized step size scales as \(n^{-2/3}t_{\mathrm{mix}}^{-1/3}\) in the averaged high-probability theory [2207.04475].

## 4. Averaging, asymptotics, and statistical inference

Iterate averaging is the principal device that turns fixed-step LSA from a stationary-fluctuation procedure into a statistically efficient estimator. For i.i.d. LSA with constant step size and Polyak–Ruppert averaging, the averaged iterate satisfies an MSE bound of the form
\[
\mathbb E\|\hat\theta_t-\theta_\star\|^2 \le \nu\left\{\frac{\|\theta_0-\theta_\star\|^2}{(t+1)^2}+\frac{v^2}{t+1}\right\},
\]
so the dominant rate is \(O(1/t)\) for the averaged output. The same work also shows that a constant step size cannot, in general, be chosen uniformly over broad classes of LSA problems: instancewise admissible intervals exist, but not all bounded Hurwitz classes admit a universal constant step size [1709.04073].

Under Markovian noise, averaging remains asymptotically optimal in a finer sense. For constant-step Markovian LSA solving a linear fixed-point problem from a trajectory of an ergodic Markov chain, the averaged iterate has a non-asymptotic instance-dependent error bound whose leading term is
\[
\frac1n\operatorname{Tr}\!\left((I_d-\bar L)^{-1}\Sigma_\star (I_d-\bar L)^{-\top}\right),
\]
matching the local asymptotic minimax limit. The paper also proves a local minimax lower bound, establishing instance-optimality of the averaged estimator in the large-sample regime and showing that the worst-case scaling is \(t_{\mathrm{mix}}d/n\) up to logarithmic factors [2112.12770].

This asymptotic viewpoint has recently been extended from estimation to inference. For Polyak–Ruppert-averaged Markovian LSA with decreasing stepsizes, one-dimensional projections satisfy a non-asymptotic Berry–Esseen bound in Kolmogorov distance of order \(O(n^{-1/4})\) up to logarithms, and a multiplier subsample block bootstrap yields non-asymptotically valid confidence intervals, with rate \(O(n^{-1/10})\) up to logarithmic factors for the bootstrap approximation and \(O(n^{-1/8})\) up to logs for asymptotic variance estimation [2505.19102]. In the i.i.d. decreasing-step setting, a later refinement replaces direct comparison with the Polyak–Juditsky limit by a two-stage comparison through the finite-\(n\) covariance \(\Sigma_n\), improving the multivariate Gaussian approximation rate in convex distance to \(n^{-1/3}\) up to logarithms and yielding a multiplier bootstrap approximation rate up to \(1/\sqrt n\) [2510.12375].

## 5. Constant stepsizes, Markovian bias, and extrapolation

A central distinction between i.i.d. and Markovian fixed-step LSA is the existence of a genuine stationary bias under dependence. Viewing the pair \((x_k,\theta_k)\) as a time-homogeneous Markov chain, constant-step Markovian LSA converges geometrically in Wasserstein distance to a unique invariant distribution, and the stationary mean admits the expansion
\[
\mathbb E[\theta_\infty^{(\alpha)}]-\theta^\ast=\sum_{i=1}^\infty \alpha^i B^{(i)}.
\]
The leading term is linear in \(\alpha\), and the paper emphasizes that this stands in contrast with the i.i.d. case, for which the bias vanishes. It also proves that Polyak–Ruppert tail averaging reduces variance but does not affect this bias [2210.00953].

The same line of work relates the bias magnitude to mixing. In the reversible-chain setting, the coefficients \(B^{(i)}\) are controlled by the absolute spectral gap, so the leading bias is roughly proportional to
\[
\alpha \times \frac{1-\gamma(P)}{\gamma(P)},
\]
which the paper interprets as proportional to the Markov-chain mixing time up to logarithmic factors [2210.00953]. This identifies the mechanism behind the bias: persistent state–iterate dependence induced by temporal correlation.

Richardson–Romberg extrapolation is then a natural bias-cancellation device. With multiple constant stepsizes \(\{\alpha_1,\dots,\alpha_m\}\) and weights \(h_i\) satisfying
\[
\sum_{i=1}^m h_i=1,\qquad \sum_{i=1}^m h_i\alpha_i^\ell=0,\quad \ell=1,\dots,m-1,
\]
the first \(m-1\) terms of the bias expansion cancel [2210.00953]. For the two-stepsize case used later in the literature,
\[
\bar\theta_n^{\alpha,\mathrm{RR}}=2\bar\theta_n^\alpha-\bar\theta_n^{2\alpha},
\]
the \(O(\alpha)\) term is removed. High-order analysis of constant-step Markovian LSA with PR averaging shows that this leading bias term cannot be eliminated by averaging alone, but RR does cancel it, and the leading fluctuation term of the RR iterate still aligns with the asymptotically optimal covariance matrix of vanilla averaged LSA [2508.05570].

This bias perspective also changes statistical inference. For averaged constant-step Markovian LSA, a CLT holds around the stationary mean \(\mathbb E[\theta_\infty]\), not automatically around \(\theta^\ast\). The resulting inference pipeline therefore uses either sufficiently small \(\alpha\), zero-bias model classes, or RR extrapolation to target \(\theta^\ast\). The same work identifies important zero-bias settings, including independent multiplicative-noise models, linear regression with independent additive observation noise, and realizable linear TD learning [2312.10894]. A common misconception is therefore incorrect: in Markovian fixed-step LSA, averaging alone does not generally debias the estimator.

## 6. Reinforcement learning, distributed variants, and other extensions

Reinforcement learning is one of the principal application domains of LSA. Constant-step TD(0) with linear function approximation can be written exactly in LSA form by taking
\[
A(X_k)= -\phi(Z_k)\bigl(\phi^\top(Z_k)-\alpha \phi^\top(Z_{k+1})\bigr),\qquad
b(X_k)= c(Z_k)\phi(Z_k)-A(X_k)\theta^\ast,
\]
after centering around the TD fixed point; TD(\(\lambda\)) is handled analogously by augmenting the Markov state with the eligibility trace [1902.00923]. For diminishing-step algorithms with trace variables, the Markov-noise ODE method covers GTD(\(\lambda\)) and ETD(\(\lambda\)) as linear stochastic approximations on enlarged state spaces, requiring only that the averaged drift matrix be Hurwitz rather than negative definite [2401.07844]. In the non-asymptotic Markovian averaged theory, the full TD(\(\lambda\)) family for \(\lambda\in[0,1)\) appears as a direct corollary, with the instance-dependent leading term making explicit how \(\lambda\) changes the covariance structure [2112.12770].

Networked and multi-agent variants produce a different extension. In distributed LSA over time-varying directed graphs with merely row-stochastic interaction matrices, the correct aggregate is a time-varying weighted average defined by the absolute probability sequence \(\pi_t\), and the equilibrium becomes the convex combination
\[
\theta^\ast=-A^{-1}\sum_{i=1}^N \pi_\infty^i b^i
\]
rather than the straight average of local equilibria. Finite-time mean-square bounds are obtained by combining a single-agent Markovian LSA analysis for the weighted average with a network-disagreement analysis based on blockwise contraction and time-varying weighted quadratic comparison functions. When equal weighting is required on directed graphs, a push-sum-type algorithm restores the arithmetic average objective [2111.12665].

Two additional directions illustrate the breadth of the LSA viewpoint. In fixed-form variational Bayes, the exponential-family gradient can be rewritten as \(A\eta-b\), with
\[
A=\Cov_q[T(x),T(x)],\qquad b=\Cov_q[T(x),\log p(x,y)],
\]
and the resulting “stochastic linear regression” interpretation motivates covariance-aware control variates and regression coefficients that, in the ideal matching exponential-family case, yield zero-variance gradient estimators [1401.1022]. In simulation-based approximate policy iteration with linear function approximation, the inner gradient-descent recursion that solves the least-squares policy-evaluation problem is itself a linear recursion of the form
\[
\theta_{\ell+1}=\theta_\ell+\beta(b-A\theta_\ell),
\]
so the algorithm can be read as a nested or two-timescale extension of LSA rather than as classical TD learning [2210.07338].

Across these developments, LSA serves less as a single algorithm than as a unifying linear stochastic dynamical template. The common analytical themes are the Hurwitz stability of the mean drift, Lyapunov or ODE comparison, explicit separation of transient and stationary components, and the recognition that averaging, concentration, and bias correction play fundamentally different roles depending on whether the driving noise is i.i.d. or Markovian.

Source: https://www.emergentmind.com/topics/linear-stochastic-approximation-lsa