Neuroevolution on the edge of chaos

Filip Matzner · DOI

Abstract

Echo state networks (ESNs) represent a unique class of recurrent neural networks that utilize a fixed, random reservoir to process temporal data. Recent research suggests that these networks maximize their computational performance at the transition between order and chaos, known as the "edge of chaos." This study validates this hypothesis through a comprehensive set of experiments and explores the use of neuroevolution (HyperNEAT) to optimize network structures. The results demonstrate that evolved networks, characterized by sparse and local connectivity, significantly outperform standard random reservoirs while naturally gravitating toward the stable, ordered side of the phase transition.

Introduction: The Challenge of Recurrent Networks

Recurrent Neural Networks (RNNs) are powerful tools for processing temporal sequences, but they are notoriously difficult to train due to issues like vanishing or exploding gradients. Echo State Networks (ESNs) address this by using a large, fixed "reservoir" of recurrent neurons where only the output layer is trained.

Architecture of an Echo State Network (ESN)

However, the performance of an ESN is highly dependent on the reservoir's dynamics. If the dynamics are too stable (ordered), the network loses its ability to retain complex memory; if they are too chaotic, the signal is lost to noise. The "edge of chaos" hypothesis posits that the optimal regime for computation lies exactly at the transition between these two states.

Methodology

To investigate this, the study utilizes several key metrics and techniques:

  • Lyapunov Exponent ($\lambda$): A mathematical measure used to quantify chaoticity. $\lambda < 0$ indicates ordered dynamics, $\lambda > 0$ indicates chaos, and $\lambda \approx 0$ represents the edge of chaos.
  • Neuroevolution (HyperNEAT): An evolutionary algorithm used to evolve the reservoir's topology and weights. HyperNEAT employs indirect encoding, allowing it to discover large-scale structural patterns like locality and symmetry that mimic biological neural structures.
  • Information Theory Measures: The study uses Active Information Storage (AIS) and Transfer Entropy (TE) to measure the complexity of information processing within the network.

Key Insights: Evolution and Stability

The experiments confirmed that for random ESNs, performance on memory and complex prediction tasks peaks sharply at the edge of chaos ($\lambda \approx 0$). Interestingly, when neuroevolution is applied, the resulting networks do not sit exactly at the zero-point. Instead, they consistently stay on the ordered side of the transition (typically between $-0.3$ and $0$). This suggests that evolution "prefers" the safety of stability while staying close enough to the edge to maintain high computational power.

Structural analysis of evolved networks revealed a strong preference for locality. While standard ESNs are often densely connected, evolved reservoirs are remarkably sparse, with connections primarily between spatially adjacent neurons. This "organic" layout proved fundamentally superior to the dense, all-to-all random graphs typically used in reservoir computing.

Key Results

The performance gains from structural optimization were substantial. Evolved networks outperformed standard random ESNs on memory tasks by more than an order of magnitude. Furthermore, a hybrid "Locally Connected ESN"—which restricts a random network to local connections—also showed significant improvements, offering a balance between the simplicity of random initialization and the high performance of evolved structures.

Performance metrics (MC and NARMA) as a function of the Lyapunov exponent ($\lambda$)

As shown in the figures above, Memory Capacity (MC) peaks just before the transition to chaos, while the NARMA error (where lower is better) reaches its minimum in the same region. Once the Lyapunov exponent becomes positive, performance in both tasks degrades rapidly as the network enters a chaotic regime.

Conclusion

This work reinforces the importance of the edge of chaos in reservoir computing. While random ESNs are a powerful baseline, neuroevolution demonstrates that sparse, locally connected topologies are more efficient and effective. Although the computational cost of evolution remains high, the insights regarding locality and stability provide a roadmap for designing more effective neural architectures for temporal processing.

Summary updated

BibTeX
@inproceedings{matzner2017neuroevolution,
  author = {Filip Matzner},
  title = {{Neuroevolution on the edge of chaos}},
  booktitle = {Proceedings of the Genetic and Evolutionary Computation Conference},
  year = {2017},
  doi = {10.1145/3071178.3071292},
}
Figure