Improved GWO and its application in parameter optimization of Elman neural network

Wei Liu, Jiayang Sun, Guangwei Liu, Saiou Fu, Mengyuan Liu, Yixin Zhu, Qi GaoPLoS 2023

Abstract

Traditional neural networks used gradient descent methods to train the network structure, which cannot handle complex optimization problems. We proposed an improved grey wolf optimizer (SGWO) to explore a better network structure. GWO was improved by using circle population initialization, information interaction mechanism and adaptive position update to enhance the search performance of the algorithm. SGWO was applied to optimize Elman network structure, and a new prediction method (SGWO-Elman) was proposed. The convergence of SGWO was analyzed by mathematical theory, and the optimization ability of SGWO and the prediction performance of SGWO-Elman were examined using comparative experiments. The results show: (1) the global convergence probability of SGWO was 1, and its process was a finite homogeneous Markov chain with an absorption state; (2) SGWO not only has better optimization performance when solving complex functions of different dimensions, but also when applied to Elman for parameter optimization, SGWO can significantly optimize the network structure and SGWO-Elman has accurate prediction performance.

Introduction

Elman Neural Networks (ENN) are a staple in time-series prediction and image recognition due to their internal feedback loops, which provide a form of "short-term memory." However, training these networks effectively is notoriously difficult. Most practitioners rely on gradient descent, which suffers from three major flaws: it often gets stuck in local optima, converges slowly, and is highly sensitive to initial parameter settings.

While nature-inspired metaheuristic algorithms like the Grey Wolf Optimizer (GWO) have been proposed as alternatives, many still struggle with a lack of population diversity and a poor balance between exploration and exploitation. This paper introduces the SGWO (Improved Grey Wolf Optimizer), a robust optimizer designed to overcome these hurdles and find the ideal connection weights and thresholds for ENNs.

The SGWO Algorithm

The authors introduce SGWO, which enhances the standard GWO through three specific strategies:

  1. Circle Population Initialization: Instead of placing the initial "wolves" (candidate solutions) randomly, the algorithm uses chaotic circle mapping. This ensures a more uniform distribution across the search space, preventing the algorithm from starting in a "blind spot."
Comparison of different population initialization strategies, showing the uniform distribution achieved by Circle mapping (d).
  1. Information Interaction Mechanism: This core innovation uses a Cauchy variation to perturb the leader wolf ($\alpha$), helping the pack "jump out" of local optima. Simultaneously, it integrates the Golden Sine Algorithm to refine how information is transferred between wolves, narrowing the search space via a spiral-like path toward the optimum.
  2. Adaptive Position Update: The authors introduced a dynamic weight ($\omega$) that decays over time. In early iterations, a large weight encourages global exploration; in later stages, a smaller weight allows for fine-tuned local exploitation.

The resulting SGWO-Elman model replaces the traditional training process of the Elman network with this global optimization strategy.

Experimental Validation

The study validated the algorithm using two distinct approaches:

  • Benchmark Functions: 8 standard mathematical functions (unimodal and multimodal) were used to test optimization power. These were tested at 50, 100, 500, and even 1000 dimensions to prove scalability.
  • UCI Machine Learning Repository: To test real-world prediction, the authors used six diverse datasets: Air Quality, Wine Quality, QSAR Aquatic Toxicity, QSAR Fish Toxicity, Airfoil Self-noise, and Real Estate Valuation.

Key Insights and Results

A significant contribution of this work is the rigorous mathematical proof using finite homogeneous Markov chains to demonstrate that the global convergence probability of SGWO is exactly 1. This moves the algorithm from being "heuristically likely to work" to being theoretically guaranteed to converge.

Key Results: * Superior Optimization: In benchmark tests, SGWO reached the theoretical optimum (0) on nearly all unimodal functions, outperforming seven other state-of-the-art algorithms, including Whale Optimization (WOA) and the latest GWO variants. * Prediction Accuracy: On the UCI datasets, the SGWO-Elman model achieved the lowest Mean Square Error (MSE) in almost every category. For example, on the Air Quality dataset, its MSE was significantly lower than models trained with other optimizers like SSA or MFO. * Stability: Boxplot analysis revealed that SGWO has far fewer outliers and a tighter distribution of results than its competitors, indicating consistent reliability.

Conclusion and Future Work

SGWO demonstrates exceptional performance in solving complex, high-dimensional optimization problems and significantly improves the prediction accuracy of Elman Neural Networks. While the computational cost is higher than basic gradient descent, the gains in accuracy and stability are substantial. Future research will focus on refining the "encircling mode" to better mimic actual predatory behavior and developing preprocessing systems to reduce computational load for truly massive datasets.

Summary updated

BibTeX
@inproceedings{liu2023improved,
  author = {Wei Liu and Jiayang Sun and Guangwei Liu and Saiou Fu and Mengyuan Liu and Yixin Zhu and Qi Gao},
  title = {{Improved GWO and its application in parameter optimization of Elman neural network}},
  booktitle = {PLoS},
  year = {2023},
  doi = {10.1371/journal.pone.0288071},
}
Figure