A Minimal Interpretable Architecture for Zero-Shot Reconstruction of Dynamical Systems

Christoph Jürgen Hemmer2,1,3, Florian Plaswig1,3, Daniel Durstewitz1,2,3
1Dept. of Theoretical Neuroscience, Central Institute of Mental Health, Mannheim, Germany
2Interdisciplinary Center for Scientific Computing (IWR), Heidelberg, Germany
3Faculty of Physics and Astronomy, Heidelberg University, Heidelberg, Germany


Abstract

Recent foundation models (FMs) for zero-shot reconstruction of dynamical systems (DS) achieve strong out-of-domain generalization but provide little insight into the mechanisms that underlie their forecasts. Such an understanding could help to strip down overladen FM architectures to their bare essence and expose the minimal requirements for in-context learning in the DS domain. Toward this goal, here we iteratively reduce a recent powerful SOTA model for DS reconstruction, DynaMix [1], to a minimal interpretable two-parameter form, which we call DynaBase. DynaBase produces forecasts through a linear blend of the current latent state and the nearest in-context neighbor and its temporal successor. Surprisingly, despite its extreme simplicity, DynaBase produces highly competitive zero-shot DS reconstructions across chaotic and cyclic systems, with a negligible parameter load, many orders of magnitude below that of other FMs. Even more, this extreme simplicity permits direct model optimization on DS reconstruction measures, as well as closed-form one-step analytical solutions on prediction MSE. Theoretical and empirical analysis of DynaBase further leads to a 1-parameter family of maps, with the context-parroting algorithm of [2] recovered at one end, and chaotic (divergent but bounded) behavior at the other. We further show how different training strategies lead to models either optimal for short-term prediction or for DS reconstruction. Thus, DynaBase not only exposes the minimal mechanisms required for producing zero-shot DS reconstruction, but also reconciles within an accessible mathematical frame divergent observations in the literature.

1 Introduction↩︎

Many, if not most, natural and engineered systems, from chemical and molecular processes to climate, ecosystems, brain activity, or stock markets, are naturally described as dynamical systems (DS) [3][9]. Reconstructing these DS (DSR) in a data-driven way from just time series observations is of fundamental interest to all sciences, which seek tractable models that enable mechanistic insight into the underlying dynamical processes. DSR, hence, aims for generative surrogate models of the underlying dynamics which not only forecast a few steps ahead, but—importantly—reproduce long-term statistical properties of the DS in question, such as its attractor geometry (ergodic distribution) and power spectrum [3], [10][16]. While traditionally DSR involved custom-training ML/AI models on each particular dataset [12], [13], [17][19], inspired by the success of in-context learning in large language and time-series foundation models (FMs) [20][22], a new line of research explored whether zero-shot generalization to previously unseen DS is also feasible [1], [23].

However, as for most if not all FMs, it is currently utterly unclear how SOTA DSR FMs like DynaMix [1] achieve their zero-shot out-of-domain generalization, and what the essential architectural requirements for this are. Insight into how AI models solve their problems is of general interest, but is particularly important in scientific and medical domains where the focus is on mechanistic understanding [3], [24]. Here we tackle this question in the context of DSR by reverse-engineering the pretrained DynaMix model. We produce a series of systematic ablations and simplifications that largely retain, or even improve on, the model’s zero-shot DSR performance. We ultimately arrive at an algebraically minimal form consisting just of a linear combination of the model’s previous state, the nearest neighbor from the context signal, and its immediate temporal successor. A natural symmetry requirement on the context points further condenses the model into a two-parameter form. We show that this recursive map, DynaBase, can generate point, cyclic, and chaotic attractors, and allows for closed-form one-step least-squares fitting to time series data. Theoretical and empirical analysis of DynaBase trained directly for DSR reveals that optimal zero-shot solutions essentially lie along a 1-parameter curve with truly chaotic dynamics at one end and ‘context parroting’ of a time series snippet at the other, a strategy recently observed in transformer-based time series FMs like Chronos [2], [25]. Our observations are in line with a recent literature that demonstrates that tiny ML/AI models, many orders of magnitude below the parameter load of modern FMs, often achieve comparable, or even widely superior performance, on a range of tasks from cognitive and behavioral modeling [26] to challenging reasoning problems [27], [28].

In a nutshell, our main results are:

  • Minimal zero-shot DSR model: Through iterative simplification of DynaMix [1] we create a minimal 2-parameter map, DynaBase, which exhibits competitive zero-shot DSR performance at essentially zero training costs.

  • Mechanistic insight: The model’s two coefficients \((\alpha,\beta)\) parametrize a continuous spectrum of dynamical behaviors, with optimal DSR solutions essentially driven to a 1-parameter subspace. We show that at one end of this subspace DynaBase produces strictly chaotic dynamics, mimicking chaotic DS provided in-context, while at the other it yields the exact context-parroting algorithm of [2].

  • Impact of training strategy: We further demonstrate that training using either a standard ahead-prediction MSE loss vs. a specific DSR loss yields fundamentally different solutions: Training for ahead-prediction often collapses to simple context parroting and hence does not recover the true dynamics, especially for chaotic systems, which is only achieved by DSR-specific training.

2 Related work↩︎

2.0.0.1 Dynamical systems reconstruction (DSR)

DSR aims to learn generative models from time series data that capture the underlying system’s dynamical long-term behavior, i.e. its long-term or “climate” statistics and state space geometry [3], [11], [13], [14], [18], [29]. Custom-trained models for this purpose build on library-based methods like SINDy [30], [31], reservoir computing [13], [19], [32][34], neural ODEs [35][37], Koopman operators [38][43], or on various types of RNNs [10], [17], [18], [44][49]. More important than the particular architecture appears to be the training strategy: sparse or generalized teacher forcing [18], [29] are control-theoretic training techniques that enable long trajectory roll-outs even for chaotic DS, while specific regularization methods based on a system’s invariant measures have been designed to enforce agreement in long-term statistics [13], [50], [51]. All of these methods, however, require purpose-training on each new system, and out-of-domain generalization remains a key challenge [12].

2.0.0.2 Zero-shot DSR and time-series foundation models (FMs)

Multi-environment [52], [53], hyper-network-guided [54], or hierarchical [55] approaches have been used to train DSR models on many DS simultaneously, but all of these still require fine-tuning on new systems or parameter configurations not seen in training. More recently, inspired by the success of in-context inference in LLMs [56][58], a line of general-purpose time series (TS) FMs pretrained on large corpora of real and synthetic data has emerged, which forecast TS from a short observed context snippet zero-shot. Most of these, like Chronos [20], [21], TimesFM [59], or Panda [23], are based on transformers, with a few exceptions that engage RNNs like the xLSTM [60] or Mamba [61] as their core. All of these, however, lack the ability to reproduce a system’s long-term behavior as required in DSR [1], [12], [16]. They mostly either converge to just fixed points in the limit, or cyclically repeat the context [2], [25], and thus fail to capture DS with inherently chaotic dynamics [1]. DynaMix [1] closes this gap by pretraining, based on DSR-specific training techniques [29], a mixture of AL-RNN [10] experts, weighted by a context-dependent gating network. It delivers competitive short-term forecasts and SOTA long-term performance, while being relatively lightweight with \(\sim 10^4\) parameters.

2.0.0.3 Mechanisms of in-context learning

What is at the root of in-context learning has been intensely studied in the past few years [56][58], and hypotheses range from transformers implementing gradient-descent in-context [62][65] to mechanisms that more or less boil down to a simple remixing of their memory contents [66][68]. For DSR FMs, the analogous problem remains largely open but—at the same time—appears more tractable due to the more constrained and mathematically better defined [12] nature of the question. Recent studies using Chronos suggested that TS FMs may long-term forecast DS by the simple mechanism of context parroting [25], a well known pattern in LLMs [69][71]. Based on this phenomenon, [2] explicitly design a ‘context parroting algorithm’ which takes the last \(D\) values of the context as a delay-embedded query, retrieves the best-matching motif elsewhere in the context, and copies the subsequent fragment as forecast. They show that this strategy works surprisingly well and actually outperforms most TS FMs. But context parroting, as exhibited by Chronos or conceptualized in this form, can only reproduce discrete-cyclic activity and thus inherently fails to capture defining signatures of chaotic systems, like positive Lyapunov exponents and rather broad power spectra [1], [16]. A superficially similar principle is employed in classical nonlinear forecasting algorithms that retrieve from a library (history) locally neighboring trajectories whose next time step predictions are either just averaged or based on which a locally linear model is fit [72], [73]. Crucially, in contrast to mere context parroting, this neighborhood may change, however, with each prediction step taken. Through iterative reduction of DynaMix we arrive at a mathematical form that contains these classes of algorithms as special cases.

3 Methods↩︎

3.1 Background: DynaMix↩︎

DynaMix [1] is a DSR foundation model based on a mixture-of-experts architecture, using \(j=1 \dots J\) almost-linear RNNs (AL-RNNs) [10] as experts, \[\label{eq:alrnn} \boldsymbol{z}^j_{t+1}= F^\text{exp}_j(\boldsymbol{z}_t)=\boldsymbol{A}_j \boldsymbol{z}_t + \boldsymbol{W}_j \Phi^*(\boldsymbol{z}_t)+\boldsymbol{h}_j\;,\tag{1}\] where \(\boldsymbol{z}^j_t\in\mathbb{R}^M\) is an \(M\)-dimensional latent state, \(\Phi^*(\boldsymbol{z}_{t}) := \left[ \boldsymbol{z}_{1:M-P,t},\;\mathrm{ReLU}(\boldsymbol{z}_{M-P+1:M,t})\right]^\top\) is the activation function with \(M-P\) linear units and \(P\) ReLUs, and \(\boldsymbol{A}_j\in \mathrm{diag}(\mathbb{R}^M)\), \(\boldsymbol{W}_j\in\mathbb{R}^{M\times M}\), and \(\boldsymbol{h}_j\in\mathbb{R}^{M}\) are learnable parameters. The different experts are combined into an overall next state prediction by \(\boldsymbol{z}_{t+1}=\sum_{j=1}^J w^{exp}_{j,t}\cdot\boldsymbol{z}_{t+1}^j\), where the weights \(w^{exp}_{j,t} \in (0,1)\) are determined by a gating network through \[\label{eq:exp95weights} \boldsymbol{w}^{exp}_t(\boldsymbol{z}_t,\tilde{\boldsymbol{C}}\boldsymbol{w}^{att}_t)=\sigma\left(\frac{\text{MLP}(\tilde{\boldsymbol{C}}{\boldsymbol{w}^{att}_t},\boldsymbol{z}_t)}{\tau_{\text{exp}}}\right)\in\mathbb{R}^J\;,\tag{2}\] where \(\tau_{\text{exp}}\) is a temperature parameter and \(\tilde{\boldsymbol{C}}=\text{CNN}(\boldsymbol{C})\) are temporal features obtained from the provided context signal \(\boldsymbol{C}=\{\boldsymbol{c}_t\}\in\mathbb{R}^{N\times T_C}\) through a CNN. Attention weights \(\boldsymbol{w}^{att}_t\) at each time step \(t\) are in turn computed based on a distance between current latent state \(\boldsymbol{z}_{t}\) and the context \(\boldsymbol{C}\) as \[\label{eq:attn95weights} \boldsymbol{w}^{att}_t(\boldsymbol{z}_t,\boldsymbol{C}) = \sigma\left( \frac{\left| \boldsymbol{C} - \left( \boldsymbol{Dz}_t + \boldsymbol{\epsilon} \right)\boldsymbol{1}_{T_C}^\top \right|^\top\boldsymbol{1}_N}{\tau_{\text{att}}} \right) \in \mathbb{R}^{T_C}\;,\tag{3}\] where \(\tau_{\text{att}}\) is another temperature, \(\boldsymbol{D}\in\mathbb{R}^{N\times M}\) a learnable matrix, \(\boldsymbol{\epsilon}\sim\mathcal{N}(0,\boldsymbol{\Sigma})\) exploration noise, and \(\boldsymbol{1}_{\{T_C,N\}}\) are column vectors of ones of length \(T_C, N\), respectively. In [1], DynaMix was trained on \(\approx 6 \times 10^5\) trajectories from \(34\) \(3d\) DS in the cyclic or chaotic regime using control-theoretic training techniques that ensure DSR criteria are met [18], [29]. After pretraining, given any context time series snippet \(\boldsymbol{C}\), DynaMix is charged with forecasting the long-term trajectory evolution of the underlying DS without any retraining or fine-tuning.

