---
title: Linear Recurrent Autoencoder Networks
url: https://www.emergentmind.com/topics/linear-recurrent-autoencoder-networks-lrans
type: topic
---

# Linear Recurrent Autoencoder Networks

Linearly Recurrent Autoencoder Networks (LRANs) are neural architectures for learning low-dimensional approximations of nonlinear dynamical systems by combining a learned encoder, linear recurrent dynamics in latent space, and a nonlinear decoder. In the formulation introduced by Otto and Rowley, LRANs are explicitly motivated by neural-network approximations of the Koopman operator and by limitations of Extended Dynamic Mode Decomposition (EDMD), particularly the trade-off between dictionary expressivity and overfitting under finite data [1712.01378]. The defining premise is that a compact latent state can evolve linearly while the full state need not be linearly reconstructible from that latent representation, because reconstruction is handled by a nonlinear decoder.

## 1. Koopman-theoretic setting and motivation

LRANs are formulated for discrete-time systems of the form $x_{t+1} = F(x_t)$ on a state space $M \subset \mathbb{R}^n$, and also admit a continuous-time interpretation through the Koopman semigroup. For an observable $f : M \to \mathbb{C}$, the discrete-time Koopman operator acts by composition,
$
(\mathcal{K} f)(x) = f(F(x)),
$
and remains linear even when the underlying state dynamics are nonlinear. In continuous time, with flow $\Phi_t(x)$, the Koopman semigroup satisfies
$
\mathcal{K}_t \psi(x) = \psi(\Phi_t(x)),
$
with infinitesimal generator
$
\mathcal{K} \psi(x) = \nabla_x \psi(x) \cdot f(x).
$
Koopman eigenfunctions $\varphi_i$ evolve linearly under the operator, with eigenvalues $\mu_i$ in discrete time or $\lambda_i$ in continuous time, and $\mu_i = e^{\lambda_i \Delta t}$ under sampling.

The central motivation for LRANs is the observation that EDMD approximates the Koopman operator on a finite dictionary $\Psi(x)$, but larger dictionaries do not automatically improve generalization. The cited work identifies a fundamental trade-off: richer dictionaries increase representational capacity, yet finite data impose an effective rank bound and may induce overfitting. A counterexample described in the source shows that adding a single superfluous feature to a dictionary that already contains the true eigenfunctions can cause severe overfitting, with incorrect learned eigenvalues and eigenfunctions despite near-zero training residuals [1712.01378].

LRANs address this difficulty by replacing a fixed hand-designed dictionary with a learned encoder that maps observations into a low-dimensional latent space intended to approximate a Koopman-invariant subspace. This suggests a reinterpretation of Koopman learning: rather than selecting a large observable library and then regularizing the resulting operator estimate, one may learn a compact observable coordinate system jointly with the linear latent dynamics and a reconstruction map.

## 2. Core architecture and mathematical formulation

The canonical LRAN consists of three components: an encoder, linear recurrent latent dynamics, and a decoder. The encoder maps the state to a latent code,
$
f_{\theta} : x_t \mapsto z_t \in \mathbb{C}^d, \qquad z_t = \Psi(x_t; \theta_{enc}),
$
where $d$ is a low latent dimension. The latent recurrence is linear and time-invariant,
$
z_{t+1} = K z_t,
$
so that multi-step predictions take the form
$
z_{t+i} = K^i z_t.
$
For continuous-time data with irregular sampling, the latent state evolves as
$
z(t_k) = \exp\!\big(K (t_k - t_0)\big) z(t_0).
$

The decoder reconstructs the physical state from the latent coordinate,
$
g_{\phi} : z_t \mapsto \hat{x}_t, \qquad \hat{x}_t = g_{\phi}(z_t) = \tilde{\Psi}(z_t; \theta_{dec}).
$
This decoder is nonlinear. That design choice is a defining distinction from standard DMD- or EDMD-style reconstructions, which typically assume the full state is linearly represented in an invariant subspace. In LRANs, the latent space is required to support linear evolution, but the state need not itself belong to that linear span.

When the learned matrix $K$ is diagonalizable, the encoded coordinates define an approximate Koopman-invariant subspace. If $W_R$, $W_L$, and $\Lambda = \operatorname{diag}(\mu_1,\ldots,\mu_r)$ denote right eigenvectors, left eigenvectors, and eigenvalues of $K$, then approximate Koopman eigenfunctions are linear functionals of the encoded state,
$
\varphi_j(x) \approx w_{R,j}^T z = w_{R,j}^T \Psi(x; \theta_{enc}),
$
and satisfy
$
\varphi_j(F(x)) \approx \mu_j \varphi_j(x).
$
Thus the network learns observables whose temporal evolution is linear, even though the underlying dynamics and reconstruction map remain nonlinear.

