Continual Learning with Echo State Networks

Andrea Cossu, Davide Bacciu, Antonio Carta, Claudio Gallicchio, Vincenzo Lomonaco

Introduction

Continual Learning (CL) addresses the challenge of learning from a non-stationary stream of data without suffering from "catastrophic forgetting." While extensively studied in the context of image classification, applying CL to sequential data—such as speech or time-series—remains a significant hurdle. Traditional approaches rely on Recurrent Neural Networks (RNNs) or Long Short-Term Memory (LSTM) networks trained via backpropagation. However, these models are computationally intensive and prone to complex forgetting patterns. This paper investigates Echo State Networks (ESNs), a form of Reservoir Computing, as an efficient and effective alternative for sequential CL.

Methodology

The study compares standard LSTMs against Echo State Networks across various CL strategies. An ESN architecture consists of a fixed, randomly initialized Reservoir that acts as a temporal feature extractor and a trainable linear Readout layer. Because the reservoir remains static throughout training, it provides a stable representation of input sequences.

This stability enables the use of Streaming Linear Discriminant Analysis (SLDA), a strategy that updates class means and covariances in a single pass. SLDA is uniquely applicable to ESNs in this context, as LSTMs continuously modify their internal feature representations during training. Other evaluated strategies include Elastic Weight Consolidation (EWC), Learning without Forgetting (LwF), and Experience Replay.

Experimental Results

The models were evaluated on two class-incremental benchmarks: Split MNIST (SMNIST), processed row-by-row as a sequence of 28 steps, and Spoken Speech Commands (SSC), processed as sequences of 101 steps.

Table 1: Performance comparison of various CL strategies on SMNIST and SSC benchmarks.

As shown in Table 1, ESNs demonstrate remarkable competitiveness. On the SMNIST benchmark, the ESN utilizing the SLDA strategy achieved an accuracy of 88%, surpassing the LSTM using Replay (85%). In the more complex SSC task, SLDA with ESN reached 57% accuracy. While this is lower than the LSTM with Replay (74%), SLDA operates as a true streaming strategy, processing each data point only once, which is ideal for real-time or low-power applications. Conversely, simple regularization like EWC failed significantly in these scenarios, reaching only ~20% accuracy on SMNIST.

Key Insights

The Fixed Feature Advantage

The static nature of the ESN reservoir allows it to function similarly to a pre-trained feature extractor. This stability is particularly beneficial for LwF; on SMNIST, LwF performed significantly better with ESNs (47%) than with LSTMs (31%). This suggests that LwF is more effective when it only needs to stabilize a feedforward readout rather than shifting recurrent dynamics.

The Replay Trade-off

While ESNs are highly efficient, they exhibit different scaling properties compared to LSTMs when using replay buffers.

Figure 1: Accuracy vs. Replay memory size for Split MNIST and SSC datasets.

As illustrated in Figure 1, LSTMs tend to benefit more from larger replay buffers, especially on complex tasks like SSC. The ability of LSTMs to fine-tune internal representations allows them to achieve higher peak accuracy as memory resources increase, whereas the fixed reservoir of the ESN eventually becomes a performance bottleneck in high-memory scenarios.

Conclusion

Echo State Networks offer a compelling, lightweight alternative for continual learning on sequential data. By enabling efficient streaming algorithms like SLDA, ESNs provide a high-performance solution for scenarios with limited computational resources. Future work will explore unsupervised reservoir tuning and the deployment of these models on neuromorphic hardware for edge computing applications.

Summary updated

BibTeX
@inproceedings{cossu2021continual,
  author = {Andrea Cossu and Davide Bacciu and Antonio Carta and Claudio Gallicchio and Vincenzo Lomonaco},
  title = {{Continual Learning with Echo State Networks}},
  booktitle = {ESANN},
  year = {2021},
  doi = {10.14428/esann/2021.es2021-80},
}
Figure