3.2 Reducing DynaMix↩︎

At a high level, DynaMix can be compactly expressed as a single RNN of the following form \[\boldsymbol{z}_{t+1} = F_\text{DynaMix}(\boldsymbol{z}_t, \boldsymbol{C}) := \sum_j F_j^\text{exp}(\boldsymbol{z}_t)\cdot \boldsymbol{w}^{exp}_t(\boldsymbol{z}_t,\tilde{\boldsymbol{C}}\boldsymbol{w}^{att}_t)\;, \label{eq:update-rule-dynamix}\tag{4}\] with (see [1]) \[\tilde{\boldsymbol{C}}{\boldsymbol{w}^{att}_t} = \sum_{i=1}^{T_C-1} \text{CNN}(\boldsymbol{C})_i\cdot \boldsymbol{w}^\text{att}_i(\boldsymbol{z}_t,\boldsymbol{C})\;. \label{eq:attention-weights-dynamix}\tag{5}\] Note that eq. 4 is a weighted sum of piecewise-linear systems \(F_j^\text{exp}\), where, however, the weights \(\boldsymbol{w}^{exp}_t(\boldsymbol{z}_t,\boldsymbol{C})\) themselves are nonlinear functions of the current state and the context. As already shown in [1], the MLP in eq. 2 may be replaced by a linear layer w/o significant loss in performance, while in Appx. 6.3 we show the output nonlinearity \(\sigma\) (softmax) can as well be linearized over the relevant range. Further, the almost-linear term \(\Phi^*(\boldsymbol{z}_t)\) in eq. 1 can be made fully linear (Appx. 6.3), leaving \(\tilde{\boldsymbol{C}}=\text{CNN}(\boldsymbol{C})\) and \(\boldsymbol{w}^{att}_t(\boldsymbol{z}_t, \boldsymbol{C})\) as the only nonlinearities: \[\label{eq:dynamix95linear} \boldsymbol{z}_{t+1}=F_\text{Linear}(\boldsymbol{z}_t,\boldsymbol{C})=\boldsymbol{A}\boldsymbol{z}_t+\boldsymbol{B}(\text{CNN}(\boldsymbol{C}){\boldsymbol{w}^{att}_t}(\boldsymbol{z}_t, \boldsymbol{C}))+ \boldsymbol{h}\tag{6}\] We next observe that for \(\tau_\text{att} \to 0\), \(\boldsymbol{w}^{att}_t(\boldsymbol{z}_t, \boldsymbol{C})\) essentially just boils down to a nearest neighbor selector, \(\tau(\boldsymbol{z}_t)=\mathop{\mathrm{arg\,min}}_{s}\left\lVert\boldsymbol{c}_s-\boldsymbol{z}_t\right\rVert_2\). Further assuming a CNN kernel size of \(2\) and noticing that for a single linear CNN layer (as used in DynaMix) the CNN operations can be combined with \(\boldsymbol{B}\) in eq. 6 , we obtain \[\begin{align} f_\text{Linear}(\boldsymbol{z}_t,\boldsymbol{C})&=\boldsymbol{A}z_t+\boldsymbol{B}^{(1)}\boldsymbol{c}_{\tau(\boldsymbol{z}_t)}+\boldsymbol{B}^{(2)} \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}+\tilde{\boldsymbol{h}} \tag{7} \\ \tau(\boldsymbol{z}_t)&=\mathop{\mathrm{arg\,min}}_{s}\left\lVert\boldsymbol{c}_s-\boldsymbol{z}_t\right\rVert_2 \tag{8} \end{align}\] where \(\boldsymbol{A},\boldsymbol{B}^{(1)},\boldsymbol{B}^{(2)} \in \mathbb{R}^{M\times M}\) and \(\tilde{\boldsymbol{h}}\in\mathbb{R}^M\). We call this form a recursive affine nearest-neighbor (NN) map.

3.3 DynaBase↩︎

In DSR, two vector fields that differ only by a rigid coordinate transformation describe the same underlying flow and therefore yield dynamically equivalent reconstructions [74]. Recognizing this invariance, we can state the following result:

Theorem 1 (Uniqueness of recursive affine NN maps). Any nearest-neighbor recursive map of the form eq. 7 that is affine in \(\boldsymbol{z}_t\), \(\boldsymbol{c}_{1}\), and \(\boldsymbol{c}_{2}\), equivariant under \(O(N)\) rotations and reflections, and translation equivariant, belongs to the two-parameter linear family \(f_{\alpha,\beta}\), \[\boldsymbol{z}_{t+1} = f_{\alpha,\beta}(\boldsymbol{z}_t) = \alpha\, \boldsymbol{z}_t + \beta\, \boldsymbol{c}_{1} + (1-\alpha-\beta)\, \boldsymbol{c}_{2}.\]

Proof. See Appx. 7. ◻

Exploiting Thm. 1, we obtain a minimal model, which we call DynaBase, as \[\boldsymbol{z}_{t+1} = f_{\alpha,\beta}(\boldsymbol{z}_t) = \alpha\, \boldsymbol{z}_t + \beta\, \boldsymbol{c}_{\tau(\boldsymbol{z}_t)} + \gamma\, \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1},\qquad \tau(\boldsymbol{z}_t)=\arg\min_{s}\left\lVert\boldsymbol{c}_s-\boldsymbol{z}_t\right\rVert_2, \label{eq:dynabase}\tag{9}\] with \(\alpha,\beta,\gamma\in\mathbb{R}\) and \(\alpha+\beta+\gamma=1\). Thus, \(\gamma=1-\alpha-\beta\) leaves \((\alpha,\beta)\in\mathbb{R}^2\) as the only free parameters of the minimal model (formalized in Thm. 1). If the data were noise-free, a natural self-consistency condition would be given by \[\boldsymbol{c}_{i+1} = f_{\alpha,\beta}(\boldsymbol{c}_i)\;\forall i \in [1,T_C-1] \;,\] which guarantees that whenever \(\boldsymbol{z}_t\) coincides with a context point \(\boldsymbol{c}_i\), update eq. 9 maps \(\boldsymbol{z}_t\mapsto \boldsymbol{c}_{i+1}\) exactly. Using this reasonable assumption, the affine NN map could be simplified further by imposing \(\alpha = -\beta \implies \gamma=1,\) such that the whole construction depends only on a single parameter: \[\boldsymbol{z}_{t+1}=f_\alpha(\boldsymbol{z}_t)= \alpha\,(\boldsymbol{z}_t - \boldsymbol{c}_{\tau(\boldsymbol{z}_t)})+\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1} \;, \label{eq:self-consistent-one-param}\tag{10}\] where the local rate of con- or divergence is determined solely by \(\alpha\).

3.4 Training↩︎

For training DynaBase, we assume we are given \(N\)-dimensional training data \(\boldsymbol{X}\in\mathbb{R}^{N\times T}\), of which we define the first \(T_C\) time steps as the context signal \(\boldsymbol{C}\in\mathbb{R}^{N\times T_C}\). Given the model’s simplicity, it allows for straightforward training, where we assume \(\boldsymbol{z}_t=\boldsymbol{x}_t\) (i.e., the dynamics is directly defined in the observation space). Specifically, we explore the two following approaches:

3.4.0.1 Linear regression

As DynaBase is linear in parameters, its one-step-ahead prediction error loss is convex and we can optimize it by least-squares regression in one step using the reparameterized form \[\boldsymbol{z}_{t+1} - \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1} = \alpha\,(\boldsymbol{z}_t - \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}) + \beta\,(\boldsymbol{c}_{\tau(\boldsymbol{z}_t)}-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}). \label{eq:linear-regression}\tag{11}\] Given a training sequence, nearest neighbors \((\boldsymbol{c}_{\tau(\boldsymbol{x}_t)},\boldsymbol{c}_{\tau(\boldsymbol{x}_t)+1})\;\forall\boldsymbol{x}_i\in\boldsymbol{X}\) are simply precomputed based on eq. 8 , and ordinary-least-squares is used to solve for \((\hat{\alpha},\hat{\beta})\) in closed form. No backpropagation or teacher forcing is required; fitting is embarrassingly cheap compared to conventional FM pretraining.

However, linear regression only optimizes for short term forecasts, and hence might not be optimal for DSR problems which require capturing long-term behavior. We therefore investigate a second strategy, where the loss is given through a long-term reconstruction measure [29], [75] \[\label{eq:KL95loss} \text{Loss}(\boldsymbol{X},\boldsymbol{\hat{X}})= D_{\mathrm{stsp}}(p_{\mathrm{true}}(\boldsymbol{X})\|p_{\mathrm{pred}}(\boldsymbol{\hat{X}})) \;,\;\tag{12}\] i.e. the Kullback-Leibler divergence between the true and model-generated trajectory distributions based on long term rollouts \(\boldsymbol{\hat{X}}\) of DynaBase. \(D_{\mathrm{stsp}}\) is a common measure in the DSR literature to assess the agreement in true and reconstructed attractor geometries [11], [18], [23], [25], [29], [75], [76]. Since the model has only 2 trainable parameters, searching for an optimal solution by grid search is fairly straightforward and inexpensive.

4 Results↩︎

4.1 Theoretical results↩︎

We now establish a theoretical characterization of the forecasting properties of DynaBase.

4.1.0.1 Structural characterization

By Thm. 1, DynaBase is a unique nearest-neighbor affine family compatible with the symmetry assumptions in Sec. 3.3. We use this structural result as the starting point for the two main mechanism-level consequences below.

Theorem 2 (Reduction to context parroting). Let \(\boldsymbol{C}_{1:T_C}\in \mathbb{R}^{1\times T_C}\) be a context sequence and \(\overline{\boldsymbol{C}}_{1:T_C-D+1}\in \mathbb{R}^{D\times (T_C-D+1)}\) its delay embedding with dimension \(D\), defined as \(\overline{\boldsymbol{c}}_s=(c_s,c_{s+1},\dots,c_{s+D-1})\). Let \(f_0\) denote DynaBase with \(\alpha=0\) (hence \(\beta=0,\gamma=1\)) on the embedded context \(\overline{\boldsymbol{C}}\), and consider the discrete-time system \(\boldsymbol{z}_{t+1}=f_0(\boldsymbol{z}_t)\) with initial condition \(\boldsymbol{z}_0=\overline{\boldsymbol{c}}_{T_C-D+1}\) and \(\tau(\boldsymbol{z}_0)\in[1,T_C-2D]\). Then the projection \(x_t=z_{D,t}\) exactly reproduces the context-parroting algorithm of [2].

Proof. See Appx. 7. ◻

Theorem 2 shows that the context-parroting baseline of [2] is recovered for free from DynaBase by simply setting \((\alpha,\beta)=(0,0)\) and delay-embedding the context. Any DynaBase model with \(\alpha\neq 0\) is therefore strictly more expressive than parroting in the sense that a larger class of DS can be embedded.

Given that the map \(f_\alpha\) is piecewise-affine, we can also derive an exact continuous-time analogue [77] \(\boldsymbol{\zeta}(t)\), such that \(\boldsymbol{\zeta}(kh)=\boldsymbol{z}_k \forall k \in \mathbb{Z}, h \in \mathbb{R}\), by integrating the equations \[\dv{\boldsymbol{\zeta}}{t} = \frac{\log\alpha}{h}\boldsymbol{\zeta}-\frac{1}{h}\frac{\log{\alpha}}{1-\alpha}(\boldsymbol{c}_{\tau(\zeta)+1}-\alpha \boldsymbol{c}_{\tau(\zeta)})\label{eq:continuous-limit}\tag{13}\] where we denote the discrete timestep size of \(f_\alpha\) as \(h\) and \(\frac{\log\alpha}{1-\alpha}\rvert_{\alpha=1}\) is defined by its continuous extension. Notably, this limit does not exist for \(\alpha = 0\) (context parroting), and is only defined in the complex number space for \(\alpha < 0\). For \(\alpha = 0\), the map collapses onto \(\boldsymbol{C}\) at every step, i.e. hops between a discrete set of points, which is not reproducible by a continuous flow unless \(\boldsymbol{C}\) contains exactly one (fixed) point. Importantly, context parroting is therefore an inherently discrete special case of DynaBase, defined on a measure-zero set, which cannot reproduce true limit cycles or chaotic behavior. A detailed derivation is given in Appx. 6.6.0.1.

