Abstract
The assembly and persistence of ecological communities can be understood as the result of the interaction and migration of species. Here we study a single community subject to migration from a species pool in which inter-specific interactions are organised according to a bipartite network. Considering the dynamics of species abundances to be governed by generalised Lotka–Volterra equations, we extend work on unipartite networks to we derive exact results for the phase diagram of this model. Focusing on antagonistic interactions, we describe factors that influence the persistence of the two guilds, locate transitions to multiple-attractor and unbounded phases, as well as identifying a region of parameter space in which consumers are essentially absent in the local community.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Understanding patterns in the composition of ecological communities is one of the fundamental goals in ecology (May 1972; Berlow 1999; McCann 2000; Hubbell 2001; Wilson et al. 2003; Fisher and Mehta 2014). A popular modelling framework for this problem considers in detail a single community in a local habitat embedded within a wider ecosystem portrayed as a species pool from which the local community can be invaded (MacArthur and Wilson 2001). For mathematical analysis, this is then supplemented with several further elements (Wilson et al. 2003; Garcia Lorenzana et al. 2024). The first is a dynamical model of the species abundances, and here a generalised Lotka–Volterra approach is typical but other possibilities exist (Lafferty and Dunne 2010; Campbell et al. 2011). The second is a model of interspecific interactions, and in this regard a random-matrix model is often used, having a long history of shedding light on ecological questions (May 1972, 2001) as well as acting as a baseline scenario against which more detailed and ecologically-motivated studies can be compared (Allesina and Tang 2012).
Despite the complexity of the resultant community-assembly model, analytical progress has been made (Wilson et al. 2003; Gibbs et al. 2018; Serván et al. 2018; Pettersson et al. 2020; Ros et al. 2023). In particular, the cavity method (CM), a method originating in the physics of disordered systems (Mézard et al. 1987) but since adapted to a number of ecological problems (Rieger 1989; Opper and Diederich 1992; Tokita 2006; Yoshino et al. 2007; Obuchi et al. 2016; Tikhonov and Monasson 2017; Advani et al. 2018; Emary and Evans 2021), has brought significant insight into this model (Bunin 2017; Barbier and Arnoldi 2017; Galla 2018). Bunin (2017) has given a comprehensive analysis of the phase diagram of this model and show that the CM solution yields a unique-fixed-point (UFP) phase, in which there exists a unique persistent community that is resistant to invasion. The CM solution also gives the boundaries to multiple-attractor (MA), and unbounded phases.
As is typical for the CM, the model of interactions studied in the above works is statistically homogeneous, i.e. the interaction between all species in the model is described by a single random matrix. As such, there is no a priori differentiation between the species, and the result is a single abundance distribution for the entire community. However, we know from the study of ecological networks (Ings et al. 2009; Delmas et al. 2019; Guimarães Jr 2020; Windsor et al. 2023) that interspecific interactions are anything but homogeneous and that ecological networks possess significant structure, such as trophic levels (Johnson et al. 2014), nestedness (Suweis et al. 2013), modularity (Grilli et al. 2016; Olesen et al. 2007) or even time-dependence (Suweis et al. 2023). One of the most common structures encountered in the network representation of ecological communities is that of the bipartite network, which depicts the interactions between two groups or guilds of species. The interactions described in these bipartite networks are typically either mutualistic, such as in plant-pollinator networks (Kaiser-Bunbury et al. 2010; Bane et al. 2018; Sheykhali et al. 2019), or antagonistic such as in host-parasitoid (Cagnolo et al. 2010; Morris et al. 2013; Hadfield et al. 2014; Thierry et al. 2019) or trophic networks (Cagnolo et al. 2010; Thébault and Fontaine 2010; Menke et al. 2012; Gilljam et al. 2015). Bipartite networks are also found as natural components of multi-partite networks, e.g. Pocock et al. (2012), Miller et al. (2021), or multitrophic foodwebs e,g, Williams (2011).
In this paper, we apply the CM to a species pool and hence local community in which the interactions are structured as a bipartite network but are otherwise random. We show the applicability of the CM to this kind of structured scenario and derive analytic results for abundance distributions and persistence probabilities of each of the two guilds. Focusing on trophic bipartite networks, we describe the phase diagram of the consumer-resource community and show that the UFP, MA and unbounded phases of the unstructured, unipartite model still occur, but with phase boundaries that exhibit non-trivial scaling behaviour. Despite the apparent complexity of the model, what emerges from this analysis is a picture than can conceptually, if not in mathematical detail, be understood in terms of a combination of unipartite random-interactions phenomenology (bulk spectrum and transition to MA) and two-species phenomenology (outlier eigenvalues and consumers being alive or dead).
2 Bipartite community-assembly model
Our species pool consists of two guilds of species in a bipartite ecological network, i. e. with interactions only occurring between species in different guilds. Let \(S^{(1)}\) and \(S^{(2)}\) be the number of species of each guild in the species pool, \(S = S^{(1)}+S^{(2)}\) be the total species number, and \(\rho ^{(i)} = S^{(i)}/S\) be the corresponding ratios. We define \(N_\alpha ^{(i)}\) as the abundance of species \(\alpha \) in guild i in the local community, and \(r^{(i)}_\alpha \) and \(K_\alpha ^{(i)}\) as its growth rate and carrying capacity respectively. These letter two quantities we define as positive, with their sign given by coefficient \(t^{(i)}\in \{-1,+1\}\) that depends on whether the species in guild i grow or die out in absence of interaction. We then posit that dynamics of the abundances is described by the generalised Lotka–Volterra (GLV) equations
for species \(1\le \alpha \le S^{(i)}\) and guild \(i =1,2\) where we adopt a periodic labelling convention that maps \(i=3\) onto guild \(i=1\). In Eq. (1), coefficients \(a^{(i,i+1)}_{\alpha ,\beta }\) represent the strength of interaction experienced by species \(\alpha \) in guild i due to species \(\beta \) in guild \(i+1\). We arrange these interaction elements into the \(S^{(i)} \times S^{(i+1)}\) matrices \(\textbf{A}^{(i,i+1)}\). We take all interactions between guild i and \(i+1\) to be of the same the type (antagonistic, mutualistic or competitive), and correspondingly set the matrix elements as non-negative \(a^{(i,i+1)}_{\alpha ,\beta } \ge 0 \), with the signs of the interaction provided by the interguild interaction signs \(c^{(i)}\in \{ -1,+1\}\).
We then set the scaling of the matrix elements of \(\textbf{A}^{(i,i+1)}\) with pool size such that \(\mu ^{(i)}:= \sqrt{S}\cdot \langle a^{(i,i+1)}_{\alpha ,\beta }\rangle \) and \((\sigma ^{(i)})^2:=S \cdot \text {Var}(a^{(i,i+1)}_{\alpha ,\beta }) \) are fixed as \(S\rightarrow \infty \) with \(\rho ^{(i)}\) constant. We can thus rewrite matrices \(\textbf{A}^{(i,i+1)}\) in terms of the centered, normalised matrix \(\textbf{B}^{(i,i+1)}\) with elements
We express correlations in the different interaction directions by choosing \(\textbf{B}^{(i,i+1)}\) such that they have the property:
with parameter \(\gamma \in [0,1]\). We restrict ourselves to positive correlations here to avoid any ambiguity in the implied sign assignments of \(a_{\alpha ,\beta }^{(i,i+1)}\), as allowing \(\gamma < 0\) can lead to a potential contradiction. This is because \(b_{\alpha ,\beta }^{(i)}\) have zero mean, therefore \(\left\langle b_{\alpha ,\beta }^{(i,i+1)} b_{\beta ,\alpha }^{(i+1,i)}\right\rangle < 0\) implies that there is no realisation of the ensemble without some of the \(b_i\) themselves being negative. The implications of this for \(\textbf{A}\) can be seen in Eq (3) below, where we see that if \(\mu \) is small but \(\sigma \) large, negative values of \(b^{(i,i+1)}_{\alpha ,\beta }\) could lead to negative values of \(a^{(i,i+1)}_{\alpha ,\beta }\). This is in contradiction with model parameterisation where \(a^{(i,i+1)}_{\alpha ,\beta }>0\) by definition. We note that this restriction to positive \(\gamma \) is stricter than necessary, and that it would be possible to find a negative lower bound for \(\gamma \) which still ensures all terms remain non-negative. However using \(\gamma \ge 0\) is a simple and secure fix for this potential issue. In these terms the interaction blocks become:
where \(\textbf{J}^{(i,i+1)}\) is the \(S^{(i)} \times S^{(i+1)}\) matrix of ones. The second term in the brackets above describes random fluctuations and the scaling of this term is chosen as in Bunin (2017) for the unipartite case [and indeed as in May (1972)]. There is a choice to be made in the scaling of the first term inside the brackets of Eq. (3) with respect to S. This is discussed in more depth in Sect. 5.1 of the discussion. Without loss of generality, we set the mean carrying capacity to be one, \(\langle K^{(i)}\rangle = 1\), and then further parameterise the carrying-capacities such that \( \left( \kappa ^{(i)} \right) ^2 = S^{(i)} \cdot \textrm{Var} \left( K^{(i)} \right) \) is also fixed as \(S\rightarrow \infty \). This choice is justified a posteriori as being consistent with the interaction scaling.
We note that these GLV equations include \(N_{\alpha }^{(i)}\), a self-regulation term, which alongside a May-like scaling such as this, is comparable in magnitude to the total sum of the interaction strengths between all other species. In papers such as Advani et al. (2018), Cui et al. (2020), the authors are required to consider the effects of the competitive exclusion principle and ecological niches, as discussed in Gupta et al. (2021), but due to this self-regulation property we do not.
In the following, the main quantity of interest will be the fraction of pool species in guild i that persist in equilibrium
in which \(\Theta \) is the Heaviside function.
3 Cavity method
For an overview of the CM in the ecological unipartite context, we refer the reader to the tutorial article of Barbier and Arnoldi (2017), as well as to the work of Bunin (2017).
A full account of our derivation of the bipartite case is given in Appendix A, but the essence of the method is that an equilibrium configuration is considered to which a new species from each guild is added. The action of the pre-existing community on the added species is treated exactly, but the reciprocal action of the added species on the community is small in the large-S limit and treated in linear response. Since the added species are identical with other species from the same guild, this leads to a closed system of equations that can be solved self-consistently. A discussion of our solution technique for the equations is given in Appendix B and a discussion of the validity given in Appendix C. The central result in this analysis is that the abundances of species within a guild are each distributed according to truncated Gaussians (Wilson et al. 2003; Bunin 2017; Serván et al. 2018; Galla 2018; Pettersson et al. 2020) with interdependent parameters. The key properties of the distributions are described by two quantities \(\Delta ^{(i)}; i=1,2\). In particular, the fraction of species in guild i that persist in equilibrium is given by
in which \(w_k\) are a set of functions defined via
In Appendix A we give details of the equations that determine \(\Delta ^{(i)}\) in the most general case. Here we just reproduce them in the simplest \(\delta = \gamma = \kappa ^{(1)} = \kappa ^{(2)} = 0\) case:
and
3.1 Phase diagram
Our main focus will be on antagonistic interactions and for concreteness we will use the language of trophic interactions. In this setting, we identify guild 1 with the resource species and guild 2 with consumers. The corresponding choices of sign are \( t^{(1)} = - t^{(2)} = +1 \), such that in the absence of interactions, the resource-species abundances grow to carrying capacity and the consumers die out; and \( c^{(1)} = - c^{(2)} = - 1 \) such that the interaction is beneficial to the consumers and detrimental to the resources.
As in the unipartite case, the bipartite model is found to exhibit three phases: the UFP described by the cavity solution outlined above, plus the unbounded and MA phases. In the unbounded phase, one or more of the species abundances diverge, such that one or both of \( \lim _{t\rightarrow \infty }\left\langle N^{(i)} \right\rangle \rightarrow \infty \). For the abundances in the cavity solution to remain bounded, we require that both sides of Eq. (8) (in the \(\kappa ^{(i)}=\gamma =0\) case) are greater than zero. As shown in Appendix D, the implication of this is that the location of phase boundary is asymptotically given by
which holds for \(\gamma = 0\) but arbitrary \(\kappa ^{(i)}\). As example, let us assume that the interaction strengths are distributed according to a half-normal distribution for which mean and standard deviation are related as \(\mu ^{(i)} = \sigma ^{(i)} \sqrt{2/(\pi - 2)}\). Then, assuming that the couplings are symmetric, \(\sigma ^{(1)} = \sigma ^{(2)} = \sigma \), we find that the unbounded phase occurs when \(\sigma > \sigma _c\) with critical interaction strength
The key observation is that because \( w_2(-|\Delta |) \sim \sqrt{\frac{2}{\pi }} e^{-\frac{1}{2}\Delta ^2} /|\Delta |^3 \) for large \(|\Delta |\), the critical interaction strength \(\sigma _c\) diverges exponentially with pool size S and becomes inaccessible. At finite S, the transition occurs at finite interaction strength.
Stability analysis of the cavity solution shows that, as in the unipartite case, it becomes unstable and gives way to an MA phase. Appendix E shows that the boundary to the MA phase obeys the equation (valid for \(\gamma = 0\), arbitrary \(\kappa ^{(i)}\))
To find the parameters of this boundary in the \(\kappa ^{(i)} =0\) case, we look for overlap of this curve with that described by Eq. (7). Since both curves as symmetric with respect to interchange of \(\Delta ^{(i)}\), the boundary behaviour where the two curves just cease to overlap occurs when \(\Delta ^{(1)} = \Delta ^{(2)} = \Delta \). From this, we determine that the critical parameters occur when \( w_0(\Delta ) = w_2(\Delta )\). This happens at \(\Delta = 0\), at which point \(w_0(\Delta ) = \frac{1}{2}\). The result is that the critical parameters for the MA transition obey
For \(\sigma ^{(1)}=\sigma ^{(2)}\), the MA phase therefore occurs when \( \sigma > \sigma _\textrm{MA} = \left[ 4/(\rho ^{(1)}\rho ^{(2)})\right] ^{1/4} \).
4 Results
In visualising the results of this calculations we reduce the number of independent parameters by choosing \(\sigma ^{(1)} = \sigma ^{(2)} =\sigma \), and \(\kappa ^{(1)} =\kappa ^{(2)} = \kappa \). Furthermore, although \(\mu ^{(i)}\) and \(\sigma ^{(i)}\) are in general independent parameters, here we consider them to be derived from a half-normal distribution for which they are related as \(\mu ^{(i)} = \sigma ^{(i)} \sqrt{2/(\pi - 2)}\).
In Fig. 1 we plot the persistent fraction \(\phi ^{(i)}\) as a function of interaction strength \(\sigma \) in the simplest case of \(\kappa = \gamma =0\). We show analytic results from the CM described previously as well as results obtained from numerical simulations of the GLV equations (described in Appendix G). Overall agreement is good, and is seen to improve for larger values of the pool size S. As in the unipartite case, the CM solution still gives a good account of the simulation results in the MA phase (to the right of the red dotted line in Fig. 1), despite the loss of stability of the cavity solution in this region. Figure 1b, c show how the behaviour changes when we no longer have \(S^{(1)} = S^{(2)}\).
Figure 2 shows that this agreement between simulations and analytics also extends to non-zero values of \(\kappa \) and \(\gamma \), and thus that the CM is able to address correlations in the interaction matrix and a distribution of carrying capacities in this structured context. Figure 2b, c also show good correlation between the CM and numeric solutions when varying the ratio of species, \(\rho ^{(1)}\).
What we see from Figs. 1b, c, 2b, c is that the guild species-asymmetry, \(\rho ^{(1)}\), is primarily only responsible for stretching the graphs in the y-axis. Overall the shape and behaviour of each plot is broadly unchanged by varying the proportion of guilds. This change of parameter has a more profound affect at values to the right hand side of the \(\sigma \ge 2\) line, especially in Fig. 1, when S is smaller (the “x” markers for example). Here we see that the fluctuations in the numeric results, when compared to the analytic results, are much more pronounced than they were for \(\rho = 0.5\). This is likely due to one guild now having potentially as few as 15 species, so any changes in the system can lead to much larger knock on affect with less chance to restabilise.
The inset of Fig. 1 gives numerical evidence of the location of the MA transition. Here we plot the standard deviation of the abundance values \(N_\alpha ^{(i)}\) sampled over initial conditions, and averaged over instances of interaction matrix and carrying capacities and over all species in both guilds. For presentation, this measure of the fluctuations in population size at the final equilibrium state is normalised against the mean abundance over all runs. We see that, for an interaction strength lower than the critical value predicted by the CM, the fluctuations are extremely small, but that around the critical interaction strength they start to rise. Clearly this is indicative of the unique fixed point below the transition giving way to the MA phase above it, as the multiple attractors will have different abundance distributions and hence finite fluctuations from instance to instance.
From Figs. 1 and 2, for \(\sigma ^{(i)}=0\), we see that, even though the parameters are chosen symmetrically, there are significant differences between the two persistence fractions. In particular, at smaller interaction strengths, \(\phi ^{(1)}\) (resources) is larger than \(\phi ^{(2)}\) (consumers) and at larger interaction, this trend is reversed. This is perhaps not surprising, given the different roles of the two guilds. However, in the asymptotic limit (\(S \rightarrow \infty \); see Appendix F) for \(\kappa =\gamma =0\) and symmetric parameters we find that \(\Delta ^{(1)} = \Delta ^{(2)} = \Delta \) with \(\Delta \) determined by \( w_2(\Delta ) = 2/\sigma ^2 \) for any \(\sigma \ne 0\). In this case, then, the abundance distribution of the two guilds becomes identical and the two \(\phi ^{(i)}\) curves overlap (a result shown as an orange line in Fig. 1). We observe also that this curve resembles that of the unipartite case (Bunin 2017).
Apparent from these plots is that for a range of interaction strength from zero upwards, the persistence fraction of the consumers is suppressed to an almost zero value, such that at these values of interaction strength consumers will be effectively absent from the community. Again this highlights the similarities of our system to the antagonistic 2-species Lotka–Volterra phase plots. If the interactions between consumer and producer are too weak, the consumer species will die out (Murray 2013). Analytic insight into this region can be obtained as follows. We assume that \(\Delta ^{(1)} \gg 1\) (consistent with \(\phi ^{(1)} \approx 1\)) and correspondingly approximate \(w_k(\Delta ^{(1)}) \approx \left( \Delta ^{(1)} \right) ^k\). This together with Eq. (7) allows the elimination of \(\Delta ^{(1)}\) from Eq. (8). Since \(\Delta ^{(2)} \ll -1\) (consistent with \(\phi ^{(2)} \approx 0\)) we then can approximate \(w_k(\Delta ^{(2)})\approx 0\) in Eq. (8), which yields an equation for \(\Delta ^{(2)}\) in the suppressed region. Generalising this to the \(\kappa ^{(i)}\ne 0\) case, the result we obtain is
To be compatible with \(\phi ^{(2)} \ll 1\) this needs to large and negative, which requires \( \sqrt{S} \rho ^{(1)}\mu ^{(2)} \ll 1\). This suggests that
(at which point \(\Delta _2 \approx 0 \) and hence \(\phi ^{(2)} = w_0(0) = \frac{1}{2}\)) gives an indicator of when the consumer population rises to a significant value. Below this point, the suppression of the consumers is exponential because for \(\Delta _2\) is large and negative, we can approximate \( \phi ^{(2)} = w_0 \left( -|\Delta ^{(2)}| \right) \sim e^{- (\Delta ^{(2)})^2/2}/(|\Delta ^{(2)}|\sqrt{2\pi }) \). From Eq. (14), we see that the width of region without consumers reduces as the size of the species pool S increases.
Figure 3 show different aspects of the phase diagram of the antagonistic bipartite model. We plot results for a pool size of \(S=50\), such that the consumer-suppression regions are easily visible on the same scale as the MA transition. Note that we do not show that unbounded transitions as, according to the arguments presented in the previous section, these occur as large values of interaction strength.
Figure 3a shows the persistent fractions \(\phi ^{(i)}\) as a function of interaction strength \(\sigma \) and carrying capacity width \(\kappa \). Increasing \(\kappa \) results in the persistent fractions dropping more quickly as \(\sigma \) increases, and also a noticeable drop in the peak number of consumers. This is a result of the wider distribution of \(K_\alpha ^{(i)}\) values giving resource species a carrying capacity closer to zero and therefore more likely to becomes locally extinct and consumers (unsigned) carrying capacities further from zero, and therefore more likely to die out rapidly. The red dashed line shows the point of the MA transition, which is seen to move to higher interaction strength with increasing \(\kappa \). Finally, the green dashed line shows the boundary Eq. (14) of the suppressed-consumer region. This is a constant as a function of \(\kappa \) here, but as \(\kappa \) increases, the transition out of the suppression region becomes less sharp.
Figure 3b shows how the persistent fractions change as a function of \(\sigma \) and \(\rho ^{(1)}\), the fraction of resource species in the species pool. In this case we see how the consumer-suppression region depends on the composition of the species pool with the suppression becomes more extensive for smaller \(\rho ^{(1)}\), i.e. fewer resource species in the pool. The opposite effect is also observed—for large values of the resource fraction \(\rho ^{(1)}\), the consumer shows an extensive range of interaction strength for which \(\phi ^{(2)} \approx 1 \) and thus all consumers in the pool are supported in the local community. The MA transition line is symmetric about \(\rho ^{(1)} = 1/2\), given the dependence on \(\rho ^{(1)}\rho ^{(2)} = \rho ^{(1)}(1-\rho ^{(1)})\).
Finally, Fig. 3c looks at the role of the correlation parameter \(\gamma \) in determining community persistence. Increasing correlations (\(\gamma >0\)) universally serves to increase both persistent fractions, with extensive regions where \(\phi ^{(i)} > 0.5\) for both consumers and resources. Transition to the MA phase is moved to higher \(\sigma \) for increasing \(\gamma \) and being in the MA phase is correlated with a drop in both persistent fraction values.
5 Discussion
We have shown here that the CM generalises to structured ecological models, and specifically to a bipartite structure with consumer-resource Lotka–Volterra dynamics. We have seen that this model exhibits phases analogous to those of the unipartite model, and that the CM allows us to map the boundaries between them. The key feature of the bipartite model is the existence of two guilds, and we have seen that the composition of the persistent community in terms of these two guilds depends both on the strength of the interaction between them, the guild size in the species pool, as well as parameters such as \(\gamma \) and \(\kappa ^{(i)}\). Interestingly, in the \(S \rightarrow \infty \) limit the ratio of the mean equilibrium abundances becomes
which depends only on the ratio of mean interaction strengths. The ratio of the persistent fractions is not as simple.
One novel feature of our results is that, for weak interactions, the fraction of persistent consumers, \(\phi ^{(2)}\), is suppressed. This is ecologically reasonable, as it means that if trophic interactions are too weak, consumers can not be sustained in the community. This is analogous to what we would expect within a 2 species L-V model, where the consumer species dies out if the interaction with the producer species is too weak. What is perhaps surprising is that the transition to a sustained consumer presence is reasonably abrupt in this parameter space. Furthermore, we have shown that the width of this suppressed region depends on the size of the species-pool, becoming narrower as S increases. For interaction strengths above the consumer onset, properties of the two guilds become similar with both \(\phi ^{(i)}\) falling off with interaction strength.
The most obvious baseline for comparison is the unipartite model, from Bunin (2017), with \(\gamma = -1\), as this has interactions arranged in consumer-resource pairs.Footnote 1 The persistent fraction in that model shows a monotonic decrease with interaction strength, similar to the asymptotic behaviour of the bipartite model in Fig. 1. The unipartite model shows no suppression for small couplings because, although the interactions are all trophic, their orientations are random. In contrast, the bipartite structure enforces a consistent direction to the interactions and this paves the way for guild-level effects.
Whilst we have focused on trophic interactions, different choices of the sign factors \(t^{(i)}\) and \(c^{(i)}\) allow different interguild interactions to be studied. With \(c^{(i)} = +1\) we have a mutualistic bipartite network, either obligate (\(t^{(i)}=-1\)) or facultative (\(t^{(i)}=+1\)). Adapting the reasoning from the trophic case, we find that, irrespective of \(t^{(i)}\), the transition to the unbounded phase in this mutualistic model occurs for large \(\Delta ^{(i)}\), and this allows to obtain the transition point as \( \mu ^{(1)}\mu ^{(2)} = \left( \rho ^{(1)}\rho ^{(2)}S \right) ^{-1} \). Taking the case of symmetric coupling drawn from the half-normal distribution, the critical coupling is given by
such that bounded phase is obtained when \(\sigma < \sigma _c \sim S^{-1/2}\). The extent of this bounded phase therefore decreases with pool size and vanishes in the limit. And thus the characteristic behaviour of mutualistic bipartite interactions is towards non-persistence of the community. This might be reconciled with the manifold observation of bipartite mutualistic networks in nature in a number of ways. It might imply that mutualistic interactions are very weak, but this seems unlikely given the important role these interactions typically play in the lifecycles of the participants. It could also indicate limitations in the dynamical model—inclusion of saturating interactions is an obvious improvement that could be made. But perhaps the most interesting possibility is that the model suffers from studying mutualism in isolation, and in nature these mutualistic networks modules exist as modules in larger networks with interactions of various types. Finding the networks conditions which allows mutualisms to persist therefore becomes an important future question.
The sign allocation \(t^{i)} = +1\) and \(c^{(i)} = -1\) gives a model in which the two guilds compete with one another. In this case the transition to unboundedness occurs when
With symmetric couplings and matrix elements from the half-normal distribution again, this translates into a critical coupling
such that the bounded phase occurs for \(\sigma < \sigma _c \sim S^{1/2}\). The two guilds therefore both always persist in the large-pool limit. Although we were unable to find reports of bipartite competition networks in the literature (presumably due to the difficulty of observing such interactions), “negative non-trophic” interactions have been reported as part of larger multi-interaction networks (Kéfi et al. 2015, 2016) and often with a particular association with facilitation (Losapio et al. 2021). In both mutualistic and competitive cases, the symmetry in interaction sign, \(c^{(1)}=c^{(2)}\), ensures that neither guild is significantly suppressed relative to the other.
It is interesting to compare these results for the persistence of communities with different interaction types with the conclusions derived from a linear stability analysis of the relevant interaction matrices
in which \(\mathbbm {1}\) is a unit matrix, and where we set \(\gamma = 0\) for simplicity such that \(\textbf{A}^{(1,2)}\) and \(\textbf{A}^{(2,1)}\) are independent. From e.g. Emary and Malchow (2022) and references therein, we know that the asymptotic spectrum of \(\textbf{A}\) will consist of two parts: a bulk, and a pair of isolated “macroscopic” eigenvalues, with the pair being as would be expected in the 2 species L-V model. In the uncorrelated case, the bulk spectrum will be a circle in the complex plane (Tikhomirov 2011) with centre at (-1,0) and radius of \( \sqrt{\sigma ^{(1)} \sigma ^{(2)}} \left( \rho ^{(1)}\rho ^{(2)} \right) ^{1/4} \). The macroscopic eigenvalues are given by
with the scaling \(\sim \sqrt{S}\) justifying the “macroscopic” moniker.
In the consumer-resource case, \( c^{(1)} c^{(2)} = -1\), and the macroscopic contribution to the spectrum is purely imaginary. Thus it is the bulk that determines the stability. In contrast, for both competitive and mutualistic interactions, we have \( c^{(1)} c^{(2)} = 1\) and the stability properties of these two interaction types will be the same. In these cases we have \(\lambda _\mathrm {macro,+}\) real and positive and therefore this eigenvalue dominates stability considerations. The trend, then, from local stability analysis is that both competitive and mutualistic bipartite interactions are unstable, whereas antagonistic interactions are stable. This stands in contrast with the CM results which identifies the antagonistic and competitive structures as persisting, whilst the mutualistic one is not.
5.1 Scaling of interaction strengths
We argue that the mean must scale like:
There are then two obvious choices for our scaling parameter \(\delta \). The first is \(\delta = 0\), for which we recall from Eq. (3) that the interaction blocks become:
This is a natural choice when \(a^{(i,i+1)}_{\alpha ,\beta }\) are chosen from a non-negative distribution such as the half-normal distribution for which the standard deviation is proportional to the mean [a similar scaling was adopted in Emary and Malchow (2022)].
The most obvious alternative to Eq. (3) is to set
so that the mean scales like the variance (rather than the standard deviation). This scaling is like that in the unipartite model (Bunin 2017). The difference between these two choices is perhaps best appreciated from the spectrum of \(\textbf{A}\) of Eq. (19). In the alternative scaling, \(\textbf{A}\) has the same bulk spectrum as before but now the S-dependence of macroscopic eigenvalues removed. Thus, eigenvalues \(\lambda _\mathrm {macro,\pm }\) cease to be macroscopic, and the entire spectrum scales as \(S^0\). The CM equations for this alternative scaling can be obtained from those presented here by scaling \(\mu ^{(i)}\rightarrow \mu ^{(i)}S^{-1/2}\) and \(\kappa ^{(i)} \rightarrow \kappa ^{(i)}\sqrt{S^{(i)}}\). This results in a modification of the phase diagram.
Confining ourselves to the trophic case, the transition to the unbounded phase now occurs at coupling strength \(\sim S^0\), rather than \(\sim S^{1/2}\), and the width of the suppressed zone becomes \(\sim S^0\) rather than \(\sim S^{-1/2}\). On the other hand, the MA transition remains in the same place, being determined by \(\sigma ^{(i)}\) and not \(\mu ^{(i)}\). Distributions that scale like Eq. (3) are straightforward to realise—the half-normal-distribution used here is a simple example. Not so for Eq. (22) as this requires a distribution defined on non-negative support \(a>0\) in which the ratio of mean to standard deviation scales like \(S^{-1/2}\), this inevitably results in a heavily skewed distribution.Footnote 2 Other than this seemingly extreme properties required of the distribution, the second problem with this scaling is that it limits the parameter values for which the CM solution is accurate, since the skewness of the distribution compromises the Normality assumption (see Appendix C) unless we have \(\mu ^{(i)}/\sigma ^{(i)} \gg 1\).
Another variation of the model is to drop the restriction that the interaction elements be non-negative. This obviously changes the intent of the model as, from a starting point in which all interactions are e. g. trophic interactions, negative values of \(a_{\alpha ,\beta }^{(i,j)}\) mix in some interactions that are mutualistic, some competitive, and some that remain antagonistic but opposite in direction. Nevertheless, if the majority of the interactions remain of the original type, it still makes sense to differentiate the two guilds along the original lines. Such a model might be appropriate for bipartite plant-microbe networks (Bennett et al. 2018) where interactions are complicated and of different signs (Trivedi et al. 2020; He et al. 2021). Dropping this restriction does not change the derivation of the CM equations, but it does affect the validity argument presented in Appendix C. If we choice the scaled matrix elements \(b_{\alpha ,\beta }^{(i,j)}\) from a normal distribution (which necessarily permits negative values), then we remove any concerns about the Normality of the final fluctuations, and there are no limits on the validity of the CM equations from a skewness point of view. This means that the scaling of Eq. (22) works just as well as the scaling of Eq. (3). However, preservation of guild interaction identity still requires \(\mu ^{(i)}/\sigma ^{(i)} \gg 1\), and so the useful parameter regime of the model stays the same.
Looking to the future, this work opens up the study of community assembly within other block-structured ecological networks. Here we think of two particular geometries: “hub and spokes” in which a central guild interacts with a number of further guild, as in Pocock et al. (2012), and a “ladder” such as a food web with perfect trophic coherence, i.e. where basal species are consumed exclusively by primary consumers, primary consumers are consumed exclusively by secondary consumers, and so forth (Johnson et al. 2014). Tripartite ecological networks (Fontaine et al. 2011; Sauve et al. 2014, 2016; Domínguez-García and Kéfi 2021; Emary and Malchow 2022) span both categories, and could either describe a single interaction type e.g. antagonism in a plant-pest-parasitoid network, or mixed interactions such as in plant-mutualist-parasitoid or herbivore-plant-mutualist networks. Following the approach set out here, the CM should allow us to map the persistence and coexistence conditions across these diverse network structures which, although certainly just caricatures, represent important aspects of the organisation of interactions central to natural ecosystems.
Notes
Note that the significance of the \(\gamma \) parameter is slightly different in the unipartite model because in the bipartite model we have factored out the \(c^{(i)}\) signs. We also note that, in this case, the terms have a mean of 0, so anti-correlated values will be exactly the negative of each other.
An example model that realises this is a Bernoulli distribution in which the probability the matrix element is non-zero is proportional to \(p\sim 1/S\). This gives the required scaling properties in large-S limit.
References
Advani M, Bunin G, Mehta P (2018) Statistical physics of community ecology: a cavity solution to Macarthur’s consumer resource model. J Stat Mech Theory Exp 3:033406
Allesina S, Tang S (2012) Stability criteria for complex ecosystems. Nature 483(7388):205–208
Bane MS, Pocock MJO, James R (2018) Effects of model choice, network structure, and interaction strengths on knockout extinction models of ecological robustness. Ecol Evol 8(22):10794–10804
Barbier M, Arnoldi JF (2017) The cavity method for community ecology. bioRxiv 66:147728
Bennett AE, Evans DM, Powell JR (2018) Potentials and pitfalls in the analysis of bipartite networks to understand plant–microbe interactions in changing environments. Funct Ecol 33(1):107–117
Berlow EL (1999) Strong effects of weak interactions in ecological communities. Nature 398(6725):330–334
Berry AC (1941) The accuracy of the Gaussian approximation to the sum of independent variates. Trans Am Math Soc 49(1):122–136
Bunin G (2017) Ecological communities with Lotka–Volterra dynamics. Phys Rev E 95(4):042414
Cagnolo L, Salvo A, Valladares G (2010) Network topology: patterns and mechanisms in plant-herbivore and host-parasitoid food webs. J Anim Ecol 80(2):342–351
Campbell C, Yang S, Albert R, Shea K (2011) A network model for plant-pollinator community assembly. Proc Natl Acad Sci 108(1):197–202
Cui W, Marsland R III, Mehta P (2020) Effect of resource dynamics on species packing in diverse ecosystems. Phys Rev Lett 125(4):048101
Delmas E, Besson M, Brice MH, Burkle LA, Dalla Riva GV, Fortin MJ, Gravel D, Guimarães PR Jr, Hembry DH, Newman EA, Olesen JM, Pires MM, Yeakel JD, Poisot T (2019) Analysing ecological networks of species interactions. Biol Rev 94(1):16–36
Domínguez-García V, Kéfi S (2021) The structure and robustness of tripartite ecological networks. bioRxiv 6:66
Emary C, Evans D (2021) Can a complex ecosystem survive the loss of a large fraction of its species? A random matrix theory of secondary extinction. Oikos 130(9):1512–1522
Emary C, Malchow AK (2022) Stability–instability transition in tripartite merged ecological networks. J Math Biol 85(3):66
Esseen CG (1942) On the Liapunoff limit of error in the theory of probability. Arkiv för Matematik, Astronomi och Fysik A28:1–19
Fisher CK, Mehta P (2014) The transition between the niche and neutral regimes in ecology. Proc Natl Acad Sci 111(36):13111–13116
Fontaine C, Guimarães PR Jr, Kéfi S, Loeuille N, Memmott J, van der Putten WH, van Veen FJF, Thébault E (2011) The ecological and evolutionary implications of merging different types of networks. Ecol Lett 14(11):1170–1181
Galla T (2018) Dynamically evolved community size and stability of random Lotka–Volterra ecosystems. Europhys Lett 123(4):48004
Garcia Lorenzana G, Altieri A, Biroli G (2024) Interactions and migration rescuing ecological diversity. PRX Life
Gibbs T, Grilli J, Rogers T, Allesina S (2018) Effect of population abundances on the stability of large random ecosystems. Phys Rev E 98(2):022410
Gilljam D, Curtsdotter A, Ebenman B (2015) Adaptive rewiring aggravates the effects of species loss in ecosystems. Nat Commun 6(1):66
Grilli J, Rogers T, Allesina S (2016) Modularity and stability in ecological communities. Nat Commun 7(1):12031
Guimarães PR Jr (2020) The structure of ecological networks across levels of organization. Annu Rev Ecol Evol Syst 51:433–460
Gupta D, Garlaschi S, Suweis S, Azaele S, Maritan A (2021) Effective resource competition model for species coexistence. Phys Rev Lett 127(20):208101
Hadfield JD, Krasnov BR, Poulin R, Nakagawa S (2014) A tale of two phylogenies: comparative analyses of ecological interactions. Am Nat 183(2):174–187
He X, Zhang Q, Li B, Jin Y, Jiang L, Wu R (2021) Network mapping of root–microbe interactions in Arabidopsis thaliana. npj Biofilms Microbiomes 7(1):66
Hubbell SP (2001) The unified neutral theory of biodiversity and biogeography (MPB-32) (monographs in population biology). Princeton University Press, Princeton
Ings TC, Montoya JM, Bascompte J, Blüthgen N, Brown L, Dormann CF, Edwards F, Figueroa D, Jacob U, Jones JI et al (2009) Ecological networks-beyond food webs. J Anim Ecol 78(1):253–269
Johnson S, Domínguez-García V, Donetti L, Muñoz MA (2014) Trophic coherence determines food-web stability. Proc Natl Acad Sci USA 111(50):17923–17928
Kaiser-Bunbury CN, Muff S, Memmott J, Müller CB, Caflisch A (2010) The robustness of pollination networks to the loss of species and interactions: a quantitative approach incorporating pollinator behaviour. Ecol Lett 13(4):442–452
Kéfi S, Berlow EL, Wieters EA, Joppa LN, Wood SA, Brose U, Navarrete SA (2015) Network structure beyond food webs: mapping non-trophic and trophic interactions on Chilean rocky shores. Ecology 96(1):291–303
Kéfi S, Miele V, Wieters EA, Navarrete SA, Berlow EL (2016) How structured is the entangled bank? The surprisingly simple organization of multiplex ecological networks leads to increased persistence and resilience. PLoS Biol 14(8):1–21
Lafferty KD, Dunne JA (2010) Stochastic ecological network occupancy (seno) models: a new tool for modeling ecological networks across spatial scales. Thyroid Res 3(3):123–135
Losapio G, Schöb C, Staniczenko PPA, Carrara F, Palamara GM, Moraes CMD, Mescher MC, Brooker RW, Butterfield BJ, Callaway RM, Cavieres LA, Kikvidze Z, Lortie CJ, Michalet R, Pugnaire FI, Bascompte J (2021) Network motifs involving both competition and facilitation predict biodiversity in alpine plant communities. Proc Natl Acad Sci 118(6):66
MacArthur RH, Wilson EO (2001) The theory of island biogeography (Princeton landmarks in biology). Princeton University Press, Princeton
May RM (1972) Will a large complex system be stable? Nature 238:413–414
May RM (2001) Stability and complexity in model ecosystems. Princeton University Press, Princeton
McCann KS (2000) The diversity–stability debate. Nature 405(6783):228–233
Menke S, Böhning-Gaese K, Schleuning M (2012) Plant-frugivore networks are less specialized and more robust at forest-farmland edges than in the interior of a tropical forest. Oikos 121(10):1553–1566
Mézard M, Parisi G, Virasoro MA (1987) Spin glass theory and beyond: an introduction to the replica method and its applications, vol 9. World Scientific, Singapore
Miller KE, Polaszek A, Evans DM (2021) A dearth of data: fitting parasitoids into ecological networks. Trends Parasitol 37(10):863–874
Morris RJ, Gripenberg S, Lewis OT, Roslin T (2013) Antagonistic interaction networks are structured independently of latitude and host guild. Ecol Lett 17(3):340–349
Murray JD (2013) Mathematical biology, 2nd edn. Springer, Berlin
Obuchi T, Kabashima Y, Tokita K (2016) Multiple peaks of species abundance distributions induced by sparse interactions. Phys Rev E 94(2):022312
Olesen JM, Bascompte J, Dupont YL, Jordano P (2007) The modularity of pollination networks. Proc Natl Acad Sci 104(50):19891–19896
Opper M, Diederich S (1992) Phase transition and 1/f noise in a game dynamical model. Phys Rev Lett 69:1616–1619
Pettersson S, Savage VM, Nilsson Jacobi M (2020) Predicting collapse of complex ecological systems: quantifying the stability–complexity continuum. J R Soc Interface 17(166):20190391
Pocock MJO, Evans DM, Memmott J (2012) The robustness and restoration of a network of ecological networks. Science 335(6071):973–977
Rieger H (1989) Solvable model of a complex ecosystem with randomly interacting species. J Phys A Math Gen 22(17):3447
Ros V, Roy F, Biroli G, Bunin G, Turner AM (2023) Generalized Lotka–Volterra equations with random, nonreciprocal interactions: the typical number of equilibria. Phys Rev Lett 130(25):257401
Sauve AMC, Fontaine C, Thébault E (2014) Structure–stability relationships in networks combining mutualistic and antagonistic interactions. Oikos 123(3):378–384
Sauve AMC, Thébault E, Pocock MJO, Fontaine C (2016) How plants connect pollination and herbivory networks and their contribution to community stability. Ecology 97(4):908–917
Serván CA, Capitán JA, Grilli J, Morrison KE, Allesina S (2018) Coexistence of many species in random ecosystems. Nat Ecol Evol 2(8):1237–1242
Sheykhali S, Fernández-Gracia J, Traveset A, Eguíluz VM (2019) Extinction-induced community reorganization in bipartite networks. Appl Netw Sci 4(1):66
Suweis S, Simini F, Banavar JR, Maritan A (2013) Emergence of structural and dynamical properties of ecological mutualistic networks. Nature 500:449
Suweis S, Ferraro F, Azaele S, Maritan A (2023) Generalized Lotka–Volterra systems with time correlated stochastic interactions. arXiv preprint arXiv:2307.02851
Thébault E, Fontaine C (2010) Stability of ecological communities and the architecture of mutualistic and trophic networks. Science 329(5993):853
Thierry M, Hrček J, Lewis OT (2019) Mechanisms structuring host–parasitoid networks in a global warming context: a review. Ecol Entomol 44(5):581–592
Tikhomirov AN (2011) On asymptotics for the spectrum of the product of two random rectangular matrices. Sib Math J 52(4):747–762
Tikhonov M, Monasson R (2017) Collective phase in resource competition in a highly diverse ecosystem. Phys Rev Lett 118(4):048103
Tokita K (2006) Statistical mechanics of relative species abundance. Eco Inform 1(3):315–324
Trivedi P, Leach JE, Tringe SG, Sa T, Singh BK (2020) Plant–microbiome interactions: from community assembly to plant health. Nat Rev Microbiol 18(11):607–621
Williams RJ (2011) Biology, methodology or chance? the degree distributions of bipartite ecological networks. PLoS ONE 6(3):e17645
Wilson WG, Lundberg P, Vázquez DP, Shurin JB, Smith MD, Langford W, Gross KL, Mittelbach GG (2003) Biodiversity and species interactions: extending Lotka–Volterra community theory. Ecol Lett 6(10):944–952
Windsor FM, van den Hoogen J, Crowther TW, Evans DM (2023) Using ecological networks to answer questions in global biogeography and ecology. J Biogeogr 50(1):57–69
Yoshino Y, Galla T, Tokita K (2007) Statistical mechanics and stability of a model eco-system. J Stat Mech Theory Exp 09:P09003
Acknowledgements
This work was supported by the Natural Environment Research Council (NERC) funded ONE Planet Doctoral Training Partnership (Grant Number [NE/S007512/1]). We acknowledge helpful discussions with Darren M. Evans.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
A Derivation of the CM equations
We begin by defining the scaled abundances \( n_\alpha ^{(i)}:= g N_\alpha ^{(i)} \) where \( g =\left( \langle N^{(1)}\rangle +\langle N^{(2)}\rangle \right) ^{-1}\). Then, setting \(d n_\alpha ^{(i)} / dt = 0\) and using Eq. (3), the equilibrium condition of Eq. (1) can be written as
in which we have defined
and, for purposes of derivation, added small perturbation \(\xi _\alpha ^{(i)}\) to each \(\lambda _\alpha ^{(i)}\). The response to these perturbations can be captured by matrices \(\textbf{v}^{(i,j)}\) with elements
evaluated at \(\xi ^{(i)}_\alpha = 0;~ \forall i,\alpha \). To derive the cavity equations, we consider an initial community with equilibrium abundances \(n_\alpha ^{(i)}\) and to each guild we then add a species, labelled with index 0 and assumed to be statistically homogeneous with the other species in its guild. We denote the new equilibrium abundances as \(m_\alpha ^{(i)}\). These abundances will obey the same equations as Eq. (23) but with \(m_\alpha ^{(i)}\) replacing \(n_\alpha ^{(i)}\) and with sums extended by one. This allows us to identify the perturbations as
Since both \(m^{(i)}_0\) and \(b^{(i,i+1)}_{\alpha ,0}\) scale as \(S^0\), we have \(\xi _\alpha ^{(i)} \rightarrow 0\) as \(S\rightarrow \infty \) such that the perturbations are weak. The abundances with and without the perturbation can therefore be related via linear response as
where, in the last expression, we have set the off-diagonal response blocks \(v^{(i,i+1)}\) to zero, a result which will be justified later. Under the assumption that \(m_0^{(i)}>0\), substitution of the previous result into the corresponding equilibrium condition gives
This can be rearranged as
As reasoned in Bunin (2017), the denominator of this expression is a finite number with negligible fluctuations and thus be replaced by its expectation value. Evaluating the expectation value of the sum, we obtain
which defines the mean response coefficient, \( \nu ^{(i)} \). The denominator of Eq. (29) can therefore be written as
Turning to the numerator in Eq. (29), we note that the quantities \(\lambda ^{(i)}\) have mean \(\langle \lambda ^{(i)}\rangle = 0\) and variance
such that the numerator has mean \(h^{(i)}\) and variance
in which
We have dropped the perturbation \(\xi _0^{(i)}\) from these expression as, from Eq. (26), they scale as \(\mathbb {O}(S^{-1/2})\) and play no further role. As the sum of many weakly correlated terms, we expect \(c^{(i)}\sum _{\alpha =1}^{S^{(i+1)}}b^{(i+1)}_{0,\alpha }n^{(i+1)}_\alpha \) to be normally distributed in the large-S limit. Thus the numerator is equivalent to \( h^{(i)} + z^{(i)} R^{(i)} \), where \(z^{(i)}\) is distributed according to a the standard normal \(z^{(i)} \sim \mathcal {N}(0,1)\). From the Lotka–Volterra dynamics, we know that if \(m^{(i)}_0>0\) then the fixed point at \(m^{(i)}_0=0\) is unstable against invasion, and vice versa. Thus, we obtain the abundance \( m^{(i)}_0 = \text {max} \left[ 0, \left( h^{(i)}+z^{(i)}R^{(i)} \right) /{\hat{u}^{(i)}} \right] \). Once added, these additional species are no different from the other species in their guild, and thus this result holds for a general species i.e. \(m^{(i)}_0 = m^{(i)}_\alpha = m^{(i)} \). The final result is that the abundances of the species in guild i are distributed according to the truncated Gaussian
It now remains to find expressions for the quantities contained in Eq. (35). Expectation values of function of the abundances are readily evaluated using the probability distribution associated with Eq. (35). We obtain
expressed in terms of
and
Expressions for \(\nu ^{(i)}\) can be obtained by differentiating Eq. (29) and noting that we only obtain a non-zero contribution with a probability \(\phi ^{(i)}\):
We also see from Eq. (29) that \(\partial m^{(i)}_0/\partial \xi ^{(i+1)}_0 = 0\), consistent with the earlier assertion that \(v_{\alpha ,\beta }^{(i,i+1)} = 0\). The final equation required to close the set is \( f^{(1)}+f^{(2)}=1 \) by definition.
B Solution of CM equations
We can collapse the above set of equations into a pair of equations, the solution of which gives parameters \(\Delta ^{(i)}\) as a function of model parameters. First we use Eq. (41) to write Eq. (31) as
This maps onto a pair of independent quadratics with solution
where have taken the positive root so that \(\hat{u}^{(i)} \rightarrow u^{(i)}\) for \(\gamma \rightarrow 0\).
We then turn to Eq. (37) and use Eq. (40) to obtain
with the matrix
There are then two different solution routes, depending on whether both \(\kappa ^{(i)} =0\) or not. Assuming at least one \(\kappa ^{(i)}\) is non-zero and that M is non-singular, we obtain a solution \( R^{(i)} = g S^{-1/2}P^{(i)} \) with
where we take the positive root \(P^{(i)}>0\) since \(R^{(i)}>0\). This gives
such that Eq. (39) may be written as
The two resultant equations can then be solved to give \(\Delta ^{(i)}\) as functions of model parameters. The normalisation constraint \(f^{(1)} + f^{(2)} =1\) then determines an expression for g, namely
In the case when \(\kappa ^{(1)} = \kappa ^{(2)} = 0\), the righthand side of Eq. (44) vanishes. Thus we have
Matrix M must then be singular, which yields
We can then use Eqs. (36) and (50) as well as both instances of Eq. (39) to obtain
In this case, Eqs. (51) and (52) are the pair of equations that connect \(\Delta ^{(i)}\) and model parameters. We then use the normalisation \(1 = f^{(1)} + f^{(2)}\) to obtain explicit forms for \(R^{(i)}\). We find
from which
and \(f^{(1)} = 1-f^{(2)}\). This gives the ratio of the total abundances in equilibrium as
C Validity of the CM analysis
The CM solution involves replacing the numerator in Eq. (29) with a normally-distributed random variable. The Berry–Esseen theorem (Berry 1941; Esseen 1942) supplies an upper bound for the error in the cumulative-density function approximated in this way. Applying this to the case in hand, with \(\kappa ^{(i)}=0\) initially, we find that error bound to be
where C is some constant. Since the first factor only contains moments of the fractional variables \(n^{(i+1)}_\alpha \), it scales like \(S^0\). This leaves the scaling behaviour of the error term dependent on the second factor. To calculate \(\left\langle \left| b^{(i,i+1)}_{0,\alpha }\right| ^3 \right\rangle \) we need to go back to Eq. (3) and consider the original distribution of the matrix elements \(a^{(i,i+1)}_{0,\alpha }\). For a half-normal distribution for example, we find that \(\left\langle \left| b^{(i,i+1)}_{0,\alpha }\right| ^3 \right\rangle \approx 1.72\), i.e. a constant. For a gamma distribution we find
The key point is that in both cases this value is independent of S. The result is that \(\mathcal {E}^{(i)}\) vanishes in the limit thanks to the explicit \(S^{-1/2}\) dependence of Eq. (56). It seems plausible that this behaviour extends to any similar distribution with the same scaling.
For \(\kappa ^{(i)} \ne 0\), the fluctuations in \(\lambda \) also need to be taken into account. Considering these independently of the interactions and taking the distribution of \(K^{(i)}\) to a gamma distribution, the error associated with the normal approximation will be proportional to
Thus, with matrix elements as in Eq. (3), the error associated with the normality approximation scales like \(S^{-1/2}\). This is consistent with other approximations in the derivation and means that in the \(S\rightarrow \infty \) limit, the CM solution becomes exact.
At finite S, the above limitations do have a bearing on the parameters for which we can expect agreement between numerics and CM expressions. With distributions chosen as in Sec. G, close agreement requires \(\sqrt{S}\gg 1\) and \(\sqrt{S}\gg \kappa ^{(i)}\). The main effect of this is the restriction of the value of \(\kappa ^{(i)}\) used in the plots here to \(\kappa ^{(i)} \le 5\).
In the alternative scaling scheme discussed in Eq. (22) with \(a^{(i,i+1)}_{0,\alpha }>0\), we obtain \(\left\langle \left| b^{(i,i+1)}_{0,\alpha }\right| ^3 \right\rangle \sim \sqrt{S}\) and therefore the overall error scales as \(S^0\). In this case we can no longer rely on the asymptotic limit to make our distributions converge to the Gaussian limit. Rather, the accuracy of the CM solutions is dependent on other model parameters. In particular, for interaction coefficients distributed according to a Gamma distribution, we would require \( \sigma ^{(i)}\sqrt{\rho ^{(i+1)}} / \mu ^{(i)}\ll 1 \). Lifting the \(a^{(i,i+1)}_{0,\alpha }>0\) restriction changes this requirement. For example, we might then choose the elements themselves to be normally distributed, in which case \(\left\langle \left| b^{(i,i+1)}_{0,\alpha }\right| ^3 \right\rangle =0\) and any potential convergence issues vanish (in either scaling approach).
D Stability
The unbounded phase occurs when one or both \(\left\langle N^{(i)} \right\rangle \rightarrow \infty \), which means that we can find the phase boundary in the CM analysis by considering \(g \rightarrow 0\). Looking first at the \(\kappa ^{(i)} \ne 0\) case, we see that \(g \rightarrow 0\) in Eq. (49) implies that at least one of the \(P^{(i)}\) diverges. This occurs when the matrix M of Eq. (45) is singular. This is exactly the situation discussed for \(\kappa ^{(i)} = 0\) and thus the phase boundary for arbitrary \(\kappa ^{(i)} \) can be obtained from the equations of the \(\kappa ^{(i)} = 0\) case.
At the phase boundary, Eq. (51) still holds, as does Eq. (52) but now with the addition that both sides of the equality are individually zero (from \(g =0\)). Using Eq. (51), these latter equations can be written as
A plot of the function \(Q(\Delta ):= \sqrt{w_2(\Delta )}/w_1(\Delta )\) shows it to be a monotonically-decreasing function that diverges exponentially for \(\Delta \rightarrow -\infty \) and has a limit \(Q(\Delta )\rightarrow 1\) for \(\Delta \rightarrow \infty ; Q(\Delta )\). It has a value at the origin of \(Q(0)= \sqrt{\pi }\). Using these properties, we see that Eq. (59) implies that \(\textrm{sign}\,[\Delta ^{(i)}] = c^{(i)}\). In the antagonistic case, we have \(c^{(1)} = - c^{(2)} = -1\) such that \(\Delta ^{(2)} > 0\). This means that \(Q(\Delta ^{(2)}) < \sqrt{\pi }\) and therefore from Eq. (59) we have
For large S, this result implies that \(Q(\Delta ^{(1)})\) is exponentially large which, from Eq. (59), means that \(\Delta ^{(2)}\) will be exponentially small. Setting \(\Delta ^{(2)} \rightarrow 0\) into Eq. (59) turns the inequality of Eq. (60) into an equality. Thus in the limit the \(\Delta ^{(i)}\)-values at the boundary become
Substituting these values into Eq. (51) gives us the location of the phase boundary as being determined by
Here \(\hat{u}^{(i)}\) are evaluated at the values of Eq. (61) and are thus functions of the model parameters only.
E Transition to multiple attractors
The stability of the cavity solution can be studied with a generalisation of the method presented in the appendix of Bunin (2017) to the structure relevant here. Our starting point is the expression
which is Eq. (29) with the denominator evaluated as previously discussed, and with the “+” added to remind us that this is the abundance when positive.
We consider a vector of perturbation \(\varvec{\xi }^{(i)} = \epsilon \varvec{\eta }^{(i)}\) with mean \( \overline{\varvec{\eta }^{(i)} }=0 \). The derivative of Eq. (63) with respect to perturbation “strength” \(\epsilon \) is
in which \( y_{\alpha /0}^{(i)}:= \frac{d n_\alpha ^{(i)}}{d\epsilon } \). Note that when \(m_0>0\), we have \(\frac{d m_\alpha ^{(i)}}{d\epsilon } = \frac{d m_\alpha ^{(i+)}}{d\epsilon }\), otherwise \(\frac{d m_\alpha ^{(i)}}{d\epsilon } = 0 \). Squaring Eq. (64) we have
The final term is self averaging, such that
in which \(\left\langle \ldots \right\rangle _+\) denotes the average over positive abundances only. Averaging over \(\eta _0^{(i)}\), which is independent from \(b^{(i,i+1)}_{0,\alpha }\) and \(y^{(i+1)}_{\alpha /0}\), we obtain
Thus \(\overline{\left( y_{0}^{(i+)} \right) ^2}\) is independent of \(n_0^{(i)}\). Once added to a guild, species 0 is the same as any other, so that \(\overline{\left( y_{0}^{(i+)} \right) ^2} = \left\langle \left( y^{(i)}_{\alpha /0} \right) ^2 \right\rangle _+ = \left\langle \left( y^{(i)}_{\alpha } \right) ^2 \right\rangle _+\). Thus we obtain
Writing out the two equations and arranging into matrix form, we have
The solution for \( \left\langle \left( y^{(i)}_{\alpha /0} \right) ^2 \right\rangle _+\) requires that the above \(2\times 2\) matrix be invertible. Non-invertibility is taken as the signal of the UFP-MA phase transition, which occurs when
Thus the UFP-MA phase boundary is given by
F Asymptotic limit
For \(f^{(i)}\) to be bounded such that \(0\le f^{(i)} \le 1\), quantities \(\Delta ^{(i)}\) have to scale like \(S^0\). Thus taking the \(S \rightarrow \infty \) limit of Eq. (39) yields
Equating the two instances and using \(f^{(1)}+f^{(2)} = 1\), we have the expressions
These we obtain, therefore, independent of parameters \(\Delta ^{(i)}\). As a consequence, the ratio of total abundances of the two guilds of Eq. (55) simply evaluates as
The equations for \(\Delta ^{(i)}\) also simplify in this limit, but the resulting forms in general deliver little further insight. An exception to this is the \(\kappa =\gamma =0\) case for which Eq. (52) can be written as
For symmetric parameters (\(\rho ^{(i)} = \rho = 1/2, \sigma ^{(i)} = \sigma \) etc) the righthand side evaluates to one. The behaviour of the \(w_i\) functions is such that this is only fulfilled when \(\Delta ^{(1)} = \Delta ^{(2)} = \Delta \) and thus the abundance distribution of the two guilds becomes identical. It then follows from Eq. (8) that the equation for \(\Delta \) becomes \( w_2(\Delta ) = 2/\sigma ^2 \).
G Numerical Simulations
In our numerical simulations, interaction coefficients \(a^{(i,i+1)}_{\alpha ,\beta }\)were sampled from a half normal distribution with parameters satisfying: \(\langle a^{(i,i+1)}_{\alpha ,\beta } \rangle = \mu ^{(i)}/\sqrt{S}\) and \(\textrm{Var}(a^{(i,i+1)}_{\alpha ,\beta }) = \left( \sigma ^{(i)} \right) ^2/S\). Use of the half-normal distribution means that \(\sigma ^{(i)}\) and \(\mu ^{(i)}\) are related as \(\mu ^{(i)}= \sqrt{2/(\pi -2)} \sigma ^{(i)}\). We then combine the \(a^{(i,i+1)}_{\alpha ,\beta }\) terms into the matrix \(\textbf{A}\), including correlation between the sub-matrices by setting \(a^{(1,2)}_{\alpha ,\beta } = \gamma a^{(2,1)}_{\beta ,\alpha } + \sqrt{1-\gamma ^2}a^{(1,2)}_{\alpha ,\beta } \). As \(\gamma \in [0,1]\) this choice preserves the mean and standard deviation of the two sub-matrices (assuming they both have the same distribution as here). The carrying capacities \(K^{(i)}\) were sampled from a gamma distribution with parameters such that \(\langle K^{(i)} \rangle = 1\) and \(\textrm{Var} \left( K^{(i)} \right) = \left( S^{(i)} \right) ^{-1}\left( \kappa ^{(i)} \right) ^2 \). Since we are interested in the equilibrium properties, the values of the rates \(r^{(i)}\) are somewhat unimportant, and for convenience, we set them as \(r^{(i)}_\alpha = K^{(i)}_\alpha \). This sets the forefactors of Eq. (1) equal to one and avoids adding extra time scales into the problem when \(K^{(i)}_\alpha \) are drawn from a distribution.
Initial conditions for the abundances \(N^{(i)}_\alpha \) were drawn from a uniform distribution on \([0,\frac{1}{\sqrt{S}}]\). The Lotka–Volterra dynamics of Eq. (1) were then integrated numerically using a Runge-Kutte-4 method. When the abundance of a species reached a threshold of \(10^{-9}/\sqrt{S}\), it was set to zero and treated as being extinct in the local community. The \(1/\sqrt{S}\) scaling of these quantities was adopted because of the analytic results such as Eq. (49) suggesting that typical equilibrium abundances scale like \(1/\sqrt{S}\), a fact born out by simulation. The solver was then terminated either when an approximate equilibrium was found, defined as when all \(\frac{dN^{(i)}_\alpha }{dt}<10^{-11}/\sqrt{S}\), or the maximum time of \(t=10^5\) was reached. This process is then repeated for a total of 25 times in order to take the average.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Dopson, M., Emary, C. The persistence of bipartite ecological communities with Lotka–Volterra dynamics. J. Math. Biol. 89, 24 (2024). https://doi.org/10.1007/s00285-024-02120-w
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s00285-024-02120-w
Keywords
- Bipartite ecological network
- Population dynamics
- Lotka–Volterra equations
- Dynamical cavity method
- Phase transition
- Random matrix