A related reconstruction framework in the same work is partially linear multi-kernel regression,
$
\mathbf{x} = C_1 z + C_2 \Psi(z) + e,
$
used primarily with KDMD reduced-order models. This combines a dominant linear dependence on $z$ with a nonlinear correction in an RKHS, and is intended for cases in which the data lie near a curved low-dimensional manifold [1712.01378].

## 3. Training objectives, optimization, and spectral structure

LRAN training is explicitly multi-step. Given a sequence $\{x_t, x_{t+1}, \ldots, x_{t+\mathcal{T}-1}\}$, the model computes encoded states
$
z_{t+\tau} = \Psi(x_{t+\tau}; \theta_{enc}),
$
predicted latent states
$
\hat{z}_{t+\tau} = K^\tau z_t,
$
and decoded predictions
$
\hat{x}_{t+\tau} = \tilde{\Psi}(\hat{z}_{t+\tau}; \theta_{dec}).
$
The loss combines normalized reconstruction error in state space with normalized error in latent space, weighted across the rollout horizon by a discount factor $\delta \in (0,1]$ and relative weighting parameter $\beta$:
$$
J(\theta_{enc}, \theta_{dec}, \theta_K) =
\mathbb{E}_{\text{data}}
\Biggl\{
\frac{1}{1+\beta}
\Biggl[
\sum_{\tau=0}^{\mathcal{T}-1}
\frac{\delta^\tau}{N_1(\delta)}
\frac{\|\hat{x}_{t+\tau} - x_{t+\tau}\|^2}{\|x_{t+\tau}\|^2 + \epsilon_1}
+
\beta
\sum_{\tau=1}^{\mathcal{T}-1}
\frac{\delta^{\tau-1}}{N_2(\delta)}
\frac{\|\hat{z}_{t+\tau} - z_{t+\tau}\|^2}{\|z_{t+\tau}\|^2 + \epsilon_2}
\Biggr]
\Biggr\}
+ \Omega.
$$
Here $N_1(\delta)$ and $N_2(\delta)$ normalize the temporal weights, $\epsilon_1$ and $\epsilon_2$ prevent divide-by-zero, and $\Omega$ is an optional regularizer. The experiments reported in the source did not require an explicit regularizer; instead, small latent dimension $d$ acted as regularization [1712.01378].

Optimization uses ADAM with initial learning rate $10^{-3}$ and geometric decay, with mini-batches of 50 sequences. Sequence lengths in the reported experiments are dataset-specific: Duffing uses $T=10$, cylinder wake uses $T=20$, and Kuramoto–Sivashinsky uses $T=5$. Training durations are reported as $2$–$4\times 10^5$ optimization steps depending on the dataset.

The matrix $K$ is initialized using $2\times 2$ blocks of the form
$
\begin{bmatrix}
\sigma & \omega\\
-\omega & \sigma
\end{bmatrix},
$
with eigenvalues $\lambda = \sigma \pm i\omega$ on a circle of radius $r = 0.8$, providing broad coverage of the unit disk. The formulation also permits fixed entries in $K$ to impose known Koopman eigenvalues. In the Duffing experiments, this constraint is used to embed known eigenvalues and thereby improve interpretability. No explicit stability regularization beyond the multi-step loss and low latent dimension is reported in the experiments.

A common misconception is that Koopman-oriented models must reconstruct the full state linearly from a finite set of observables. LRANs explicitly reject that requirement: the latent space is linearly recurrent, but reconstruction may be nonlinear. The source presents this as a mechanism for capturing richer state structure from very few encoded observables.

## 4. Relation to EDMD, KDMD, and balanced model reduction

EDMD approximates the Koopman operator on a chosen feature dictionary
$
\Psi(x) = [\psi_1(x), \ldots, \psi_N(x)]^*,
$
using snapshot pairs $(x_j,y_j)$ with $y_j = F(x_j)$. The estimator is
$
K = G^+ A,
$
with
$
G = \frac{1}{M}\sum_{i=1}^M \Psi(x_i)\Psi(x_i)^*, \qquad
A = \frac{1}{M}\sum_{i=1}^M \Psi(x_i)\Psi(y_i)^*.
$
Kernel DMD (KDMD) replaces explicit dictionaries by implicit kernel feature spaces and constructs a reduced operator through kernelized linear algebra. In the notation given in the source, if $\Psi_X = U\Sigma V^*$, then
$
\hat{K} = \Sigma^+ V^* \Psi_Y^* U.
$

The problem, as framed in the LRAN paper, is not that EDMD or KDMD are invalid, but that their success depends heavily on dictionary design and on having sufficient data relative to the effective feature dimension. LRANs offer an alternative in which the dictionary is data-adapted and low-dimensional from the outset.