4.1.0.2 Dynamical characterization

We now characterize the dynamical properties of the self-consistent DynaBase – specifically how the parameter \(\alpha\) governs the transition from trivial to genuinely chaotic behavior.

Theorem 3 (Long-term dynamics). For \(\alpha=0\), every orbit of DynaBase converges after finitely many steps onto a terminal cycle contained in the context sequence, and thus has max. Lyapunov exponent \(\lambda_\text{max}<0\).

Proof. See Appx. 7. ◻

The case \(\alpha=0\) is therefore dynamically trivial: all orbits eventually collapse to \(\boldsymbol{C}\); context parroting is thus structurally incapable of producing chaos.

Theorem 4 (Boundedness). Let \(f_\alpha\) be the self-consistent DynaBase map with parameter \(\alpha\ge 0\) and context sequence \(\boldsymbol{C}_{1:T_C}\subset\mathbb{R}^N\). Then \(\alpha\in[0,1]\) is a sufficient but not a necessary condition for the orbits of \(f_\alpha\) to remain bounded. More precisely, \(\alpha\in[0,1]\) guarantees \(d_{\boldsymbol{C}}(\boldsymbol{z}_{t+1})\le d_{\boldsymbol{C}}(\boldsymbol{z}_t)\) for all \(t\). For \(\alpha>1\), there exist Voronoi parcellations by \(\boldsymbol{C}\) which allow for strictly chaotic dynamics (i.e., such that \(\lambda_\text{max}>0\) and the dynamics is bounded).

Proof. See Appx. 7. ◻

The theorem thus establishes that \(\alpha\in[0,1]\) is sufficient for the orbit to remain confined to – or track – the context sequence, as distances to \(\boldsymbol{C}\) are non-increasing. For \(\alpha>1\), the map will diverge almost everywhere. If the arrangement of Voronoi cells through the context \(\boldsymbol{C}\) is, however, such that its dynamics still remains bounded, it will almost surely follow a chaotic attractor [78], [79]. An example is discussed in the proof to Thm. 4 and illustrated in Fig. 2b.

4.2 Empirical forecasting comparison↩︎

Figure 1: DSR performance across all 54 test DS used in [1]. Minimal models (red: DynaBase training variants and pure context parroting), custom-trained DSR models (gray), and pretrained zero-shot foundation models including a zero-shot variant of DynaBase (blue) are compared for the same context length T_C=2000 (values for custom-trained and foundation models taken from [1]). Median\pmMAD of D_{\mathrm{stsp}} (left, geometrical disagreement), D_H (center, temporal disagreement) and MASE (right, 10-step prediction error).

We evaluate DynaBase on the same DSR test set as in [1], reporting the same three complementary measures, two of them specific to DSR (see Appx. 6.2 for definitions): the disagreement \(D_{\mathrm{stsp}}\) in state space geometry, the long-term temporal disagreement \(D_H\), and the short-term mean absolute scaled error (MASE). To evaluate the long-term statistics \(D_{\mathrm{stsp}}\) and \(D_H\), each system is forecast for \(T=10{,}000\) time steps, following [1] and in agreement more generally with the DSR literature [13], [16], [18] (note that point forecasts become meaningless for chaotic systems beyond a few Lyapunov times). As introduced in Sec. 3.4, we fit DynaBase by either (i) closed-form one-step linear regression, optimizing the one-step MSE in eq. 11 , or (ii) directly for DSR over the grid of parameter values. As baselines we include context parroting as reported in [2], [25], DynaMix [1] and Chronos [20], [21] as FMs, and three custom-trained DSR baselines (AL-RNN [10], reservoir computers [80], and Neural ODEs [35]) trained directly on the context signal provided to the FMs.

As shown in Fig. 1, DynaBase generally performs best, with the variant optimized for DSR (ii) better than the one trained for ahead-prediction (i) on the long-term measure \(D_\text{stsp}\) (while the differences in MASE and \(D_H\) are not statistically significant, Wilcoxon signed-rank test, \(p>0.1\)). However, for longer (but not too long) prediction horizons, optimizing for ahead-prediction achieves lower MASE than DSR-optimization (Table 2). This difference illustrates that, not unexpectedly, the choice of training objective determines the model’s forecasting strategy: a one-step MSE penalizes any local deviations from the ground truth, and hence tends to produce smaller \(\alpha\) values enabling the map to track the immediate next step tightly, yielding better short-term predictions. In contrast, the grid optimization strategy (ii) directly targets the invariant attractor geometry, outperforming (i) on DSR. In both cases, however, training DynaBase with its few parameters is extremely cheap and rapid.

Figure 2: a) Comparison of distributions of estimated \hat{\alpha} values across all 54 chaotic test DS [1] for the two training objectives (sect. 3.4). Closed-form minimization of the 1-step MSE yields \alpha<1, outside of the chaotic regime. In contrast, optimization for DSR places most \alpha values firmly (and correctly) into the chaotic regime, with a median \hat{\alpha}\approx1.01. b) DSR loss landscape (optimization for D_\text{stsp}) across (\alpha,\beta) shows a valley at \alpha=-\beta in agreement with the self-consistency condition, as well as a minimum at \alpha>1. c) Bifurcation diagram of the self-consistent DynaBase map f_\alpha for the 1d context sequence \boldsymbol{C}=(-1,1,-1) (the boundedness of this map was shown in the proof of Thm. 4). The graph shows the map’s long-term behavior (attractor structure) as a function of \alpha, obtained by drawing 1{,}000 random initial conditions from the interval [-2,2] and discarding transients. The red line (\alpha=1) marks the transition from a stable 2-cycle (-1,+1) to the chaotic regime.

The distribution of estimated \(\hat{\alpha}\) values across the test systems in Fig. 2a makes this point explicit. The two training objectives lead to qualitatively different parameter regimes: linear regression on the 1-step MSE places the map mostly into the parroting/ semi-cyclic regime with \(\alpha<1\), while optimizing directly on \(D_{\mathrm{stsp}}\), in contrast, produces mostly chaotic behavior (in accordance with the ground-truth DS) with \(\alpha>1\). This implies that only DSR-based training has correctly inferred the chaotic ground truth systems, as further confirmed by a high correlation (\(r \approx0.90\)) between max. Lyapunov exponents of the GT DS and the DynaBase map when fitted by DSR, but not when fitted by least-squares (\(r \approx0.18\)), Fig. 11. Moreover, the loss landscape reveals an elongated valley along the \(\alpha=-\beta\) axis (Fig. 2b), providing empirical support for the self-consistency condition in eq. 10 , which reduces DynaBase to a one-parameter map. The bifurcation graph in Fig. 2c further illustrates on a synthetic toy example the cyclic behavior for \(\alpha<1\) and emergence of chaos for \(\alpha>1\).

Another interesting observation is that for DSR-specific training, \(\hat{\alpha}\) tightly concentrates on a single value near \(\alpha\approx1.01\), across the diverse set of DS used. This suggests that, at least on this benchmark, the \(\alpha\)-parameter may be fixed a priori. We test this by estimating \(\alpha\) on a separate training set (similar to the one used for training DynaMix in [1]), obtaining \(\alpha=1.006\) close to the median in Fig. 2a, which leads to a parameter-free zero-shot forecaster that requires no DS-specific fitting. Applying this to the context signals from the test set, we still achieve performance comparable to the custom-trained models (see Fig. 1, and Figs. 6-9 for zero-shot reconstructions).

4.3 Loss landscape tracks dynamics↩︎

Figure 3: DynaBase’ loss landscape reflects the dynamics of the target system when trained for DSR. Top: Lorenz-63 in chaotic regime (gray). The geometrical misalignment D_{stsp} across \alpha exhibits a global minimum (red dot) at \alpha\approx1.01, which produces a valid reconstruction of the attractor (red). Center: Lorenz-63 in cyclic regime. The D_{stsp} minimum occurs at \alpha=1. Bottom: A fixed point or cyclic point (discrete cycle) (gray). The D_{stsp} minimum occurs at \alpha=0, corresponding to context parroting.

To examine how DynaBase’ parameters map onto the ground truth system’s dynamical regime, we study the DSR loss landscape on a representative chaotic, cyclic and fixed point system (Fig. 3). For these different dynamical regimes, the loss landscape exhibits distinct global minima which correspond to different dynamical mechanisms:

  • Context parroting \(\alpha=-\beta=0\): the map reduces to \(\boldsymbol{z}_{t+1}=\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}\), i.e.the state snaps onto the successor of its nearest context neighbor. For a delay-embedded context signal, this exactly reproduces the context-parroting algorithm of [2] (see Thm. 2).

  • Flow mimicry \(\alpha=-\beta=1\): the map reduces to \(\boldsymbol{z}_{t+1}-\boldsymbol{z}_t = \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)}\), a forward-Euler step driven by the local finite difference \(\dot{\boldsymbol{c}}\approx(\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)})/h\) of the underlying vector field as sampled from the context. This yields a ‘zero-friction’ direction in state space (neither con- nor divergence), as along the limit cycle (\(\lambda_\text{max}=0\)) of a continuous-time DS.

  • Chaos \(\alpha>1\): One obtains local divergence almost everywhere and, if bounded, chaotic trajectories are produced (cf. Fig. 12 for Lorenz-63 reconstructions along a bifurcation diagram).

Figure 4: a) Voronoi tessellation for the periodic Selkov DS induced by the nearest-neighbor lookup \tau(\cdot) in DynaBase. The context \boldsymbol{C}_{1:T_C} partitions the state space into cells V_s=\{\boldsymbol{z}:\tau(\boldsymbol{z})=s\}, within which DynaBase is described by a strictly affine map \boldsymbol{z}_{t+1}=\alpha\, \boldsymbol{z}_t + \tilde{\boldsymbol{c}}_s. b) Out-of-context forecasting on the 2d Selkov system. When the initial condition lies outside of the context-covered region, neither parroting (\alpha=0, left) nor pure flow mimicry (\alpha=1, center) recovers the true vector field. Refitting \hat{\alpha} from a single additional short trajectory via eq. 11 produces a local flow estimate that aligns better with the true vector field (right).

The nearest-neighbor lookup \(\tau(\cdot)\) induces a Voronoi tessellation of the state space (Fig. 4a). Inside each cell \(V_s=\{\boldsymbol{z}:\tau(\boldsymbol{z})=s\}\), DynaBase is a strictly affine map \(\boldsymbol{z}_{t+1}=\alpha\, \boldsymbol{z}_t + \tilde{\boldsymbol{c}}_s\), where \(\tilde{\boldsymbol{c}}_s=\beta \boldsymbol{c}_s+\gamma \boldsymbol{c}_{s+1}\) is fixed by the cell, hence belongs to the class of well-studied switching piecewise-linear (PL) systems [81], [82]. Within each cell \(V_s\), the model’s Jacobian is simply given by \(\alpha\boldsymbol{I}\), i.e. a single scalar \(\alpha\) controls the local con- or divergence almost everywhere in state space. With \(\hat{\alpha}\approx 1.01\) just slightly above \(1\) (Fig. 2), DynaBase diverges almost everywhere but still stays sufficiently close to the cell centers to create a chaotic attractor, despite not having a nonlinear activation function (in line with Thm. 3 & Thm. 4). For context parroting with \(\alpha=0\) (Thm. 2), on the other hand, DynaBase snaps onto a cyclic point that perfectly traces out the empirically observed context trajectory. However, a cyclic point would result in this case even if the observed trajectory snippet comes from a chaotic system (Fig. 13).

Pure context parroting also prevents generalization to new initial conditions of an observed DS, a feature of DynaMix demonstrated in [1]. This is illustrated for the Selkov DS in Fig. 4b: For \(\alpha=0\), DynaBase strictly follows the context points and thus fails to map the vector field anywhere outside the context. On the other hand, pure context mimicry, \(f_1\), while reproducing the \(\lambda_\text{max}=0\) direction on a limit cycle, fails to capture the convergence when started off the stable cycle, since the finite difference \(\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)}\) is always evaluated at the nearest context point. Fitting \(\hat{\alpha}\) via eq. 12 on a trajectory bit that contains a transient, however, yields a better approximation of the surrounding vector field outside the observed context while still reproducing the cycle (Fig. 4b).

