Convergence of the Non-Uniform Directed Physarum Model
Enrico Facca, Andreas Karrenbauer, Pavel Kolev, Kurt Mehlhorn

TL;DR
This paper proves that a generalized non-uniform directed Physarum model, which allows different reaction speeds for each component, converges to solutions of positive linear programs, extending the known uniform case.
Contribution
It introduces and analyzes the non-uniform directed Physarum dynamics, demonstrating its convergence to positive linear program solutions, thus generalizing previous uniform models.
Findings
The non-uniform dynamics solves positive linear programs.
Convergence is established for the generalized model.
The model allows component-wise reaction speeds.
Abstract
The directed Physarum dynamics is known to solve positive linear programs: minimize subject to and for a positive cost vector . The directed Physarum dynamics evolves a positive vector according to the dynamics . Here is the solution to that minimizes the "energy" . In this paper, we study the non-uniform directed dynamics , where is a positive diagonal matrix. The non-uniform dynamics is more complex than the uniform dynamics (with being the identity matrix), as it allows each component of to react with different speed to the differences between and . Our contribution is to show that the non-uniform directed dynamics solves positive linear programs.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Convergence of the Non-Uniform Directed Physarum Model
Enrico Facca Department of Mathematics, University of Padova, Italy
Andreas Karrenbauer111Max Planck Institute for Informatics, Saarland Informatics Campus, Germany
Pavel Kolev†
Kurt Mehlhorn†
Abstract
The directed Physarum dynamics is known to solve positive linear programs: minimize subject to and for a positive cost vector . The directed Physarum dynamics evolves a positive vector according to the dynamics . Here is the solution to that minimizes the “energy” .
In this paper, we study the non-uniform directed dynamics , where is a positive diagonal matrix. The non-uniform dynamics is more complex than the uniform dynamics (with being the identity matrix), as it allows each component of to react with different speed to the differences between and . Our contribution is to show that the non-uniform directed dynamics solves positive linear programs.
1 Introduction
Physarum Polycephalum is a slime mold that apparently is able to solve shortest path problems. Nakagaki, Yamada, and Tóth [NYT00] report about the following experiment; see Figure 2. They built a maze, covered it by pieces of Physarum (the slime can be cut into pieces, which will reunite if brought into vicinity), and then fed the slime with oatmeal at two locations. After a few hours the slime retracted to a path following the shortest path in the maze connecting the food sources. The authors report that they repeated the experiment with different mazes; in all experiments, Physarum retracted to the shortest path. The paper [TKN07] proposes a mathematical model, the Physarum dynamics, for the behavior of the slime in the form of a system of coupled differential equations. In [BMV12, Bon13] it was shown that the Physarum dynamics solves the shortest path problem and the transportation problem. It was soon asked whether the dynamics can also solve more complex problems.
A variant of the Physarum dynamics, the directed Physarum dynamics, is known to solve positive linear programs in standard form [JZ12, SV16c]. A positive linear program asks to minimize a linear function with a positive cost vector subject to the constraints and . Here and . Formally,
[TABLE]
We assume throughout that the system is feasible and use
[TABLE]
to denote the union of the supports of optimal solutions and
[TABLE]
to denote the set of feasible solution. In order to avoid trivialities, we assume . The directed Physarum dynamics is defined as the dynamical system operating on according to
[TABLE]
where is the derivative of with respect to time, and
[TABLE]
is the minimum energy solution of according to the weights (“resistances”) . The system is initialized to a point , i.e., .
Theorem 1** ([JZ12, SV16c]).**
The dynamics (2) has a solution with . The solution satisfies
* for all ,* 2. 2.
* as , and* 3. 3.
.
In this paper, we study the non-uniform Physarum dynamics
[TABLE]
where for a fixed positive vector we define by a diagonal matrix with entries if and otherwise. In this model (3), different components of react with different speed to differences between and . Again the system is initialized with a point , i.e., . The original and the non-uniform Physarum dynamics are both inspired by the study of the slime mold Physarum Polycephalum; see Section 2. We generalize the theorem above to the non-uniform dynamics.
Theorem 2**.**
The dynamics (3) has a solution with . The solution satisfies
* for all ,* 2. 2.
* as , and* 3. 3.
.
This theorem was claimed in [BBD*+*13], albeit with an incorrect proof; see Section 2. We note that the non-uniform dynamics (3) is more complex that the uniform dynamics (2). For example, if is a feasible solution to (1), then the solution is feasible222 Consider . Then . Thus for all and hence implies for all . In particular, if is feasible, is feasible for all . More generally, for arbitrary initial point, the residual converges to zero exponentially fast. for all . In contrast, the non-uniform dynamics may move out of feasibility as Figure 1 illustrates.
A fundamental tool for proving convergence of a dynamical system is a Lyapunov function. It is a function defined on the states of the system whose derivative with respect to time is non-positive. We exhibit a Lyapunov function for the dynamics (3). Let be any optimal solution to (1) with (note that a convex combination of optimal solutions is also an optimal solution. Therefore there is an optimal solution with support equal to ) and consider
[TABLE]
Theorem 3**.**
* for all and there is a constant (depending on ) such that for all .*
It follows that exists and . By the first item of Theorem 2 any limit point333A point is a (positive) limit point if there is a sequence such that as . of the dynamics (3) will lie in
[TABLE]
It then follows that the dynamics converges to the set
[TABLE]
We will see below that implies and . In particular, implies and for , , i.e., is a fixed point of the dynamics and a feasible solution to the LP (since , and , i.e., is an optimal solution to the LP.
This paper is structured as follows. In Section 2 we review the biological background and discuss related work. In Section 3 we prove existence of a solution with domain . In Section 4 we analyze the Lyapunov function. In Section 5 we complete the proof of Theorem 2. In Section 6, we study in more detail how the solution approaches the optimum in the example of Figure 1. In Section 7, we conduct a numerical experiment that explores the convergence-time dependence of the non-uniform dynamics (3) on the reactivity matrix .
2 Biological Background and Related Work
Physarum Polycephalum is a slime mold that apparently is able to solve shortest path problems. Nakagaki, Yamada, and Tóth [NYT00] report about the following experiment; see Figure 2. They built a maze, covered it by pieces of Physarum (the slime can be cut into pieces which will reunite if brought into vicinity), and then fed the slime with oatmeal at two locations. After a few hours the slime retracted to a path following the shortest path in the maze connecting the food sources. The authors report that they repeated the experiment with different mazes; in all experiments, Physarum retracted to the shortest path.
The paper [TKN07] proposes a mathematical model for the behavior of the slime and argues extensively that the model is adequate. Physarum is modeled as an electrical network with time varying resistors. We have a simple undirected graph with two distinguished nodes modeling the food sources. Each edge has a positive length and a positive capacity ; is fixed, but is a function of time. The resistance of is . In the electrical network defined by these resistances, a current of value 1 is forced from one of the distinguished nodes to the other. For an (arbitrarily oriented) edge , let be the resulting current over . Then, the capacity of evolves according to the differential equation
[TABLE]
where is the derivative of with respect to time.
Nakagaki et al. [NIU*+*07] pointed out that different edges may react with different speed to the differences between flow and capacity. For example, Physarum prefers darkness over bright light and hence edges in a bright environment react differently than edges in darkness. This let to the non-uniform dynamics
[TABLE]
where is an indicator for the reactivity of an edge.
The biological experiments concern shortest paths. The papers [BMV12, Bon13] showed that the Physarum dynamics can solve the shortest path problem and the transportation problem; here is the node-arc incidence matrix of a directed graph, is the supply-demand vector of a transportation problem, i.e., , and are the edge costs. It was soon asked whether the dynamics (5) can also solve more complex problems: [SV16b] extended the result to more general flow problems, [ZM18] conducted an extensive experimental study on general flow problems with convex and monotonically increasing objective functions, and [SV16a, BBK*+*19, FCP18a] showed that it can solve linear programs of the form
[TABLE]
where is a positive vector444 [BBK*+*19] even shows that the dynamic (5) solves (7) when is a non-negative cost vector such that for all .. [KKM19] generalized the latter result to the non-uniform dynamics (6). Moreover, the dynamics (6) inspired the Dynamic Monge-Kantorovich model which was introduced in [FCP18b] and was recently applied in [FD*+*20] for computing the numerical solution of the Optimal Transport Problem [Amb03, San15].
The directed version of the Physarum dynamics evolves according to the equation
[TABLE]
No biological significance is claimed for this dynamics. [IJNT11, SV16c] showed that the dynamics (8) solves linear programs of the form
[TABLE]
where is a positive vector. In [BBD*+*13], convergence was claimed for the non-uniform Physarum dynamics (3), i.e.
[TABLE]
Only a proof sketch was given; the claim has been withdrawn by the authors [BBD*+*20]. Here, we show convergence using a Lyapunov-based argument.
3 Existence of a Solution
As mentioned above, we show that the dynamics (3) with starting point has domain and stays in . Moreover, for the limit points of the dynamics, the coordinates in are positive and the coordinates outside are zero. In order to talk conveniently about these limit points, we define the dynamics on a superset of . Let
[TABLE]
We can define for any :
[TABLE]
be the minimum energy solution with respect to the resistances and with support contained in . The following characterization of is well-known. We use to denote the diagonal matrix with diagonal entries .
Lemma 1**.**
For , let and . Obtain by deleting the rows and columns corresponding to , obtain from by first deleting the columns in and then keeping a maximum set of independent rows, let be the restriction of to these rows, and let be a vector of the same dimension as . Then is uniquely determined by , , , where . Defining for , we have the equalities .
Proof.
For simplicity, we assume . By the KKT conditions for convex optimization, the optimal solution must satisfy for some . Since this implies, and . The matrix is non-singular since is a diagonal matrix with positive entries and has full row rank. Then, . ∎
The Physarum dynamics for becomes
[TABLE]
We show existence of a solution with domain for each initial point . Our argument is based on [SV16c]. Let M=\max\{\;\text{absolute value of the determinant of a square submatrix of A}\;\}.
Fact 1** (Lemma 3.3 in [BBK*+*19]).**
For every : .
Fact 2** (Lemma 5.2 in [SV16c]).**
Let , , and let be the -th column of . For every it holds that
[TABLE]
Lemma 2**.**
Suppose is a solution to (3) for some . Let . Then
- a)
* for and .* 2. b)
* exists.* 3. c)
* for every .* 4. d)
* for every .*
Proof.
Let be arbitrary.
- a)
By Fact 1, . Let . Then and hence by Gronwall’s Lemma. Thus
[TABLE] 2. b)
We know that is differentiable in the interval and
[TABLE]
Since every function that has bounded first derivatives is Lipschitz, the limit exists. 3. c)
Let be an optimal solution with . Note that . Consider the barrier function
[TABLE]
Since is bounded by part a), so is . Suppose for a contradiction that for some . Then, it follows that , implying that . However, since
[TABLE]
we obtain a contradiction to
[TABLE] 4. d)
Let be an optimal solution to (1) with . By part c), we have for every and every . Set
[TABLE]
and note that
[TABLE]
Further, using Fact 2, observe that for every we have
[TABLE]
Let and Then, for every we have
[TABLE]
Hence, by Gronwall’s Lemma we obtain for every and that
[TABLE]
∎
We use the following standard result from dynamic systems.
Fact 3**.**
Let be an open set, and be a function (continuously differentiable function). Consider the following dynamical system: with initial condition . Suppose it satisfies the following conditions for every solution with : The limit exists and lies in . Then, there exists a global solution .
We can now prove the existence of a global solution.
Theorem 4** (Existence of Solution).**
For every initial condition , the non-uniform Physarum Dynamics (3) has a unique solution . The solution satisfies for all .
Proof.
Let . There is a local solution in an interval for some . The solution satisfies for and for . The latter follows from the definition (10) of the dynamics. On the function used in (10) is defined by a vector of rational functions in and hence is continuously differentiable. Also restricted to the coordinates in is an open set. Thus Fact 3 is applicable and the existence of a global solution follows from Lemma 2. ∎
4 The Lyapunov Function
Recall the definition of the Lyapunov function (4). Let be an optimal solution to (1) with and consider
[TABLE]
Theorem 5** (Lyapunov function).**
Let . Then
[TABLE]
Moreover, if and only if is an optimal solution to (1).
Proof.
Since is continuously differentiable, , where is the gradient of (vector of partial derivatives of with respect to the ’s) [LaS76, page 30]. An easy computation yields
[TABLE]
where the second equality follows by for , , and
[TABLE]
By combining (12) and (13) we obtain
[TABLE]
Since it holds that
[TABLE]
and using the Cauchy Schwarz inequality and the fact that , we obtain
[TABLE]
and further by combining (14) and (15),
[TABLE]
We have if and only the inequalities (1), (2), and (3) are equalities. (1) is an equality iff and are parallel, i.e., for some . (2) is tight iff
[TABLE]
i.e., iff and hence . (3) is tight iff . Finally, if then . Thus, if and only if is an optimal solution to (1). ∎
Theorem 6**.**
Let . Then there is an depending on , , , such that for all and all .
Proof.
Let be an optimal solution to (1) with . Let , , , , , and . Since for all , for all . Then, for any we have
[TABLE]
and hence
[TABLE]
for all . The upper bound on does not depend on . This proves the claim. ∎
Corollary 1**.**
Assume . The positive limit points of the trajectory are contained in .
Lemma 3**.**
The right hand side of (10) is continuous.
Proof.
Let be a sequence of points in converging to . We need to show . For we must have for all sufficiently large . Let be any superset of and consider the subsequence of with . We reuse to denote the subsequence. If the subsequence is finite, there is nothing to show. So assume the subsequence is infinite. We need to show . The proof proceeds by case distinction.
Case 1: For , we clearly have for , since is defined by a rational function (Lemma 1).
Case 2: For , we need to prove . For this it suffices to show . Let be an optimal solution to (1) with . We may assume that for all and all . Let
[TABLE]
Hence, and thus by Fact (2) we have
[TABLE]
By the proof of Lemma 2 Part d) and by Lemma 1 it holds that
[TABLE]
Since for all , we have for all . ∎
5 Putting it Together
We complete the proof of Theorem 2. Let , be the global solution of (10) with . Then for all by Theorem 4. Suppose there is a sequence with and as . Then by Corollary 1. Now and . The latter equality holds since is and hence , and since is continuous by Lemma 3.
However, and for all because is decreasing. So as . Hence, by uniqueness of limits .
Finally implies that is an optimal solution to (1) (Theorem 5).
6 Approach to Optimum: A Simple Example
We study the nonuniform dynamics for the simple example of Figure 1 in more detail. We consider “minimize , , , where ” and the Physarum dynamics , . The unique optimum is . We ask how the dynamics enters the optimal point?
Assume, we are in the point . The conductance of edge is . The conductance of the system of parallel edges is . Therefore the potential difference is and hence with
[TABLE]
and
[TABLE]
We know that the dynamics converges to the point and are interested in the behavior near the limit point. Therefore let . Then
[TABLE]
For the approximation, we only kept the terms linear in the epsilons and ignored all higher powers. This is justified since we are interested in the behavior for small and . We continue with the approximations.
From the second equation, we conclude
[TABLE]
From the first equation, we conclude
[TABLE]
Thus . If or equivalently , the rate at which goes to zero is higher than the rate for and hence the trajectory converges to the -axis and enters the optimal point horizontally.
So assume . We try the “Ansatz” . Then and hence
[TABLE]
Thus
[TABLE]
and hence
[TABLE]
We conclude that and go to zero at the same rate, and the trajectory follows a straight line with slope
[TABLE]
For , the analysis is inconclusive. However, since the behavior should be continuous in the ’s, it is natural to conjecture that the trajectories converge to the -axis.
Even less formally, this result can also be obtained as follows. Assume that the trajectory starting in the point is essentially straight, we must have (observe that the straight line from to the optimal point has direction )
[TABLE]
for some . For , we obtain and further from the first equation. Thus,
[TABLE]
as above. Since , we need , i.e., .
Let us specialize to the case , .
- •
If , the trajectories enter the optimal point horizontally. Whether a trajectory enters from the left or from the right depends on the initial point. The right plot in Figure 1 shows an example.
- •
If , the trajectories enter the optimal point with slope . In particular, for (uniform dynamics), the slope is . The left plot in Figure 1 shows an example.
7 Speed of Convergence
At the suggestion of an anonymous reviewer, we conduct a numerical experiment that explores the convergence-time dependence of the non-uniform dynamics (3) on the reactivity matrix .
Here, we consider a min-cost flow problem with a unit demand between a single source-sink pair of nodes and parameterized costs , see Figure 3. We compare the convergence-time of the dynamics (3) when the matrix is either: i) ; or ii) the identity matrix (i.e., the uniform dynamics (2)), see Figure 4.
We implement and execute the forward Euler discretization of the non-uniform dynamics (3), which reads
[TABLE]
where the step size555Note that the step size satisfies for reactivity matrices . , the number of iterations , and the error .
The experimental data in Figure 4 suggests that the non-uniform dynamics (3) with can achieve a substantial convergence-time improvement over the uniform dynamics (2).
We leave the convergence-time dependence of the non-uniform dynamics (3) on the reactivity matrix as a subject for future research.
8 Acknowledgements
KM wants to thank his colleague Mark Groves for a private lesson on dynamical systems. The authors want to thank the anonymous reviewers for their careful reading, constructive comments, and insightful suggestions.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[Amb 03] Luigi Ambrosio. Lecture notes on optimal transport problems. In Lecture Notes in Mathematics , pages 1–52. Springer, Berlin, Heidelberg, 2003.
- 2[BBD + 13] Luca Becchetti, Vincenzo Bonifaci, Michael Dirnberger, Andreas Karrenbauer, and Kurt Mehlhorn. Physarum can compute shortest paths: Convergence proofs and complexity bounds. In ICALP , volume 7966 of LNCS , pages 472–483, 2013.
- 3[BBD + 20] Luca Becchetti, Vincenzo Bonifaci, Michael Dirnberger, Andreas Karrenbauer, and Kurt Mehlhorn. \htmladdnormallink Erratum to “Physarum Can Computer Shortest Paths: Convergence Proofs and Complexity Bounds”https://people.mpi-inf.mpg.de/ mehlhorn/ftp/Erratum.pdf. 2020.
- 4[BBK + 19] Ruben Becker, Vincenzo Bonifaci, Andreas Karrenbauer, Pavel Kolev, and Kurt Mehlhorn. \htmladdnormallink Two Results on Slime Mold Computationshttps://arxiv.org/abs/1707.06631. Theoretical Computer Science , 773:79–106, 2019.
- 5[BMV 12] Vincenzo Bonifaci, Kurt Mehlhorn, and Girish Varma. \htmladdnormallink Physarum can compute shortest pathshttp://arxiv.org/abs/1106.0423. Journal of Theoretical Biology , 309(0):121–133, 2012. A preliminary version of this paper appeared at SODA 2012 (pages 233-240).
- 6[Bon 13] Vincenzo Bonifaci. Physarum can compute shortest paths: A short proof. Inf. Process. Lett. , 113(1-2):4–7, 2013.
- 7[FCP 18a] E. Facca, F. Cardin, and M. Putti. Physarum dynamics and optimal transport for basis pursuit. ar Xiv:1812.11782 [math.NA] , December 2018.
- 8[FCP 18b] Enrico Facca, Franco Cardin, and Mario Putti. Towards a stationary monge-kantorovich dynamics: The physarum polycephalum experience. SIAM Journal of Applied Mathematics , 78(2):651–676, 2018.
