Hyperparameter tuning in echo state networks

Filip Matzner · DOI

Abstract: Echo State Networks represent a type of recurrent neural network with a large randomly generated reservoir and a small number of readout connections trained via linear regression. The most common topology of the reservoir is a fully connected network of up to thousands of neurons. Over the years, researchers have introduced a variety of alternative reservoir topologies, such as a circular network or a linear path of connections. When comparing the performance of different topologies or other architectural changes, it is necessary to tune the hyperparameters for each of the topologies separately since their properties may significantly differ. The hyperparameter tuning is usually carried out manually by selecting the best performing set of parameters from a sparse grid of predefined combinations. Unfortunately, this approach may lead to underperforming configurations, especially for sensitive topologies. We propose an alternative approach of hyperparameter tuning based on the Covariance Matrix Adaptation Evolution Strategy (CMA-ES). Using this approach, we have improved multiple topology comparison results by orders of magnitude suggesting that topology alone does not play as important role as properly tuned hyperparameters.

The Challenge of Reservoir Computing

Echo State Networks (ESNs) are a unique class of recurrent neural networks where the internal "reservoir" of neurons is randomly generated and remains fixed; only the output layer is trained. While powerful for time-series tasks, ESNs are notoriously finicky. Their performance peaks in a narrow regime called the "edge of chaos"—a state between stable, ordered activity and unpredictable, chaotic noise.

Schematic of an Echo State Network architecture, highlighting the fixed reservoir and the trainable output layer, including feedback connections.

ESNs are governed by several global hyperparameters, such as leakage rate, sparsity, and spectral radius, which are typically tuned via manual trial and error or sparse grid searches. However, the hyperparameter landscape is extremely sensitive and "peaky." Researchers often settle for subpar configurations, leading to unfair comparisons where a "new" reservoir topology might only seem superior because the baseline sparse topology was inadequately tuned.

Methods: Automating the Search for the Optimum

To address this, we propose using Active CMA-ES, a derivative-free evolutionary algorithm, to automate the search for optimal ESN hyperparameters. The optimization tunes eight parameters simultaneously, including reservoir weight distribution, input/feedback spreads, sparsity, leakage, bias, and internal noise.

A ring topology reservoir, one of the structured alternatives to the standard random sparse topology.

The study compares four reservoir structures: Sparse (fully connected with random deletions), Ring, Chain, and Permutation. To handle the thousands of evaluations required by CMA-ES, we developed a highly optimized C++ framework with GPU support. Some parameters were optimized in logarithmic or square root space to allow for more precise steps near zero, where the network's sensitivity is highest.

Key Insights and Results

Topology is Secondary

The most striking finding is that once hyperparameters are properly tuned, the differences between topologies nearly vanish. In fact, the "plain" sparse topology—often dismissed as inferior in recent literature—slightly outperformed more structured ring and chain topologies. This suggests that the perceived benefits of specific topologies in previous studies may have been artifacts of insufficient hyperparameter tuning.

The Power of Feedback and the "Peaky" Landscape

Feedback connections are crucial for autoregressive tasks like NARMA10 but are rarely used because they are difficult to tune manually. CMA-ES handles this complexity easily, unlocking significant performance gains. The error surface is incredibly steep; a tiny perturbation in a parameter like feedback weight can cause the error to soar by orders of magnitude. Automated tuning is the only reliable way to maintain the network in the high-performance "edge of chaos" regime.

Performance Benchmarks

On the NARMA10 task, the CMA-ES tuned networks achieved a Mean Squared Error (MSE) of approximately $10^{-9}$, compared to $10^{-4}$ reported in previous influential studies. Furthermore, a single-layer ESN tuned with CMA-ES outperformed multi-layered "Deep ESN" architectures found in existing literature.

Conclusion

This research demonstrates that for ESNs, the choice of reservoir topology matters far less than rigorous hyperparameter tuning. By replacing traditional grid search with CMA-ES, we achieved performance improvements of several orders of magnitude. These results suggest that many "innovations" in reservoir topology may actually be proxies for better hyperparameter settings, and that automated optimization should be the standard for future ESN research.

Summary updated

BibTeX
@inproceedings{matzner2022hyperparameter,
  author = {Filip Matzner},
  title = {{Hyperparameter tuning in echo state networks}},
  booktitle = {Proceedings of the Genetic and Evolutionary Computation Conference},
  year = {2022},
  doi = {10.1145/3512290.3528721},
}
Figure