Gardner volumes and self-organization in a minimal model of complex ecosystems Preprint: APS/123-QED Frederik J. Thomsen, Johan L.A. Dubbeldam, Rudolf Hanel Abstract We study self-organization in a minimally nonlinear model of large random ecosystems. Populations evolve over time according to a piecewise linear system of ordinary differential equations subject to a non-negativity constraint resulting in discrete time extinction and revival events. The dynamics are generated by a random elliptic community matrix with tunable correlation strength. We show that, independent of the correlation strength, solutions of the system are confined to subsets of the phase space that can be cast as time-varying Gardner volumes from the theory of learning in neural networks. These volumes decrease with the diversity (i.e. the fraction of extant species) and become exponentially small in the long-time limit. Using standard results from random matrix theory, the changing diversity is then linked to a sequence of contractions and expansions in the spectrum of the community matrix over time, resulting in a sequence of May-type stability problems determining whether the total population evolves toward complete extinction or unbounded growth. In the case of unbounded growth, we show the model allows for a particularly simple nonlinear extension in which the solutions instead evolve towards a new attractor. I Introduction Complex systems consisting of many interacting components emerge naturally in the study of ecological communities. Depending on the context, what these components represent ranges from the populations of animal Hofbauer and Sigmund 1998 , molecular Segel 1984 or microbial Smith and Waltman 1995 species to groups of individuals in an epidemic Brauer et al. 2012 . The list of processes governing the interactions between components is enormous, including competition, cooperation, predation, mutualism, and commensalism Harte 2011 . Dynamical systems used to describe a subset of these processes are often cast either as variants of generalised Lotka-Volterra differential equations Lotka 1920 ; Volterra 1926 or as (piecewise) linear differential equations. The latter type arises more specifically in gene-regulatory or biochemical reaction networks, where the components represent molecular or microbial species, such as in the works of Glass-Kauffman Glass and Kauffman 1973 and Jain-Krishna Jain and Krishna 1998 ; however, (piecewise) linear systems can also appear as a linearisation in the neighborhood of an attractor Stokić et al. 2008 ; Belga Fedeli et al. 2021 . The central mathematical object in generating the dynamics for both types of system is the community matrix that encodes the interactions between components. When the ecological community is large and the corresponding community matrix high-dimensional, precise knowledge of the interactions is impossible to obtain. This has popularized the statistical physics approach to ecology pioneered by Robert May May 1972 , in which the community matrix is assumed to be random. This randomness has since been leveraged in countless studies to derive emergent macroscopic properties for the long-time dynamics. For example, phase diagrams Bunin 2017 , the typical number of equilibria Ros et al. 2023 and the number of surviving species at equilibrium Clenet et al. 2023 ; Serván et al. 2018 , as well as abundance distributions for non-equilibrium solutions Arnoulx de Pirey and Bunin 2024 ; Mallmin et al. 2024 , have been investigated; for a recent review see also Akjouj et al. 2024 . Independently of the model context, the interacting components often only have physical significance when their values are nonnegative. In contrast to Lotka-Volterra systems, linear systems must therefore generally be formulated in a piecewise, discontinuous manner to self-consistently enforce that solutions remain nonnegative at all times Casey et al. 2006 ; Jain and Krishna 2001 . In the random matrix approach, aligning the feasibility constraint with existence criteria for equilibrium solutions is already an interesting problem. For Lotka-Volterra systems, classical existence results for globally attracting, non-negative equilibrium solutions require strong dissipativity assumptions on the dynamics Takeuchi 1996 , which translate to strong assumptions on the spectrum of the community matrix Clenet et al. 2022 . Positive equilibria in particular, where all species coexist, have been shown to require precise fine-tuning of the interactions Grilli et al. 2017 . A mechanism to explain how, nevertheless, large ecological communities stably coexist, is to view them as survivors selected from a much larger species pool, either by a sequence of invasion processes (see e.g. Morton et al. 1996 ) or by initializing the system in a point of coexistence and evaluating the species remaining in the long-time limit Serván et al. 2018 ; Bunin 2017 . In the latter case, for Lotka-Volterra systems, the community matrix evaluated at a stable equilibrium is a submatrix of the full set of possible interactions, “pruned” by the dynamics. More specifically, Servan et al. Serván et al. 2018 show that the expected number of coexisting species in a globally attracting equilibrium is 1/2 of the total species pool. In Pettersson et al. 2020 , the authors instead consider changes to the community matrix after continuation of the equilibrium in the standard deviation of the interactions. A related mechanism of self-organization specific to piecewise linear differential equations was explored in a so-called minimally nonlinear model for chemical reaction networks Stokić et al. 2008 . In contrast to Lotka-Volterra systems, in this model, species may go extinct in finite time and be revived at a later time through catalytic reactions with the extant species. The revival mechanism here replaces classical species invasion criteria (see e.g. Akjouj et al. 2024 ). Rather than at an equilibrium and under strong dissipativity assumptions, the submatrix for the remaining active species thus changes over time and can be re-evaluated after each extinction or revival event. The system was shown to self-organize near an “inflated edge of chaos” Hanel et al. 2010 , characterized by a broad plateau of vanishing maximal Lyapunov exponent, where always approximately 1/2 of the total species pool remains active. In this work we revisit the the minimally nonlinear model for random community matrices parametrized by a correlation parameter, \xi . This parameter smoothly interpolates between non-reciprocal ( \xi<0 ) and reciprocal ( \xi>0 ) interactions. Our focus lies on determining analytically the mechanisms behind the systems ability to self-organize. Because the system is piecewise linear, the dynamics can be decomposed into angular and radial variables, measuring the species composition and total population, respectively. The dynamics of the angular variables determine the sequence of changes made to the community matrix through revival and extinction events, independently of the total population dynamics. Our main result is that solutions for the angular dynamics are confined to subsets of the phase-space which can be cast as time-dependent “Gardner volumes” from the theory of learning in neural networks Gardner 1988 ; Amit et al. 1989 . These volumes are shown to decrease with the system diversity (given by the fraction of extant species) and become exponentially small as the diversity approaches a critical threshold. Numerically we find that solutions evolve to this critical regime in the long-time limit, thereby becoming highly sensitive to perturbations. While the long-time behavior of solutions depends on the correlation strength, the volumes themselves are independent of this parameter. When the sequence of extinction and revival events is finite, the community matrix is adapted in such a way that the leading eigenvector becomes both non-negative and strongly localized to a Gardner volume. This dynamical behavior dominates in the regime of positive correlations. The radial dynamics are driven by the solution of the angular dynamics and determine whether the system ultimately dies out completely (the origin is a stable equilibrium) or self-sustains (the solution grows without bound). Using standard results for elliptic random matrices Sommers et al. 1988 , we show how the sequence of extinction and revival events causes the spectrum of the community matrix to contract and expand, resulting in a sequence of classical May-like May 1972 stability problems for the origin. Lastly, the model allows for a particularly simple, fully nonlinear extension which leaves the angular dynamics unchanged. In the extension, a new attractor is created when then origin becomes unstable. Solutions unbounded in the minimally nonlinear model instead converge to this new attractor. II The minimal model Figure 1: Numerical solutions \bm{x}(t) over time for two realizations (a. and b.) of the system ( 5 ) with d=10 , each with two components x_{1}(t),x_{2}(t) highlighted in black. The other components x_{i}(t),i>2 in grey. In a. the first component is initially extinct at time t_{0}=0 and revived immediately (red dot), while the second, initially extant component, goes extinct at time t>5 (blue dot). In b. the first initially extant component is driven extinct and subsequently revived at a later time. The second component simply remains active for all time. The index set ( 2 ) changes after each event, as extinct species are removed and revived species added. Numerical integration of ( 5 ) is performed using the explicit Euler method. Extinction events are detected by a positive component becoming non-positive in the next time-step. They are then set to zero. Revival events are detected by whether a component at zero becomes positive in the next time-step. We consider the dynamics of a large ecosystem comprised of d species, with populations x_{i}\geq 0 . The population state is given by points \bm{x}=(x_{1},\dots,x_{d})^{\top} in the non-negative cone C=\{\bm{x}\in\mathbb{R}^{d}:x_{i}\geq 0\}. (1) We define the index set of active (or extant) species in a given population state \bm{x} as I_{\bm{x}}=\{i:x_{i}>0\}, (2) as well as its complement I^{c}_{\bm{x}} , the index set of inactive (or extinct) species. The total number of species d in the ecosystem is assumed to be large enough to model their interactions as random. We construct a network of weighted interactions by drawing a set of d random column vectors \{\bm{k}_{1},\ldots,\bm{k}_{d}\}\subset\mathbb{R}^{d}, (3) with centered normal N(0,d^{-1}) elements (\bm{k}_{i})_{j}=k_{ij} with normalized variance d^{-1} . Together, these define the d\times d community matrix K=(k_{ij}) . The positive elements of the community matrix k_{ij}>0 represent productive links from species j to species i . Negative elements k_{ij}<0 instead indicate inhibitory links. Pairs of entries (k_{ij},k_{ji}) for i0 . This condition can be viewed as a type of species invasion criterion. If all components k_{ij} were non-negative, the second case in ( 5 ) would not be necessary to enforce the non-negativity constraint on the components. Active species are subject to intrinsic decay or death at a common rate \beta>0 . For simplicity, we assume that our ecosystem is closed, in the sense that there is no out- or influx of species by migration or other processes, and that the community matrix is fully connected (cp. Stokić et al. 2008 ). Whether or not the ecosystem is capable of self-sustaining or will evolve towards complete extinction is therefore determined by whether or not the dynamics of the total-population can overcome the effect of the depletion terms -\beta x_{i} . The parameter \alpha>0 scales the standard deviation of the interaction strengths; see also the complexity parameters introduced in May 1972 . III Polar decomposition Figure 2: Sketch of the polar decomposition in \mathbb{R}^{2} . The angular variable \bm{y} is the radial projection of \bm{x} through a line through the origin. The projected dynamics depend only on the ordering of the real parts of the eigenvalue. They are independent of the decay rate \beta and the scaling \alpha can be removed by a rescaling of time. The trajectory of the full system ( 5 ) is unbounded. The corresponding trajectory for the (compactified) angular dynamics tends to an equilibrium. Figure 3: Sketch of the decreasing Gardner volumes ( 23 ) for two values of the diversity \gamma_{n} and \gamma_{N} with \gamma_{n}>\gamma_{N} . a. A solution \bm{y}(t) moves on the set \tilde{S}_{n} containing the active species \{i_{1},i_{2},i_{3}\}\subset I_{n} . The red-dot depicts a revival event where the solution hits any hyperplane \{\bm{x}:\bm{k}^{\top}_{i}\bm{x}=0\} for i\in I^{c}_{n} , whose intersections with the sphere are depicted as black lines. b. A solution moves on the set \tilde{S}_{N} at lower diversity resulting in a smaller Gardner volume. The subset satisfies the feasibility conditions ( 39 ) and the solution converges to the stable equilibrium \bm{p}_{N} without further extinction or revival events. A solution \bm{x}(t) of our model ( 5 ) for the initial population state \bm{x}(0) is unique in forward time and absolutely continuous (see Filippov Filippov 1988 ). Over time, some of the species present in the initial species composition will go extinct or be revived by catalytic interactions with the active species. As a result, the set ( 2 ), collecting the indices of living species, changes along the solution. In the following we derive a decomposition of our model ( 5 ), which allows us to consider I_{\bm{x}(t)} independently from the stability properties of the system. We define angular and radial components of \bm{x} in the style of Khas’minskii Khas’minskii 1967 : \displaystyle\bm{y} \displaystyle=d^{1/2}\frac{\bm{x}}{\norm{\bm{x}}}, (6) \displaystyle\mbox{and}\quad\rho \displaystyle=\log\norm{\bm{x}}, (7) where \norm{\cdot} denotes the 2-norm. The variable \bm{y} is the point \bm{x}\in C\setminus\{0\} mapped to the nonnegative section of the sphere of radius d^{1/2} S=\{\bm{x}\in C:\lVert\bm{x}\rVert^{2}=d\}, (8) by radial projection. The angular variable \bm{y} is a measure for the species composition. The radial variable \rho is a measure of the total population. Because the population will become exponentially small or large, we consider the logarithm of the norm \norm{\bm{x}} . Differentiation with respect to time of equation ( 6 ) along the solution \bm{x}(t) yields \displaystyle\frac{dy_{i}}{dt} \displaystyle=d^{1/2}\left(\frac{1}{\norm{\bm{x}}}\frac{dx_{i}}{dt}-\frac{x_{i}}{\norm{\bm{x}}^{2}}\frac{d}{dt}\norm{\bm{x}}\right) (9) \displaystyle=\alpha(\bm{k}^{\top}_{i}\bm{y}-d^{-1}y_{i}\sum_{j}y_{j}\bm{k}^{\top}_{j}\bm{y}),\quad\mbox{for }\;i\in I_{\bm{x}(t)}. (10) and \frac{dy_{i}}{dt}=\frac{d^{1/2}}{\norm{\bm{x}}}\frac{dx_{i}}{dt}=\alpha\max(0,\bm{k}^{\top}_{i}\bm{y}),\quad\mbox{for }\;i\in I^{c}_{\bm{x}(t)}. (11) These equations are decoupled from the dynamics of the populations x_{i} , up to the criteria that distinguish the dynamics of extinct species from the alive ones in ( 5 ) by the index set I_{\bm{x}(t)} . However, we can see from ( 6 ) that x_{i}=0 is equivalent to y_{i}=0 and that \bm{k}^{\top}_{i}\bm{x}=0 is equivalent to \bm{k}^{\top}_{i}\bm{y}=0 . That is, even though the projection ( 6 ) is not injective, both the extinction and the revival events are mapped one-to-one so that we can replace I_{\bm{x}} with I_{\bm{y}} . Additionally, because the equations are independent of the decay rates \beta , we can remove the scaling \alpha>0 of the standard deviation by re-parameterizing time as \tau=\alpha t to yield the system of equations \frac{dy_{i}}{d\tau}=\begin{cases}\bm{k}^{\top}_{i}\bm{y}-L(\bm{y})y_{i}\quad&\mbox{for }i\in I_{\bm{y}}\\ \max(0,\bm{k}^{\top}_{i}\bm{y})\quad&\mbox{for }i\in I^{c}_{\bm{y}},\end{cases} (12) where we have introduced the scaled quadratic form L(\bm{y})=d^{-1}\sum_{j}y_{j}\bm{k}^{\top}_{j}\bm{y}=d^{-1}\bm{y}^{\top}K\bm{y} (13) Similarly, differentiating equation ( 7 ) with respect to time yields a differential equation depending only on the angular variable \bm{y} through the quadratic form \frac{d\rho}{d\tau}=L(\bm{y})-\frac{\beta}{\alpha}. (14) In total, we have rewritten the system ( 5 ) on C\setminus\{0\} as the coupled system of equations ( 12 ) and ( 14 ) on the product space (\bm{y},\rho)\in S\times\mathbb{R} . In the new system, we can first solve the angular dynamics ( 12 ) independently, and then use the solution to solve the simple equation for the growth rates \rho on the real line. In the following, we revert back to using t=\tau as the time variable for the rescaled systems ( 12 ) and ( 14 ). The solution \bm{x}(t) of the component dynamics is recovered via the inverse transformation \bm{x}(t)=d^{-1/2}\bm{y}(t)\exp(\rho(t)). (15) We remark that in our definition ( 6 ) of the angular variable, we could have normalized by the 1 -norm and projected to the unit simplex \{\lVert\bm{x}\rVert_{1}^{2}=1\} instead of the sphere. In this case, equation ( 12 ) has been studied in Jain and Krishna 2001 as a variant of the continuous time dynamics in the well-known Jain-Krishna model of adaptive networks. Our choice of working on the sphere makes the dynamics gradient-like in the special case of symmetric community matrices below. It also avoids the inconsistency that this version of the Jain-Krishna model does not leave the simplex forward invariant (see ( Kuehn 2019 , Theorem A.1) ). A drawback is that \rho does not directly represent the total population. The additional scaling by the dimension in the angular variable makes the surface measure of the sphere exponential in d , which is convenient for taking large system limits in the following Section. IV Angular dynamics: The event sequence IV.1 Gardner volumes We consider the independent dynamics of the angular variables \bm{y} given by the system of equations ( 12 ). Extinction or revival events for a solution \bm{y}(t) occur at discrete times t_{n} . Ordering this sequence t_{n}0 is satisfied for none of the inactive species. This is the intersection between the boundary face ( 17 ) and the convex cone defined by the intersection of all halfspaces ( 18 ), see e.g. Cover and Efron 1967 . At time t_{n+1} the solution leaves this set as either \displaystyle y_{i}(t_{n+1})=0\, \displaystyle\mbox{ for }i\in I_{n}\quad\mbox{(extinction)} (20) \displaystyle\mbox{or }\;\bm{k}^{\top}_{i}\bm{y}(t_{n+1})=0\, \displaystyle\mbox{ for }i\in I^{c}_{n}.\quad\mbox{(revival)} (21) On the other hand, the set of points in S_{n} inaccessible (or repelling) to the solution is given by the complement S_{n}\setminus\tilde{S}_{n} , where the revival condition is satisfied for at least one of the currently inactive species. Intuitively, when a sufficient number of species is inactive, i.e. the cardinality |I_{n}| is small, and the vectors \bm{k}_{i} are not concentrated in some particular direction, then the intersection ( 19 ) is small. The domains of the phase space in which we may find a solution for decreasing |I_{n}| are thus more and more restricted as inequality constraints ( 18 ) are added; see Figure 3 . Taking \bm{y} as a measure of the composition of species in the ecosystem this means that when many species are inactive only a small fraction of compositions remain eligible. By leveraging the randomness of the vectors \bm{k}_{i} , this notion can be made precise. In the following, rather than considering the exact time-ordered sets I_{n} in ( 16 ), we consider their diversity \gamma_{n}=\frac{|I_{n}|}{d}\in[0,1]. (22) The fractional volume of S_{n} that belongs to \tilde{S}_{n} is given by V(\gamma_{n})=\frac{\text{vol}_{n}(\tilde{S}_{n})}{\text{vol}_{n}(S_{n})}, (23) where \text{vol}_{n}(\cdot) denotes the surface measure of the sphere \{\bm{x}^{\prime}\in\mathbb{R}^{|I_{n}|}:\norm{\bm{x}'}^{2}=d\} . The fractional volume is a random variable. Because the inner products ( 18 ) reduce to \bm{k}^{\top}_{i}\bm{x}=\sum_{j\in I_{n}}k_{ij}x_{j} for i\in I^{c}_{n} , the randomness is determined by the entries of the community matrix for rows corresponding to inactive species and columns corresponding to active species: k_{ij}\;\mbox{ for }\;(i,j)\in I_{n}^{c}\times I_{n}. (24) Since these pairs of indices are drawn from disjoint sets and correlations ( 4 ) arise only for opposing pairs of indices, the components ( 24 ) are independently Gaussian distributed random variables with zero mean for all values \xi\in[-1,1] . Determining V(\gamma_{n}) can now be cast as a sign-constrained, time-dependent variant of the famous Gardner problem from neural networks and spin-glass physics Gardner 1988 . We are interested in the way in which the fractional volume ( 23 ), referred to in the following as the Gardner volume, changes with discrete time events t_{n},n=0,1,\ldots and in the critical value \gamma_{c} , such that V(\gamma_{n}) is typically non-zero for diversities \gamma_{n}\geq\gamma_{c} , and typically zero for \gamma_{n}<\gamma_{c} . By typical we mean here the most-probable value. Because the most probable value for the Gardner volume generally does not coincide with the expectation \mathbb{E}(V(\gamma_{n})) , we instead consider the quenched expectation \displaystyle\Phi(\gamma_{n}) \displaystyle=\lim_{d\to\infty}d^{-1}\,\mathbb{E}(\log V(\gamma_{n})) (25) \displaystyle=\lim_{d\to\infty}d^{-1}\,\log V(\gamma_{n}), (26) for a fixed value of the diversity \gamma_{n} . Here, \mathbb{E}(\cdot) denotes the expectation with respect to the independent entries ( 24 ). In ( 25 ) we use that, in the limit d\to\infty the quantity \Phi(\gamma_{n}) is deterministic, as its variance tends to zero and the most-probable value coincides with the expectation (see e.g. Talagrand 1999 ). Adapting a result by Amit, Campbell and Wong Amit et al. 1989 , an expression for the above limit can be derived analytically, using the replica-trick \mathbb{E}(\log V(\gamma_{n}))=\lim_{m\to 0^{+}}m^{-1}\log\mathbb{E}(V(\gamma_{n})^{m}). (27) That is, we first compute the expectation of m -copies of the volume for the same realization of the interaction weights ( 24 ) and then take the limits in m and d . The computation is lengthy, but standard and relegated to Appendix A . In the style of the Edwards-Anderson order parameter for spin-glasses Mézard et al. 1987 we can then, for a given \gamma_{n} , determine the fractional volume using the typical overlap q(\gamma_{n})=d^{-1}\mathbb{E}(\bm{y}_{1}^{\top}\bm{y}_{2})\in[0,1], (28) between two points \bm{y}_{1},\bm{y}_{2}\in\tilde{S}_{n} sampled from the remaining phase-space. In the limit q(\gamma_{n})\to 1^{-} the two points grow closer and the fractional volume tends to zero. Assuming replica-symmetry, we determine the overlap using the saddle-point approximation ( 115 ), which can be solved numerically. Equivalently, writing the overlap in terms of the Euclidean norm, the typical scaled distance between two points in \tilde{S}_{n} is d^{-1/2}\norm{\bm{y}_1 - \bm{y}_2}=(2-2q(\gamma_{n}))^{1/2}. (29) The critical threshold is determined in the limit of large overlaps. From equation ( 115 ) it is given simply by \gamma_{c}=1/2, (30) i.e. the point |I_{n}|=d/2 , where there is an equal number of active and inactive species. In particular, both the threshold ( 30 ) and behavior of the volume with \gamma_{n} are independent of the correlation strength \xi by equation ( 24 ). At the critical threshold \Phi(\gamma_{n}) diverges to -\infty , see Figure 5 . We conclude that a solution \bm{y}(t) will not typically spend any open interval of time on subsets \tilde{S}_{n} for diversities below the critical threshold, \gamma_{n}<1/2 . This conclusion is supported by numerical results in Figure 4 showing that the average minimal diversity along a solution does not drop below the threshold for large d . The result also supports the mean-field notion that sequences of subsets selected by the dynamics for a given realization of K and \bm{y}_{0} do not, on average, deviate significantly in volume from typical Gardner volumes. Initializing the solution on a subset with cardinality |I_{0}| below the threshold implies that \bm{y}_{0}\in S_{0}\setminus\tilde{S}_{0} and immediately leads to a revival event for a number of inactive species. Replacing H_{i} in equation ( 19 ) with the complementary open halfspace H^{\prime}_{i}=\{\bm{x}\in\mathbb{R}^{d}:\bm{k}^{\top}_{i}\bm{x}>0\} the same argument as above then shows that the number of species revived for such an initial condition is typically less than d/2 . The critical threshold ( 30 ) and the overlap ( 28 ) are central to this paper. The critical threshold determines the spectral properties of the community matrix K used to decide the stability of the origin with the radial dynamics in Section V . The regime of large overlaps is of particular importance when considering the long time dynamics of the angular variables in Sections IV.2 and IV.3 . Figure 4: Minimal fraction of active species \gamma_{n} over the course all extinction and revival events for d=5000 averaged over 70 realizations for each value of the correlation strength \xi=-1,-0.5,0,0.5,1 . The black curve corresponds to the event sequence of the angular dynamics ( 12 ). Solutions which penetrate beyond the critical threshold \gamma_{c}=1/2 are atypical. The dashed curve corresponds to the model without revival events, see equation ( 47 ). In this case solutions freely move below the critical threshold. Inset shows the empirical probability that an event sequence is infinite for d=200 . For each value of the correlation strength \xi , we average over 200 realizations of the system and count the number of event sequences detected as infinite. For \xi=+1 , all sequences are finite (see Section IV.2 ), and for \xi=-1 all sequences are infinite (see Section IV.3 ). An event sequence is detected as infinite, if the time between events t_{n+1}-t_{n} does not exceed the threshold 500 and the distance between solution and a leading eigenvector does not drop below 10^{-10} . Figure 5: The quenched average \Phi(\gamma_{n}) , ( 25 ) determined by numerically solving equation ( 113 ). As the diversity decreases, the fractional volume decreases monotonically. In the limit \gamma_{n}\to\gamma_{c}=1/2 of the critical threshold, \Phi(\gamma_{n}) diverges to -\infty . Below the critical threshold, the fractional volume is typically vanishing. Inset shows the typical overlap ( 28 ) as function of the fraction of active species, numerically solving equation ( 115 ). As the number of active species decreases, the overlap monotonically increases towards the limit q=1 . The corresponding typical distance between solutions ( 29 ) plotted in blue. Validity of equation ( 115 ) for the overlap is limit to the regime of large overlaps, but remains in good agreement with also in the case \gamma_{n}=1 of minimal overlap, see equation ( 117 ) in Appendix IV.1 . IV.2 Finite event sequence We show that the long-time behavior for the angular dynamics ( 12 ) includes a self-organization process towards community matrices with real leading eigenvalues and non-negative leading eigenvectors. In particular, the leading eigenvectors are localized to the restricted subsets ( 19 ). This self-organization is most prevalent in the case of positive correlation \xi>0 . We begin by considering the solution \bm{y}(t) of the system on the subsets \tilde{S}_{n} between events. Here, the system simply behaves as a linear ordinary differential equation projected to the sphere. Rather than the full community matrix K , it suffices to consider the d\times d community matrix K_{n} simplified to only interactions between species active on \tilde{S}_{n} given by K_{n}=\begin{cases}(k_{ij})\quad&\mbox{for }(i,j)\in I_{n}\times I_{n}\\ 0&\mbox{otherwise}.\end{cases} (31) We denote the set of eigenvalues for the active community matrix K_{n} by \{\lambda^{n}_{1},\ldots,\lambda^{n}_{|I_{n}|},0,\ldots,0\}, (32) where the inactive species combine to a zero-eigenvalue of multiplicity |I^{c}_{n}| . We then denote the distinct real parts of the eigenvalues corresponding to the active species by \sigma^{n}_{i} , ordered as \sigma^{n}_{1}>\ldots>\sigma^{n}_{m}, (33) for 1\leq m\leq|I_{n}| . For times t in the interval (t_{n},t_{n+1}) between two events, the curve \bm{y}(t) is the solution of \frac{d\bm{y}}{dt}=K_{n}\bm{y}-L(\bm{y})\bm{y}, (34) for the initial value \bm{y}(t_{n}) . It follows that a full solution of ( 12 ), starting from any \bm{y}(t_{0})\in S , is glued together from a sequence of Cauchy problems for the system ( 34 ) with initial values \bm{y}(t_{n}) with n=0,1,\ldots . In the following, we will assume that the event sequence is finite. The solution must then eventually settle in a subset \tilde{S}_{N} without further extinction or revival events for times t>t_{N} . In contrast to a linear differential equation, solutions of ( 34 ) depend only on the ordering of the growth rates ( 33 ), not on their signs. This can be seen as a consequence of the parameter \beta that determines the sign of the real parts of the eigenvalues, no longer appearing in the factored dynamics ( 12 ). Therefore, rather than decomposing into center, stable and unstable invariant subspaces, we instead use the ordering ( 33 ) to decompose into center, leading and non-leading invariant subspaces (see also ( Colonius and Kliemann 2014 , Lemma 4.1.2) ) \mathbb{R}^{d}=W^{N}_{0}\oplus W^{N}_{1}\oplus W^{N}_{2}. (35) Here, W^{N}_{0} is the center subspace defined by the zero-eigenvalue of the inactive species and spanned by the set of canonical basis vectors \{e_{i}\} for {i\in I^{c}_{N}} . The leading and non-leading subspaces are the direct sums W^{N}_{1}=\bigoplus_{\Re\lambda^{N}_{i}=\sigma^{N}_{1}}E^{N}_{i},\quad\mbox{and }\;W^{N}_{2}=\bigoplus_{\Re\lambda^{N}_{i}<\sigma^{N}_{1}}E^{N}_{i}, (36) respectively, taken over the real generalized eigenspaces E^{N}_{i} of the (complex) eigenvalues \lambda^{N}_{i} . Each E^{N}_{i} is at most two-dimensional because the eigenvalues of the random matrix K_{N} are almost surely distinct 1 1 1 up to the zero-eigenvalue corresponding to the inactive species ( 32 ). . The leading subspace dominates the long-time behavior of solutions. To see this, we write the initial condition \bm{y}(t_{N}) on \tilde{S}_{N} uniquely as \bm{y}_{N}=\bm{w}_{1}+\bm{w}_{2} for \bm{w}^{N}_{1,2}\in W^{N}_{1,2} . From equation ( 6 ), for t>t_{N} the solution is given by \bm{y}(t)=d^{1/2}\left(\frac{e^{tK_{N}}\bm{w}_{1}}{\norm{e^{t K_N} \bm{y}_N}}+\frac{e^{tK_{N}}\bm{w}_{2}}{\norm{e^{t K_N} \bm{y}_N}}\right). (37) Initial conditions with \bm{w}_{1}\neq 0 fill almost the entire set \tilde{S}_{N} , the exception being those points contained entirely in the subspace W^{N}_{2} , where \text{vol}_{N}(W^{N}_{2}\cap\tilde{S}_{N})=0 . Asymptotically, \lVert e^{tK_{N}}\bm{y}_{N}\rVert must then grow with the exponential leading rate \sigma^{N}_{1} and dominate all components evolving in W^{N}_{2} , with smaller growth rates of at most \sigma^{N}_{2}<\sigma^{N}_{1} , i.e. \frac{\lVert e^{tK_{N}}\bm{w}_{2}\rVert}{\norm{e^{t K_N} \bm{y}_N}}=O\big(e^{(\sigma^{N}_{2}-\sigma^{N}_{1})t}\big),\quad\mbox{as }t\to\infty. (38) It follows that \bm{y}(t) must eventually tend towards the intersection W^{N}_{1}\cap\cl\tilde{S}_{N} , where \cl\cdot denotes set closure. This intersection is non-empty by assumption, as otherwise there would be either an extinction or a revival event for t>t_{N} . We next consider the real subspaces E^{N}_{i} determining the leading subspace W^{N}_{1} to show that it is one-dimensional. Supposing that W^{N}_{1} contains a number of E^{N}_{i} corresponding to conjugate pairs of eigenvalues means e^{tK_{N}}\bm{w}_{1} is oscillatory. The projected solution d^{1/2}e^{tK_{N}}\bm{w}_{1}/\lVert e^{tK_{N}}\bm{w}_{1}\rVert on the leading invariant subspace is then either periodic or quasi-periodic, and must leave \tilde{S}_{N} in finite time. Equations ( 37 ) and ( 38 ) imply that the same eventually holds for the solution \bm{y}(t) which would give another event for t>t_{N} . Hence W^{N}_{1} is the linear subspace spanned by a single real eigenvector \bm{v}^{N}_{1} for the eigenvalue \sigma^{N}_{1} . A finite event sequence then implies that the community matrix K_{N} satisfies the feasibility conditions 2 2 2 Here we disregard the possibility that the projected eigenvector lies in the boundary \cl\tilde{S}_{N}\setminus\tilde{S}_{N} . In this case the extinction sequence need not be finite (see Section IV.3 ). . W^{N}_{1}=\Span\bm{v}^{N}_{1},\quad\mbox{and}\quad d^{1/2}\frac{\bm{v}^{N}_{1}}{\lVert\bm{v}^{N}_{1}\rVert}\in\tilde{S}_{N}. (39) From the previous section, for large d feasibility is further constrained by the condition \gamma_{N}\geq 1/2 on the fraction of active species for large d . For an illustration, see Figure 3 b. We denote the projected eigenvector in ( 39 ) by \bm{p}_{N} . It is a stable equilibrium point for the dynamics \lim_{t\to\infty}\bm{y}(t)=\bm{p}_{N}. (40) Figure 6: Change of the diversity \gamma_{n} over time (discrete time events t_{n} ) for sample solutions for d=500 with random initial species compositions \bm{y}_{0} of fixed cardinality |I_{0}|=d or |I_{0}|=1 . a. The uncorrelated case, \xi=0 . Event sequences are either finite, when the solution converges to an equilibrium (e.g. the two curves highlighted in black), or infinite (e.g. the curve highlighted in dark grey). For |I_{0}|=1 the system immediately undergoes a large revival event towards the critical threshold \gamma_{c}=1/2 . Inset shows the final events for the finite sequences. Sets I_{n} for which K_{n} satisfies the feasibility conditions ( 39 ) but undergoes “accidental” extinction or revival events marked in blue. The final event beyond which the solution finally converges to an equilibrium marked in red. b. The symmetric case, \xi=1 . All sample solutions converge to an equilibrium with a finite extinction sequence of length N<600 . Lower inset shows the energy L(t) over time along the lower black sample solution across approximately 30 events n marked in blue. While these events include both extinction and revival, the energy remains strictly increasing in time throughout, see ( 43 ). Upper inset shows the change in the overlap q(\gamma_{n})\in[2/3,1] over time determined by ( 115 ). The overlap is not defined for values \gamma_{n}<1/2 below the critical diversity threshold. More generally, we can associate a stable equilibrium \bm{p}_{N} to any \tilde{S}_{N} for which the active community matrix K_{N} satisfies ( 39 ) and a corresponding basin of attraction, i.e. the set of all initial points \bm{y}(t_{0})\in S convergent to the equilibrium. We note that convergence ( 40 ) for all initial points mapped to \tilde{S}_{N} by the dynamics is not guaranteed due to the possibility of “accidental” extinction or revival events in the approach to the attractor, see Figure 6 . This may be the case even if the solution arrives on the subset very close to the equilibrium, and when the Euclidean distance to the equilibrium is strictly decreasing in time. The rate at which non-leading directions decay ( 38 ) is determined by the gap \sigma^{N}_{1}-\sigma^{N}_{2} . Due to the randomness of the active community matrix, this gap is typically of order d^{-1/2} (see Nguyen and O’Rourke 2014 ). As a consequence, for large d , convergence to the equilibrium is increasingly slow. Lastly, we consider further restriction of the basin of attraction due to the possibility of a basin boundary W^{N}_{2}\cap\tilde{S}_{N}\neq\emptyset , in which case the solution may converge to either \bm{p}_{N} or to -\bm{p}_{N} . The latter being unfeasible and leading to a revival or extinction event. In contrast to the typical overlap ( 28 ) between points in \tilde{S}_{N} , the typical overlap between the eigenvectors of the random matrix K_{N} cannot become arbitrarily large 3 3 3 This is immediate for normal matrices due to orthogonality, but not when considering eigenvectors of neighboring eigenvalues of non-normal random matrices. (see Benaych-Georges and Zeitouni 2018 for the case \xi=0 ). Therefore, in the regime of large overlaps q(\gamma_{n}) we will not find intersections of the eligible phase space \tilde{S}_{N} with both W^{N}_{1} and W^{N}_{2} . Numerically, we find equilibria on average only in the regime of large overlaps. This is in line with results for random Lotka-Volterra systems Serván et al. 2018 , where the expected diversity \gamma_{N} at an equilibrium is derived to be \gamma_{c} under diagonal stability assumptions (see also Section VII ). It is remarkable that by adjusting the active species the system self-organizes into a community matrix K_{N} with a leading eigenvector not only non-negative, but strongly localized to the subset \tilde{S}_{N} occupying only a tiny Gardner volume ( 23 ) of the phase space. This also implies that while equilibria may have large basins of attraction, they are sensitive to perturbations. A solution for the initial value \bm{y}_{0}=\bm{p}_{N}+\bm{u}_{0} will return directly to the equilibrium for sufficiently small perturbations \bm{u}_{0} but undergoes revival events when d^{1/2}\lVert\bm{u}_{0}\rVert exceeds the typical distance ( 29 ). As \gamma_{n}\to\gamma_{c} this distance tends to zero. Positive correlation: When the solution converges to an equilibrium, the dynamics involve an optimization (selection) process towards the largest available growth rates \sigma^{n}_{1} . For an interval (t_{n},t_{n+1}) of sufficient length, a solution will eventually decrease distance to the leading subspace ( 36 ) for the active species I_{n} . In the limit of strong positive correlation \xi\to 1^{-} the community matrices K_{n} are symmetric with real eigenvalues \sigma^{n}_{i} and orthogonal eigenvectors \bm{v}^{n}_{i} . For a symmetric random matrix we can assume that the leading eigenspace is always one-dimensional and write W^{n}_{1}=\Span(\bm{v}^{n}_{1}) and W^{n}_{2}=\Span(\bm{v}^{n}_{i}:i>1) for the leading and non-leading subspaces ( 36 ). The optimization process in this case is made explicit by the scaled quadratic form L(\bm{y}) defined in equation ( 13 ). Extreme points of the quadratic form for each K_{n} are given by the projected eigenvectors d^{1/2}\bm{v}^{n}_{i}/\norm{\bm{v}^n_i} . Along a solution \bm{y}(t) for times (t_{n},t_{n+1}) we have \displaystyle\frac{d}{dt}L(\bm{y}(t)) \displaystyle=\nabla L(\bm{y})^{\top}(K_{n}\bm{y}-L(\bm{y})\bm{y}) (41) \displaystyle=2d^{-1}(\norm{K_n \bm{y}}^{2}-L(\bm{y})^{2})>0, (42) by the Cauchy-Schwarz inequality, assuming that \bm{y}(t_{n}) is not already contained in W^{n}_{1} or W^{n}_{2} . Because the quadratic form is also continuous in time across both revival and extinction events we have monotonicity L(\bm{y}(t))L(\bm{y}(t_{n+1}))\}, (44) For increasing correlation strength \xi\in[0,1] , the angular dynamics become more gradientlike ( 43 ) as opposing pairs of entries (k_{ij},k_{ji}) of the community matrix become more symmetric. We conclude that in the regime of strong positive correlation, equilibrium dynamics dominate and the system consistently self-organizes towards community matrices with non-negative leading eigenvectors strongly localized. Our numerical results in Figure 4 indicate that equilibrium dynamics dominate in the entire range \xi\in[0,1] . The ramifications of this on the radial dynamics, determining the overall stability of the system, are explored in Section V . IV.3 Infinite event sequence We consider a solution \bm{y}(t) for which the feasibility conditions ( 39 ) are never satisfied for the time-ordered sequence of matrices K_{n} . This means that the leading subspace W^{n}_{1} always contains at least one real eigenspace corresponding to a conjugate pair of eigenvalues. The argument given in Section IV.2 then shows that the solution leaves each subset \tilde{S}_{n} in finite time and the event sequence ( 16 ) is infinite. The long-time dynamics in this case are richer than in the finite sequence case and we no longer find a self-organizing process restructuring the community matrix in the way of the conditions ( 39 ). In particular, we cannot use the simple asymptotics ( 38 ) since the solution need not decrease distance to W^{n}_{1} on the interval (t_{n},t_{n+1}) . Since there are only finitely many possible sets ( 19 ), there must exist an index N such that for t\geq t_{N} the solution moves between sets \tilde{S}_{N+j},\quad j=0,\ldots,m-1, (45) each visited infinitely often. \bm{y}(t) evolves towards a subset of the union of the sets ( 45 ). The number of events by which the solution may arrive on a given subset scales with the dimension d . We consider the case where the subsets ( 45 ) form a periodic sequence with minimal period p\in\mathbb{N} such that \tilde{S}_{N+j+p}=\tilde{S}_{N+j},\quad j=0,\ldots,m-1. (46) In the simplest case, it holds that p=m and the solution arrives on a subsets in the sequence always from the same subset by the same event, either extinction ( 20 ) or revival ( 21 ). Our numerical experiments indicate that traversing a periodic sequence of subsets ( 46 ) results in \bm{y}(t) converging towards a solution \bm{y}_{p}(t) periodic in time, i.e. \bm{y}_{p}(t+T)=\bm{y}_{p}(t) for some minimal period T>0 . We find that the diversity \gamma_{N+j} along these stable periodic orbits is near the critical value 1/2 . As for the equilibria, this implies that the subsets \tilde{S}_{N+j} have small Gardner volumes with the periodic orbit strongly localized and sensitive to perturbations, see equation ( 29 ). We note that because solutions of the piecewise defined system are unique only in forward time, a solution periodic in time can be attained in finite time. Negative correlation: For a random community matrix K , we expect the number of eigenvalues on the real axis to decrease with the correlation strength \xi (cp. Byun et al. 2023 ) in the case of \xi<0 . This makes it less likely for the system to attain an active community matrix K_{n} that satisfies the feasibility conditions ( 39 ). Complementary to the case of strong positive correlation, we can then expect infinite event sequences to dominate in the regime of strong negative correlation. In the limit \xi\to-1^{+} , the eigenvalues of any active community matrix are purely imaginary and all event sequences must be infinite. Numerically we find in this regime a third type of long-time behavior, in which solutions converge to neither an equilbrium nor a period orbit. Instead they explore large portions of the possible species compositions near the critical diversity \gamma_{c} . We expect this is the result of \bm{y}(t) being the projection of a quasi periodic solution on each interval (t_{n},t_{n+1}) . It is interesting to compare at this point the infinite event sequences for strong negative correlations with a variant of the minimal model ( 5 ), where the possibility of revival events is removed. That is, we consider the angular dynamics \frac{dy_{i}}{dt}=\begin{cases}\bm{k}^{\top}_{i}\bm{y}-L(\bm{y})y_{i}\quad&\mbox{for }i\in I_{\bm{y}}\\ 0\quad&\mbox{for }i\in I^{c}_{\bm{y}}.\end{cases} (47) In this system, event sequences consist of only extinction events, are finite, and there is no restriction to the phase space S_{n} by the intersection of halfspaces ( 19 ). The feasibility conditions ( 39 ) simplify to having a non-negative real leading eigenvector. The diversity is strictly decreasing in time and the community matrix is pruned as more and more species are driven extinct in order to find such an eigenvector. As a consequence, when the feasibility conditions are never satisfied, as is the case for \xi=-1 , the system must collapse entirely. Numerically we find that the system ( 47 ) collapses below the critical threshold ( 30 ) for all values of \xi , see Figure 4 . This collapse is difficult to fully resolve numerically for \xi=-1 , because the oscillations become increasingly slow as the system approaches total extinction. With revival events, the system has a mechanism for re-diversification when too many species are inactive. We remark that the event sequence may be infinite even when the feasibility conditions are satisfied at some events n in the sequence due to incidental extinctions described in the previous section. A solution may also converge to an equilibrium in the exceptional case, where this equilibrium is contained in the boundary of a subset. Figure 7: Comparison of the spectra of the initial community matrix K_{0}=K and the asymptotic community matrix K_{N} for d=1000 for \xi=-0.65,0,0.65 , each for a single realization of the dynamics. For the initial community matrix all eigenvalues lie within the blue ellipsoid D_{0} in the complex plane, up to small errors. After the final extinction event N the spectrum of the active community matrix has contracted to the ellipsoid D_{N} of width of approximately 2^{-1/2}(1+\xi) along the major axis, up to small errors. The contraction of the spectrum in the horizontal direction affecting the leading growth rate \sigma^{N}_{1} is largest for strong positive correlation \xi>0 . Dynamics of the leading growth rates \sigma^{n}_{1} depicted in Figure 8 a. V Radial dynamics: The stability problem We now consider the dynamics of the growth rates \rho determined by equation ( 14 ) as driven by the solution \bm{y}(t) of the angular dynamics. A solution \bm{y}(t) of ( 34 ) defines the simple non-autonomous differential equation on \mathbb{R} \frac{d\rho}{dt}=L(t)-\frac{\beta}{\alpha}, (48) where L(t)=L(\bm{y}(t)) . Integration directly yields the solution \rho(t)=\rho_{0}+\int^{t}_{0}L(s)\,ds-\frac{\beta}{\alpha}t. (49) Using the growth rate \rho we determine whether the total norm \lVert\bm{x}\rVert of the system ( 5 ) becomes exponentially small (complete extinction) or large (unbounded growth). While for angular dynamics only the ordering ( 33 ) is important, the dynamics of the total norm are decided by whether the growth can overcome the death term \beta/\alpha determined by the intrinsic decay rate \beta and the parameter scaling the standard deviation, \alpha . To consider the stability of the origin for the full system ( 5 ), we define the Lyapunov exponent for the initial value \bm{x}_{0} as \lambda(\bm{x}_{0})=\limsup_{t\to\infty}t^{-1}\,\rho(t). (50) We say that the origin is stable for \bm{x}_{0} , if \lambda(\bm{x}_{0})<0 . Note that the Lyapunov exponent is independent of the initial total population \rho_{0} . V.1 Finite event sequence We begin by considering angular dynamics that limit to an equilibrium point \bm{p}_{N}\in\tilde{S}_{N} with a finite extinction sequence. In this case, it suffices to consider only the times t>t_{N} after the final extinction event. Using that \bm{p}_{N} is a projected eigenvector for the real leading eigenvalue \sigma^{N}_{1} we find \displaystyle\lambda(\bm{x}_{0}) \displaystyle=\lim_{t\to\infty}t^{-1}\int^{t}_{t_{N}}L(s)\,ds-\frac{\beta}{\alpha} (51) \displaystyle=L(\bm{p}_{N})-\frac{\beta}{\alpha} (52) \displaystyle=\sigma^{N}_{1}-\frac{\beta}{\alpha}. (53) On the final subset \tilde{S}_{N} the system is linear and the Lyapunov exponent is simply the real leading eigenvalue of the shifted community matrix K_{N}-\beta/\alpha . The origin is stable, if \sigma^{N}_{1}<\beta/\alpha . In contrast to a smooth linear system however, the Lyapunov exponent for the minimally nonlinear model is distinctly initial condition dependent. For a given realization of the community matrix, the spectral properties of the final active community matrix K_{N} depend on which of the (possibly many) feasible equilibria \bm{p}_{N} the angular dynamics converge to. In the model context, stability of the origin implies that the system is not able to self-sustain and dies out completely. We leverage the randomness of the components k_{ij} to compare the spectra of the time-ordered sequence of community matrices K_{n} for n=0,1,...,N . The stability of the origin, as measured on the traversed subsets \tilde{S}_{n} by the May-criterion May 1972 \sigma^{n}_{1}<\frac{\beta}{\alpha}, (54) changes with the discrete time events t_{n} . The community matrix K defined in Section II is a random matrix with N(0,d^{-1}) components with the correlation strength \xi interpolating between the symmetric and skew-symmetric cases. Its spectral distribution for \xi\in(-1,1) obeys the elliptical law without outliers Nguyen and O’Rourke 2015 . By construction, the same holds for non-zero entries of the active community matrix K_{n} in equation ( 31 ). In the limit d\to\infty the distribution of the eigenvalues ( 32 ) of the active community matrix, aside from the degenerate zero eigenvalue, is uniform in the subset D_{n}(\xi)=\Big\{z\in\mathbb{C}:\frac{\Re z^{2}}{(1+\xi)^{2}}+\frac{\Im z^{2}}{(1-\xi)^{2}}\leq\gamma_{n}\Big\}, (55) of the complex plane Sommers et al. 1988 , see Figure 7 . The ellipse D_{n}(\xi) changes over time with the diversity \gamma_{n} . In particular, the leading growth rate \sigma^{n}_{1} closely tracks the semi-axis (1+\xi)\gamma_{n}^{1/2} . Since the critical threshold \gamma_{c} ( 30 ) is independent of the correlation strength \xi , for large d , we get the informal estimate for the leading growth rate 2^{-1/2}(1+\xi)\leq\sigma^{n}_{1}\leq 1+\xi, (56) for all n=0,1,\ldots,N up to small errors. Here, the upper bound corresponds to \gamma_{n}=1 where all species are active, and the lower bound corresponds to the critical threshold \gamma_{n}=1/2 where the maximal number of species are inactive. For an example, see Figure 7 . The Lyapunov exponent is thus determined by the sequence of classical May-like stability problems ( 54 ): When a sufficient number of species are inactive, the spectrum contracts and the stability of the origin is increased on the interval (t_{n},t_{n+1}) . Similarly, if a sufficient number of species are revived, the spectrum expands and the stability of the origin decreases. 5 5 5 A single extinction (resp. survival) event is certain to contract (resp. expand) the spectrum only for symmetric matrices \xi=1 , where Cauchy interlacing inequalities hold. For a community matrix K without negative entries (e.g. the adjacency matrix of a graph, Jain and Krishna 1998 ; Horstmeyer et al. 2020 ), the system ( 5 ) does not undergo extinction events because the non-negative cone C is forward invariant. If we assume that all species are active initially, K_{0}=K , the origin is unstable for \beta/\alpha<1+\xi in this case. By comparison, for our case of centered normal components extinction events can stabilize the origin for the entire range 2^{-1/2}(1+\xi)\leq\beta/\alpha\leq 1+\xi, (57) see also Figure 9 . This stability gap was studied in Stokić et al. 2008 as an inflated edge of chaos in terms of the connectance c of a community matrix with random graph structure in the case \xi=0 . This is equivalent to a scaling of the standard deviation \alpha=c^{1/2} in ( 57 ). In the case of positive correlation \xi>0 , the elliptic set is deformed in the horizontal direction. According to equation ( 57 ), the leading growth rate \sigma^{n}_{1} varies more strongly across events for reciprocal interactions, i.e. the stability gap is largest for reciprocal interactions and smallest for non-reciprocal interactions. Assuming the angular dynamics consistently evolve towards an equilibrium near \gamma_{c} , this does not effect the hierarchy of stability criteria established in Allesina and Tang 2012 : namely the origin is most likely to be stable for non-reciprocal interactions and least likely to be stable for reciprocal interactions. For an example see Figures 7 and 8 . The limit of symmetric matrices \xi\to 1^{-} , yields the interval D_{n}(1)=[-2\gamma_{n}^{1/2},2\gamma^{1/2}_{n}], (58) on the real line with spectral distribution obeying the semi-circular law (see e.g. Benaych-Georges and Nadakuditi 2011 ). Figure 8: Comparison of the leading growth rates in the spectra of the community matrix over time for K_{0}=K for d=1000 for \xi=-0.65,0,0.65 , each for a single realization of the dynamics. The blue and black horizontal lines correspond to the upper and lower bound on the stability gap ( 56 ), respectively. a. Finite event sequences with leading growth rate for the final community matrix K_{N} as the black dot. The full spectrum for K_{0} and K_{N} depicted in Figure 7 . For positive reciprocity \xi>0 , the initial growth rate is largest but collapses the most under the radial dynamics that determine species composition. For negative reciprocity \xi<0 the initial growth rate is smallest but collapses least. b. Infinite event sequences limiting to a periodic sequence of subsets \tilde{S}_{n} near \gamma_{c} , see equation ( 46 ), with periodic leading growth rate. V.2 Infinite event sequence We consider angular dynamics with an infinite event sequence for which the solutions limits-to or attains in finite time a periodic solution \bm{y}_{p}(t)=\bm{y}_{p}(t+T) with minimal period T , contained in the union of subsets ( 45 ). The Lyapunov exponent then simplifies to \displaystyle\lambda(\bm{x}_{0}) \displaystyle=\frac{1}{T}\int^{T}_{0}L(s)\,ds-\frac{\beta}{\alpha} (59) \displaystyle=\frac{1}{T}\sum^{m-1}_{j=0}\int_{t_{N+j}}^{t_{N+j+1}}\bm{y}_{p}(s)^{\top}K_{N+j}\bm{y}_{p}(s)\,ds-\frac{\beta}{\alpha}. (60) Here, t_{N+j+1}-t_{N+j} is the time spent in the subset S_{N+j} of the phase space in the sequence. Rather than the May-criterion ( 54 ), stability of the origin is now determined by the time the solution spends in the set \{\bm{y}\in\tilde{S}_{N+j}:\bm{y}^{\top}K_{N+j}\bm{y}<\beta/\alpha\}. (61) on which the total population is strictly decreasing \frac{d\rho}{dt}<0 . In particular, for infinite event sequences the origin may now be stable even when the active community matrix K_{N+j} has positive leading growth rate \sigma^{N+j}_{1}-\beta/\alpha>0 for all j=0,\ldots,m-1 in the periodic sequence of subsets ( 46 ). Numerically we find that, on average, the origin indeed remains stable for infinite sequences for values \beta/\alpha<2^{-1/2}(1+\xi) , see the bold red line in Figure 9 . These results suggest that infinite event sequences have a stronger stabilizing effect on the origin than finite event sequences. Figure 9: Comparison of the Lyapunov exponent for finite event sequences (black line) and infinite event sequences (red lines) for \alpha=1 and \xi=0 . Each red line corresponds to one realization of the community matrix K and \bm{y}_{0} for which the event sequence is infinite. For the same realization there are no random fluctuations as \beta is varied because the angular dynamics are independent from it. Decreasing \beta>0 corresponds to shifting the spectrum of the community matrix to the right. This is sketched in the top left for K-\beta . The critical value of the decay rate \beta beyond which the the origin becomes unstable \lambda(\bm{x}_{0})=0 for finite event sequences is bounded by the value 2^{-1/2} . The critical value of the decay rate \beta\approx 0.62<2^{-1/2} for infinite sequences has been averaged over 60 realizations for d=100 . Lower inset shows example of a periodic solution \rho(t) for positive (unbounded growth) and negative (complete extinction) Lyapunov exponent. Figure 10: a. Comparison of the spectra of the linearization at the origin at t=0 given by K_{0}-\beta (in faint blue) and at t>t_{N} given by K_{N}-\beta (faint grey), with the linearization at the new equilibrium point ( 68 ) (solid black) for a single realization of K . The leading real eigenvalue \sigma^{N}_{1} is displaced to \sigma^{N}_{1}(1-\beta/\sigma^{N}_{1}) inside the bulk spectrum. Parameter values are d=1000,\alpha=1 and \beta=0.3 . b. The intrinsic decay rate \beta>0 is varied in the interval \beta\in[0.3,1.1] , shifting the spectra. At \beta=1 the leading growth rate \sigma^{N}_{1} for the full community matrix K crosses through zero. At \beta=2^{-1/2} the origin becomes unstable even for the maximally reduced community matrix K_{N} . Solutions that were unbounded for constant \alpha now converge to the new stable equilibrium \bm{x}_{N} . VI Nonlinear extension We briefly consider a very simple nonlinear extension of the model ( 5 ). Our goal is to reinterpret the case that the origin is unstable for the radial dynamics discussed in the previous section. In this case, the solutions \bm{x}(t) of ( 5 ) are unbounded. So far, we have interpreted this case as one in which the interaction structure allows the ecosystem to self-sustain even without an external influx of species. We now make the dynamics dissipative such that previously unbounded solutions evolve instead towards a new attractor that is different from the origin. The least complex way to achieve this is to extend the factor \alpha>0 , scaling the standard deviation, to a smooth function \alpha(\bm{x}) on the non-negative cone C . We will consider here the case \alpha(\bm{x})=1-\frac{\norm{\bm{x}}}{A}, (62) for the carrying-capacity-like number A>0 . We view this function \alpha as a type of metabolic scaling. It decreases the interaction strengths between species until the intrinsic decay rates \beta>0 dominate. We consider the extended model on the phase space C^{\prime}=\{\bm{x}\in C:\norm{\bm{x}}0 , must now limit to a different attractor in C^{\prime} . We consider this attractor in the case where \bm{y}(t) limits to an equilibrium point ( 40 ) contained in the one-dimensional subspace W^{N}_{1} . Restricted to this subspace ( 64 ) has the equilibrium point \rho_{N}=\log A\left(1-\frac{\beta}{\sigma^{N}_{1}}\right). (65) In effect, we have replaced the attractor “at infinity” for unbounded solutions of the model ( 5 ) with the point (\bm{p}_{N},\rho_{N}) or, using the inverse ( 15 ) the point \bm{x}_{N}=A\left(1-\frac{\beta}{\sigma^{N}_{1}}\right)\frac{\bm{v}^{N}_{1}}{\norm{\bm{v}^N_1}}, (66) in the extension. We see directly that \rho_{N} is stable for the radial dynamics if the condition \sigma^{N}_{1}>\beta, (67) is satisfied, complementary to the stability condition \sigma^{N}_{1}<\beta/\alpha from the previous section. At the threshold \sigma^{N}_{1}=\beta , the origin becomes unstable and the new equilibrium ( 66 ) is created (a type of transcritical bifurcation of the origin). Since the radial dynamics are unchanged, from our analysis of the system ( 12 ) we know that the point \bm{x}_{N} is stable with respect to perturbations in the angular directions. We compare the spectrum of K_{N}-\beta , the linearization at the origin for t>t_{N} , with the linearization at the new equilibrium point using the elliptical law ( 55 ). The linearization at \bm{y}_{N} of the dynamics ( 34 ) on \tilde{S}_{N} yields the matrix (K_{N}-\sigma^{N}_{1}) . Together with the linearization of ( 64 ), we find that the spectrum is then given by \{\sigma^{N}_{1}(1-\beta/\sigma^{N}_{1}),\,\lambda^{N}_{2}-\sigma^{N}_{1},\ldots,\lambda^{N}_{|I_{N}|}-\sigma^{N}_{1},0,\ldots,0\}, (68) where the first eigenvalue corresponds to the radial direction, and all other eigenvalues correspond to the angular directions. Beyond the transcritical bifurcation, the spectrum of the linearization at the new equilibrium points is thus the spectrum of K_{N} shifted to lie tangent to the imaginary axis, but with the leading eigenvalue \sigma^{N}_{1} shifted into the bulk, see the red arrow in Figure 10 . Because the stability conditions for the origin and ( 67 ) are complementary, the stability hierarchy for the new equilibrium is reversed: decreasing the decay term \beta stabilizes \bm{x}_{N} first for strongly reciprocal and last for strongly non-reciprocal interactions. The more unstable the origin becomes, the further the eigenvalue \sigma^{N}_{1}(1-\beta/\sigma^{N}_{1}) for the new equilibrium is pushed into the bulk spectrum, see Figure 10 . From equation ( 65 ), the new equilibrium is then located at increasing values of the total population \rho_{N} . Similarly, in the case where the angular dynamics has an attracting periodic solution \bm{y}_{p}(t) and the origin is unstable, the extension has a periodic solution \bm{x}_{p}(t) . We expect that, as the intrinsic decay term \beta is decreased, the orbit will be located inside an interval of increasing total population [\rho_{1},\rho_{2}] . VII Discussion and Outlook It is worth pointing out a few connections between the minimally nonlinear model ( 5 ) and other models in ecology and neural networks theory. The first is that the angular dynamics ( 34 ) can be viewed as a variant of the continuous time dynamics of the Jain-Krishna model for adaptive networks Jain and Krishna 2001 , posed on a sphere rather than the unit simplex (compare Section III ). Classically, the Jain-Krishna dynamics assume the community matrix K to be nonnegative Jain and Krishna 1998 , such that the nonnegative cone C is forward invariant and almost all solutions converge to an equilibrium on a subset spanned by the Frobenius-Perron eigenvectors Kuehn 2019 ; Horstmeyer et al. 2020 . For community matrices including also negative entries studied here, the dynamics are richer and limit sets include equilibria and periodic orbits. The feasibility conditions ( 39 ) in this context can be viewed as an extension of the Frobenius-Perron condition. A distinction from the Jain-Krishna setting is that we also consider the dynamics of the total population. Considering only the species composition reduces the dimension of the problem and neatly compactifies the phase-space. However, this approach masks whether a stable attractor for the species composition in fact corresponds to a total population evolving towards complete extinction, see e.g. Rao et al. 2021 . This problem also arises in game-theoretic models, where assuming the number of players remains constant may similarly skew the perspective on sustainability and risks, see e.g. Hauert et al. 2006 . In Section VI we briefly discuss a minimal extension of the model to interpret the case where the population self-sustains and transitions to a new attractor. Another connection is that, for symmetric community matrices and without sign constraints on the components, equation ( 34 ) describing the angular dynamics between events is known as Oja’s learning rule from the theory of neural networks Oja 1982 . Oja’s learning rule is also used as a principal component analyzer, since it will converge to the leading eigenvector of the matrix generating the dynamics for almost all initial conditions ( Oja 1982 , Theorem 1) . In our case, the dynamics instead select for a non-negative leading eigenvector of a submatrix localized to a Gardner volume that depends on the initial condition. Rather than equation ( 41 ), a more elegant way of writing Oja’s equation is as a gradient flow on the unit sphere, known as the Rayleigh-quotient gradient flow Mahony and Absil 2003 ; Helmke and Moore 2012 . The central parameters to our analysis are the reciprocity \xi and the diversity \gamma_{n} . The reciprocity determines the long-time behavior of solutions favored by the system, while the diversity determines the Gardner volumes for the eligible species compositions. The volumes are defined by a time-varying number of linear inequality constraints and decrease with diversity. Computation of the volumes, as pioneered in Gardner 1988 , combines classical results from geometric probability Wendel 1962 ; Cover 1965 ; Cover and Efron 1967 ; Cover 1966 with methods from the theory of spin glasses Mézard et al. 1987 . Linear inequalities appear also in the study of generalised Lotka-Volterra equations and our results here join a growing list of papers similarly combining these fields in ecology; see e.g. Serván et al. 2018 ; Grilli et al. 2017 ; Cenci and Saavedra 2018 . We note that the critical threshold \gamma_{c}=1/2 in the minimal model and its independence from the correlation strength is qualitatively similar to results derived in Serván et al. 2018 , and that the diversity parameter was previously linked to the stability properties using a similar replica symmetric ansatz in Ros et al. 2023 . We could have derived the critical threshold more directly by adapting a counting theorem due to Cover and Efron ( Cover 1966 , Proposition 1) to our model context. However, we used the full quenched expectation ( 25 ) here, because we were interested in explicit changes to the fractional volume and overlap between solutions across events. By choosing the phase-space for the angular dynamics as a sphere of radius d^{1/2} above, the problem of determining eligible species compositions for a given diversity \gamma_{n} is transposed into a storage problem in a spherical perceptron (see e.g. Engel 2001 ). In this context, the random vectors \bm{k}_{i} defining the halfspaces H_{i} are a collection of |I^{c}_{n}| “patterns” to be stored in the neural network using weights drawn from the subset \tilde{S}_{n} . Rather than \gamma_{n} , the central parameter in the storage problem is called the capacity and given by the ratio of patterns to the dimension |I_{n}| . In this analogy, in the minimal model, the number of patterns and thus the difficulty of the storage problem changes over time. The capacity in this context represents the ratio of extinct to extant species. In the present work, to make the mapping to the classical Gardner problem as explicit as possible, we consider the minimally nonlinear model with a fully connected community matrix and without external flux or migration terms (cp. Stokić et al. 2008 ). With flux terms, the Gardner volumes may become fragmented and non-convex, thereby breaking the assumed replica symmetry, see e.g. Franz and Parisi 2016 . We believe that, more broadly, the established link to the theory of learning in neural networks may open new interesting avenues of future research on complex ecosystems. Acknowledgements. This research was supported by the European Union’s Horizon 2020 research and innovation programme under the Marie Sklodowska-Curie EvoGamesPlus grant number 955708. Appendix A Gardner volume computation We derive expressions for the volume V(\gamma_{n}) defined in equation ( 23 ). Our arguments follow those in Amit et al. 1989 , adapted to the particular setting of our model. We consider any subset I_{n}\subset\{1,\ldots,d\} of fixed cardinality |I_{n}|=N and the diversity \gamma=\frac{N}{d}. (69) The dimension of the problem can be reduced by considering only the subspace of active species. We redefine the open halfspaces in this setting as H_{\ell}=\{\bm{x}\in\mathbb{R}^{N}:\bm{h}_{\ell}^{\top}\bm{x}<0\} (70) for the set \{\bm{h}_{1},\ldots,\bm{h}_{d-N}\}\subset\mathbb{R}^{N} of restricted random vectors, where \bm{h}_{\ell}=\bm{k}_{i}\lvert_{I_{n}} denotes the sub-vector with non-zero components indexed by I_{n} . We then define the measure \differential\mu(\bm{x})=\prod_{j=1}^{N}\frac{\differential x_{j}}{B}\theta(x_{j})\delta(\norm{\bm{x}}^{2}-d) (71) where \theta(s) is the Heaviside function taking the value 1 for positive arguments s>0 and zero otherwise. We include the constant B=\left(\frac{\pi e}{2\gamma}\right)^{1/2}, (72) as a normalization factor to ensure d^{-1}\log\int\differential\mu(\bm{x})\to 0 for d\to\infty , keeping fixed the ratio \gamma . That is, B^{N} is the exponential part of the surface measure of the full positive section of the sphere of radius d^{1/2} . Then we can write the Gardner volume ( 23 ) as V(\gamma)=\int\differential\mu(\bm{x})\prod_{\ell=1}^{d-N}\theta(-\bm{h}^{\top}_{\ell}\bm{x}). (73) The product of the Heaviside-functions yields an indicator function for the intersection of halfspaces \bigcap^{d-N}_{\ell=1}H_{\ell} , while the measure restricts to the non-negative section of the sphere. To find the average using the Replica trick we first compute the expectation of the product \mathbb{E}(V(\gamma)^{m})=\int\prod^{m}_{\varrho=1}\differential\mu(\bm{x}^{\varrho})\;\mathbb{E}\left(\prod^{m}_{\varrho=1}\prod_{\ell=1}^{d-N}\theta(-\bm{h}^{\top}_{\ell}\bm{x}^{\varrho})\right), (74) for m\in\mathbb{N} . The index \varrho labels the replicas. We take the expectation with respect to the independent N(0,d^{-1}) random variables h_{\ell j} given in equation ( 24 ). We apply the Fourier representation of the Heaviside function \theta(s)=\int_{[0,\infty)}\differential{\lambda}\delta(s-\lambda)=\int_{[0,\infty)}\differential{\lambda}\int\frac{\differential{y}}{2\pi}e^{iy(s-\lambda)}, (75) for each replica \varrho . We adopt here the notation that, unless further specified, integral bounds are always over the entire space implied by the integration measure. Then \mathbb{E}\left(\prod_{\varrho,\ell}\theta(-\bm{h}^{\top}_{\ell}\bm{x}^{\varrho})\right)=\int_{[0,\infty)^{m(d-N)}}\prod_{\varrho,\ell}\differential{\lambda^\varrho_\ell}\int\prod_{\varrho,\ell}\frac{\differential{y^\varrho_\ell}}{2\pi}\mathbb{E}\left(\prod_{\varrho,\ell}e^{i\lambda^{\varrho}_{\ell}y^{\varrho}_{\ell}+iy^{\varrho}_{\ell}\bm{h}^{\top}_{\ell}\bm{x}^{\varrho}}\right), (76) and taking the expectation we find \displaystyle\mathbb{E}\left(\prod_{\varrho,\ell}e^{i\lambda^{\varrho}_{\ell}y^{\varrho}_{\ell}+iy^{\varrho}_{\ell}\bm{h}^{\top}_{\ell}\bm{x}^{\varrho}}\right) \displaystyle=\prod_{\ell,j}e^{i\sum_{\varrho}\lambda^{\varrho}_{\ell}y^{\varrho}_{\ell}}\mathbb{E}\left(e^{ih_{\ell j}\sum_{\varrho}y^{\varrho}_{\ell}x^{\varrho}_{j}}\right) (77) \displaystyle=\prod_{\ell,j}e^{i\sum_{\varrho}\lambda^{\varrho}_{\ell}y^{\varrho}_{\ell}-\frac{1}{2d}(\sum_{\varrho}y^{\varrho}_{\ell}x^{\varrho}_{j})^{2}} (78) \displaystyle=\prod_{\ell}e^{i\sum_{\varrho}\lambda^{\varrho}_{\ell}y^{\varrho}_{\ell}-\frac{1}{2}\sum_{\varrho}(y^{\varrho}_{\ell})^{2}-\sum_{\varrho<\sigma}y^{\varrho}_{\ell}y^{\sigma}_{\ell}\left(\frac{1}{d}\sum_{j=1}^{N}x^{\varrho}_{j}x^{\sigma}_{j}\right)}, (79) where we have used that \norm{\bm{x}^\varrho}^{2}=d in the second term of the exponential. We can now factor the integrals with respect to the \ell -index as \mathbb{E}\left(\prod_{\varrho,\ell}\theta(-\bm{h}^{\top}_{\ell}\bm{x}^{\varrho})\right)=\left(\int_{[0,\infty)^{m}}\prod_{\varrho}\differential{\lambda^\varrho}\int\prod_{\varrho}\frac{\differential{y^\varrho}}{2\pi}e^{i\sum_{\varrho}\lambda^{\varrho}y^{\varrho}-\frac{1}{2}\sum_{\varrho}(y^{\varrho})^{2}-\sum_{\varrho<\sigma}y^{\varrho}y^{\sigma}\left(\frac{1}{d}\sum_{j=1}^{N}x^{\varrho}_{j}x^{\sigma}_{j}\right)}\right)^{d-N}. (80) Crucially, we then introduce the overlap between replicas as the normalized inner product q_{\varrho\sigma}=d^{-1}(\bm{x}^{\varrho})^{\top}\bm{x}^{\sigma}, (81) taking values between [-1,1] on the sphere of radius d^{1/2} in \mathbb{R}^{N} . Sampled with respect to the measure \differential\mu(\bm{x}) this is the overlap between two points contained in the intersection of the sphere with all halfspaces. To enforce the variable we insert additional \delta -functions as 1=\int\frac{\differential{q_{\varrho\sigma}}\differential{F_{\varrho\sigma}}}{2\pi/d}e^{iF_{\varrho\sigma}(dq_{\varrho\sigma}-(\bm{x}^{\varrho})^{\top}\bm{x}^{\sigma})}. (82) Taking stock, in total we now have \begin{split}\mathbb{E}(V(\gamma)^{m})=\int\prod_{\varrho<\sigma}\frac{\differential{q_{\varrho\sigma}}\differential{F_{\varrho\sigma}}}{2\pi/d}e^{id\sum_{\varrho<\sigma}q_{\varrho\sigma}F_{\varrho\sigma}}\int\prod_{\varrho}\differential{\mu(\bm{x}^\varrho)}e^{-i\sum_{\varrho<\sigma}F_{\varrho\sigma}(\bm{x}^{\varrho})^{\top}\bm{x}^{\sigma}}\\ \times\left(\int_{[0,\infty)^{m}}\prod_{\varrho}\differential{\lambda^\varrho}\int\prod_{\varrho}\frac{\differential{y^\varrho}}{2\pi}e^{i\sum_{\varrho}\lambda^{\varrho}y^{\varrho}-\frac{1}{2}\sum_{\varrho}(y^{\varrho})^{2}-\sum_{\varrho<\sigma}y^{\varrho}y^{\sigma}q_{\varrho\sigma}}\right)^{d-N}\end{split} (83) In this expression we have coupled the replicas for different indices. We now want to factor the remaining integrals over the indices j=1,\ldots,N , leaving only integrals over the replica indices to then take the limit m\to 0^{+} . To this end, we must now rewrite our integration measure \differential{\mu(\bm{x})} explicitly in terms of the components x^{\varrho}_{j} . Using the integral representation of the \delta -function in the integration measure we have \displaystyle\int\prod_{\varrho}\differential{\mu(\bm{x}^\varrho)}e^{-i\sum_{\varrho<\sigma}F_{\varrho\sigma}(\bm{x}^{\varrho})^{\top}\bm{x}^{\sigma}} \displaystyle=\int\prod_{\varrho}\frac{\differential{E_\varrho}}{2\pi}e^{-id\sum_{\varrho}E_{\varrho}}\int_{[0,\infty)^{mN}}\prod_{\varrho,j}\frac{\differential{x^\varrho_j}}{B}e^{i\sum_{\varrho}E_{\varrho}\norm{\bm{x}^\varrho}^{2}-i\sum_{\varrho<\sigma}F_{\varrho\sigma}(\bm{x}^{\varrho})^{\top}\bm{x}^{\sigma}}, (84) \displaystyle=\int\prod_{\varrho}\frac{\differential{E_\varrho}}{2\pi}e^{-id\sum_{\varrho}E_{\varrho}}\prod^{N}_{j=1}\int_{[0,\infty)^{m}}\prod_{\varrho}\frac{\differential{x^\varrho_j}}{B}e^{i\sum_{\varrho}E_{\varrho}(x_{j}^{\varrho})^{2}-i\sum_{\varrho<\sigma}F_{\varrho\sigma}x^{\varrho}_{j}x^{\sigma}_{j}} (85) \displaystyle=\int\prod_{\varrho}\frac{\differential{E_\varrho}}{2\pi}e^{-id\sum_{\varrho}E_{\varrho}}\left(\int_{[0,\infty)^{m}}\prod_{\varrho}\frac{\differential{x^\varrho}}{B}e^{i\sum_{\varrho}E_{\varrho}(x^{\varrho})^{2}-i\sum_{\varrho<\sigma}F_{\varrho\sigma}x^{\varrho}x^{\sigma}}\right)^{N} (86) where the non-negativity constraint indicator \prod_{j}\theta(x_{j}) was used to change the domain of integration to products of [0,\infty) . This leaves \displaystyle\mathbb{E}(V(\gamma)^{m}) \displaystyle=\int\prod_{\varrho<\sigma}\frac{\differential{q_{\varrho\sigma}}\differential{F_{\varrho\sigma}}}{2\pi/d}\int\prod_{\varrho}\frac{\differential{E_\varrho}}{2\pi} (87) \displaystyle\qquad\qquad\times e^{d\left(i\sum_{\varrho<\sigma}q_{\varrho\sigma}F_{\varrho\sigma}-i\sum_{\varrho}E_{\varrho}\right)} (88) \displaystyle\qquad\qquad\times\left(\int_{[0,\infty)^{m}}\prod_{\varrho}\frac{\differential{x^\varrho}}{B}e^{i\sum_{\varrho}E_{\varrho}(x^{\varrho})^{2}-i\sum_{\varrho<\sigma}F_{\varrho\sigma}x^{\varrho}x^{\sigma}}\right)^{N} (89) \displaystyle\qquad\qquad\times\left(\int_{[0,\infty)^{m}}\prod_{\varrho}\differential{\lambda^\varrho}\int\prod_{\varrho}\frac{\differential{y^\varrho}}{2\pi}e^{i\sum_{\varrho}\lambda^{\varrho}y^{\varrho}-\frac{1}{2}\sum_{\varrho}(y^{\varrho})^{2}-\sum_{\varrho<\sigma}y^{\varrho}y^{\sigma}q_{\varrho\sigma}}\right)^{d-N} (90) \displaystyle=\int\prod_{\varrho<\sigma}\frac{\differential{q_{\varrho\sigma}}\differential{F_{\varrho\sigma}}}{2\pi/d}\int\prod_{\varrho}\frac{\differential{E_\varrho}}{2\pi}\;e^{d\left(G_{0}(q_{\varrho\sigma},F_{\varrho\sigma},E_{\varrho})+\gamma G_{1}(F_{\varrho\sigma},E_{\varrho})+(1-\gamma)G_{2}(q_{\varrho\sigma})\right)}. (91) In the last line, we have introduced the following functions of the auxilliary parameters F_{\varrho\sigma},E_{\varrho} and the overlap q_{\varrho\sigma} \displaystyle G_{0}(q_{\varrho\sigma},F_{\varrho\sigma},E_{\varrho}) \displaystyle=i\sum_{\varrho<\sigma}q_{\varrho\sigma}F_{\varrho\sigma}-i\sum_{\varrho}E_{\varrho} (92) \displaystyle G_{1}(F_{\varrho\sigma},E_{\varrho}) \displaystyle=\log\int_{[0,\infty)^{m}}\prod_{\varrho}\frac{\differential{x^\varrho}}{B}e^{i\sum_{\varrho}E_{\varrho}(x^{\varrho})^{2}-i\sum_{\varrho<\sigma}F_{\varrho\sigma}x^{\varrho}x^{\sigma}} (93) \displaystyle G_{2}(q_{\varrho\sigma}) \displaystyle=\log\int_{[0,\infty)^{m}}\prod_{\varrho}\differential{\lambda^\varrho}\int\prod_{\varrho}\frac{\differential{y^\varrho}}{2\pi}e^{i\sum_{\varrho}\lambda^{\varrho}y^{\varrho}-\frac{1}{2}\sum_{\varrho}(y^{\varrho})^{2}-\sum_{\varrho<\sigma}y^{\varrho}y^{\sigma}q_{\varrho\sigma}}. (94) In the limit d\to\infty , keeping constant the ratio \gamma=N/d , the integral ( 91 ) is dominated by the contribution at the extrema of the functions ( 92 )-( 94 ) with respect to the parameters (q_{\varrho\sigma},F_{\varrho\sigma},E_{\varrho}) (a saddle-point approximation). Finding the extrema is greatly simplified by restricting to only those solutions that are replica-symmetric. We make the ansatz: \begin{cases}q_{\varrho\sigma}=q,\quad&\varrho\neq\sigma\\ F_{\varrho\sigma}=iF,\quad&\varrho\neq\sigma\\ E_{\varrho}=iE,\quad&\mbox{for all }\varrho.\end{cases} (95) Under these assumptions we have G_{0}(q,iF,iE)=m\left(\frac{1}{2}qF+E\right)+O(m^{2}). (96) We can also now factor the \varrho -integrals for the function ( 94 ) as \displaystyle G_{1}(iF,iE) \displaystyle=\log\int_{[0,\infty)^{m}}\prod_{\varrho}\frac{\differential{x^\varrho}}{B}e^{-\frac{1}{2}(2E+F)\sum_{\varrho}(x^{\varrho})^{2}+\frac{1}{2}F(\sum_{\varrho}x^{\varrho})^{2}} (97) \displaystyle=\log\int\frac{\differential{t}}{\sqrt{2\pi}}e^{-\frac{t^{2}}{2}}\prod_{\varrho=1}^{m}\int_{[0,\infty)}\frac{dx^{\varrho}}{B}e^{-\frac{1}{2}(2E+F)(x^{\varrho})^{2}+\sqrt{F}tx^{\varrho}} (98) \displaystyle=\log\int Dt\left(\int_{[0,\infty)}\frac{dx}{B}e^{-\frac{1}{2}(2E+F)x^{2}+\sqrt{F}tx}\right)^{m}. (99) Here, we have introduced the standard Gaussian measure Dt=dt/\sqrt{2\pi}\,e^{-t^{2}/2} and used the Hubbard-Stratonovich transform to replace the quadratic terms in x^{\varrho} in the first equation with linear ones. Completing the square and substitution yields the expression \displaystyle G_{1}(iF,iE)=-m\log B+\frac{m}{2}\log\frac{2\pi}{2E+F}+\log\int Dt\,e^{m\frac{F}{2(2E+F}t^{2}}\left(\int_{[\Omega(F,E)t,\infty)}Dz\right)^{m}. (100) Here, we have defined \Omega(F,E)=\left(\frac{F}{2E+F}\right)^{1/2}. (101) In the limit m\to 0^{+} this further simplifies at leading order to G_{1}(iF,iE)=\frac{m}{2}\left(-1+\log 4\gamma-\log(2E+F)+\frac{F}{2E+F}+2\int Dt\log H(\Omega(E,F)t)\right)+O(m^{2}) (102) where we have used the constant B to cancel terms corresponding to the surface measure of the sphere. We have also introduced the function H(\omega)=\int_{[\omega,\infty)}Dz. (103) The derivation of the function ( 94 ) under replica-symmetry is similar. Because the expression is identical in our setting to the classical result by Gardner Gardner 1988 , see also e.g. Shcherbina and Tirozzi 2003 , we simply cite it here as G_{2}(q)=m\int D\omega\log H(\Lambda(q)\omega),\quad\Lambda(q)=\left(\frac{q}{1-q}\right)^{1/2}. (104) We would now like to first solve the saddle point equations for (F,E) given by \displaystyle\partialderivative{F}(G_{0}(iE,iF,q)+\gamma G_{1}(iF,iE)) \displaystyle=0 (105) \displaystyle\partialderivative{E}(G_{0}(iE,iF,q)+\gamma G_{1}(iF,iE)) \displaystyle=0, (106) as functions of the overlap q . In contrast to the classical case without the non-negativity constraint, these are not simply algebraic equations due to the remaining integral over the function H(\Omega t) above. Using \int Dt\,t\,u(t)=\int Dt\,(d/dt\,u(t)) partial integration yields the useful relations \displaystyle\partialderivative{F}\int Dt\log H(\Omega t) \displaystyle=\frac{-E}{2(2E+F)(E+F)}\int Dt\left[\frac{\phi(\Omega t)}{H(\Omega t)}\right]^{2} (107) \displaystyle\partialderivative{E}\int Dt\log H(\Omega t) \displaystyle=\frac{F}{2(2E+F)(E+F)}\int Dt\left[\frac{\phi(\Omega t)}{H(\Omega t)}\right]^{2}, (108) where \phi denotes a standard Gaussian. The integrals can be computed for \Omega(E,F)\to+\infty where the fraction \phi/H has simple asymptotics: \frac{\phi(\Omega t)}{H(\Omega t)}=\begin{cases}O(e^{-(\Omega t)^{2}/2}),\quad&\mbox{for }t<0\\ \Omega t+(\Omega t)^{-1}+O((\Omega t)^{-3})\quad&\mbox{for }t>0\end{cases}\;,\quad\mbox{such that}\quad\int Dt\left[\frac{\phi(\Omega t)}{H(\Omega t)}\right]^{2}=1+\frac{\Omega^{2}}{2}+O(\Omega^{-1}), (109) by splitting the integral into positive and negative domains. Following Amit et al. 1989 we expect this limit corresponds to the regime of large overlaps q close to 1. Indeed, solving the saddle point equations the leading terms in 1-q in the power series are then given by \displaystyle F_{0}(q) \displaystyle=\frac{\gamma}{2}(1-q)^{-2}+\frac{3\gamma}{2}(1-q)^{-1}+O(1), (110) \displaystyle E_{0}(q) \displaystyle=-\frac{\gamma}{4}(1-q)^{-2}+\gamma(1-q)^{-1}+O(1). (111) Plugging these into equations ( 92 ) and ( 93 ) we find G_{0}(q)+\gamma G_{1}(q)=m\left(\frac{\gamma}{4}(1-q)^{-1}+\frac{3\gamma}{4}\log(1-q)+O(1)\right), (112) where we have again used the asymptotics ( 109 ) to simplify the integral as \log H(\Omega t)=\log\phi(\Omega t)-\log\Omega t+O((\Omega t)^{-2}) . Using this expression we can now write the saddle point approximation for the expectation in the range of large overlaps as (d\,m)^{-1}\log\mathbb{E}(V(\gamma)^{m})=\min_{q}\left[(1-\gamma)\int D\omega\log H(\Lambda(q)\omega)+\frac{\gamma}{4}(1-q)^{-1}+\frac{3\gamma}{4}\log(1-q)\right]+O(d^{-1}) (113) This expression is similar to the famous Gardner formula Gardner 1988 . To derive the saddle point equation determining the extremum we again use partial integration to write \partialderivative{q}\int D\omega\log H(\Lambda(q)\omega)=-\frac{1}{2}(1-q)^{-1}\int D\omega\left[\frac{\phi(\Lambda\omega)}{H(\Lambda\omega)}\right]^{2}, (114) such that q_{0} is the solution of the implicit equation \gamma-3\gamma(1-q_{0})=2(1-\gamma)(1-q_{0})\int D\omega\left[\frac{\phi(\Lambda(q_{0})\omega)}{H(\Lambda(q_{0})\omega)}\right]^{2}, (115) parametrized by \gamma . Note that in equation ( 113 ) we have not included any O(1) terms that shift the value of the quenched volume by a constant. These terms do not effect the extremal value of q determined by ( 115 ). Using the asymptotics ( 109 ) we take the limit q\to 1 in this equation to find the critical threshold given in equation ( 30 ) of the main text. The overlap q under replica symmetry is the typical overlap of two points \bm{x}_{1},\bm{x}_{2} sampled uniformly from the Gardner volume ( 73 ) q=\mathbb{E}(d^{-1}\bm{x}^{\top}_{1}\bm{x}_{2})=\mathbb{E}\left(\frac{\int\differential\mu(\bm{x}_{1})\int\differential\mu(\bm{x}_{2})\prod_{\ell=1}^{d-N}\theta(-\bm{h}^{\top}_{\ell}\bm{x}_{1})\prod_{\ell=1}^{d-N}\theta(-\bm{h}^{\top}_{\ell}\bm{x}_{2})\;(d^{-1}\bm{x}^{\top}_{1}\bm{x}_{2})}{\int\differential\mu(\bm{x}_{1})\int\differential\mu(\bm{x}_{2})\prod_{\ell=1}^{d-N}\theta(-\bm{h}^{\top}_{\ell}\bm{x}_{1})\prod_{\ell=1}^{d-N}\theta(-\bm{h}^{\top}_{\ell}\bm{x}_{2})}\right) (116) Computing the typical overlap directly is equivalent to computing the Gardner volume because it appears as the normalization factor (see e.g. ( Engel 2001 , Section 2) ). The validity of equations ( 113 )-( 115 ) is restricted to a neighborhood of q=1 due to our use of the asymptotics ( 109 ). Setting \gamma=1 , i.e. the case without constraints N=d , yields q_{0}=2/3 in equation ( 115 ). For comparison, we compute in this simple case equation ( 116 ) directly. Again using a saddle-point approximation yields \displaystyle q=\left(\frac{\int\differential\mu(\bm{x}_{1})\int\differential\mu(\bm{x}_{2})(d^{-1}\bm{x}^{\top}_{1}\bm{x}_{2})}{\int\differential\mu(\bm{x}_{1})\int\differential\mu(\bm{x}_{2})}\right)=\sum^{d}_{i=1}d^{-1}\left(\frac{\int\differential\mu(\bm{x}_{1})\;x^{1}_{i}}{\int\differential\mu(\bm{x}_{1})}\right)\left(\frac{\int\differential\mu(\bm{x}_{2})\;x^{2}_{i}}{\int\differential\mu(\bm{x}_{2})}\right)=\frac{2}{\pi}+O(d^{-1}). (117) Since the value 2/\pi\approx 0.637 is in good agreement with our result 2/3\approx 0.667 , we assume equation ( 115 ) is a good approximation for the entire range \gamma\in[0,1] throughout the main text.