Submitted:
02 October 2024
Posted:
03 October 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Review of Literature
Single-Solution-Based Metaheuristics
- Simulated Annealing (SA): Inspired by the annealing process in metallurgy, SA explores the solution space by accepting worse solutions with a probability that decreases over time [4]. This helps the algorithm avoid local optima and encourages exploration of the search space.
- Variable Neighborhood Search (VNS): VNS systematically changes the neighborhood structure during the search process, allowing the algorithm to escape local optima by exploring progressively larger neighborhoods [7].
Population-Based Metaheuristics
- Genetic Algorithms (GA): GA mimics the process of natural evolution, where solutions are represented as chromosomes and undergo crossover and mutation operations to produce better offspring. Selection mechanisms favor the survival of better solutions. [8] presented this algorithm that break the computation constraint at the time of annoucement.
- Particle Swarm Optimization (PSO): PSO models the behavior of swarms, such as birds or fish, to optimize a solution [9]. Particles (candidate solutions) move through the solution space by updating their velocity based on their own experience and that of their neighbors.
3. Integrating Metaheuristics with GNNs
3.1. Hyperparameter Optimization
3.2. Architecture Search
3.3. Training Optimization
3.4. Comparative Analysis
4. Genetic Algorithms (GA) for Hyperparameter Optimization
Chromosome Representation
Population Initialization
Fitness Function
- Selection: Individuals (chromosomes) with better fitness are more likely to be selected for reproduction. Various selection strategies can be used, such as tournament selection, roulette wheel selection, or rank-based selection, ensuring that high-performing chromosomes have a greater chance of producing offspring.
- Crossover (Recombination): Pairs of selected chromosomes are combined to create offspring through a process called crossover. Crossover involves swapping genes between parent chromosomes, allowing the offspring to inherit characteristics from both parents. For example, if the learning rate gene is swapped between two parents, the offspring might inherit a good learning rate from one parent and an optimal number of layers from the other parent.
- Mutation: After crossover, random mutations are introduced to some genes in the offspring. Mutation helps maintain genetic diversity in the population and avoids premature convergence to suboptimal solutions. For example, the learning rate in a chromosome might be slightly perturbed to explore new areas of the hyperparameter space.
- Replacement: The new offspring replace some or all of the existing population, and the process continues over several generations. After a predefined number of generations or if a stopping criterion is met (such as no improvement in fitness), the best chromosome (hyperparameter set) is returned as the optimal solution.
4.1. Advantages of GA in Hyperparameter Optimization
Exploration-Exploitation Balance
Parallelization
Scalabilit
5. Particle Swarm Optimization (PSO) for Hyperparameter Optimization
Particle Representation
Initialization
Fitness Evaluation
Velocity and Position Update
- Inertia: The particle’s previous velocity, which encourages it to maintain its current trajectory.
- Cognitive Component: The difference between the particle’s current position and the best position it has encountered so far (personal best).
-
Social Component: The difference between the particle’s current position and the best position found by any particle in the swarm (global best). The update rule for velocity can be written as:where:
- is the velocity of particle i at iteration t,
- is the current position of particle i,
- is the personal best position of particle i,
- is the global best position,
- w is the inertia weight,
- and are acceleration coefficients,
- and are random numbers between 0 and 1.
The position of each particle is then updated as:This process allows the particles to explore the search space, with velocity updates helping them converge toward promising areas. - Personal and Global Best Updates: Each particle keeps track of its personal best solution (the best hyperparameter set it has encountered), and the swarm as a whole keeps track of the global best solution (the best hyperparameter set encountered by any particle).
- Stopping Criterion: The PSO algorithm continues iterating, updating the particles’ velocities and positions until a stopping criterion is met, such as a predefined number of iterations or no improvement in the global best solution.
5.1. Advantages of PSO in Hyperparameter Optimization
Convergence
Simple Implementation
Efficient Exploration
Fewer Hyperparameters
5.2. Comparative Analysis of GA and PSO for Hyperparameter Optimization
Exploration vs. Exploitation
Computational Efficiency
Convergence Behavior
6. Conclusions
References
- Karimi-Mamaghan, M.; Mohammadi, M.; Meyer, P.; et al.. Machine learning at the service of meta-heuristics for solving combinatorial optimization problems: a state-of-the-art. European Journal of Operational Research 2022, 296, 393–422.
- Sabar, N.; Turky, A.; Song, A.; et al.. An evolutionary hyper-heuristic to optimise deep belief networks. 2017 IEEE Congress on Evolutionary Computation (CEC). IEEE, 2017, pp. 2738–2745.
- Escobar, H.; Cuevas, E. Implementation of Metaheuristics with Extreme Learning Machines; Springer, 2020; pp. 125–147.
- Kirkpatrick, S.; Gelatt, C.D.; Vecchi, M.P. Optimization by Simulated Annealing. Science 1983, 220, 671–680. [CrossRef]
- Glover, F. Tabu Search—Part I. ORSA Journal on Computing 1989, 1, 190–206. [CrossRef]
- Glover, F. Tabu Search—Part II. ORSA Journal on Computing 1990, 2, 4–32. [CrossRef]
- Mladenovic, N.; Hansen, P. Variable Neighborhood Search. Computers & Operations Research 1997, 24, 1097–1100. [CrossRef]
- Goldberg, D.E. Genetic Algorithms in Search, Optimization, and Machine Learning; Addison-Wesley, 1989.
- Kennedy, J.; Eberhart, R. Particle Swarm Optimization. Proceedings of ICNN’95 - International Conference on Neural Networks. IEEE, 1995, Vol. 4, pp. 1942–1948. [CrossRef]
- Dorigo, M.; Gambardella, L.M. Ant Colonies for the Traveling Salesman Problem. Biosystems 1997, 43, 73–81. [CrossRef]
- Dorigo, M.; Birattari, M.; Stützle, T. Ant Colony Optimization: Artificial Ants as a Computational Intelligence Technique. IEEE Computational Intelligence Magazine 2006, 1, 28–39. [CrossRef]
- Wang, Z.; Zhu, Y.; Li, Z.; Wang, Z.; Qin, H.; Liu, X. Graph neural network recommendation system for football formation. Applied Science and Biotechnology Journal for Advanced Research 2024, 3, 33–39.
- Shi, M.; Tang, Y.; Zhu, X.; Huang, Y.; Wilson, D.; Zhuang, Y.; Liu, J. Genetic-gnn: Evolutionary architecture search for graph neural networks. Knowledge-based systems 2022, 247, 108752.
- Yuan, Y.; Wang, W.; Coghill, G.M.; Pang, W. A novel genetic algorithm with hierarchical evaluation strategy for hyperparameter optimisation of graph neural networks. arXiv preprint arXiv:2101.09300 2021.
- Shen, R.; Bosman, A.S.; Schreuder, A.; Krzywda, M.; ukasik, S. Training Graph Neural Networks with Particle Swarm Optimisation. Sacair 2023 2023.
- Vodilovska, V.; Gievska, S.; Ivanoska, I. Hyperparameter Optimization of Graph Neural Networks for mRNA Degradation Prediction. 2023 46th MIPRO ICT and Electronics Convention (MIPRO). IEEE, 2023, pp. 423–428.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).