Manuscript Offprint
arXiv:2610.19997Empirical Boundaries of Reservoir Computing for Few-Shot Sequence Pattern Tasks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Mario Mallea , Ångela Nebot , and Francisco Mugica
Universitat Politècnica de Catalunya - BarcelonaTech, Soft Computing Research Group at the Intelligent Data Science and Artificial Intelligence Research Center, Barcelona, Spain. mario.carlos.mallea@upc.edu
Abstract. Efficient sequence modeling remains a fundamental challenge in machine learning. Despite the success of Transformers, recurrent neural networks (RNNs) have recently re-emerged as efficient alternatives. Particularly, Echo State Networks (ESNs) offer a compelling framework of randomized RNNs that have been extensively studied for time-series forecasting and dynamical systems. This paper presents an empirical analysis of distributional, architectural, and optimization variants of ESNs evaluated on few-shot sequence-to-sequence (seq2seq) pattern tasks. These synthetic tasks utilize discrete symbol sequences, characterized by delays, inactive phases, and triggered markers to isolate and evaluate memory and pattern recognition capabilities. The minimality of these tasks is crucial to understand the strengths and limitations of machine learning models. Furthermore, when the input signal utilizes a one-hot encoding, ESN dynamics are governed strictly by their weight distributions, offering an ideal lens through which to study reservoir computing. Our findings map the performance boundaries of ESNs relative to state-of-the-art (SOTA) models. We show that preserving a linear state regime is vital for memory tasks, such as pattern completion or simple copy. We propose a data-dependent modulation mechanism for nonlinear input injection into the reservoir (G-ESN). G-ESN functions as a statistical filter capable of solving tasks that conventional ESNs cannot (the adding problem and bracket matching). Finally, for Deep ESNs, we evaluate a shared readout mechanism across layers that outperforms conventional concatenated readouts on structural tasks, including selective copy, sorting problem, and bracket matching.
Keywords: Reservoir Computing · Echo State Network · Sequential Modeling.
1 Introduction
Foundation models based on the Transformer architecture have advanced artificial intelligence. However, the quadratic computational complexity of self-attention restricts efficient inference over long sequences and limits deployment in resource-constrained environments. Moreover, the attention mechanism operates primarily as an associative short-term memory, often lacking the persistent
M. Mallea et al.
state dynamics needed to track long-term dependencies. In contrast, RNNs exhibit linear scaling with respect to sequence length, providing faster inference times, even for modest sequence lengths [18, 13]. Recently, architectures like the Selective State Space model (S6/Mamba) [8], Titans [2], and modern linear recurrent models [4, 18] have successfully approximated Transformers' language modeling capabilities while addressing the efficiency and memory concerns.
Efficiency and memory capacity are well understood properties of ESNs [10]. An ESN delegates temporal processing to a random dynamical system known as the reservoir, typically operating near the edge of chaos. While ESNs have proven successful in domains such as ensemble forecasting [17], time-series classification [12], wind power forecasting [14, 20] and battery health prognosis [9, 16], they remain understudied in the context of discrete sequence modeling. Appendix Sec. 1 provides an overview of how randomness and reservoir computing have been utilized to study and assess sequence modeling.
Theoretically, purely linear ESNs possess a maximum memory capacity equal to the reservoir size [1]. To extend this capacity, various ESNs have been proposed, including the LeakyESN [11], Deep ESNs [7] with concatenated layer readouts, and gated reservoir variants inspired by GRU [5] or LSTM [15] models. More recently, the Echo State Transformer (EST) [3] attempted to bridge the gap between reservoirs and attention mechanisms by integrating parallel reservoirs as a working memory core within self-attention layers.
Despite these developments, critical questions persist: Which sequence tasks are solvable using ESNs, and which are open challenges? How do their boundaries differ from SOTA architectures? To the best of our knowledge, we present the first work to evaluate few-shot seq2seq pattern tasks on architectural, distributional, and optimization variants of ESNs and benchmarking them directly against SOTA models. Specifically, our primary contributions are:
– We mathematically formalize and categorize the tasks within the STREAM benchmark [3], adding to the benchmark the results for ESN variants and the S6 architecture. We map the trade-offs of reservoir computing against fully trained models across specific task archetypes: state tracking and relational routing. Notably, the latter tasks (e.g. selective copy and sorting problem) remain challenging for ESNs.
– We show that input weight initialization is critical when processing one-hot encoded data. Conventional independent and identically distributed (IID) initialization causes rapid state-information collapse. Conversely, we argue that orthonormal (ON) initialization enables nonlinear activations to function within a stable, quasi-linear regime. This allows for near-perfect performance on state tracking tasks, such as simple copy and discrete pattern completion, which SOTA models fail to achieve.
– We propose a generalization of the LeakyESN into a data-dependent, adaptive leaky integrator (G-ESN) to extend reservoir capacity. We show that standard reservoir states are insufficient for tasks like the adding problem
https://github.com/MariodotR/ESN-on-cognitive-tasks.git and bracket matching, and we argue how G-ESN is able to implement a filter to repair that. Indeed, the proposed G-ESN is the only model to achieve near-zero error on bracket matching.
– We evaluate a shared readout mechanism across stacked layers in Deep ESNs, contrasting it with traditional layer concatenation. We demonstrate that tasks such as sequential MNIST, the adding problem, selective copy, and bracket matching, can benefit from the structural regularization imposed by a shared readout rather than concatenated feature selection.
where , represents the leaky integration vector, and is the activation function applied to the pre-activation vector . represents the input weight matrix and denotes the recurrent reservoir weight matrix. To guarantee the echo state property, the spectral radius is strictly bounded via . We construct as a scaled orthogonal matrix, , utilizing the QR decomposition , where [6]. This unitary structure preserves the norm of the state vector over time while maximizing the network's effective memory capacity.
Regarding the input matrix , we analyze two distinct initialization regimes: IID: a high-entropy projection where entries are drawn independently from a uniform distribution, . ON: an isotropic projection with orthogonal directions and identical gains, where and its columns are transformed into an orthonormal basis via QR decomposition, scaled by .
Architectures. Different reservoir models are derived from (1):
– LESN: Defines a purely linear dynamical system by setting and for all . This variant serves as a baseline to isolate the exact impact of nonlinear feature expansion.
– ESN: Represents the canonical reservoir model with a nonlinear state transformation at each step, using and for all .
– LeakyESN: Formulates a convex combination of the nonlinear state update and a historical skip connection by setting and , where is a fixed hyperparameter.
– G-ESN: Introduces an adaptive, data-dependent leaky integrator where and the leak rate is modulated via: , where is the logistic sigmoid function, is a random matrix, and represents a uniform bias hyperparameter with .
M. Mallea et al.
To illustrate this gating behavior, let denote the unbiased gate pre-activation. On the one hand, with a baseline bias of , the pre-activation yields during typical sequence processing steps, but increases to when a marked token appears. Consequently, any reservoir unit satisfying explicitly flags the masked token, incorporating a higher proportion of the nonlinear update. On the other hand, for two contrasting symbols (A and B) under a contrastive initialization where and , the G-ESN modulates state preservation such that .
– Deep ESN: Consists of hierarchically stacked reservoir layers, where the state of layer , denoted as , is driven by the state of the preceding layer: , where and for . Each layer's weight matrices are generated as independent random realizations of the selected initialization strategy.
Optimization. We apply linear regression to map the hidden features to the target labels. The readout weights are trained via Ridge regression (Tikhonov regularization) to minimize the mean squared error across the designated evaluation time steps :
where represents the flattened matrix of reservoir states across training samples at evaluation times, denotes the corresponding target matrix (seq2seq tasks), and is the regularization hyperparameter. This optimization problem yields a closed-form solution:
For Deep ESNs containing L layers, we implement and compare two distinct readout mechanisms:
– Concatenated: The conventional approach performs linear regression from the concatenation of all hidden layer states, and , allowing the readout to perform feature selection simultaneously across multiple abstraction timescales.
– Shared: We propose constraining the readout weight matrix to be shared invariants across all hidden layers, solving the joint minimization problem:
Enforcing shared weights across layers acts as a structural regularizer, compelling the optimization procedure to discover task-invariant manifolds across depths rather than relying on wide feature selection. This formulation also has a closed-form solution [17].
3 Experimental Setting
Tasks. We evaluate all ESN variants on the STREAM benchmark, strictly adhering to the evaluation protocols (including identical seeds and data partitions) established by [3]. STREAM comprises twelve distinct sequence tasks designed to evaluate a model's capacity to extract seq2seq temporal patterns from a limited number of examples, testing few-shot generalization. We categorize these twelve tasks into two fundamental groups based on the underlying mathematical mapping between the input and target sequences (detailed formal descriptions are available in Appendix Sec. 3). The first group are state tracking tasks, where the target sequence is a linear combination or a counter-based function of the input history. For the discrete domain, these include simple copy (Copy), adding problem (Adding), bracket matching (Bracket), discrete pattern completion (Disc. patt.), and discrete postcasting (Disc. post.). The second group consists of relational routing tasks, which are data-dependent and content-aware sequence problems requiring structural routing. These include selective copy (S-copy), sorting problem (Sorting), and Sequential MNIST (SMNIST).
Discrete and classification tasks are evaluated using error rate (1 – accuracy). The remaining four tasks are continuous problems: sinus forecasting (Sinus), chaotic forecasting (Chaotic), continuous pattern completion (Cont. patt.), and continuous postcasting (Cont. post.), which are evaluated using mean squared error.
Models are evaluated following a trigger token and a delay period, testing long-term information retention. For example, the copy task uses a sequence length of 50 steps across 4 dimensions: the first 22 steps contain a 3-symbol sequence, followed by 5 delay steps (zeros), a trigger marker (the fourth dimension), and 22 subsequent zeros. The target requires reproducing the original 22-step sequence during the final zero-input phase. Then, note that the seq2seq formulation forces the model to rely purely on its autonomous hidden dynamics or the fixed points of the tanh activation. Fig. 1 in Appendix illustrates this seq2seq formulation for the selective copy task.
Implementation details. To ensure architectural robustness, all experiments were conducted across 5 random seeds following [3]. We report the mean, standard deviation, and minimum error. Tab. 1 outlines the hyperparameter grid-search configurations. Our code is publicly available.
Table 1: Validation experiments for ESN variants. Best found for ESN was transferred to LeakyESN and G-ESN.
| Model | Hyperparameter | Grid Search | Results (Appendix) |
|---|---|---|---|
| ESN and LESN | λ | [0.0001, 0.001, 0.01, 0.1, 1, 10, 100] | Tab. 2 |
| Deep ESN variants | λ | [0.0001, 0.001, 0.01, 0.1, 1, 10, 100] | Tab. 3 |
| LeakyESN | α | [0.01, 0.1, 0.3, ., .05, 0.7, 0.9] | Tab. 4 |
| G-ESN | b | [0, -1, -3, -5, -7, -10] | Tab. 5 |
M. Mallea et al.
We benchmark our reservoir methods against the best models of [3]: LSTM, GRU, Transformer, and EST, with parameter scales ranging from 1K to 1M trainable weights. In addition, we trained the S6 [8], a candidate to replace Transformers as backbone. S6 is a linear-time RNN trained with backpropagation through time, that introduces data-dependent gating to selectively reset latent states based on current inputs. This ability was demonstrated on S-copy, improving Transformers with the advantage of the efficient autoregressive inference. Training details are detailed in Appendix Sec. 2.
The reservoir size was fixed to , setting for single-layer ESN variants, and for the Deep ESN with concatenated readout (DESN C.) for a fair comparison with ESNs. Thus, each layer has one-third of the dimensions, but the number of trainable parameters remains the same. We also evaluate two shared readout configurations: DESN S. and DESN S.F. The former uses the same layers of DESN C., having a one-third of the trainable parameters. The latter takes advantage of the readout and uses each layer with full reservoir size (as single-layer ESN variants), matching the trainable parameters of DESN C. and single-layer ESN variants.
4 Results and Discussion
Tables 2, 3, and 4 report the performance of our ESN variants for the twelve tasks, the mean, standard deviation, and minimum errors are shown among five seeds as [3]. Best mean and minimum errors are in bold per task, and * denotes a statistically significant difference ( of an unequal variances t-test) in favor of the best initialization per model and task.
Table 2: Reservoir computing performance for the tasks: Sinus, Chaotic, Disc. post., and Cont. post.
| Model | Init | Sinus | Chaotic | Disc. post. | Cont. post. |
|---|---|---|---|---|---|
| LESN | IID | 0.001 ± 0.000 (0.001) | 0.042 ± 0.026 (0.021) | 0.000 ± 0.000 (0.000) | 0.000 ± 0.000 (0.000) |
| ON | 0.001 ± 0.001 (0.001) | 0.044 ± 0.025 (0.020) | 0.000 ± 0.000 (0.000) | 0.000 ± 0.000 (0.000) | |
| ESN | IID | 0.000 ± 0.000 (0.000) | 0.011 ± 0.000 (0.011) | 0.000 ± 0.000 (0.000) | 0.000 ± 0.000 (0.000) |
| ON | 0.001 ± 0.001 (0.001) | 0.044 ± 0.025 (0.020) | 0.000 ± 0.000 (0.000) | 0.000* ± 0.000 (0.000) | |
| G-ESN | IID | 0.001 ± 0.000 (0.001) | 0.368 ± 0.175 (0.024) | 0.443 ± 0.175 (0.092) | 0.096 ± 0.002 (0.094) |
| ON | 0.003 ± 0.003 (0.001) | 0.117* ± 0.101 (0.036) | 0.433 ± 0.049 (0.337) | 0.101 ± 0.004 (0.098) | |
| LeakyESN | IID | 0.000 ± 0.000 (0.000) | 0.025 ± 0.004 (0.017) | 0.085 ± 0.068 (0.000) | 0.000 ± 0.000 (0.000) |
| ON | 0.001 ± 0.001 (0.001) | 0.069 ± 0.042 (0.022) | 0.000 ± 0.000 (0.000) | 0.000* ± 0.000 (0.000) | |
| DESN S. | IID | 0.001* ± 0.000 (0.001) | 0.029* ± 0.003 (0.024) | 0.000 ± 0.000 (0.000) | 0.009 ± 0.000 (0.009) |
| ON | 0.001 ± 0.000 (0.001) | 0.036 ± 0.005 (0.030) | 0.000 ± 0.000 (0.000) | 0.000* ± 0.000 (0.000) | |
| DESN S.F. | IID | 0.001 ± 0.000 (0.001) | 0.027* ± 0.002 (0.023) | 0.000 ± 0.000 (0.000) | 0.009 ± 0.000 (0.009) |
| ON | 0.002 ± 0.002 (0.001) | 0.040 ± 0.008 (0.029) | 0.000 ± 0.000 (0.000) | 0.000* ± 0.000 (0.000) | |
| DESN C. | IID | 0.001* ± 0.000 (0.001) | 0.033* ± 0.003 (0.029) | 0.000 ± 0.000 (0.000) | 0.006 ± 0.000 (0.006) |
| ON | 0.002 ± 0.000 (0.001) | 0.043 ± 0.006 (0.036) | 0.000 ± 0.000 (0.000) | 0.000* ± 0.000 (0.000) |
ESNs excel at memorization. Regarding ESN and LESN, our evaluations show that the standard ESN combined with an ON initialization is vital for successfully resolving the Copy task. Conversely, the memory capacity of LESN
Table 3: Reservoir computing performance for the tasks: Disc. patt., Cont. patt., Bracket, and Copy.
| Model | Init | Disc. patt. | Cont. patt. | Bracket | Copy |
|---|---|---|---|---|---|
| LESN | IID | (0.050) | (0.044) | (0.200) | (0.000) |
| ON | (0.046) | (0.044) | (0.220) | (0.000) | |
| ESN | IID | (0.069) | (0.021) | (0.340) | (0.394) |
| ON | (0.046) | (0.044) | (0.270) | (0.000) | |
| G-ESN | IID | (0.111) | (0.037) | (0.040) | (0.465) |
| ON | (0.071) | (0.043) | (0.040) | (0.418) | |
| LeakyESN | IID | (0.081) | (0.023) | (0.120) | (0.453) |
| ON | (0.049) | (0.045) | (0.280) | (0.046) | |
| DESN S. | IID | (0.139) | (0.036) | (0.310) | (0.488) |
| ON | (0.049) | (0.038) | (0.220) | (0.000) | |
| DESN S.F. | IID | (0.134) | (0.033) | (0.300) | (0.473) |
| ON | (0.047) | (0.037) | (0.250) | (0.000) | |
| DESN C. | IID | (0.143) | (0.033) | (0.280) | (0.463) |
| ON | (0.047) | (0.036) | (0.310) | (0.000) |
is neutral to the choice of input initialization, aligning with similar theoretical results [1].
We provide details on memorization of ESNs, let's take the state tracking tasks, where the target follows the form . Consider that the input values during the delay () and following the trigger step are uniformly zero. Consequently, the LESN enters a purely autonomous dynamical regime governed by , and also the ESN, as the non-linear tanh activation tends to operate in this regime because it has a stable fixed point at zero.
This quasi-linear regime is strongly encouraged by ON initialization rather than IID initialization, as the orthonormal transformation preserves state magnitudes and prevents early neuron saturation ( for ). Then, to understand why these tasks become solvable under autonomous reservoir states, we analyze it through the lens of linear memory capacity [10]. This corresponds to the rank of the accumulated Krylov matrix: [1]. This matrix naturally appears by unrolling the LESN recurrence: .
The Krylov matrix is defined as follows: . The complete reservoir history of these tasks is contained within the Krylov subspace spanned by the columns of . Then, we require the readout to satisfy: , where . Therefore, the readout must invert the reservoir dynamics to isolate the specific delay. A solution with zero error exists only if the Krylov matrix preserves the information, that is, , or , ensuring that distinct input histories map to distinct reservoir states. Note that the rank condition is invariant to the delay, since is non-singular . Nevertheless, in practice, the system suffers from a memory gap or Krylov subspace squeezing. This phenomenon manifests as the ill-conditioning of the Gram matrix required for the pseudoinverse in (3), caused by the rotations becoming collinear
M. Mallea et al.
Table 4: Reservoir computing performance for the tasks: S-copy, Adding, Sorting, and SMNIST.
| Model | Init | S-Copy | Adding | Sorting | SMNIST |
|---|---|---|---|---|---|
| LESN | IID | (0.622) | (0.690) | (0.560) | (0.290) |
| ON | (0.616) | (0.690) | (0.557) | (0.320) | |
| ESN | IID | (0.594) | (0.670) | (0.579) | (0.590) |
| ON | (0.612) | (0.710) | (0.555) | (0.370) | |
| G-ESN | IID | (0.410) | (0.000) | (0.487) | (0.420) |
| ON | (0.414) | (0.250) | (0.491) | (0.280) | |
| LeakyESN | IID | (0.440) | (0.240) | (0.433) | (0.320) |
| ON | (0.596) | (0.630) | (0.497) | (0.260) | |
| DESN S. | IID | (0.618) | (0.690) | (0.608) | (0.600) |
| ON | (0.612) | (0.690) | (0.545) | (0.360) | |
| DESN S.F. | IID | (0.604) | (0.710) | (0.602) | (0.540) |
| ON | (0.608) | (0.620) | (0.548) | (0.310) | |
| DESN C. | IID | (0.628) | (0.620) | (0.614) | (0.600) |
| ON | (0.636) | (0.680) | (0.550) | (0.420) |
rapidly. This effect is significantly less pronounced when is orthogonal [1, 19].
Regarding LeakyESN, on one hand, hyperparameter validation showed that the optimal leak rate across most state tracking tasks is , which closely approximates a standard ESN. In this manner, LeakyESN has also the capacity of solving the Copy task with ON initialization. On the other hand, LeakyESN IID found lower leak rates () and achieved the best performance among reservoir models on the Sorting task. A task where LESN and ESN fail. This indicates that while the contribution of the nonlinear activation may be constrained by low leak rates, its presence remains structurally necessary for some complex tasks.
How G-ESN solves tasks unattainable by other ESNs. The G-ESN ON achieved the top performance among reservoir models on SMNIST and S-copy (this with IID as well). G-ESN IID successfully solved Adding, where all other reservoir models failed, showing near-perfect accuracy with minimal variance. The data-dependent leaky integrator functions as an adaptive statistical filter, effectively emulating an attention mechanism. During hyperparameter validation, the optimal gating bias was found to be , resembling the analysis presented, under this configuration, standard symbols (lacking active markers) fail to open the gate, whereas marked tokens overcome the negative bias to update the reservoir state. A visualization of this sequential filtering mechanism is illustrated in Fig. 1.
ON initialization provided no statistically significant improvement over IID initialization for the bracket task across any of the ESN variants. Notably, G-ESN is also the unique reservoir model able to solve this task. From the mathematical description of the Bracket task, we deduce that the reservoir primarily needs to accumulate information over time to track nesting depth ( in Appendix Sec.
3.12). The validation results showed that the optimal gating bias for this task was , resembling the analysis presented that with our contrastive initialization for paired symbols (e.g., ( and)). Mapping complementary symbols to opposite signed domains is crucial, removing this contrastive initialization degraded performance . In conclusion, even when initialized with random weights, a properly tuned leaky integrator allows a sub-population of reservoir neurons to act as an statistical filter.
G-ESN on the Adding Problem