The same paper also develops balanced model reduction for over-specified EDMD or KDMD systems in feature space. For a feature-state linear system with reconstruction operator $C$, the infinite-horizon observability and controllability Gramians are
$
W_o = \sum_{t=0}^{\infty} (\hat{K})^t C^* C (\hat{K}^*)^t,
\qquad
W_c = \frac{1}{M}\sum_{t=0}^{\infty} (\hat{K}^*)^t \Sigma^2 (\hat{K})^t.
$
A balancing transform is obtained from the SVD of a Hankel-like operator $H = A^*B$,
$
H = U_H \Sigma_H V_H^*,
$
leading to
$
T = B V_H \Sigma_H^{-1/2}, \qquad
S = A U_H \Sigma_H^{-1/2}.
$
After truncation to rank $d$, one obtains a reduced latent model
$
z_{t+1} = S_d^* \hat{K}^* T_d z_t + \frac{1}{\sqrt{M}} S_d^* \Sigma u_t,
\qquad
x_t \approx C T_d z_t,
\qquad
z = S_d^* \Psi_U(x).
$

Finite-horizon Balanced Proper Orthogonal Decomposition (BPOD) is used when the system is unstable or when a finite prediction window is the object of interest. The LRAN paper presents BPOD-reduced KDMD models as a complementary pipeline rather than a direct replacement. The reported comparison is nuanced: KDMD with BPOD can recover coherent spectral structure, but inference requires kernel evaluations scaling with the number of training samples unless support vectors are pruned, whereas LRAN inference is a single encoder pass, linear latent rollout, and decoder evaluation [1712.01378].

## 5. Experimental demonstrations

The reported experiments span three dynamical systems of increasing complexity: the unforced Duffing oscillator, an unstable cylinder wake at $Re = 60$, and the Kuramoto–Sivashinsky equation at the onset of chaos [1712.01378].

For the unforced Duffing oscillator,
$
\ddot{x} = -\delta \dot{x} - x(\beta + \alpha x^2),
\qquad
\delta = 0.5,\; \beta = -1,\; \alpha = 1,
$
the system has two stable equilibria at $x=\pm 1$ and linearized continuous-time eigenvalues
$
\lambda_{1,2} = \frac{1}{4}\left(-1 \pm \sqrt{31}\, i\right).
$
The paper also identifies a Koopman eigenfunction with $\lambda_0 = 0$ that partitions the basins of attraction. Training uses $M = 10^4$ trajectories sampled at $\Delta t = 0.25$, with 11 samples per trajectory. Three order-$d=3$ models are compared: a constrained LRAN with known eigenvalues embedded in $K$, a free LRAN, and a KDMD reduced-order model. Basin classification accuracy, using a threshold at the median eigenfunction value, is reported as $92.74\%$ for the constrained LRAN, $94.88\%$ for the free LRAN, and $96.50\%$ for the KDMD ROM. For prediction error versus horizon, the free LRAN achieves the lowest mean square relative error, followed by the constrained LRAN; in this case the KDMD ROM’s nonlinear reconstruction does not help and is described as sensitive to overfitting.

For the unstable cylinder wake, the data consist of 2000 velocity snapshots sampled every $0.2\,D/U_\infty$, split into 1000/500/500 train/evaluation/test snapshots. The data are projected onto the 200 most energetic POD modes and then time-delay embedded with two delays to produce 400-dimensional inputs. The LRAN uses latent dimension $d=5$ and sequence length $T=20$; the KDMD ROM is reduced to the same dimension by BPOD over the same horizon. The leading continuous-time eigenvalues of the two models agree closely; the first mode captures the vortex-shedding pattern, KDMD yields a second eigenvalue near $2\lambda_1$ consistent with a harmonic, and LRAN produces a second eigenvalue close to $\lambda_1$, which the source interprets as suggesting combinations that capture the slow transition. Linear reconstructions via Koopman modes are comparable across the models, but the nonlinear LRAN decoder yields roughly an order-of-magnitude lower mean relative error than the KDMD ROM’s kernel reconstructor over many steps within the training horizon.

For the Kuramoto–Sivashinsky equation,
$
u_t + u_{xx} + u_{xxxx} + u u_x = 0,
\qquad
x \in [0,L],\; L = 8\pi,
$
the simulations use a semi-implicit Fourier pseudo-spectral method with 128 Fourier modes. Each of train, evaluation, and test sets contains 20 simulations with 500 states at $\Delta t = 1.0$. The inputs use two-delay embedding for dimension 256. Both LRAN and KDMD ROM use latent dimension $d=16$ and horizon $T=5$. The learned Koopman spectra include slightly unstable modes, consistent with the unstable Fourier modes. LRAN modestly outperforms the KDMD ROM across horizons, both models remain accurate for short times up to five steps, and the nonlinear decoder is reported as essential because linear modes alone do not reconstruct the state well.

