On Complexity of Stability Analysis in Higher-order Ecological Networks through Tensor Decompositions
Abstract
Complex ecological networks are often characterized by intricate interactions that extend beyond pairwise relationships. Understanding the stability of higher-order ecological networks is salient for species coexistence, biodiversity, and community persistence. In this article, we present complexity analyses for determining the linear stability of higher-order ecological networks through tensor decompositions. We are interested in the higher-order generalized Lotka-Volterra model, which captures high-order interactions using tensors of varying orders. To efficiently compute Jacobian matrices and thus determine stability in large ecological networks, we exploit various tensor decompositions, including higher-order singular value decomposition, Canonical Polyadic decomposition, and tensor train decomposition, accompanied by in-depth computational and memory complexity analyses. We demonstrate the effectiveness of our framework with numerical examples.
Index Terms:
Linear stability, Jacobian matrices, ecological networks, higher-order interactions, tensor decomposition.I Introduction
Modeling complex systems and predicting their long-term behavior have drawn significant attention across diverse fields, including mathematics, physics, biology, and social science [29, 18]. Network representations, which assign individual components to nodes and their connections to edges, are widely used to characterize complex systems. They place a specific emphasis on understanding the influence of interactions, quantified by the edge weights, as in weighted Laplacian or adjacency matrices. Networks have been proven to be powerful tools in system modeling, with numerous works on related system-theoretic properties such as stability, controllability, and observability.
However, a comprehensive understanding of system characterizations with high-order interactions remains elusive. High-order interactions occur among a group of individual components, and thus can have a significant aggregated effect on the system, whereas standard networks only consider pairwise connections. To address this challenge, high-order networks (i.e., hypergraphs, see Fig. 1) and their tensorial representations are increasingly being used to model complex real-world systems, where adjacency coefficients can be defined on sets of nodes. Tensors, which are multidimensional arrays [22, 15, 26], have found applications across a wide array of fields, including dynamical systems [11, 13, 9], signal processing [27, 14], network science [10, 12, 31], data analysis [32], and more [30].
Not only can the static status of higher-order networks be studied, but also their long-standing interests in stability and state evolution. The associated dynamical system is thus composed of pairwise interaction matrix and high-order interaction tensors. Specifically, we are dealing with complex ecological networks, where the most commonly used model is known as the generalized Lotka–Volterra (GLV) model [7, 8]. It is defined as
(1) |
where represents species abundance, is the vector of intrinsic growth rate, and is the interaction matrix whose off-diagonal element represents the effect of species upon species . Throughout, we use to denote element-wise multiplication.
Numerous linear stability results have been developed for the GLV model by characterizing its community matrix (Jacobian matrix) [24, 2]. In reality, species interactions often emerge in higher-order combinations, where the relationship between two species is influenced by one or more additional species [5]. Although the importance of high-order interactions has been recognized, their impact on the stability of ecological systems has not been fully understood. Existing findings are preliminary, most of which focus on numerical simulations [20, 28].
We are particularly interested in the higher-order generalized Lotka–Volterra (HOGLV) model, designed to represent higher-order interactions within intricate ecological networks. Computing the Jacobian matrices for such high-order systems is challenging due to the curse of dimensionality, i.e., the size of variables increases exponentially with the dimensionality. To address this challenge, we propose a framework, leveraging from various tensor decompositions, including higher-order singular value decomposition (HOSVD), Canonical Polyadic decomposition (CPD), and tensor train decomposition (TTD), to improve both memory and computational efficiency in the computation of Jacobian matrix for the HOGLV model.
The article is organized as follows. In Section II, we begin with preliminaries on basic tensors. In Section III, we introduce the HOGLV model and represent it in the HOSVD, CPD, and TTD forms with memory complexity analyses. In Section IV, we derive the Jacobian matrix of the HOGLV model and offer a computational complexity analysis for each tensor decomposition-based representation. Finally, we conclude our work with discussions on future directions in Section VI.
II Tensor Preliminaries
The order of a tensor is defined as the number of its dimensions, with each dimension referred to as a mode. A th-order tensor can be denoted by . The tensor vector multiplication along mode for a vector is defined as The tensor matrix multiplication along mode for a matrix is defined as
In the following, we introduce three key tensor decompositions utilized in this article:
-
•
The higher-order singular value decomposition (HOSVD) [15] of is defined as
(2) where represents the core tensor, and are the factor matrices containing orthonormal columns for . For simplicity, we may rewrite (2) in a more compact form, i.e., The computation of HOSVD is numerically stable and can offer a quasi-optimal approximation.
-
•
The Canonical Polyadic decomposition (CPD) [22] of is defined as
(3) where are the factor matrices for , and is called the CP rank of if it is the minimum integer achieving the decomposition. We use to denote the outer product. This is because CPD is not numerically stable. Moreover, the low-rank approximation of CPD is ill-posed.
-
•
The tensor train decomposition (TTD) [26] of is defined as
(4) where are the third-order core tensors for , and is the set of TT-ranks with . Similar to HOSVD, TTD is numerically stable and its low-rank approximation is quasi-optimal. Importantly, TTD is more efficient than HOSVD in both computation and memory.
III The HOGLV Model
The dynamics of complex ecological networks with higher-order interactions are often characterized by the higher-order generalized Lotka–Volterra (HOGLV) model [5, 1, 28], i.e.,
(5) |
for , where is the intrinsic growth rate for species , is the interaction matrix whose off-diagonal elements represent the effect of species upon species , is the third-order interaction tensor whose off-diagonal elements represent the effect that species and has upon species , and is the fourth-order interaction tensor whose off-diagonal elements represent the effect that species , , has upon species . In fact, the HOGLV model belongs to the family of polynomial dynamical systems.
Alternatively, we may rewrite the system of the differential equations (5) into the vector form using tensor products, which is The total number of the model parameters in HOGLV model, whose maximum interaction order is , can be estimated as . It can be directly seen that the th-order interaction tensor has at most entries. Obviously, the memory complexity scales exponentially with the maximum order of interactions . For large ecological networks with higher-order interactions, it will be challenging to handle the full representation due to severe memory limitations. In the following, we represent the HOGLV model in various tensor decomposition forms.
III-A HOSVD-based Representation
We first consider applying HOSVD to the interaction tensors to derive a HOSVD-based representation of the HOGLV model.
Proposition 1: Suppose that HOSVDs of interaction tensors and are provided as where and are the core tensors with associated factor matrices and , respectively. The HOSVD-based representation of the HOGLV model can be computed as
(6) |
Proof:
According to the properties of tensor vector/matrix products and HOSVD, it can be shown that
Similarly, the same principle applies to the interaction tensor as well. Thus, the result follows immediately. ∎
Remark 1: Suppose that the reduced dimensions of the interaction tensors are all equal to , i.e., . If the maximum order of interactions is , the total number of parameters in the HOSVD-based representation of the HOGLV model can be estimated as
While the above memory complexity increases exponentially with the maximum order of interactions , it is mitigated by the fact that the reduced dimension can be small for certain structured tensors.
III-B CPD-based Representation
We explore applying CPD to the interaction tensors to obtain a CPD-based representation of the HOGLV model.
Proposition 2: Suppose that the CPDs of the interaction tensors and are provided as where and are the factor matrices. The CPD-based representation of the HOGLV model can be computed as
(7) |
Proof:
From the properties of tensor vector/matrix products and CPD, it can be shown that
Likewise, the same principle applies to the interaction tensor as well. Therefore, the result follows immediately. ∎
Remark 2: Suppose that the CP ranks of the interaction tensors are all equal to , i.e., . If the maximum order of interactions is , the total number of parameters in the CPD-based representation of the HOGLV model can be estimated as
Remarkably, the above memory complexity increases quadratically with both the maximum order of interactions and the number of species . Furthermore, when the CP rank is small, the CPD-based representation of the HOGLV model can significantly enhance memory efficiency. However, it is important to note that CPD may not be numerically stable, which may limit the applicability of this representation.
III-C TTD-based Representation
We investigate the use of TTD on the interaction tensors to derive a TTD-based representation of the HOGLV model.
Proposition 3: Suppose that the TTDs of the interaction tensors and are provided as where and are the third-order core tensors. The TTD-based representation of the HOGLV model can be computed as
(8) |
Proof:
The proof is similar to Proposition 2. ∎
Remark 3: Suppose that the TT-ranks of the interaction tensors are all equal to , i.e., . Note that the first and last TT-ranks of each tensor are always equal to 1. If the maximum order of interactions is , the total number of parameters in the TTD-based representation of the HOGLV model can be estimated as
While the above memory complexity is slightly higher than that of the CPD-based representation, it remains significantly more efficient than the full and HOSVD-based representations. Importantly, TTD can offer the crucial advantages of numerical stability and quasi-optimal approximation.
IV Complexity Analyses of Linear Stability
Linear stability analysis has proven to be a successful tool in the study of complex ecological networks, enhancing our understanding of the intricate relationships between stability and biodiversity [3, 4, 24]. A plethora of research has focused on the linear stability of the GLV model [19, 6]. The essence of linear stability lies in the computation of the Jacobian matrix. Here, we derive the Jacobian matrix for the HOGLV model and perform a computational complexity analysis of computing the Jacobian matrix using the full, HOSVD-based, CPD-based, and TTD-based representations.
Proposition 4: Suppose that the equilibrium point of the HOGLV model is . The Jacobian matrix of the HOGLV model evaluated at can be computed as
(9) |
where is a diagonal matrix that contains along its diagonal.
Proof:
Based on the properties of tensor vector products, it can be demonstrated that
Likewise, the same derivative principle is applicable to the interaction tensor . Consequently, the result can be derived in a manner similar to the computation of the Jacobian matrix for the GLV model [8]. ∎
Remark 4: If the maximum order of interactions is , the computational complexity of computing the Jacobian matrix of the HOGLV model can be estimated as
Similar to its memory complexity, the computational complexity of the full representation scales exponentially with the maximum order of interactions . Therefore, computing the Jacobian matrix for large ecological networks with higher-order interactions is an exceptionally challenging task. To address this challenge, we can utilize tensor decomposition-based representations of the HOGLV model, which significantly reduces the computational complexity. In the following, we estimate the computational complexity of computing the Jacobian matrix using the HOSVD-based, CPD-based, and TTD-based representations.
Remark 5: Given the HOSVD-based representation of the HOGLV model (6) with reduced dimension for all interaction tensors, if the maximum order of interactions is , the computational complexity of computing the Jacobian matrix can be estimated as
Remark 6: Given the CPD-based representation of the HOGLV model (7) with CP rank for all interaction tensors, if the maximum order of interactions is , the computational complexity of computing the Jacobian matrix can be estimated as
Remark 7: Given the TTD-based representation of the HOGLV model (8) with TT-rank for all interaction tensors (except for the first and last TT-ranks), if the maximum order of interactions is , the computational complexity of computing the Jacobian matrix can be estimated as
The proofs of the above remarks can be found in the appendix. The computational complexity of computing the Jacobian matrix using the HOSVD-based, CPD-based, and TTD-based representations exhibits a similar behavior to their memory complexity. Particularly, the CPD-based representation stands out with the lowest computational complexity, which does not grow exponentially with the maximum order of interactions . Nonetheless, accurately computing CPD becomes challenging for tensors with larger dimensions. Conversely, the TTD-based representation, although having a higher computational complexity compared to the CPD-based representation, outperforms the full and HOSVD-based representations with guaranteed numerical stability.
After obtaining the Jacobian matrix, we can compute its eigenvalues to determine the linear stability of the HOGLV model at an equilibrium point. It is important to acknowledge that computing the eigenvalues of the Jacobian matrix can be computationally demanding for large ecological networks, but this specific aspect is not the primary focus of this article. Nevertheless, recent research [23, 16] has explored the use of TTD to expedite eigenvalue computations, which can be useful here for future investigations.
V Numerical Examples
We present three case studies to illustrate our framework. All three examples were conducted on a Macintosh machine equipped with 32 GB RAM and an Apple M1 Pro chip (10-core CPU at 3.2 GHz, 16-core GPU, and 16-core Neural Engine) using MATLAB R2022a with the Tensor Toolbox 3.0 [21] and TT Toolbox [25].
V-A Computing Jacobian Matrices
We computed the Jacobian matrices of two ecological networks captured by the HOGLV model using (9). For simplicity, we set the total number of species and the maximum order of interactions to 4 and 3, respectively. The structures of the two ecological networks are presented in Fig. 2, which share pairwise interactions. Suppose that the equilibrium point is for both networks. The associated Jacobian matrices can be computed as
The first Jacobian matrix has one positive eigenvalue, indicating that the first ecological network is locally unstable around the equilibrium point. The second Jacobian matrix has all eigenvalues negative, suggesting that the second ecological network is locally stable near the equilibrium point. This example demonstrates that higher-order interactions can significantly influence the stability of complex ecological networks.
V-B Memory Comparison
We conducted a comparison of the total number of model parameters for the full, HOSVD-based, CPD-based, and TTD-based representations of the HOGLV model using random sparse tensors with varying dimensions. We set the maximum order of interactions to 4 and randomly generated sparse interaction tensors and for . By employing the HOSVD, CPD, and TTD on the interaction tensors, we computed their corresponding representations of the HOGLV model. The results are presented in Table I. The HOSVD-based representation is effective in reducing the number of model parameters for relatively small dimensions (). However, as the dimension increases, its number of model parameters surpasses that of the full representation. Moreover, the CPD-based representation demonstrates the lowest memory usage. However, we failed to accurately compute the CPDs of the interaction tensors for larger dimensions () due to the issue of numerical instability. Thus, the TTD-based representation can be considered as a robust and viable choice, which maintains a reasonably low number of model parameters compared to the full representation.
Dimension | |||||
---|---|---|---|---|---|
Full | 11,110 | 168,420 | 837,930 | 2,625,640 | 6,377,550 |
HOSVD | 810 | 131,608 | 844,230 | 2,636,840 | 6,395,050 |
CPD | 460 | 6,860 | - | - | - |
TTD | 890 | 36,880 | 238,530 | 920,040 | 2,687,550 |
V-C Computation Comparison
We compared the computational time required for computing the Jacobian matrix of the HOGLV model using the full representation and the TTD-based representation. We exclusively considered the TTD-based representation here due to its numerical stability and low computational complexity. More importantly, it benefits from a well-established TT-algebra, making it a suitable choice for this computation. We set the maximum order of interactions to 4 and randomly generated interaction tensors and in the TTD format with low TT-ranks for varying dimensions. In other words, we assumed that the HOGVL model is initially provided in the TTD-based representation. The findings are displayed in Fig. 3. Evidently, the TTD-based representation offers a substantial time advantage in computing the Jacobian matrix compared to the full representation. It is noteworthy that the full representation encounters memory limitations for , which fails to complete the computation. On the other hand, the TTD-based representation maintains computational efficiency even for larger dimensions, as demonstrated in Table II.
Dimension | |||||
---|---|---|---|---|---|
Time (s) | 0.0259 | 0.1675 | 0.5304 | 1.1228 | 1.9990 |
VI Conclusion
In this article, we proposed a framework to tackle the problem of complex ecological systems with high-order interactions. In particular, we were interested in determining the linear stability of the HOGLV model by computing the Jacobian matrix and its eigenvalues. A crucial challenge in the analysis of complex systems and coupled representations is their exponentially increasing size. In our approach, we explored various tensor decomposition techniques for good scalability with detailed memory and computational complexity investigations.
The stability analysis of dynamical systems with high-order interactions is not limited to ecological systems, but also appears in various fields, such as opinion dynamics and social networks, where the aggregated impact of high-order interactions plays a significant role. Another area of interest is the estimation of interaction matrices and tensors of different orders [17]. Additionally, the study of high-order time-varying systems, where the interaction tenors are time-varying, is a promising direction for future research.
References
- [1] Mohammad AlAdwani and Serguei Saavedra. Is the addition of higher-order interactions in ecological models increasing the understanding of ecological dynamics? Mathematical Biosciences, 315:108222, 2019.
- [2] S. Allesina and S. Tang. Stability criteria for complex ecosystems. Nature, 483:205–208, 2012.
- [3] Stefano Allesina and Si Tang. Stability criteria for complex ecosystems. Nature, 483(7388):205–208, 2012.
- [4] Stefano Allesina and Si Tang. The stability–complexity relationship at age 40: a random matrix perspective. Population Ecology, 57(1):63–75, 2015.
- [5] Eyal Bairey, Eric D. Kelsic, and Roy Kishony. High-order species interactions shape ecosystem diversity. Nature communications, 7(1):12285, 2016.
- [6] Joseph W. Baron, Thomas Jun Jewell, Christopher Ryder, and Tobias Galla. Breakdown of random-matrix universality in persistent lotka-volterra communities. Physical Review Letters, 130(13):137401, 2023.
- [7] Subhash C. Bhargava. Generalized lotka-volterra equations and the mechanism of technological substitution. Technological Forecasting and Social Change, 35(4):319–326, 1989.
- [8] Guy Bunin. Ecological communities with lotka-volterra dynamics. Physical Review E, 95(4):042414, 2017.
- [9] Can Chen. Explicit solutions and stability properties of homogeneous polynomial dynamical systems. IEEE Transactions on Automatic Control, 68(8):4962–4969, 2023.
- [10] Can Chen and Indika Rajapakse. Tensor entropy for uniform hypergraphs. IEEE Transactions on Network Science and Engineering, 7(4):2889–2900, 2020.
- [11] Can Chen, Amit Surana, Anthony Bloch, and Indika Rajapakse. Multilinear time invariant system theory. In 2019 Proceedings of the Conference on Control and its Applications. SIAM, 2019.
- [12] Can Chen, Amit Surana, Anthony M. Bloch, and Indika Rajapakse. Controllability of hypergraphs. IEEE Transactions on Network Science and Engineering, 8(2):1646–1657, 2021.
- [13] Can Chen, Amit Surana, Anthony M. Bloch, and Indika Rajapakse. Multilinear control systems theory. SIAM Journal on Control and Optimization, 59(1):749–776, 2021.
- [14] Andrzej Cichocki, Danilo Mandic, Lieven De Lathauwer, Guoxu Zhou, Qibin Zhao, Cesar Caiafa, and Huy Anh Phan. Tensor decompositions for signal processing applications: From two-way to multiway component analysis. IEEE signal processing magazine, 32(2):145–163, 2015.
- [15] Lieven De Lathauwer, Bart De Moor, and Joos Vandewalle. A multilinear singular value decomposition. SIAM journal on Matrix Analysis and Applications, 21(4):1253–1278, 2000.
- [16] Sergey V. Dolgov, Boris N. Khoromskij, Ivan V. Oseledets, and Dmitry V. Savostyanov. Computation of extreme eigenvalues in higher dimensions using block tensor train format. Computer Physics Communications, 185(4):1207–1216, 2014.
- [17] Anqi Dong, Tryphon T. Georgiou, and Allen Tannenbaum. Data assimilation for sign-indefinite priors: A generalization of sinkhorn’s algorithm. arXiv preprint arXiv:2308.11791, 2023.
- [18] Anqi Dong, Tryphon T. Georgiou, and Allen Tannenbaum. Negative probabilities in gene regulatory networks. arXiv preprint arXiv:2307.07738, 2023.
- [19] Theo Gibbs, Jacopo Grilli, Tim Rogers, and Stefano Allesina. Effect of population abundances on the stability of large random ecosystems. Physical Review E, 98(2):022410, 2018.
- [20] Jacopo Grilli, György Barabás, Matthew J Michalska-Smith, and Stefano Allesina. Higher-order interactions stabilize dynamics in competitive network models. Nature, 548(7666):210–213, 2017.
- [21] Tamara Kola, Brett W. Bader, Evrim NMN Acar Ataman, Daniel Dunlavy, Robert Bassett, Casey J. Battaglino, Todd Plantenga, Eric Chi, and Samantha Hansen. Tensor toolbox for matlab. Technical report, Sandia National Lab, Albuquerque, NM (United States), 2017.
- [22] Tamara G. Kolda and Brett W. Bader. Tensor decompositions and applications. SIAM review, 51(3):455–500, 2009.
- [23] Thomas Mach. Computing inner eigenvalues of matrices in tensor train matrix format. In Numerical Mathematics and Advanced Applications 2011: Proceedings of the 9th European Conference on Numerical Mathematics and Advanced Applications, Leicester, September 2011, pages 781–788. Springer, 2012.
- [24] Robert M May. Will a large complex system be stable? Nature, 238(5364):413–414, 1972.
- [25] IV Oseledets, S. Dolgov, V. Kazeev, D. Savostyanov, O Lebedeva, P Zhlobich, T. Mach, and L. Song. TT-toolbox. URL: http://oseledets. github. io/software, 2016.
- [26] Ivan V. Oseledets. Tensor-train decomposition. SIAM Journal on Scientific Computing, 33(5):2295–2317, 2011.
- [27] Nicholas D Sidiropoulos, Lieven De Lathauwer, Xiao Fu, Kejun Huang, Evangelos E Papalexakis, and Christos Faloutsos. Tensor decomposition for signal processing and machine learning. IEEE Transactions on signal processing, 65(13):3551–3582, 2017.
- [28] Pragya Singh and Gaurav Baruah. Higher order interactions and species coexistence. Theoretical Ecology, 14:71–83, 2021.
- [29] Per Sebastian Skardal and Alex Arenas. Higher order interactions in complex networks of phase oscillators promote abrupt synchronization switching. Communications Physics, 3(1):218, 2020.
- [30] Elis Stefansson and Yoke Peng Leong. Sequential alternating least squares for solving high dimensional linear hamilton-jacobi-bellman equation. In 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 3757–3764. IEEE, 2016.
- [31] Amit Surana, Can Chen, and Indika Rajapakse. Hypergraph similarity measures. IEEE Transactions on Network Science and Engineering, 10(2):658–674, 2022.
- [32] Hua Zhou, Lexin Li, and Hongtu Zhu. Tensor regression with applications in neuroimaging data analysis. Journal of the American Statistical Association, 108(502):540–552, 2013.
We provide detailed proofs for Remarks 4 and 5 here. Remarks 6 and 7 can be proved in a similar manner.
Proof of Remark 4
We first consider the computational complexity of tensor vector multiplications, which can be estimated as
Additionally, the computational complexity of matrix additions and multiplications is much less than . Therefore, the overall complexity of computing the Jacobian matrix of the HOGLV model using the full representation is about .
Proof of Remark 5
Suppose that the reduced dimensions of the interaction tensors are all equal to , i.e., . We first estimate the computational complexity of computing the term , which is about
Therefore, the computational complexity of tensor vector multiplications can be approximated by
Again, the computational complexity of matrix additions and multiplications can be negligible. Thus, the overall complexity of computing the Jacobian matrix of the HOGLV model using the HOSVD representation is about .