NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Whale swarm algorithm for function optimization

Bing Zeng, Liang Gao, Xinyu Li

Introduction

Finding the global optimum in complex, multimodal mathematical functions is a cornerstone of modern engineering and data science. Traditional numerical methods often struggle with "local optima" traps. To address this, researchers have introduced the Whale Swarm Algorithm (WSA), a nature-inspired metaheuristic that mimics the ultrasound-based communication and foraging behavior of whales. By balancing global exploration with local search, WSA offers a robust alternative to established algorithms like Particle Swarm Optimization (PSO) and Genetic Algorithms (GA).

Methodology: The "Better and Nearest" Strategy

The core of WSA is based on four idealized rules of whale behavior: communication via ultrasound, distance computation, fitness evaluation (food quality), and guidance toward superior peers.

The defining characteristic of WSA is its movement rule. Unlike algorithms where individuals gravitate toward the single global best, WSA whales move toward their "better and nearest" neighbor. This behavior is governed by a physics-based model of ultrasound intensity:

$$\rho = \rho_0 \cdot e^{-\eta d}$$

where $\rho$ is the intensity, $d$ is the distance, and $\eta$ is the attenuation coefficient.

The "better and nearest" strategy illustrates how whales move based on ultrasound intensity and proximity.

This mechanism allows the swarm to naturally partition into sub-groups, enabling simultaneous searches across multiple peaks of a multimodal function. When a "better" whale is distant, the signal is weak, prompting exploratory movement; when close, the strong signal facilitates precise local exploitation.

Experimental Setup

WSA was rigorously tested against 12 classic benchmark functions (F1–F12):

  • Low-dimensional multimodal (F1–F6): Includes functions like Himmelblau’s and Six-hump camel back.
  • High-dimensional multimodal (F7–F10): Scaled up to 100 dimensions (e.g., Rastrigin, Schwefel).
  • High-dimensional unimodal (F11–F12): Used to evaluate raw convergence speed (e.g., Sphere, Zakharov).

To prevent bias, the global optima for high-dimensional functions were shifted away from the center of the search space.

Key Results and Performance

The performance of WSA was compared against seven popular algorithms, including GA, Differential Evolution (DE), and advanced PSO variants.

  • Success Rate (SR): WSA achieved a 100% success rate on five of the twelve functions. Notably, on the 100-dimensional F11 function, WSA was the only algorithm to reach a 100% success rate, while all competitors failed (0% SR).
  • Convergence Characteristics: WSA demonstrated a superior ability to converge toward the global optimum, particularly in the mid-to-late stages of optimization.
Convergence curves comparing the average fitness values of WSA against other metaheuristics over 10,000 function evaluations (FEs).

As shown in the convergence plots, WSA (blue squares) consistently reaches lower fitness values more efficiently than many of its counterparts, especially on complex multimodal landscapes.

Conclusion and Future Directions

The Whale Swarm Algorithm introduces a novel way to maintain population diversity while ensuring efficient convergence through its distance-decayed communication model. While highly effective for continuous optimization, future research will focus on adapting WSA for discrete problems (e.g., the Traveling Salesman Problem), multi-objective optimization, and real-world engineering constraints where noise and complex boundaries are prevalent.

Summary updated

BibTeX
@inproceedings{zeng2017whale,
  author = {Bing Zeng and Liang Gao and Xinyu Li},
  title = {{Whale swarm algorithm for function optimization}},
  booktitle = {ICIC},
  year = {2017},
  doi = {10.1007/978-3-319-63309-1\_55},
}
Figure