5 Conclusion↩︎

We reduce DynaMix, a mixture-of-experts DSR foundation model, into DynaBase, a two-parameter nearest-neighbor affine recurrence that can be further reduced to a \(1d\) family of maps by imposing a consistency condition. Despite this minimal form, variants of DynaBase match or exceed substantially larger architectures on both long-horizon DSR measures and short-term predictions, while remaining computationally extremely cheap with either training via 1-step closed-form least squares or grid search on a DSR objective.

Analysis of this minimal map and its training provides a number of interesting insights into the minimal requirements TS and DSR FMs may need to achieve zero-shot DS forecasts. First, \(\alpha = 0\) exactly reproduces context parroting as observed in [2], [25], but this mechanism is inherently unable to reproduce chaotic or even true limit cycle behavior. Second, for \(\alpha > 0\) this affine nearest-neighbor form admits the whole spectrum from convergence to fixed points or cycles to strictly chaotic activity for \(\alpha > 1\), thus being sufficiently expressive to approximate a large range of DS. Third, for \(\alpha \approx 1.01\) the map can even operate in zero-shot mode, at least on a common DSR benchmark set, exposing the profound role the context alone plays in structuring the forecast. Fourth, optimizing for ahead-predictions biases the map toward convergence to fixed or cyclic points, even when the underlying DS is chaotic, explaining why this training objective is suboptimal if DSR is the goal [13], [18], [29], [51]. More generally, with DynaBase we have established a formal framework that enables to study mechanisms of DSR in FMs and beyond in detail, creating an instrument for mathematical analysis of context-based forecasting and DSR methods.

5.0.0.1 Limitations

DynaBase is a minimal 2-parameter model. Although it highlights the fact that complex architectures with tens of thousands to many millions of parameters may not be needed for DSR and time series forecasting, the assumptions on which its reduction is based come at a cost in terms of the diversity of DS and vector field topologies that can be learned, as well as the accuracy with which geometrical properties of the vector field can be captured (as apparent from the remaining mismatch in Fig. 4b). Also, we so far did not explicitly consider the impact of noise (but see Fig. 14, where noise degrades but does not preclude DSR). Currently, DynaBase may be viewed more as a research tool that allows for detailed mathematical analysis of context-based DSR FMs. A more in-depth study of DynaBase, e.g. its DS approximation capabilities or the computation of the full Lyapunov spectrum, which requires the concept of a saltation operator [83], [84], is still pending.

Acknowledgements↩︎

