Physarum can compute shortest paths

Vincenzo Bonifaci, Kurt Mehlhorn, Girish Varma

TL;DR

Slime mold (Physarum polycephalum) is a biological computer capable of solving complex maze problems. This paper provides the first rigorous mathematical proof that a widely accepted model of the mold's growth mechanism—acting like a self-adjusting electrical network—guarantees convergence to the shortest path in any network, regardless of its complexity or the mold's initial state.

What Problem Does This Paper Address?

In 2000, researchers made headlines by showing that a single-celled slime mold could find the shortest path through a maze to reach food. Biologists later proposed a mathematical model to explain this: the mold forms a network of tubes where the diameter of each tube grows if it carries a lot of fluid (protoplasmic flow) and shrinks if it doesn't.

While computer simulations suggested this model always finds the shortest path, a formal mathematical proof remained elusive for general networks. Previous proofs were limited to very specific cases, like planar graphs where the food sources were on the same "face." The authors of this paper set out to prove that this "natural algorithm" is robust and globally convergent for any undirected graph.

Methods

The authors treat the slime mold as an electrical network with time-varying resistors.

  • The Model: A graph represents the network. Each edge (tube) has a fixed length ($L$) and a dynamic diameter ($D$). The resistance is defined as $R = L/D$.
  • The Physics: They assume a constant current of 1 unit flows from the start node ($s_0$) to the end node ($s_1$), following Kirchhoff’s and Ohm’s laws.
  • The Dynamics: The core of the model is a differential equation: $\dot{D}_e(t) = |Q_e(t)| - D_e(t)$. This means the tube diameter $D$ changes to match the current flow $Q$. If the flow is greater than the current diameter, the tube expands; otherwise, it contracts.
  • The Proof Technique: The authors identify a Lyapunov function—a mathematical quantity that always decreases as the system evolves. By showing this function is bounded and strictly decreasing outside of equilibrium, they prove the system must eventually settle into a state representing the shortest path.

Datasets

As a theoretical paper in mathematical biology and computer science, it does not use traditional training datasets. Instead, it uses:

  • Abstract Graph Topologies: Specifically, the "Parallel Links" network and the "Wheatstone Graph" (a classic non-series-parallel structure) to test edge-case behaviors.
  • Experimental Reference: The authors use the biological maze-solving data from Nakagaki et al. (2000) as the ground truth their model aims to explain.

Key Insights and Ideas

  • Natural Algorithms: The paper frames Physarum as an example of an algorithm developed by evolution over millions of years. It’s a decentralized, "wetware" solution to a classic optimization problem.
  • The Power of Feedback: The simple local rule (grow if flow is high, shrink if low) leads to a global optimum. This is a powerful demonstration of how local biological mechanisms can solve global computational problems.
  • Electrical Analogy: The proof relies heavily on Thomson’s Principle (the flow that minimizes energy dissipation is the one that satisfies the laws of electricity). The slime mold essentially "computes" by physically minimizing a cost function.
  • Generalization to Transportation: Surprisingly, the authors show that this same mechanism doesn't just find shortest paths; it can also solve the Uncapacitated Transportation Problem, a more general class of flow problems involving multiple sources and sinks.

Key Results

  • Global Convergence: The authors prove that for any undirected network with positive edge lengths, the mass of the mold will eventually concentrate on the shortest path(s) between the food sources.
  • Unique Path Convergence: If there is a single shortest path, the diameters of all edges on that path converge to 1, while all other edges converge to 0.
  • Wheatstone Stability: They prove that even in the Wheatstone graph—where flow directions can theoretically flip-flop—the system eventually stabilizes.
  • Rate of Convergence: For networks that stabilize, the authors show that the diameters of "wrong" edges decay exponentially, providing a theoretical bound on how fast the "biological computer" works.

Limitations and Future Work

  • Flow Direction Stabilization: While the authors prove the system converges to the correct path, they acknowledge they cannot yet prove that flow directions on every edge stop changing for every possible graph (though they suspect it's true).
  • Non-Linear Dynamics: Biologists have suggested more complex versions of the growth rule (e.g., $f(Q) = Q^\gamma$). This paper focuses on the linear case ($\gamma=1$). Exploring the convergence of these non-linear variations is an open challenge.
  • Distributed Implementation: The paper suggests this could inspire new distributed algorithms for human-made networks (like traffic or data routing), but translating this continuous biological model into a discrete, efficient computer algorithm remains a task for future research.

Summary updated

BibTeX
@inproceedings{bonifaci2012physarum,
  author = {Vincenzo Bonifaci and Kurt Mehlhorn and Girish Varma},
  title = {{Physarum can compute shortest paths}},
  booktitle = {SODA},
  year = {2012},
  doi = {10.1137/1.9781611973099.21},
}
Figure