Fig. 1: We represent a sample of the adding problem, which is a sequence of 12 elements: a sequence of 10 time steps with three symbols (first three rows of Data Features), two markers (fourth row of Data Features) in yellow (at time steps 2 and 7), a trigger (last row of Data Features), and a last state expecting the result (marked by the red box). We must learn that the sum of 1 (at t = 2) plus 0 (at t = 7) equals 1 (at t = 11). Note that has as possible results.
Effect of structural layer consensus in Deep ESNs. Similarly, ON initialization significantly improves the performance of Deep ESNs. For example, using the DESN S. method, switching from IID to ON initialization reduced errors on SMNIST (from 0.684 to 0.458), Disc. patt. (from 0.145 to 0.060), Copy (from 0.479 to 0.000), and Sorting (from 0.631 to 0.562).
Hyperparameter validation confirmed that the shared readout architecture requires higher regularization ( ) to enforce feature invariance and consensus across layers. In contrast, the conventional concatenated readout optimizes under low regularization ( ), encouraging independent feature selection from isolated layers within the expanded state space. This distinction is particularly evident in the bracket task under ON initialization. DESN S.F. yields marginal performance improvements over both DESN C. DESN S. variants on SMNIST, Adding, S-copy, and Bracket tasks, while remaining competitive across all other tasks.
G-ESN results without the restriction: for IID and for ON. We did not observe that this benefit was able to be transferred from to for the other methods, possibly destroy by .
M. Mallea et al.
Table 5: Performance comparison on the Stream benchmark. Rows are color-coded to group tasks where the gap between SOTA and ESN is less than 0.05.
| Task | SOTA | ESN | |||
|---|---|---|---|---|---|
| S6 | Best [3] | Model [3] | Best | Model | |
| S-Copy | 0.348 | 0.426 | EST / 10k | 0.429 | G-ESN / IID |
| Sorting | 0.358 | 0.473 | EST / 10k | 0.477 | LeakyESN / IID |
| Sinus | 0.009 | 0.007 | Transformer / 100k | 0.000 | ESN / IID |
| Chaotic | 0.028 | 0.011 | Transformer / 1M | 0.011 | ESN / IID |
| Disc. post. | 0.432 | 0.000 | EST & GRU / 10k | 0.000 | |
| Cont. post. | 0.167 | 0.005 | EST / 1k | 0.000 | LESN / IID & ON |
| Cont. patt. | 0.057 | 0.074 | EST / 1k | 0.023 | ESN / IID |
| Adding | 0.000 | 0.000 | Transformer / 10k | 0.006 | G-ESN / IID |
| SMNIST | 0.430 | 0.328 | Transformer / 1M | 0.348 | G-ESN / ON |
| Disc. patt. | 0.328 | 0.166 | EST / 10k | 0.056 | LESN / IID |
| Bracket | 0.260 | 0.232 | EST / 1k | 0.040 | G-ESN / IID & ON |
| Copy | 0.515 | 0.541 | EST / 1k | 0.000 | |
DESN C. / IID & ON - DESN S. / ON - DESN S.F. / IID & ON - ESN / ON - LeakyESN / ON - LESN / ON.
DESN S.F. / ON - ESN / ON - LESN / IID & ON.
Comparison against SOTA models. Tab. 5 compares SOTA and our ESNs models. ESN variants prove competitive across most of these few-shot seq2seq pattern tasks. The primary exceptions are S-copy, Sorting, and SMNIST, where S6 excels on the first two tasks and Transformers dominate the latter. Indeed, S6 was proposed to solve the former, as a content-aware task [8].
These ESN results are noteworthy considering that they employ an efficient closed-form, mean-squared-error-based training procedure even for classification, whereas the SOTA models rely on extensive optimization using backpropagation guided by cross-entropy loss. Furthermore, ESNs demonstrate superiority over SOTA models on the Disc. patt., Bracket and Copy tasks.
Fig. 2 summarizes these architectural trade-offs. The ESN variants cluster primarily above the identity line, showing a strong inductive bias toward state tracking tasks over relational routing tasks. Specifically, the ON initialization for ESN, LeakyESN, Deep ESNs, and LESN (IID and ON) achieve the highest overall accuracy on state tracking tasks. Conversely among reservoir models, the G-ESN ON and LeakyESN IID architectures perform better on relational routing tasks. Finally, gradient-based methods like S6 and Transformers cluster below the identity line, confirming their strength in relational routing tasks, though often accompanied by a performance trade-off on pure state-tracking tasks.
Model Performance Overview