This work was supported by individual grants Du 354/15-1 (# 502196519) and Du 354/18-1 (# 567025973) from the German Research Foundation (DFG), and by the German Ministry for Research, Astronautics, and Technology (BMFTR) through NAILIt (“Neuro-Inspired AI for Learning & Inference in Non-Stationary Environments”, # 01GQ2509A).

6 Appendix↩︎

6.1 Methodological details↩︎

6.1.0.1 Training details

Training of the DynaBase parameters \((\alpha, \beta)\) uses a sampled training sequence \(\boldsymbol{X}_{\text{train}}\in\mathbb{R}^{N\times T}\) drawn from a DS, where the first \(T_C\) steps serve as context signal \(\boldsymbol{C}\). For the experiments in Fig. 1, we set \(T = 2000\) and \(T_C = 1000\). At evaluation time, we supplied the training sequence as context alongside the estimated parameter values \((\alpha, \beta)\), and assessed performance on a sequence unseen during training and context construction (using the self-consistent DynaBase \(f_\alpha\) as defined in eq. 10 ). This ensures that DynaBase receives exactly the same context and training sequence information as all other comparison methods.

To fit DynaBase via linear regression, we compute \((\hat{\alpha},\hat{\beta})\) in closed form via ordinary least-squares. Nearest neighbors \(\tau(\cdot)\) are precomputed once via \(\ell^2\)-distances over \(\boldsymbol{C}\) and the training sequence \(\boldsymbol{X}\). To cast this as a standard linear regression problem, we define the response vector \(\boldsymbol{b}\) and design matrix \(\boldsymbol{A}\) based on eq. 9 , for each training sample \(i\) \[\begin{align} \boldsymbol{b}_i &= \boldsymbol{z}_{i+1} - \boldsymbol{c}_{\tau(\boldsymbol{z}_i)+1}, \\ \boldsymbol{A}_i &= \Bigl[\;\boldsymbol{z}_i - \boldsymbol{c}_{\tau(\boldsymbol{z}_i)+1}\;,\;\boldsymbol{c}_{\tau(\boldsymbol{z}_i)} - \boldsymbol{c}_{\tau(\boldsymbol{z}_i)+1}\;\Bigr]. \end{align}\] The regression then takes the form \(\boldsymbol{b} = \boldsymbol{A}[\alpha, \beta]^\top\), and the coefficients are obtained by the standard least-squares solution \[[\hat{\alpha}, \hat{\beta}]^\top = (\boldsymbol{A}^\top \boldsymbol{A})^{-1}\boldsymbol{A}^\top \boldsymbol{b}.\] In the self-consistent setting of eq. 10 , the constraint \(\beta=-\alpha\) reduces the two-parameter fit to a single unknown scalar, simplifying \(\boldsymbol{A}_i = \boldsymbol{z}_i - \boldsymbol{c}_{\tau(\boldsymbol{z}_i)}\).

To train parameters via grid search, we sweep across \(\alpha \in [0,1.2]\) with step size \(\Delta\alpha=0.002\) along the self-consistency line \(\beta=-\alpha\). For each candidate \(\alpha\), DynaBase is rolled out for \(T=10{,}000\) steps using the context \(\boldsymbol{C}\) and scored by the KL-divergence loss given in eq. 12 between predicted trajectories \(\hat{\boldsymbol{X}}\) and the training data. The global minimizer \(\hat{\alpha}\) is returned.

Training and evaluation of DynaBase was performed on a single CPU (AMD EPYC 9655 96-Core).

6.1.0.2 Comparison methods

We compare DynaBase against three groups of baselines, all evaluated on the same \(54\) test DS and the same input data of length \(T=2000\) as in [1].

Zero-shot foundation models: DynaMix [1], the DSR FM that DynaBase is reduced from (mixture-of-experts of AL-RNNs with context-dependent gating; pretrained on \(\sim\!6\times 10^5\) trajectories from \(34\) DS); Chronos-T5-base [20], a transformer FM that quantizes real-valued series into discrete tokens and forecasts autoregressively on a corpus of synthetic and real-world time series; and Chronos-2 [21], its multivariate extension augmenting the T5 backbone with a group-attention mechanism. Evaluations were taken from [1].

Custom-trained DSR models: an AL-RNN [10] (eq. 1 ), which is used for the experts in DynaMix, a Neural-ODE [35], and a reservoir computer [80]; each is trained from scratch on the same \(T=2000\) context segment provided to the foundation models. Evaluations were taken from [1].

Context parroting: the algorithm of [2], which retrieves the best-matching motif in \(\boldsymbol{C}\) and copies its successor as forecast. As shown in Thm. 2, this baseline corresponds to the \(\alpha=0\) case of DynaBase on a delay-embedded context.

6.2 Performance measures↩︎

6.2.0.1 Long-term metrics

To evaluate the geometric similarity between true and model-generated reconstructions, we employ a measure, \(D_{\text{stsp}}\), based on the Kullback-Leibler (KL) divergence evaluated in state space [1], [11], [23], [25], [29], [75], [76]. This measure quantifies the (mis)match between the ground-truth spatial distribution of trajectory points, \(p_{\text{true}}(\boldsymbol{x})\), and the distribution \(p_{\text{gen}}(\boldsymbol{x}|\boldsymbol{z})\) of points from trajectories freely generated by the model: \[D_{\text{stsp}}\bigl(p_{\text{true}}(\boldsymbol{x}) \,\|\, p_{\text{gen}}(\boldsymbol{x}|\boldsymbol{z})\bigr) = \int p_{\text{true}}(\boldsymbol{x}) \log \frac{p_{\text{true}}(\boldsymbol{x})}{p_{\text{gen}}(\boldsymbol{x}|\boldsymbol{z})} \, d\boldsymbol{x}.\] In practice, we approximate this via a discrete binning of the state space into \(K = m^N\) bins, where \(m\) is the number of bins per dimension and \(N\) is the system dimensionality, estimating occupation probabilities through relative frequency of visits \(\hat{p}_i\): \[D_{\text{stsp}} \approx \sum_{i=1}^{K} \hat{p}_{\text{true};i} \log\frac{\hat{p}_{\text{true};i}}{\hat{p}_{\text{gen};i}}.\] To ensure that the system has reached a steady-state distribution, long trajectories (\(T=10000\)) are sampled from the trained model. For the 3d attractors we set \(m = 30\) bins per dimension, following [48].

To evaluate long-term temporal reconstruction quality, we calculate the Hellinger distance \(D_H\) between the power spectra of the ground-truth and model-generated time series [16], [18], [29], [76]. We first apply dimension-wise Fast Fourier Transforms (FFT) to the time series and then smooth the resulting power spectra with a Gaussian kernel (with \(\sigma=20\)), followed by normalization to enable comparison across dimensions. High-frequency tails dominated by noise are removed. The Hellinger distance between the smoothed true spectrum \(F(\omega)\) and the generated spectrum \(G(\omega)\) is given by \[D_H\bigl(F(\omega), G(\omega)\bigr) = \sqrt{1 - \int_{-\infty}^{\infty} \sqrt{F(\omega)\,G(\omega)}\, d\omega} \;\in [0, 1],\] where values close to \(0\) indicate high spectral agreement and values close to \(1\) indicate complete disagreement. \(D_H\) is reported as the average across all dimensions. Note that both \(D_{\text{stsp}}\) and \(D_H\) are designed to capture long-term reconstruction quality in the limit \(T \to \infty\), after transients have settled and the attractor geometry has been traced out reasonably well (which was the case here for \(T=10000\) steps).

6.2.0.2 Short-term forecast quality

For evaluating short-term predictive performance, we use the Mean Absolute Scaled Error (MASE) [1], [85], which is a normalized \(n\)-step-ahead prediction error aggregated across all \(N\) output dimensions: \[\text{MASE} = \frac{1}{N} \sum_{i=1}^{N} \frac{\dfrac{1}{n} \displaystyle\sum_{t=1}^{n} \bigl|x_{i,t} - \hat{x}_{i,t}\bigr|}{\dfrac{1}{T} \displaystyle\sum_{t=1}^{T} \bigl|x_{i,t} - x_{i,t-1}\bigr|},\] where \(T\) denotes the total length of the ground truth time series, \(n\) is the forecast horizon, \(x_{i,t}\) the true value, and \(\hat{x}_{i,t}\) the model prediction for dimension \(i\) at time \(t\). We evaluate at \(n = 10\) steps.

6.2.0.3 Lyapunov exponent

To numerically estimate the maximum Lyapunov exponent \(\lambda_{\text{max}}\) from a time series \(\boldsymbol{X}\), we use the Rosenstein algorithm [86]. For each state \(\boldsymbol{x}_i\), its nearest neighbor \(\boldsymbol{x}_j\) is identified subject to \(|i - j| > l_t\), which excludes direct temporal neighbors on the same trajectory segment. We set \(l_t = 100\) (based on the mean periodicity [86]). The divergence between neighboring trajectories is then tracked over time steps \(k = 0, \ldots, k_{\max}\), \[d_i(k) = \| \boldsymbol{x}_{i+k} - \boldsymbol{x}_{j(i)+k} \|_2\;.\] Since nearby trajectories diverge as \[d_i(k) \approx d_i(0)\, e^{\lambda_{\text{max}} k \Delta t}\;,\] where \(\Delta t\) is the sampling interval, taking the logarithm and averaging over all pairs gives \[\langle \ln d(k) \rangle \approx \lambda_{\max} k \Delta t + C\;.\] For chaotic systems, this quantity grows approximately linearly with \(k\) for a suitable \(k_{\max}\) (here: \(100\)) [73], with slope \(\lambda_{\max} > 0\), whereas periodic systems yield \(\lambda_{\max} = 0\).

When the equations of motion \(\dot{\mathbf{x}} = f(\mathbf{x})\) are known, the full Lyapunov spectrum \(\{\lambda_i\}\) can be computed via a QR decomposition algorithm [87], which integrates the system along its variational equations \(\dot{Q} = J(\mathbf{x})Q\), where \(J(\boldsymbol{x}) = \partial f / \partial \boldsymbol{x}\) is the Jacobian of \(f\) and \(Q\) is an \(n \times n\) matrix of perturbation vectors initialized to the identity \(I_n\). At regular time intervals, a QR decomposition \(Q = \tilde{Q}R\) is performed and the columns of \(\tilde{Q}\), which form an orthonormal basis, replace \(Q\). The diagonal entries \(R_{ii}\) record the local expansion rates, and the \(k\)-th Lyapunov exponent is obtained as the time-averaged logarithmic growth rate, \[\lambda_k = \lim_{T \to \infty} \frac{1}{T} \sum_{j} \log \left| R_{kk}^{(j)} \right|,\] where the sum runs over all QR factorizations performed up to time \(T\).

6.3 Details on DynaMix reduction↩︎

Table 1: Zero-shot performance of DynaMix and model simplifications across all 54 test DS used in [1]. DynaMix and simplified models are compared for the same context length \(T_C=2000\). Reported are median\(\pm\)MAD for geometrical disagreement \(D_\text{stsp}\), temporal disagreement \(D_H\), and 10-step-ahead prediction error \(\text{MASE}\)
Model \(D_{\text{stsp}}\downarrow\) \(D_H\downarrow\) \(\text{MASE}\downarrow\)
Original DynaMix \(3.80\pm1.40\) \(0.16\pm0.06\) \(0.35\pm0.17\)
Linear experts & gating (\(M>N\)) \(3.10\pm1.19\) \(0.13\pm0.07\) \(0.26\pm0.11\)
Linear experts & gating (\(M=N\)) \(2.85\pm1.30\) \(0.13\pm0.06\) \(0.23\pm0.10\)

Here we provide the supporting evidence and derivation details for the successive reduction of DynaMix to the recursive affine NN map eq. 7 described in Sec. 3.2.

6.3.0.1 Linear approximation

As noted in [1], replacing the MLP in eq. 5 with a linear layer does not reduce performance. Here we further show that dropping the softmax nonlinearity \(\sigma\) in eq. 3 and the piecewise-linear activation \(\Phi^*\) in eq. 1 , reducing the mixture of AL-RNN experts to a single affine map \(F_\text{Linear}\) as in eq. 6 , does not cause performance to degrade either. Table 1 confirms this: Linear experts & gating matches, or even improves upon, the original DynaMix checkpoint on all three measures across the DS test set.

6.3.0.2 Latent dimension

The AL-RNN experts in DynaMix operate in an \(M\)-dimensional latent space distinct from the \(N\)-dimensional observation space, requiring the projection \(\boldsymbol{D}\) in eq. 3 . Replacing the expert block with \(F_\text{Linear}\) eliminates this distinction, yielding \(M=N\) and \(\boldsymbol{D}=\boldsymbol{I}\), such that the model operates entirely in observation space. Table 1 (Linear experts & gating, \(M=N\)) confirms this does not reduce performance on the present test set. Working in a single space is also a prerequisite for the \(O(N)\) equivariance exploited in Thm. 1, since rotations and the nearest-neighbor distance must act on the same space in which the state \(\boldsymbol{z}_t\) and the context \(\boldsymbol{C}\) live. Note we can always perform a classical delay-embedding [88], [89] should this dimensionality not be sufficient to properly represent an empirically observed DS.

6.3.0.3 Nearest-neighbor selector

In the publicly available DynaMix checkpoint, the learned attention temperature \(\tau_\text{att}\) converged to \(|\tau_{\text{att},\text{learned}}| \approx 0.06\), indicating that the soft attention eq. 3 is already operating close to its \(\tau_\text{att} \to 0\) limit, i.e. effectively selecting a single nearest context point at each step. Two deliberate departures from DynaMix are made in passing to the hard limit. First, DynaMix injects Gaussian exploration noise \(\varepsilon \sim \mathcal{N}(0, \boldsymbol{\Sigma})\) into the attention eq. 3 ; in favor of a minimal and deterministic model, we set \(\boldsymbol{\Sigma}=0\). Second, DynaMix computes context distances with the \(\ell^1\)-norm, whereas we adopt the Euclidean \(\ell^2\)-norm. The invariance of \(\ell^2\) distances under orthogonal transformations \(R \in O(N)\), is used in Thm. 1. Together these choices yield the deterministic selector \(\tau(\boldsymbol{z}_t) = \mathop{\mathrm{arg\,min}}_s \|\boldsymbol{c}_s - \boldsymbol{z}_t\|_2\).

6.3.0.4 CNN expansion

To make the recursive map fully explicit in terms of individual context points, we expand the CNN operation. Since DynaMix uses a single linear CNN layer with kernel size \(2\), for \(s \in 1\dots T_C - 1\) we have \[\tilde{\boldsymbol{c}}_s = \text{CNN}(\boldsymbol{C})_s = \boldsymbol{K}^{(1)} \boldsymbol{c}_s + \boldsymbol{K}^{(2)} \boldsymbol{c}_{s+1} + \boldsymbol{b},\] where \(\boldsymbol{K}^{(1)}, \boldsymbol{K}^{(2)} \in \mathbb{R}^{N \times N}\) and \(\boldsymbol{b} \in \mathbb{R}^N\) are learned weights. Substituting into eq. 6 with the nearest-neighbor selector and absorbing \(\boldsymbol{B}\boldsymbol{K}^{(1)}\), \(\boldsymbol{B}\boldsymbol{K}^{(2)}\) and the bias into \(\boldsymbol{B}^{(1)}\), \(\boldsymbol{B}^{(2)}\), and \(\tilde{\boldsymbol{h}}\) respectively, yields the recursive affine NN map eq. 7 as stated in the main text.

6.4 Datasets↩︎

Our DS dataset consists of simulated time series of length \(10^5\), produced from \(3d\) DS collected in [4]. For the test set, we used the same \(54\) distinct systems as in [1] to enable a fair comparison among all the baseline models in relation to the originally published results. To evaluate DynaBase in a zero-shot setting, we estimated \(\alpha\) using a training set of \(30\) different chaotic DS, analogous to the setup in [1].

Figure 5: DSR test set of 54 different DS gathered from [4]. Ground truth (gray) and DynaBase reconstructions using a context window of T_C=2000 (red).

In addition, we conduct experiments on the \(2d\) Selkov system [90], which models the kinetics of an open monosubstrate enzyme reaction and is defined by the equations \[\begin{align} \frac{dx}{dt} &= -x + ay + x^2y, \\ \frac{dy}{dt} &= b -ay - x^2y , \end{align}\] where we chose \(a=0.1\) and \(b=0.5\). The system was solved numerically with integration time step \(\Delta t = 0.3\) using scipy.integrate with the RK45 solver.

For Fig. 12 we used the Lorenz-63 attractor [91], originally formulated by Edward Lorenz in 1963 [91] to model atmospheric convection. It is defined by \[\begin{align} \frac{\text{d}x}{\text{d}t} & = \sigma(y-x)\\ \nonumber \frac{\text{d}y}{\text{d}t} & = x(\rho-z)-y\\ \nonumber \frac{\text{d}z}{\text{d}t} & = xy-\beta z, \end{align}\] where \(\sigma, \rho, \beta\), are control parameters of the system (we fix \(\sigma=10\) and \(\rho=28\), and vary \(\beta\in[0,1]\), producing regimes with point attractors, cyclic, and chaotic dynamics). The system was solved numerically with integration time step \(\Delta t = 0.02\) using scipy.integrate with the RK45 solver.

6.5 Further empirical results↩︎

Figure 6: Zero-shot reconstruction of chaotic Lorenz-63 system using DynaBase with \alpha=1.006. Left: State space, center: time graphs, right: power spectrum.
Figure 7: Zero-shot reconstruction of chaotic Sprott-F system using DynaBase with \alpha=1.006. Left: State space, center: time graphs, right: power spectrum.
Figure 8: Zero-shot reconstruction of chaotic Sprott-D system using DynaBase with \alpha=1.006. Left: State space, center: time graphs, right: power spectrum.
Figure 9: Zero-shot reconstruction using \alpha=1 of cyclic Lorenz-63 system using DynaBase. Left: State space, center: time graphs, right: power spectrum.
Figure 10: Illustration of context parroting and flow mimicry. Left: context parroting — at (\alpha,\beta)=(0,0) the state snaps onto the successor \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1} of its nearest context neighbor, producing a piecewise-constant map that replays the context. Right: flow mimicry — at (\alpha,\beta)=(1,-1) the state is updated by adding the finite-difference increment \boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)} evaluated at the nearest context neighbor, a local Euler step on the context vector field.
Figure 11: Lyapunov exponents estimated via the Rosenstein algorithm (see Appx. 6.2.0.3) across test DS for both linear regression (blue) and DSR-based training (red) vs. ground truth exponents. Only DSR training produces long-term dynamics that closely follows that of the ground truth, including chaotic attractors with \lambda_{max}>0.
Figure 12: Different reconstructions by DynaBase along a bifurcation diagram of the Lorenz-63 system with system parameters \sigma=10, \rho=28 and \beta\in[0,1]. For each reconstruction, the estimated alpha value together with the GT system’s true Lyapunov exponent (estimated via QR decomposition, see Sec. 6.2.0.3) is indicated.
Figure 13: DynaBase forecasting of a chaotic laser system [4], using the same context once with \alpha>1 and once with \alpha=0. Note that despite the system’s non-periodic context trajectory, parroting (\alpha=0) incorrectly produces a discrete cycle. Shown are time graphs (left), state space (center), and power spectrum (right).
Figure 14: DynaBase reconstruction of Lorenz-63 adding 15\% Gaussian noise to the context signal. Left: State space, center: time graphs, right: power spectrum.
Table 2: Short-term forecasting accuracy (MASE, median \(\pm\) MAD) on the DS test set for three DynaBase training strategies (linear regression (LR), DSR objective, and zero-shot) across various prediction horizons \(n\). Best median values in bold. Note that LR training outperforms the other approaches on this measure for intermediate forecasting horizons, while for larger horizons (\(n=300\)) performance differences narrow down again due to the general limitations caused by exponential trajectory divergence in chaotic systems.
Model \(\text{MASE}\;(n=10)\) \(\text{MASE}\;(n=50)\) \(\text{MASE}\;(n=100)\) \(\text{MASE}\;(n=200)\) \(\text{MASE}\;(n=300)\)
DynaBase LR \(\bm{0.13\pm0.08}\) \(\bm{0.51\pm0.40}\) \(\bm{0.71\pm0.62}\) \(\bm{1.06\pm0.93}\) \(\bm{2.64\pm2.18}\)
DynaBase DSR & Gating \(\bm{0.13\pm0.08}\) \(0.62\pm0.48\) \(1.06\pm0.89\) \(2.22\pm1.64\) \(2.80\pm1.96\)
DynaBase zero-shot \(\bm{0.13\pm0.07}\) \(0.61\pm0.48\) \(0.94\pm0.80\) \(2.29\pm1.69\) \(3.07\pm2.09\)

6.6 Further theoretical results↩︎

6.6.0.1 Details on continuous-time limit.

We begin by writing eq. 10 explicitly as a piecewise-affine discrete-time system \[\boldsymbol{z}_{k+1}=f_\alpha(\boldsymbol{z}_k)=\alpha\boldsymbol{I}\boldsymbol{z}_k+(\boldsymbol{c}_{\tau(\boldsymbol{z}_k)+1}-\alpha\boldsymbol{c}_{\tau(\boldsymbol{z}_k)}) \;.\] For values of \(\alpha\in\mathbb{R}/\{0,1\}\), Thm. 3 in [77] guarantees the existence of an equivalent affine continuous-time system, in the sense that \[\boldsymbol{\zeta}(t_0)=\boldsymbol{z}_{k_0},\;\boldsymbol{\zeta}(t_0+h)=\boldsymbol{z}_{k_0+1} \;,\] where \(h\) denotes the discrete timestep at which observations \(\boldsymbol{z}_k\) are sampled. The equivalent continuous-time system is then given by \[\dv{\boldsymbol{\zeta}}{t} = \frac{\log\alpha}{h}\boldsymbol{\zeta}-\frac{1}{h}\frac{\log\alpha}{1-\alpha}(\boldsymbol{c}_{\tau(\boldsymbol{\zeta})+1}-\alpha\boldsymbol{c}_{\tau(\boldsymbol{\zeta})}) \;.\] For the case \(\alpha=1\), we define \(\frac{\log{\alpha}}{1-\alpha}\rvert_{\alpha=1} :=-1\) by its continuous extension. Such an extension does, however, not exist for \(\alpha=0\). For \(\alpha<0\), the logarithm is complex-valued. Hence, a real-valued continuous-time limit for \(f_\alpha\) exists only for \(\alpha>0\).

