arXiv:2610.19997cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19997

Empirical Boundaries of Reservoir Computing for Few-Shot Sequence Pattern Tasks

Mario Mallea, Angela Nebot, Franscisco Mugica

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mario Mallea [0009−0005−8295−088X]^{[0009-0005-8295-088X]}, Ångela Nebot [0000−0002−4621−8262]^{[0000-0002-4621-8262]}, and Francisco Mugica [0000−0003−2843−0427]^{[0000-0003-2843-0427]}

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 1^{1} 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

1^{1} 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.

References (20)