AI Foundations & Math

Swarm Intelligence: Particle Swarms (PSO), Ant Colonies (ACO), and Artificial Fish Swarm Algorithms (AFSA)

English version of AI World 2026. 11. 9. 17:21
반응형
Swarm Intelligence: Particle Swarms (PSO), Ant Colonies (ACO), and Artificial Fish Swarm Algorithms (AFSA)
While evolutionary computation models optimization through generational survival and genetic inheritance, alternative metaheuristic frameworks draw inspiration from the collective behavior of biological communities. Known as Swarm Intelligence (SI), this paradigm models systems of simple autonomous agents interacting locally with one another and their environment. Through decentralized coordination and peer-to-peer information sharing, these swarms develop complex, global intelligent behaviors. This article analyzes the mechanics of Particle Swarm Optimization (PSO), Ant Colony Optimization (ACO), and Artificial Fish Swarm Algorithms (AFSA).
1. Particle Swarm Optimization (PSO): Collaborative Vector Ingestion
Particle Swarm Optimization (PSO) simulates the behavioral dynamics observed within bird flocks or fish schools to navigate multi-dimensional search spaces. Instead of using generational selection, a PSO framework deploys an array of autonomous agents known as Particles that fly through the problem space to locate optimal coordinates.
Each individual particle possesses a spatial position vector alongside a dynamic velocity vector. As the simulation ticks forward, particles adjust their velocities and trajectories by balancing their own experience against the collective wisdom of the community, tracking two distinct historical memories:
  • Personal Best (\(p_{best}\)): The exact spatial coordinate where the individual particle achieved its highest personal fitness evaluation up to the current iteration.
  • Global Best (\(g_{best}\)): The single best coordinate discovered by any particle across the entire overarching swarm.
                      ┌───> Cognitive Component: Pull toward Personal Best (pbest)
                      │
Current Velocity ─────┼───> Social Component: Pull toward Global Best (gbest)
                      │
                      └───> New Velocity Vector ──> Update Spatial Position Coordinate
During each simulation step, the system updates every particle's velocity vector by mathematically pulling it toward both its \(p_{best}\) and the global \(g_{best}\) coordinates.
While this swarm-based framework requires continuous parameter evaluations, it provides an exceptional engineering advantage: even if a single particle gets trapped in a local optimum, the social feedback loop from the wider swarm can pull it out, guiding the entire population toward the Global Optimum. This collaborative design classifies PSO as a highly effective global optimization algorithm.

2. Ant Colony Optimization (ACO): Pheromone-Driven Path Finding
Ant Colony Optimization (ACO) is a specialized swarm intelligence metaheuristic engineered to solve complex combinatorial path-finding problems, such as the Traveling Salesperson Problem (TSP) or dynamic network traffic routing. It replicates the exact behavioral mechanics real ant colonies use to locate the shortest path between their nest and a food source.
Initial Phase: Ants choose paths randomly.
[ Nest ] ═══════════════ Long Route (Pheromone evaporates) ═══════════════> [ Food ]
[ Nest ] ─────────────── Short Route (Pheromone accumulates) ─────────────> [ Food ]
Final Phase: All ants converge on the high-concentration short route.
The operational intelligence of ACO relies on a decentralized chemical feedback loop:
  1. Random Exploration: Initially, ants traverse the available path network in a randomized, exploratory fashion.
  2. Pheromone Deposition: As an ant moves, it deposits a chemical trail called Pheromones along the path. Pheromones serve as a compelling social cue, drawing other nearby agents to follow the same trajectory.
  3. The Micro-Time Feedback Advantage: Ants traversing a shorter path can complete a round trip between the nest and the food source significantly faster than ants on a longer loop. Consequently, the shorter route experiences a higher volume of ant traffic per unit of time.
  4. Pheromone Accumulation vs. Evaporation: Pheromones are inherently volatile and evaporate over time. Because the shorter path receives continuous reinforcements, its pheromone concentration increases rapidly. Meanwhile, the pheromone trails on longer routes slowly evaporate due to low traffic frequency.
  5. Global Convergence: As the pheromone differential widens, the probability of subsequent agents selecting the shorter path converges toward 100%, guiding the entire swarm to the optimal path.
In modern software engineering, ACO is widely applied to optimize cloud data center telecommunication traffic, allocate factory machine configurations, and streamline vehicle logistics networks.

3. Artificial Fish Swarm Algorithms (AFSA): Autonomous Behavioral Heuristics
The Artificial Fish Swarm Algorithm (AFSA) is an advanced, behavior-driven swarm optimization architecture that extends the concepts of Particle Swarm Optimization. While PSO coordinates particles through abstract, top-down mathematical vectors (\(p_{best}\)/\(g_{best}\)), AFSA models the system using bottom-up autonomous behavioral rules derived from marine biology.
An artificial fish agent evaluates its local environment and continuously switches between four distinct behavioral states to optimize its position:
  • Swarming (Avoidance/Cohesion): The agent monitors surrounding fish densities, moving toward the local center of mass to maintain group cohesion while adjusting its position to avoid overcrowding.
  • Preying (Foraging): The fish evaluates food or fitness availability at neighboring points, immediately moving toward coordinates that offer a higher evaluation score.
  • Following (Chasing): The agent monitors its immediate neighbors. If a nearby fish discovers a high-fitness coordinate, the agent changes its vector to pursue and catch up with that winning node.
  • Random Moving: If neighboring evaluations remain static or flat, the fish swims in a randomized direction to proactively explore new areas of the search space.
By combining these localized behaviors, AFSA excels at navigating complex multi-modal search landscapes. While the underlying algorithm is highly intricate and requires careful parameter tuning, its bottom-up design provides exceptional resilience against local optima, delivering highly accurate solutions for complex engineering optimization tasks.

With these nature-inspired optimization models established, our foundational metaheuristic journey is complete. In our upcoming chapters, we will step into the field of computational communication, exploring the complex algorithms powering modern Natural Language Processing (NLP) and large-scale language generation.

반응형