6.6.0.2 Computational complexity

The minimal architecture of DynaBase makes it computationally highly efficient for zero-shot inference. By exploiting discrete nearest-neighbor lookup and efficient heuristic search algorithms such as \(k\)-d trees [92], the time complexity of running DynaBase autoregressively over \(T_F\) forecast steps is \[\mathcal{T} = \mathcal{O}(T_F \log T_C),\] with a one-time overhead of \(\mathcal{O}(T_C \log T_C)\) for constructing the \(k\)-d tree. In higher dimensions, query time degrades toward \(\mathcal{O}(T_C)\) in the worst case. Provided the generated trajectory is not retained, the space complexity reduces to \[\mathcal{S} = \mathcal{O}(T_C).\] These bounds allow DynaBase to generate long forecasts over extended contexts at low computational cost — in contrast to standard transformer architectures, which incur quadratic time and space complexity in context length.

7 Proofs of Theorems↩︎

In the following we use the same notation as introduced in Sec. 3.3, with \(\boldsymbol{C}=\{\boldsymbol{c}_1,\dots,\boldsymbol{c}_{T_C}\}\in\mathbb{R}^{N\times T_C}\) a context sequence, \(\tau(\boldsymbol{z})=\mathop{\mathrm{arg\,min}}_{s}\left\lVert\boldsymbol{c}_s-\boldsymbol{z}\right\rVert_2\) the nearest-neighbor lookup, and \[f_{\alpha,\beta}(\boldsymbol{z})=\alpha\boldsymbol{z}+\beta\boldsymbol{c}_{\tau(\boldsymbol{z})}+\gamma\boldsymbol{c}_{\tau(\boldsymbol{z})+1},\qquad \gamma=1-\alpha-\beta,\] the two-parameter DynaBase map; \(f_\alpha\) denotes its self-consistent reduction with \(\beta=-\alpha\), \(\gamma=1\). Ties in \(\tau\) are broken by the smallest index; the tie set has measure zero and does not affect any of the statements below.

7.1 Proof of Theorem 1 (Uniqueness of form)↩︎

Proof. We start from the affine ansatz eq. 7 , \[f_\text{Linear}(\boldsymbol{z},\boldsymbol{C})=\boldsymbol{A}\boldsymbol{z}+\boldsymbol{B}^{(1)}\boldsymbol{c}_{\tau(\boldsymbol{z})}+\boldsymbol{B}^{(2)}\boldsymbol{c}_{\tau(\boldsymbol{z})+1}+\tilde{\boldsymbol{h}}, \label{eq:proof-uniq-ansatz}\tag{14}\] with \(\boldsymbol{A},\boldsymbol{B}^{(1)},\boldsymbol{B}^{(2)}\in\mathbb{R}^{N\times N}\) and \(\boldsymbol{h}\in\mathbb{R}^N\), and impose the two structural assumptions in turn.

7.1.0.1 Orthogonal equivariance.

\(O(N)\)-equivariance requires \(Q\,f_\text{Linear}(\boldsymbol{z},\boldsymbol{C})=f_\text{Linear}(Q\boldsymbol{z},Q\boldsymbol{C})\) for all \(Q\in O(N)\), where \(Q\boldsymbol{C}:=\{Q\boldsymbol{c}_s\}_s\). Since \(\tau\) is itself \(O(N)\)-equivariant, substituting eq. 14 and matching coefficients of the independent vectors \(\boldsymbol{z},\boldsymbol{c}_{\tau(\boldsymbol{z})},\boldsymbol{c}_{\tau(\boldsymbol{z})+1}\) gives \[Q\boldsymbol{A}=\boldsymbol{A}Q,\quad Q\boldsymbol{B}^{(1)}=\boldsymbol{B}^{(1)}Q,\quad Q\boldsymbol{B}^{(2)}=\boldsymbol{B}^{(2)} Q,\quad Q\boldsymbol{h}=\boldsymbol{h},\qquad \forall Q\in O(N).\] The standard representation of \(O(N)\) on \(\mathbb{R}^N\) is irreducible for \(N\ge 2\), so by Schur’s lemma every commuting matrix is a scalar multiple of the identity, and the only \(O(N)\)-fixed vector is \(\boldsymbol{0}\): \[\boldsymbol{A}=\alpha\boldsymbol{I},\quad \boldsymbol{B}^{(1)}=\beta\boldsymbol{I},\quad \boldsymbol{B}^{(2)}=\gamma\boldsymbol{I},\quad \boldsymbol{h}=\boldsymbol{0},\qquad \alpha,\beta,\gamma\in\mathbb{R}.\] Hence eq. 14 reduces to \(f(\boldsymbol{z})=\alpha\boldsymbol{z}+\beta\boldsymbol{c}_{\tau(\boldsymbol{z})}+\gamma\boldsymbol{c}_{\tau(\boldsymbol{z})+1}\).

7.1.0.2 Translation equivariance.

For any \(\boldsymbol{v}\in\mathbb{R}^N\), applying the joint shift \(\boldsymbol{z}\mapsto\boldsymbol{z}+\boldsymbol{v}\), \(\boldsymbol{C}\mapsto\boldsymbol{C}+\boldsymbol{v}\) leaves \(\tau\) invariant. Substituting into the previous form, \[f(\boldsymbol{z}+\boldsymbol{v};\boldsymbol{C}+\boldsymbol{v})=\alpha(\boldsymbol{z}+\boldsymbol{v})+\beta(\boldsymbol{c}_{\tau(\boldsymbol{z})}+ \boldsymbol{v})+\gamma(\boldsymbol{c}_{\tau(\boldsymbol{z})+1}+\boldsymbol{v})=f(\boldsymbol{z};\boldsymbol{C})+(\alpha+\beta+\gamma)\boldsymbol{v}.\] Translation equivariance demands \(f(\boldsymbol{z}+\boldsymbol{v};\boldsymbol{C}+\boldsymbol{v})=f(\boldsymbol{z};\boldsymbol{C})+\boldsymbol{v}\) for all \(\boldsymbol{v}\), hence \(\alpha+\beta+\gamma=1\). Setting \(\gamma=1-\alpha-\beta\) yields the two-parameter family \[f_{\alpha,\beta}(\boldsymbol{z})=\alpha\boldsymbol{z}+\beta\boldsymbol{c}_{\tau(\boldsymbol{z})}+(1-\alpha-\beta)\,\boldsymbol{c}_{\tau(\boldsymbol{z})+1}.\] ◻

7.2 Proof of Theorem 2 (Reduction to context parroting)↩︎

Proof. For \(\alpha=\beta=0\), the DynaBase map on the delay-embedded context \(\overline{\boldsymbol{C}}_{1:T_C-D+1}\in\mathbb{R}^{D\times (T_C-D+1)}\) reduces to the deterministic lookup \[\boldsymbol{z}_{t+1}=f_0(\boldsymbol{z}_t)=\overline{\boldsymbol{c}}_{\tau(\boldsymbol{z}_t)+1},\qquad \tau(\boldsymbol{z})=\mathop{\mathrm{arg\,min}}_{1\le s\le T_C-D}\left\lVert\overline{\boldsymbol{c}}_s-\boldsymbol{z}\right\rVert_2. \label{eq:proof-parrot}\tag{15}\]

7.2.0.1 Initial step.

Starting from \(\boldsymbol{z}_0=\overline{\boldsymbol{c}}_{T_C-D+1}\) (the most recent \(D\) context entries), the first application of eq. 15 , assuming the final \(D\) steps are omitted for \(\tau(\boldsymbol{z}_0)\) (see [2]), yields \[s^\star :=\tau(\boldsymbol{z}_0)=\mathop{\mathrm{arg\,min}}_{1\le s\le T_C-2D}\left\lVert\overline{\boldsymbol{c}}_s-\overline{\boldsymbol{c}}_{T_C-D+1}\right\rVert_2.\] Since \(\overline{\boldsymbol{c}}_s=(c_s,\dots,c_{s+D-1})\), this distance is the Euclidean distance between two \(D\)-length motifs of the original context—identical to the motif-matching step of [2]. Hence \(s^\star\) coincides with the best-matching motif index produced by context parroting.

7.2.0.2 Induction step.

Suppose \(\boldsymbol{z}_k=\overline{\boldsymbol{c}}_{s^\star+k}\) with \(s^\star+k\le T_C-D\). Then \(\tau(\boldsymbol{z}_k)=s^\star+k\) at zero distance, and \[\boldsymbol{z}_{k+1}=\overline{\boldsymbol{c}}_{s^\star+k+1}=(c_{s^\star+k+1},\dots,c_{s^\star+k+D}).\] By induction, \(\boldsymbol{z}_t=\overline{\boldsymbol{c}}_{s^\star+t}\) for all \(0\le t\le T_C-D-s^\star\). Extracting observations from the delay embedded vectors results in \[x_t=z_{D,t}=c_{s^\star+t+D-1},\] which is exactly the forecast emitted by [2] after locating the best-matching motif \(s^\star\).

7.2.0.3 Wrap-around.

Once \(s^\star+t\) exceeds \(T_C-D\), both algorithms treat the current tail as a new query and repeat the motif search. Both procedures execute the same operation, so the equivalence extends to arbitrary forecast horizons. ◻

7.3 Proof of Theorem 3 (Long-term dynamics)↩︎

Proof. For \(\alpha=0\), \(f_\alpha\) reduces to \(f_0(\boldsymbol{z})=\boldsymbol{c}_{\tau(\boldsymbol{z})+1}\), with finite range \(\{\boldsymbol{c}_2,\dots,\boldsymbol{c}_{T_C}\}\). After one iteration every orbit lies in this finite set, on which \(f_0\) acts as the deterministic graph map \(\boldsymbol{c}_s\mapsto\boldsymbol{c}_{\tau(\boldsymbol{c}_s)+1}=\boldsymbol{c}_{s+1}\) for \(s<T_C\). Each node has out-degree exactly one, so iteration on a finite directed functional graph must enter a cycle in at most \(T_C-1\) steps and remain periodic thereafter. The differential of \(f_0\) vanishes on the interior of every Voronoi cell (the map is piecewise constant), so the Lyapunov exponent within each cell is \(\lambda_{\text{max}}=-\infty<0\) everywhere. Since the saltation operator \(\mathcal{S}_{s,s+1}=\mathbf{I}\) between two Voronoi cells \(V_s\) and \(V_{s+1}\) is always finite and nonzero for \(\alpha=0\), we obtain \(\lambda_{\text{max}}=-\infty\) globally. ◻

7.4 Proof of Theorem 4 (Boundedness)↩︎

Proof. For \(\boldsymbol{z}\in\mathbb{R}^N\) define the distance to the context set \[d_{\boldsymbol{C}}(\boldsymbol{z}):=\min_{\boldsymbol{c}\in\boldsymbol{C}}\left\lVert\boldsymbol{c}-\boldsymbol{z}\right\rVert_2=\left\lVert\boldsymbol{z}-\boldsymbol{c}_{\tau(\boldsymbol{z})}\right\rVert_2.\]

7.4.0.1 Sufficiency (\(\alpha\in[0,1]\)).

Fix any \(\boldsymbol{z}_t\) and let \(\boldsymbol{z}_{t+1}=f_\alpha(\boldsymbol{z}_t)=\alpha(\boldsymbol{z}_t-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)})+\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}\) as in eq. 10 . Since \(\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}\in\boldsymbol{C}\), \[d_{\boldsymbol{C}}(\boldsymbol{z}_{t+1})\le \left\lVert\boldsymbol{z}_{t+1}-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)+1}\right\rVert_2 = |\alpha|\,\left\lVert\boldsymbol{z}_t-\boldsymbol{c}_{\tau(\boldsymbol{z}_t)}\right\rVert_2 = |\alpha|\,d_{\boldsymbol{C}}(\boldsymbol{z}_t).\] For \(\alpha\in[0,1]\), this gives \(d_{\boldsymbol{C}}(\boldsymbol{z}_{t+1})\le d_{\boldsymbol{C}}(\boldsymbol{z}_t)\). By induction, \(d_{\boldsymbol{C}}(\boldsymbol{z}_t)\le d_{\boldsymbol{C}}(\boldsymbol{z}_0)\) for all \(t\ge 0\), so \[\left\lVert\boldsymbol{z}_t\right\rVert_2\le \max_{1\le s\le T_C-1}\left\lVert\boldsymbol{c}_s\right\rVert_2+d_{\boldsymbol{C}}(\boldsymbol{z}_0)<\infty,\] and the orbit is bounded.