These experiments collectively support three recurring claims from the source: LRANs can identify meaningful Koopman eigenfunctions, can produce accurate low-dimensional models for systems with intrinsically low-dimensional organization, and are primarily accurate within the training horizon, with degradation beyond that window.

## 6. Relation to Linear Memory Networks and broader interpretation

The 2018 paper on Linear Memory Networks (LMNs) provides a closely related but distinct architecture in which nonlinear computation and linear memory are explicitly separated [1811.03356]. The LMN functional state and memory state are defined by
$
h_t = \sigma(W^{xh}x_t + W^{mh} h^m_{t-1}),
$
$
h^m_t = W^{hm} h_t + W^{mm} h^m_{t-1}.
$
Its memory block is a linear, input-driven recurrence equivalent in form to a linear recurrent autoencoder for sequences,
$
y_t = A x_t + B y_{t-1},
$
with decoder
$
[x_t; y_{t-1}] = C y_t.
$
The LMN paper shows that this memory mechanism can be trained in closed form via truncated SVD of a reversed-subsequence data matrix, yielding explicit formulas
$
A = U^T P, \qquad B = U^T R U,
$
and an optimal encoding when the latent dimension equals the rank of the constructed sequence matrix.

The relation to LRANs is structural. In LRAN notation, one may identify the latent state with the LMN memory, $z_t \leftrightarrow h^m_t$, and write the LMN linear memory as
$
z_t = K z_{t-1} + B u_t,
$
with $K = W^{mm}$, $B = W^{hm}$, and input $u_t = h_t$. Both frameworks therefore employ linear time-invariant latent dynamics together with learned nonlinear maps. The difference lies in what is encoded and reconstructed. LRANs typically encode the observed state $x_t$ and decode the full state through a nonlinear decoder trained end-to-end. LMNs instead feed a nonlinear functional representation $h_t$ into a linear sequence autoencoder so that the memory reconstructs past functional states rather than necessarily the raw observation. The LMN paper emphasizes closed-form pretraining of the memory followed by end-to-end fine-tuning, whereas LRANs are presented primarily as end-to-end trained encoder–linear dynamics–decoder systems.

This comparison clarifies a broader interpretation of linear recurrent autoencoder architectures. They can be viewed as instances of a general design pattern: nonlinear feature extraction or encoding, linear latent evolution, and a reconstruction or readout mechanism. In Koopman-oriented LRANs, the latent recurrence is intended to approximate a Koopman-invariant subspace of observables. In LMNs, the same pattern is applied to recurrent sequence modeling through a linear memory trained to reconstruct histories of internal functional activations. A plausible implication is that LRANs and LMNs occupy neighboring points in the design space of models that decouple nonlinear representation learning from linear latent propagation.

## 7. Limitations, scope, and common points of confusion

The source material presents LRANs as a response to specific limitations of EDMD and KDMD, not as a universal replacement. Their principal advantage is the ability to learn a compact, informative latent space with linear evolution and nonlinear state reconstruction, thereby reducing dependence on fixed dictionaries and enabling fast inference. At the same time, several limitations are stated explicitly.

First, prediction accuracy is strongest within the training horizon $\mathcal{T}$. The reported error curves typically remain low up to that horizon and then grow beyond it. For more complex systems such as Kuramoto–Sivashinsky, extending the useful horizon requires either larger latent dimension or an extended training curriculum. Second, LRAN training is computationally expensive, involving hundreds of thousands of ADAM steps, even though inference is fast. Third, nonlinear reconstruction is powerful but not immune to overfitting in general; while the LRAN decoder did not exhibit the reconstruction failures observed for the kernel regressor in the Duffing example, the broader issue of reconstruction regularization remains relevant.

Another common confusion concerns interpretability. LRANs do not guarantee that every latent coordinate is itself a Koopman eigenfunction. Rather, if $K$ is diagonalizable, eigenfunctions are obtained as linear functionals of the encoded state through the eigenvectors of $K$. This distinction matters when interpreting latent trajectories, spectra, or decoder behavior.

Finally, LRANs should not be conflated with autonomous latent-linear models only. The canonical LRAN in the cited work uses autonomous latent evolution, $z_{t+1}=Kz_t$, but the comparison with LMNs shows that closely related architectures can incorporate driven linear latent recurrences. This suggests a broader family of linearly recurrent autoencoder models whose differences lie in whether the latent dynamics are autonomous or input-driven, whether the encoded quantity is the raw state or an internal representation, and whether the linear recurrent component is trained by gradient descent, closed-form linear algebra, or a combination of both.

Source: https://www.emergentmind.com/topics/linear-recurrent-autoencoder-networks-lrans