Fig. 2: Accuracy comparison between two groups of task (high is better). Colors differentiate IID and ON initialization methods. Identity denotes the function .
5 Conclusion
This paper presented an empirical evaluation of ESNs evaluated on few-shot seq2seq pattern tasks. As summarized in the introduction, our results reveal relationships and takeaways between specific reservoir properties and task-level demands. A limitation of this study stems from the fixed evaluation protocol of the STREAM benchmark. Future work could extend these assessments by varying sequence lengths, number of symbols, data partitions and seeds. Although the G-ESN model with properly tuned distributional parameters demonstrates the advantages of a proper initialization of the leak rate, its generalization to other tasks is not straightforward since these parameters are not automatically learned.
Next steps will focus on exploring how our insights apply to content-aware tasks in natural language processing, investigate potential synergies with modern linear-attention frameworks, and analyze how distributional, architectural, and optimization ESN variants behave when processing continuous positional encodings rather than discrete one-hot vectors.
Acknowledgments. Supported by the 'Siemens Energy AI Chair: Energy Sustainability for a Decarbonized Society 5.0' (TSI-100930-2023-5), funded by the Secretary of State for Digitalization and Artificial Intelligence through the ENIA 2022 Chairs call, and co-funded by the European Union-Next Generation EU. And supported by the Spanish research grant (PID2022-143299OB-I00/AEI/10.13039/501100011033/FEDER, UE [A.T.-D., E.R., and A.V.]).
M. Mallea et al.
References
-
Ballarin, G., Grigoryeva, L., Ortega, J.P.: Memory of recurrent networks: Do we compute it right? Journal of Machine Learning Research 25(243), 1–38 (2024)
-
Behrouz, A., Zhong, P., Mirrokni, V.: Titans: Learning to memorize at test time. arXiv preprint arXiv:2501.00663 (2024)
-
Bendi-Ouis, Y., Hinaut, X.: Echo state transformer: When chaos brings memory (2025)
-
Dao, T., Gu, A.: Transformers are ssms: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060 (2024)
-
Di Sarli, D., Gallicchio, C., Micheli, A.: Gated echo state networks: a preliminary study. In: 2020 International Conference on INnovations in Intelligent SysTems and Applications (INISTA). pp. 1–5. IEEE (2020)
-
Farkaš, I., Gergel', P.: Maximizing memory capacity of echo state networks with orthogonalized reservoirs. In: 2017 International Joint Conference on Neural Networks (IJCNN). pp. 2437–2442. IEEE (2017)
-
Gallicchio, C., Micheli, A.: Deep echo state network (deepesn): A brief survey. arXiv preprint arXiv:1712.04323 (2017)
-
Gu, A., Dao, T.: Mamba: Linear-time sequence modeling with selective state spaces. In: First conference on language modeling (2024)
-
Huang, Y., Yu, H., Lai, Y., Zhu, L., Huang, C., Dai, H.: State of health estimation and remaining useful life prediction of lithium-ion batteries based on optimized echo state network with early data feature. IEEE Transactions on Instrumentation and Measurement (2025)
-
Jaeger, H.: Short term memory in echo state networks (2001)
-
Jaeger, H., Lukoševičius, M., Popovici, D., Siewert, U.: Optimization and applications of echo state networks with leaky-integrator neurons. Neural networks 20(3), 335–352 (2007)
-
Li, Z., Andreev, A., Hramov, A., Blyuss, O., Zaikin, A.: Novel efficient reservoir computing methodologies for regular and irregular time series classification. Nonlinear Dynamics 113(5), 4045–4062 (2025)
-
Liu, L., Wang, H., Lin, J., Socher, R., Xiong, C.: Mkd: a multi-task knowledge distillation approach for pretrained language models (2020)
-
López, E., Valle, C., Allende, H., Gil, E., Madsen, H.: Wind power forecasting based on echo state networks and long short-term memory. Energies 11(3), 526 (2018)
-
Lun, S., Cai, J., Hu, B.: A long-term memory enhanced echo state network and its optimization. IET Control Theory & Applications 18(16), 2116–2129 (2024)
-
Mallea, M., Ângela Nebot, Mugica, F.: Rationalizing machine learning models for real-time health prognosis of lithium-ion batteries. Array 28, 100577 (2025)
-
Mallea, M., Ângela Nebot, Mugica, F.: Ensemble echo state networks trained collectively for reliable energy forecasting in facilities. Computers and Electrical Engineering 129, 110854 (2026)
-
Orvieto, A., Smith, S.L., Gu, A., Fernando, A., Gulcehre, C., Pascanu, R., De, S.: Resurrecting recurrent neural networks for long sequences pp. 26670–26698 (2023)
-
White, O.L., Lee, D.D., Sompolinsky, H.: Short-term memory in orthogonal neural networks. Physical review letters 92(14), 148102 (2004)
-
Yuzgec, U., Dokur, E., Balci, M.: A novel hybrid model based on empirical mode decomposition and echo state network for wind power forecasting (2024)