7.4.0.2 Non-necessity (\(\alpha>1\) counterexample).

Let \(N=1\), \(\alpha=2\), and \(\boldsymbol{C}=(c_1,c_2,c_3)=(-1,1,-1)\). The induced Voronoi cells are \(V_1=\{z\le 0\}\) and \(V_2=\{z>0\}\), with successors \(c_2=1\) and \(c_3=-1\), respectively. Substituting into eq. 10 gives the piecewise-affine map \[f_2(z)=\begin{cases} 2z+3, & z\le 0,\\ 2z-3, & z>0. \end{cases}\] A direct check shows \(f_2([-3,3])\subseteq[-3,3]\): for \(z\in[-3,0]\) we have \(2z+3\in[-3,3]\), and for \(z\in(0,3]\) we have \(2z-3\in(-3,3]\). Hence any orbit with \(z_0\in[-3,3]\) remains in \([-3,3]\) for all \(t\ge 0\), proving bounded dynamics for \(\alpha=2>1\). This map is conjugate to the doubling/sawtooth map \(x_{t+1}=2x_t\bmod 1\), whose Lyapunov exponent equals \(\log 2\) on its invariant set. ◻

References↩︎

[1]
C. J. Hemmer and D. Durstewitz, “True zero-shot inference of dynamical systems preserving long-term statistics,” in The thirty-ninth annual conference on neural information processing systems, 2025, [Online]. Available: https://openreview.net/forum?id=RE97LT26w8.
[2]
Y. Zhang and W. Gilpin, “Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learning,” in The fourteenth international conference on learning representations, 2026, [Online]. Available: https://openreview.net/forum?id=EUAXc9Hlvm.
[3]
D. Durstewitz, G. Koppe, and M. I. Thurm, “Reconstructing computational system dynamics from neural data with recurrent neural networks,” Nature Reviews. Neuroscience, vol. 24, no. 11, pp. 693–710, Nov. 2023, doi: 10.1038/s41583-023-00740-7.
[4]
W. Gilpin, “Chaos as an interpretable benchmark for forecasting and data-driven modelling,” in Thirty-fifth conference on neural information processing systems datasets and benchmarks track (round 2), 2022, Accessed: Nov. 29, 2022. [Online]. Available: https://openreview.net/forum?id=enYjtbjYJrf.
[5]
P. J. Mumby, A. Hastings, and H. J. Edwards, “Thresholds and the resilience of caribbean coral reefs,” Nature, vol. 450, no. 7166, pp. 98–101, 2007, doi: 10.1038/nature06252.
[6]
E. Tziperman, H. Scher, S. E. Zebiak, and M. A. Cane, “Controlling spatiotemporal chaos in a realistic el niño prediction model,” Phys. Rev. Lett., vol. 79, pp. 1034–1037, Aug. 1997, doi: 10.1103/PhysRevLett.79.1034.
[7]
U. S. Bhalla and R. Iyengar, “Emergent properties of networks of biological signaling pathways,” Science, vol. 283, no. 5400, pp. 381–387, 1999, doi: 10.1126/science.283.5400.381.
[8]
G. Buzsaki, Google-Books-ID: ldz58irprjYCRhythms of the Brain. Oxford University Press, 2006.
[9]
B. Mandelbrot and R. L. Hudson, The misbehavior of markets: A fractal view of financial turbulence. Basic books, 2007.
[10]
M. Brenner, C. J. Hemmer, Z. Monfared, and D. Durstewitz, “Almost-linear RNNs yield highly interpretable symbolic codes in dynamical systems reconstruction,” in Advances in neural information processing systems, 2024, vol. 37, pp. 36829–36868.
[11]
W. Gilpin, “Model scale versus domain knowledge in statistical forecasting of chaotic systems,” Physical Review Research, vol. 5, no. 4, p. 043252, 2023.
[12]
N. A. Göring, F. Hess, M. Brenner, Z. Monfared, and D. Durstewitz, ISSN: 2640-3498“Out-of-Domain Generalization in Dynamical Systems Reconstruction,” in Proceedings of the 41st International Conference on Machine Learning, Jul. 2024, pp. 16071–16114, Accessed: Oct. 07, 2024. [Online]. Available: https://proceedings.mlr.press/v235/goring24a.html.
[13]
J. A. Platt, S. G. Penny, T. A. Smith, T.-C. Chen, and H. D. Abarbanel, “Constraining chaos: Enforcing dynamical invariants in the training of reservoir computers,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 33, no. 10, 2023.
[14]
S. L. Brunton, B. W. Brunton, J. L. Proctor, E. Kaiser, and J. N. Kutz, Publisher: Nature Publishing Group“Chaos as an intermittently forced linear system,” Nature Communications, vol. 8, no. 1, p. 19, May 2017, doi: 10.1038/s41467-017-00030-8.
[15]
S. L. Brunton and J. N. Kutz, Data-driven science and engineering: Machine learning, dynamical systems, and control. Cambridge University Press, 2019.
[16]
D. Durstewitz, C. J. Hemmer, F. Hess, C. R. Doll, and L. Eisenmann, “Position: Why a dynamical systems perspective is needed to advance time series modeling,” arXiv preprint arXiv:2602.16864, 2026.
[17]
M. Brenner et al., ISSN: 2640-3498“Tractable Dendritic RNNs for Reconstructing Nonlinear Dynamical Systems,” in Proceedings of the 39th International Conference on Machine Learning, Jun. 2022, pp. 2292–2320, Accessed: Sep. 07, 2023. [Online]. Available: https://proceedings.mlr.press/v162/brenner22a.html.
[18]
F. Hess, Z. Monfared, M. Brenner, and D. Durstewitz, ISSN: 2640-3498“Generalized Teacher Forcing for Learning Chaotic Dynamics,” in Proceedings of the 40th International Conference on Machine Learning, Jul. 2023, pp. 13017–13049, [Online]. Available: https://proceedings.mlr.press/v202/hess23a.html.
[19]
J. A. Platt, S. G. Penny, T. A. Smith, T.-C. Chen, and H. D. Abarbanel, “A systematic exploration of reservoir computing for forecasting complex spatiotemporal dynamics,” Neural Networks, vol. 153, pp. 530–552, 2022.
[20]
A. F. Ansari et al., “Chronos: Learning the language of time series,” Transactions on Machine Learning Research, 2024, [Online]. Available: https://openreview.net/forum?id=gerNCVqqtR.
[21]
A. F. Ansari et al., “Chronos-2: From univariate to universal forecasting.” 2025, [Online]. Available: https://arxiv.org/abs/2510.15821.
[22]
S. K. Bhethanabhotla, O. Swelam, J. Siems, D. Salinas, and F. Hutter, “Mamba4Cast: Efficient zero-shot time series forecasting with state space models,” arXiv preprint arXiv:2410.09385, 2024.
[23]
J. Lai, A. Bao, and W. Gilpin, “Panda: A pretrained forecast model for universal representation of chaotic dynamics,” arXiv preprint arXiv:2505.13755, 2025.
[24]
C. Rudin, “Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead,” Nature Machine Intelligence, vol. 1, no. 5, pp. 206–215, 2019, doi: 10.1038/s42256-019-0048-x.
[25]
Y. Zhang and W. Gilpin, “Zero-shot forecasting of chaotic systems,” in The thirteenth international conference on learning representations, 2025, [Online]. Available: https://openreview.net/forum?id=TqYjhJrp9m.
[26]
J.-A. Li, M. K. Benna, and M. G. Mattar, “Discovering cognitive strategies with tiny recurrent neural networks,” Nature, vol. 644, pp. 993–1001, 2025, doi: 10.1038/s41586-025-09142-4.
[27]
G. Wang et al., “Hierarchical reasoning model.” 2025, [Online]. Available: https://arxiv.org/abs/2506.21734.
[28]
A. Jolicoeur-Martineau, “Less is more: Recursive reasoning with tiny networks.” 2025, [Online]. Available: https://arxiv.org/abs/2510.04871.
[29]
J. Mikhaeil, Z. Monfared, and D. Durstewitz, “On the difficulty of learning chaotic dynamics with RNNs,” Advances in Neural Information Processing Systems, vol. 35, pp. 11297–11312, Dec. 2022, Accessed: Sep. 18, 2024. [Online].
[30]
S. L. Brunton, J. L. Proctor, and J. N. Kutz, “Discovering governing equations from data by sparse identification of nonlinear dynamical systems,” Proceedings of the National Academy of Sciences USA, vol. 113, no. 15, pp. 3932–3937, 2016, doi: 10.1073/pnas.1517384113.
[31]
J.-C. Loiseau and S. L. Brunton, Publisher: Cambridge University Press“Constrained sparse Galerkin regression,” Journal of Fluid Mechanics, vol. 838, pp. 42–67, Mar. 2018, doi: 10.1017/jfm.2017.823.
[32]
J. Pathak, Z. Lu, B. R. Hunt, M. Girvan, and E. Ott, arXiv: 1710.07313“Using Machine Learning to Replicate Chaotic Attractors and Calculate Lyapunov Exponents from Data,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 27, no. 12, p. 121102, Dec. 2017, doi: 10.1063/1.5010300.
[33]
T. L. Carroll and L. M. Pecora, “Network Structure Effects in Reservoir Computers,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 29, no. 8, p. 083130, Aug. 2019, doi: 10.1063/1.5097686.
[34]
X. Han, Y. Zhao, and M. Small, “A tighter generalization bound for reservoir computing,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 32, no. 4, p. 043115, Apr. 2022, doi: 10.1063/5.0082258.
[35]
R. T. Q. Chen, Y. Rubanova, J. Bettencourt, and D. Duvenaud, “Neural Ordinary Differential Equations,” in Advances in Neural Information Processing Systems 31, 2018, Accessed: Dec. 02, 2020. [Online]. Available: http://arxiv.org/abs/1806.07366.
[36]
V. M. M. Alvarez, R. Roşca, and C. G. Fălcuţescu, “Dynode: Neural ordinary differential equations for dynamics modeling in continuous control,” arXiv preprint arXiv:2009.04278, 2020.
[37]
J.-H. Ko, H. Koh, N. Park, and W. Jhe, “Homotopy-based training of neuralodes for accurate dynamics discovery,” Advances in Neural Information Processing Systems, vol. 36, pp. 64725–64752, 2023.
[38]
B. Lusch, J. N. Kutz, and S. L. Brunton, arXiv: 1712.09707“Deep learning for universal linear embeddings of nonlinear dynamics,” Nat Commun, vol. 9, no. 1, p. 4950, Dec. 2018, doi: 10.1038/s41467-018-07210-0.
[39]
S. E. Otto and C. W. Rowley, “Linearly recurrent autoencoder networks for learning dynamics,” SIAM Journal on Applied Dynamical Systems, vol. 18, no. 1, pp. 558–593, 2019, doi: 10.1137/18M1177846.
[40]
O. Azencot, N. B. Erichson, V. Lin, and M. W. Mahoney, “Forecasting Sequential Data using Consistent Koopman Autoencoders,” in Proceedings of the 37th International Conference on Machine Learning, 2020, Accessed: May 22, 2021. [Online]. Available: http://arxiv.org/abs/2003.02236.
[41]
I. Naiman and O. Azencot, arXiv: 2102.07824“A Koopman Approach to Understanding Sequence Neural Models,” arXiv:2102.07824 [cs, math], Oct. 2021, Accessed: Nov. 05, 2021. [Online]. Available: http://arxiv.org/abs/2102.07824.
[42]
S. L. Brunton, M. Budišić, E. Kaiser, and J. N. Kutz, “Modern koopman theory for dynamical systems,” SIAM Review, vol. 64, no. 2, pp. 229–340, 2022, doi: 10.1137/21M1401243.
[43]
R. Wang, Y. Dong, S. Ö. Arik, and R. Yu, arXiv:2210.03675 [cs, stat]“Koopman Neural Forecaster for Time Series with Temporal Distribution Shifts.” arXiv, Oct. 2022, Accessed: Oct. 20, 2022. [Online]. Available: http://arxiv.org/abs/2210.03675.
[44]
A. P. Trischler and G. M. T. D’Eleuterio, “Synthesis of recurrent neural networks for dynamical system simulation,” Neural Networks, vol. 80, pp. 67–78, 2016, doi: 10.1016/j.neunet.2016.04.001.
[45]
D. Durstewitz, “A state space approach for piecewise-linear recurrent neural networks for identifying computational dynamics from neural measurements,” PLoS Comput. Biol., vol. 13, no. 6, p. e1005542, 2017, doi: 10.1371/journal.pcbi.1005542.
[46]
P. R. Vlachas, W. Byeon, Z. Y. Wan, T. P. Sapsis, and P. Koumoutsakos, “Data-driven forecasting of high-dimensional chaotic systems with long short-term memory networks,” Proc. R. Soc. A., vol. 474, no. 2213, p. 20170844, 2018, doi: 10.1098/rspa.2017.0844.
[47]
T. K. Rusch, S. Mishra, N. B. Erichson, and M. W. Mahoney, “Long expressive memory for sequence modeling,” in International conference on learning representations, 2022.
[48]
C. J. Hemmer, M. Brenner, F. Hess, and D. Durstewitz, ISSN: 2640-3498“Optimal Recurrent Network Topologies for Dynamical Systems Reconstruction,” in Proceedings of the 41st International Conference on Machine Learning, Jul. 2024, pp. 18174–18204, Accessed: Oct. 07, 2024. [Online]. Available: https://proceedings.mlr.press/v235/hemmer24a.html.
[49]
A. Brändle, L. Eisenmann, F. Götz, and D. Durstewitz, “Continuous-time piecewise-linear recurrent neural networks,” arXiv preprint arXiv:2602.15649, 2026.
[50]
L. Fumagalli, K. Lüdge, J. de Wiljes, H. Haario, and L. Jaurigue, “Data-driven performance measures using global properties of attractors for testing black-box surrogate models of chaotic systems,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 35, no. 11, p. 113121, Nov. 2025, doi: 10.1063/5.0283424.
[51]
R. Jiang, P. Y. Lu, E. Orlova, and R. Willett, “Training neural operators to preserve invariant measures of chaotic attractors,” Advances in Neural Information Processing Systems, vol. 36, pp. 27645–27669, 2023.
[52]
Y. Yin, I. Ayed, E. de Bézenac, N. Baskiotis, and P. Gallinari, “Leads: Learning dynamical systems that generalize across environments,” Advances in Neural Information Processing Systems, vol. 34, pp. 7561–7573, 2021.
[53]
M. Kirchmeyer, Y. Yin, J. Donà, N. Baskiotis, A. Rakotomamonjy, and P. Gallinari, “Generalizing to new physical systems via context-informed dynamics model,” in International conference on machine learning, 2022, pp. 11283–11301.
[54]
A. Vermani, J. Nassar, H. Jeon, M. Dowling, and I. M. Park, “Meta-dynamical state space models for integrative neural data analysis,” in The thirteenth international conference on learning representations, 2025, [Online]. Available: https://openreview.net/forum?id=SRpq5OBpED.
[55]
M. Brenner, E. Weber, G. Koppe, and D. Durstewitz, “Learning interpretable hierarchical dynamical systems models from time series data,” in The thirteenth international conference on learning representations (ICLR), 2025, [Online]. Available: https://openreview.net/forum?id=Vp2OAxMs2s.
[56]
T. Brown et al., “Language models are few-shot learners,” Advances in neural information processing systems, vol. 33, pp. 1877–1901, 2020.
[57]
S. Garg, D. Tsipras, P. S. Liang, and G. Valiant, “What can transformers learn in-context? A case study of simple function classes,” Advances in Neural Information Processing Systems, vol. 35, pp. 30583–30598, 2022.
[58]
E. Akyürek, D. Schuurmans, J. Andreas, T. Ma, and D. Zhou, “What learning algorithm is in-context learning? Investigations with linear models,” in Proceedings of the 11th international conference on learning representations (ICLR), 2023, [Online]. Available: https://openreview.net/forum?id=0g0X4H8yN4I.
[59]
A. Das, W. Kong, R. Sen, and Y. Zhou, “A decoder-only foundation model for time-series forecasting,” in Forty-first international conference on machine learning, 2024.
[60]
M. Beck et al., “Xlstm: Extended long short-term memory,” Advances in Neural Information Processing Systems, vol. 37, pp. 107547–107603, 2024.
[61]
A. Gu and T. Dao, “Mamba: Linear-time sequence modeling with selective state spaces,” in First conference on language modeling, 2024.
[62]
Y. Bai, F. Chen, H. Wang, C. Xiong, and S. Mei, “Transformers as statisticians: Provable in-context learning with in-context algorithm selection,” in Advances in neural information processing systems, 2023, vol. 36, pp. 57125–57211, [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2023/file/b2e63e36c57e153b9015fece2352a9f9-Paper-Conference.pdf.
[63]
J. von Oswald et al., “Transformers learn in-context by gradient descent,” in Proceedings of the 40th international conference on machine learning, 2023, vol. 202, pp. 35151–35174, [Online]. Available: https://proceedings.mlr.press/v202/von-oswald23a.html.
[64]
Z. Lin and K. Lee, “Dual operating modes of in-context learning,” in Forty-first international conference on machine learning, 2024.
[65]
S. M. Xie, A. Raghunathan, P. Liang, and T. Ma, “An explanation of in-context learning as implicit bayesian inference,” arXiv preprint arXiv:2111.02080, 2021.
[66]
L. Shen, A. Mishra, and D. Khashabi, “Position: Do pretrained transformers learn in-context by gradient descent?” in Proceedings of the 41st international conference on machine learning, 2024, vol. 235, pp. 44712–44740, [Online]. Available: https://proceedings.mlr.press/v235/shen24d.html.
[67]
Q. Wang, Y. Wang, X. Ying, and Y. Wang, “Can in-context learning really generalize to out-of-distribution tasks?” in The thirteenth international conference on learning representations, 2025, [Online]. Available: https://openreview.net/forum?id=INe4otjryz.
[68]
W. Wu, T.-Y. Hsiao, J. Y.-C. Hu, W. Zhang, and H. Liu, “In-context learning as conditioned associative memory retrieval,” in Proceedings of the 42nd international conference on machine learning, 2025, vol. 267, pp. 67300–67325, [Online]. Available: https://proceedings.mlr.press/v267/wu25k.html.
[69]
C. Olsson et al., “In-context learning and induction heads,” arXiv preprint arXiv:2209.11895, 2022.
[70]
E. Edelman, N. Tsilivis, B. L. Edelman, E. Malach, and S. Goel, “The evolution of statistical induction heads: In-context learning markov chains,” Advances in neural information processing systems, vol. 37, pp. 64273–64311, 2024.
[71]
S. Chen, H. Sheen, T. Wang, and Z. Yang, “Unveiling induction heads: Provable training dynamics and feature learning in transformers,” Advances in Neural Information Processing Systems, vol. 37, pp. 66479–66567, 2024.
[72]
J. D. Farmer and J. J. Sidorowich, Publisher: American Physical Society“Predicting chaotic time series,” Physical Review Letters, vol. 59, no. 8, pp. 845–848, Aug. 1987, doi: 10.1103/PhysRevLett.59.845.
[73]
H. Kantz and T. Schreiber, Nonlinear time series analysis, vol. 7. Cambridge university press, 2004.
[74]
L. Perko, Differential equations and dynamical systems, 3rd ed. New York: Springer, 2001.
[75]
G. Koppe, H. Toutounji, P. Kirsch, S. Lis, and D. Durstewitz, “Identifying nonlinear dynamical systems via generative recurrent neural networks with applications to fMRI,” PLOS Computational Biology, vol. 15, no. 8, p. e1007263, 2019, doi: 10.1371/journal.pcbi.1007263.
[76]
M. Pals, A. E. Sağtekin, F. Pei, M. Gloeckler, and J. H. Macke, “Inferring stochastic low-rank recurrent neural networks from neural data,” in Advances in neural information processing systems, 2024, vol. 37, pp. 18225–18264, doi: 10.52202/079017-0579.
[77]
Z. Monfared and D. Durstewitz, “Transformation of ReLU-based recurrent neural networks from discrete-time to continuous-time,” in Proceedings of the 37th International Conference on Machine Learning, 2020, Accessed: May 06, 2021. [Online]. Available: http://proceedings.mlr.press/v119/monfared20a.html.
[78]
K. T. Alligood, T. D. Sauer, and J. A. Yorke, Chaos: An introduction to dynamical systems. New York, NY: Springer, 1996.
[79]
J. Guckenheimer and P. Holmes, Nonlinear Oscillations, Dynamical Systems, and Bifurcations of Vector Fields, vol. 42. New York, NY: Springer, 1983.
[80]
D. Patel and E. Ott, “Using machine learning to anticipate tipping points and extrapolate to post-tipping dynamics of non-stationary dynamical systems,” Chaos (Woodbury, N.Y.), vol. 33, no. 2, p. 023143, Feb. 2023, doi: 10.1063/5.0131787.
[81]
J. Daafouz, P. Riedinger, and C. Iung, Conference Name: IEEE Transactions on Automatic Control“Stability analysis and control synthesis for switched systems: A switched Lyapunov function approach,” IEEE Transactions on Automatic Control, vol. 47, no. 11, pp. 1883–1887, Nov. 2002, doi: 10.1109/TAC.2002.804474.
[82]
Z. Sun, Google-Books-ID: u4GArZN1bmsCSwitched Linear Systems: Control and Design. Springer Science & Business Media, 2006.
[83]
M. di Bernardo, C. J. Budd, A. R. Champneys, and P. Kowalczyk, Piecewise-smooth dynamical systems: Theory and applications, vol. 163. London: Springer, 2008.
[84]
S. Coombes, M. Şayli, R. Thul, R. Nicks, M. A. Porter, and Y. M. Lai, “Oscillatory networks: Insights from piecewise-linear modeling,” SIAM Review, vol. 66, no. 4, pp. 619–679, 2024, doi: 10.1137/22M1534365.
[85]
H. Hewamalage, K. Ackermann, and C. Bergmeir, (IF 4.8, Q2 in “Computer Science, Artificial Intelligence,” JCR 2022)“Forecast evaluation for data scientists: Common pitfalls and best practices,” Data Mining and Knowledge Discovery, vol. 37, no. 2, pp. 788–832, Jan. 2023, [Online]. Available: https://link.springer.com/content/pdf/10.1007/s10618-022-00894-5.pdf?pdf=button.
[86]
M. T. Rosenstein, J. J. Collins, and C. J. De Luca, “A practical method for calculating largest lyapunov exponents from small data sets,” Physica D: Nonlinear Phenomena, vol. 65, no. 1–2, pp. 117–134, 1993.
[87]
G. Benettin, L. Galgani, A. Giorgilli, and J.-M. Strelcyn, “Lyapunov characteristic exponents for smooth dynamical systems and for hamiltonian systems; a method for computing all of them. Part 1: theory,” Meccanica, vol. 15, no. 1, pp. 9–20, 1980.
[88]
F. Takens, Detecting strange attractors in turbulence,” in Dynamical Systems and Turbulence, Warwick 1980, vol. 898, Springer, 1981, pp. 366–381.
[89]
T. Sauer, J. A. Yorke, and M. Casdagli, “Embedology,” Journal of statistical Physics, vol. 65, no. 3, pp. 579–616, 1991.
[90]
E. E. SEL’KOV, “Self-oscillations in glycolysis 1. A simple kinetic model,” European Journal of Biochemistry, vol. 4, no. 1, pp. 79–86, 1968.
[91]
E. N. Lorenz, “Deterministic nonperiodic flow,” Journal of atmospheric sciences, vol. 20, no. 2, pp. 130–141, 1963.
[92]
J. H. Friedman, J. L. Bentley, and R. A. Finkel, “An algorithm for finding best matches in logarithmic expected time,” ACM Transactions on Mathematical Software (TOMS), vol. 3, no. 3, pp. 209–226, 1977.