# Swarm Intelligence
Swarm Intelligence is a form of [[Collective Intelligence]] where complex, adaptive behavior emerges from simple agents following local rules without centralized control. No single agent understands the global pattern — intelligence lives in the interactions, not the individuals.
The term was introduced by Gerardo Beni and Jing Wang in 1989 in the context of cellular robotic systems. The core insight: simple rules + local interactions + large numbers = sophisticated collective behavior. Ant colonies find shortest paths, bee swarms select optimal nest sites, bird flocks navigate without leaders, fish schools evade predators — all without any agent having a global view.
What makes swarm intelligence distinct from other forms of collective intelligence is the absence of centralized control and the reliance on stigmergy — indirect coordination through environmental modification (e.g., ants laying pheromone trails). Agents respond to local signals, and global order emerges as a byproduct.
## Core Properties
| Property | Description |
|----------|-------------|
| **Self-organization** | Global structure from local interactions |
| **Decentralization** | No leader or central coordinator |
| **Stigmergy** | Indirect communication through the environment |
| **Positive feedback** | Amplifies good solutions (e.g., more pheromone on shorter paths) |
| **Negative feedback** | Prevents lock-in (e.g., pheromone evaporation) |
| **Randomness** | Exploration through stochastic behavior |
| **Robustness** | System works even when individual agents fail |
| **Scalability** | Adding agents doesn't break coordination |
## Biological Examples
| System | Mechanism | Emergent Behavior |
|--------|-----------|-------------------|
| **Ant colonies** | Pheromone trails (stigmergy) | Shortest-path foraging, nest construction |
| **Bee swarms** | Waggle dance, quorum sensing | Optimal nest site selection |
| **Bird flocks** | Alignment, separation, cohesion (Boids rules) | Coordinated flight without leader |
| **Fish schools** | Visual cues, lateral line sensing | Predator evasion, hydrodynamic efficiency |
| **Termite mounds** | Pheromone-guided building | Complex ventilated architecture |
| **Slime molds** | Chemical signaling | Efficient network design |
## Computational Algorithms
Swarm intelligence has inspired a family of optimization algorithms:
| Algorithm | Inspired By | Application |
|-----------|-------------|-------------|
| **Ant Colony Optimization (ACO)** | Ant foraging | Routing, scheduling, TSP |
| **Particle Swarm Optimization (PSO)** | Bird flocking | Continuous optimization |
| **Artificial Bee Colony (ABC)** | Bee foraging | Function optimization |
| **Firefly Algorithm** | Firefly flashing | Multimodal optimization |
| **Grey Wolf Optimizer** | Wolf pack hunting | Engineering design |
## Swarm Intelligence vs Wisdom of Crowds
| Dimension | Swarm Intelligence | [[The Wisdom of Crowds]] |
|-----------|--------------------|--------------------------|
| **Agents** | Simple, homogeneous | Complex, diverse humans |
| **Communication** | Indirect (stigmergy) | Independent judgment |
| **Key mechanism** | Local rules + emergence | Aggregation of opinions |
| **Failure mode** | Collapse if rules break | [[Groupthink]], cascades |
| **Designed for** | Optimization, coordination | Estimation, prediction |
## Applications
| Domain | Use Case |
|--------|----------|
| **Robotics** | Drone swarms, warehouse robots |
| **Networking** | Routing protocols (AntNet) |
| **Logistics** | Vehicle routing, supply chain |
| **AI/ML** | Hyperparameter tuning, feature selection |
| **Urban planning** | Traffic flow, pedestrian modeling |
| **Military** | Autonomous swarm tactics |
## References
- Beni, G. & Wang, J. (1989). "Swarm Intelligence in Cellular Robotic Systems"
- Bonabeau, E. et al. (1999). *Swarm Intelligence: From Natural to Artificial Systems*
- Kennedy, J. & Eberhart, R. (1995). "Particle Swarm Optimization"
- Dorigo, M. (1992). "Optimization, Learning and Natural Algorithms" (Ant Colony Optimization)
- https://en.wikipedia.org/wiki/Swarm_intelligence
## Related
- [[Collective Intelligence]]
- [[The Wisdom of Crowds]]
- [[Systems thinking]]
- [[Designing for emergence is key for emergence]]
- [[Crowdsourcing]]
- [[Groupthink]]