scieee AI-readable full text Open interactive document viewer

Dimension reduction of dynamics on modular and heterogeneous directed networks

Vegué Llorente, Marina,Thibeault, Vincent,Desrosiers, Patrick,Allard, Antoine

Abstract

Dimension reduction is a common strategy to study nonlinear dynamical systems composed by a large number of variables. The goal is to find a smaller version of the system whose time evolution is easier to predict while preserving some of the key dynamical features of the original system. Finding such a reduced representation for complex systems is, however, a difficult task. We address this problem for dynamics on weighted directed networks, with special emphasis on modular and heterogeneous networks. We propose a two-step dimension-reduction method that takes into account the properties of the adjacency matrix. First, units are partitioned into groups of similar connectivity profiles. Each group is associated to an observable that is a weighted average of the nodes’ activities within the group. Second, we derive a set of equations that must be fulfilled for these observables to properly represent the original system’s behavior, together with a method for approximately solving them. The result is a reduced adjacency matrix and an approximate system of ODEs for the observables’ evolution. We show that the reduced system can be used to predict some characteristic features of the complete dynamics for different types of connectivity structures, both synthetic and derived from real data, including neuronal, ecological, and social networks. Our formalism opens a way to a systematic comparison of the effect of various structural properties on the overall network dynamics. It can thus help to identify the main structural driving forces guiding the evolution of dynamical processes on networks.

Full text

PNAS Nexus, 2023, 2, 1–16 https://doi.org/10.1093/pnasnexus/pgad150 Advance access publication 2 May 2023 Research Report Dimension reduction of dynamics on modular and heterogeneous directed networks Marina Vegué a,b , Vincent Thibeault a,b , Patrick Desrosiers a,b,c and Antoine Allard a,b, * a Département de physique, de génie physique et d’optique, Université Laval, 2325 rue de l’Université, G1V 0A6 Québec, Canada b Centre interdisciplinaire en modélisation mathématique, Université Laval, 2325 rue de l’Université, G1V 0A6 Québec, Canada c CERVO Brain Research Center, 2301 avenue d’Estimauville, G1E 1T2 Québec, Canada *To whom correspondence should be addressed: Email: [email protected] (M.V.); [email protected] (A.A.) Edited By: Petros Koumoutsakos Abstract Dimension reduction is a common strategy to study nonlinear dynamical systems composed by a large number of variables. The goal is to find a smaller version of the system whose time evolution is easier to predict while preserving some of the key dynamical features of the original system. Finding such a reduced representation for complex systems is, however, a difficult task. We address this problem for dynamics on weighted directed networks, with special emphasis on modular and heterogeneous networks. We propose a two-step dimension-reduction method that takes into account the properties of the adjacency matrix. First, units are partitioned into groups of similar connectivity profiles. Each group is associated to an observable that is a weighted average of the nodes’ activities within the group. Second, we derive a set of equations that must be fulfilled for these observables to properly represent the original system’s behavior, together with a method for approximately solving them. The result is a reduced adjacency matrix and an approximate system of ODEs for the observables’ evolution. We show that the reduced system can be used to predict some characteristic features of the complete dynamics for different types of connectivity structures, both synthetic and derived from real data, including neuronal, ecological, and social networks. Our formalism opens a way to a systematic comparison of the effect of various structural properties on the overall network dynamics. It can thus help to identify the main structural driving forces guiding the evolution of dynamical processes on networks. Keywords: dimension reduction, networks, nonlinear dynamics, community structure, spectral decomposition Significance Statement Brains, ecosystems, and populations are all examples of complex systems whose global, collective behaviors are the consequence of the local interactions between their constituting elements (e.g. neurons, species, individuals). The sheer size of these systems as well as their intrinsic heterogeneity make them difficult to study through mathematical models. We develop a principled and systematic method to reduce the number of dimensions of mathematical models of various complex systems, thus bringing them at a scale that greatly facilitates their analysis. We demonstrate the accuracy of our approach using synthetic as well as empirical complex networks, thereby illustrating how it sheds a systematic light on the impact of the different levels of coarse-graining on which several mathematical models rely. Competing Interest: The authors declare no competing interest. Received: October 7, 2022. Revised: February 17, 2023. Accepted: April 12, 2023 © The Author(s) 2023. Published by Oxford University Press on behalf of National Academy of Sciences. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited. Introduction Dimension-reduction methods seek to find a low-dimensional representation of a high-dimensional system. This representation should preserve various key properties of the original system while being more amenable to analysis in order to provide insights on the inner workings and the long-term behavior of the system. The dimension of a proper reduction can also inform on the effective dimension of the original system, namely the extent to which it can be compressed into a simpler form. These reasons make dimension reduction not only necessary for practical or computational purposes but also interesting from a purely theoretical standpoint. Dimension-reduction methods appear in many areas of science and under different names. For example, the ubiquity of highdimensional data and the difficulty of extracting the relevant patterns have made dimension reduction an essential problem in data analysis (1–3). Dimension reduction is also relevant in the context of control systems, engineering, and fluid mechanics, where it is referred to as model order reduction (4–6) and where the focus is often on linear systems. Methods to reduce the dimension of systems of ordinary differential equations (ODEs) have a relatively long tradition in chemistry, where they are often known as lumping (7–9). Yet, these latter works focus on the kinetic theory of molecular reactions and the methods are often applied to dynamics involving only a small number of molecules. The complexity inherent to large, nonlinear dynamical systems of interacting units (ecological communities, neuronal networks, etc.) makes them very difficult to study. Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 2 | PNAS Nexus, 2023, Vol. 2, No. 5 These systems often exhibit emergent collective phenomena (pandemics, synchronization, etc.) (10–12) and may undergo phase transitions and bifurcations as a perturbation is introduced. Despite often having a huge, qualitative impact on their collective behavior, these transitions and the parameter values at which they appear (the tipping points) tend to be very hard to predict (13, 14). One of the major challenges of network science is to find ways to approximate these systems by ones of reduced dimension so as to make them more tractable analytically and computationally and thus to make their tipping points easier to anticipate. In a world threatened by a potential ecological collapse and by the emergence of new pandemics, this task has become more necessary than ever. How to construct a reduced version of a generic complex system is still an open question (15). Dimension reduction is especially challenging when the original system is highly heterogeneous, i.e. when the rules that define the units’ dynamics and their interactions vary largely across the different units. A standard way to model the influence that each unit (or node) has on the activity of the others is by means of a weighted adjacency matrix plus a set of coupling functions of the nodes’ activities (16, 17). The adjacency matrix can be either a constant of the system or change in time depending on the nodes’ activity, as in plastic neuronal networks (18, 19). According to this framework, a heterogeneous system is a system in which either the adjacency matrix or the functions that define the dynamics exhibit a large variability across the different nodes. Several dimension-reduction strategies for dynamics on networks have been proposed in recent years. Gao et al. (20) developed a method for reducing an N-dimensional system to a one-dimensional one that approximately models the temporal evolution of an effective activity variable. This variable is an average of the nodes’ activities, weighted by their outgoing degrees. This approach was used to predict the resilience of different realworld networks under several types of perturbations. Jiang et al. (21) defined a strategy for predicting the resilience and tipping points of bipartite plant–pollinator networks in which the reduced system is two-dimensional. The two variables in the reduced dynamics then correspond to the (weighted) average abundance of the plants and pollinators, respectively. Recently, Tu et al. (22) proposed a dimension reduction framework designed for systems that are heterogeneous in terms of the functions that define the self-dynamics and the coupling-dynamics of the nodes. The reduced dynamics in this case is one-dimensional and incorporates a variable number of control parameters. Although one- and two-dimensional reductions have been proven to be effective in some cases, the large heterogeneity of some real-world networks (23) and their tendency to form intricate community structures (24, 25) make them unlikely to be well understood by means of systems of such a low dimension. References (26, 27) introduced formalisms for reducing an N-dimensional system to a system of arbitrary dimension n<N. The n variables of the reduced system are constructed by taking into account the spectral properties of the adjacency matrix (as well as the matrix of self-coupling dynamical parameters in Ref. (27)), regardless of the specific form of the coupling functions. The reduction method defined in Ref. (26) is appropriate for undirected networks with weakly coupled communities or with a bipartite structure. Reference (27) generalized the formalism to dynamical systems with heterogeneous dynamical parameters on generic undirected networks, including the ones with strongly coupled modules. Both approaches have been tested on undirected networks with homogeneous group connectivity, which is also a very common structural assumption to study synchronization of coupled oscillators through dimension reduction (28–32). It remained unclear, however, how these approaches could be adapted to reduce the dimension of dynamics on directed networks with significant heterogeneous connectivity. We develop a dimension-reduction method for dynamical systems on directed networks that are possibly modular (i.e. that can contain groups of nodes with similar connectivity properties, the modules) but whose modules are significantly heterogeneous. We thus discard all the structural limitations that were previously imposed on networks. The method is defined by a two-step process illustrated in Fig. 1. First, the nodes are classified into n groups of nodes that share similar connectivity properties (these could correspond to the modules, or to subgroups within the modules, in the case of modular networks). The variables of the reduced system, the observables, are weighted averages of the node activities within each group. This means that the number of groups in the node partition, n, corresponds to the dimension of the reduced system. We refer to the vectors that specify these group averages as the reduction vectors. Generically, the observables’ dynamics cannot be expressed as a closed system of ODEs: the exact observables’ dynamics is a function of the nodes’ activities but it cannot be expressed as a function of the observables themselves. The second step consists of approximately closing it. For this, we approximate the dynamics’ functions and find conditions on the reduction vectors that make this approximation as accurate as possible. These conditions, that we dub the compatibility equations, determine the reduction vectors and the parameters of the reduced system, which define a reduced adjacency matrix. The result is a reduced system of dimension n on a reduced network. The paper is structured as follows. First, we present the dimension-reduction strategy together with a method for approximately solving the compatibility equations. Then, following the common practice in the network science community for assessing the quality of dimension reductions (20–22, 33–36), we test the capacity of our method to predict the bifurcation diagrams of different systems, for various types of dynamics and synthetic network topologies. We finally apply our method to dynamical systems inspired by three types of real-world networks and we show that satisfactory bifurcation diagrams can be produced by tuning the dimension of the reduced system. All the theoretical results used to derive the equations presented in the paper are detailed in the Supplementary Material. Dimension-reduction strategy Overview In many real-world networks, the nodes can be partitioned into groups of densely connected nodes (commonly referred to as modules) (25, 37–39). Usually, a module corresponds to a group of nodes that are also involved in a common task, which suggests that the structural modularity seen in these networks reflects a modularity at the functional level (25, 39). Other networks have groups of sparsely connected nodes whose connectivity profiles with nodes in other groups are similar. For example, in plant– pollinator networks, pollinators interact with plants and plants with pollinators, but it is assumed that plants do not directly interact with other plant species and analogously for pollinators (i.e. the interaction network is bipartite). We can thus say that the set of plants and the set of pollinators constitute two different groups in terms of their connectivity profiles. Either if the structure of these networks tends to be assortative (nodes of similar Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 Vegué et al. | 3 connectivity properties tend to be connected) or dissortative (nodes of similar connectivity properties tend to be disconnected), they have in common the fact that their nodes can be classified into groups of nodes that share similar connectivity properties. Throughout this paper, we use the terms modularity and community structure to refer to this network property, regardless of whether the groups are densely or sparsely connected, and modules or communities to refer to these groups. We present a strategy to reduce the dimension of a dynamical system taking into account the community structure of the interaction network. We assume that the N nodes of the original system interact by means of a not necessarily symmetric adjacency matrix W=(wij)i,j∈RN×N and that their activities evolve in time according to a dynamics of the form ˙ xi=f(xi)+􏽘 N j=1 wijg(xi,xj), (1) with i∈{1, . . . ,N}, and where xi is a real-valued function of a real variable (time) that represents the activity of node i. The functions f and g are generic functions of class C1 (i.e. 1-time differentiable with continuous derivatives). The function f defines the selfdynamics of the nodes, while g accounts for the dynamical coupling between pairs of nodes. The weight wij ∈R encodes the strength of the interaction from node j to node i. This model assumes that node heterogeneity comes from the adjacency matrix itself (the functions f and g are the same for all the nodes). It is therefore reasonable to assume that nodes with a similar connectivity profile will have similar activities. We aim to construct a reduced version of the system by defining a set of linear observables, each of them representing a weighted average of the node activities within each of the connectivitybased communities. Thus, our reduced system has the same dimension as the number of modules in the original network. Let us suppose that we know the community structure in our network. This means that we have a partition of the nodes into groups: each node belongs to one and only one of these groups. We define n as the number of groups and denote the groups by G1,. . . ,Gn and their corresponding observables by X1,. . . ,Xn. Fig. 1. Method schematics of the spectral reduction. First, the nodes are partitioned into assortative or disassortative groups so that nodes in the same group share similar connectivity properties. In this case, n=4 groups were defined. Group-to-group adjacency and in-degree submatrices are defined from the original adjacency matrix. Second, these matrices are used to solve the compatibility equations on the partial reduction vectors ˆ a1,. . . ,ˆ an and the matrix W=(Wνρ)n ν,ρ=1. Once the compatibility equations are solved, the observables are constructed as the scalar product of the reduction vectors and the activity vector x. The final approximate reduced dynamics on the observables is analogous to the original dynamics—with Wacting as a reduced adjacency matrix—and can also incorporate a correction term. Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 4 | PNAS Nexus, 2023, Vol. 2, No. 5 For all ν∈{1, . . . ,n}, the observable Xν is a linear combination of the activities of nodes in group Gν: Xν is defined by a nonnegative, normalized weight vector aν=(aνi)N i=1∈RN: Xν:=􏽘 N i=1 aνixi,􏽘 N i=1 aνi=1, aνi=0 if i∉Gν.(2) We call a1,. . . ,an the reduction vectors. To reduce the dimension of our system, we need to specify how to map the original dynamics (Eq. 1) into a reduced dynamics for the n observables. This implies (a) finding what the vectors a1,...an are and (b) providing a system of ODEs for the temporal evolution of the observables. We provide the details in the following sections. A rigorous derivation of all the results is provided in the Supplementary Material. Group adjacency and in-degree matrices Let us denote by m1,...,mn the sizes of the groups in our network: mρ:=|Gρ|,ρ∈{1, . . . ,n}. Without loss of generality we can suppose that the nodes have been reordered so that the indices of nodes in each group are consecutive numbers: Gν=1+􏽘 ν−1 ρ=1 mρ,...,􏽘 ν ρ=1 mρ 􏼨 􏼩.(3) This allows us to express the adjacency matrix W in the block form W= W11 ··· W1n . . ... .. . . Wn1··· Wnn ⎛ ⎜ ⎝⎞ ⎟ ⎠, (4) where Wνρ is the submatrix of size mν×mρ that includes all the interaction weights from nodes in group Gρ to nodes in group Gν. In a similar way, we can define the group-to-group weighted indegree diagonal matrix Kνρ =diag(kρ i1,. . . ,kρ imν), where {i1,. . . ,imν}= Gν and kρ i=􏽐j∈Gρwij is the weighted in-degree of node i only taking into account connections that come from nodes in group Gρ. Thus, the global diagonal in-degree matrix can be expressed as a function of the group-to-group in-degree matrices as K= K11 +···+K1n··· 0 . . ... .. . . 0··· Kn1+···+Knn ⎛ ⎜ ⎝⎞ ⎟ ⎠.(5) Reduction vectors and approximate reduced dynamics From Eqs. 1and 2, the exact temporal evolution of a given observable Xν is ˙ Xν=􏽘 N i=1 aνif(xi)+􏽘 N i,j=1 aνiwijg(xi,xj).(6) Our objective is to rewrite Eq. 6in a closed form, that is, to make it be a function of the observables only. This cannot be fulfilled exactly in general, but we can work on Eq. 6so that it admits an approximate closed form. This is accomplished by following three basic steps: 1. Substitute f(xi) and g(xi,xj) by affine approximations in xi and xj around the observables associated to the groups to which nodes i and j belong (Xν and Xρ for i∈Gν and j∈Gρ). In general, the resulting approximations are nonlinear functions of Xν and Xρ. 2. Introduce these approximations in Eq. 6. Find conditions on the reduction vectors which ensure that this approximate system is closed (i.e. that it is expressed as a function of the observables only). These conditions are called the compatibility equations. The approximate closed system of ODEs is the reduced system we are looking for. 3. Solve the compatibility equations to find the reduction vectors. These vectors specify the observables and determine the adjacency matrix of the reduced system. We considered affine approximations because approximations of a larger order would require the use of nonlinear observables (40, Appendix B) and this is beyond the scope of the present work. The justification behind approximating f(xi) and g(xi,xj) around the corresponding observables is the following: if the node partition reflects a true organization of the nodes into groups of similar connectivity profiles, then the nodes within the same group should have similar activities, and these activities should be close to the corresponding observable at any time. The validity of this assumption will of course depend on the properties of the chosen partition, especially on the number of groups and on the inter-node heterogeneity within each group. We call our reduction the spectral reduction for reasons that will become clear below. For the purpose of comparison, we also consider a homogeneous reduction that results from taking a zeroth-order Taylor approximation of functions f and g and whose reduction vectors are homogeneous over the groups. Homogeneous reduction We here approximate f(xi)≈f(Xν) and g(xi,xj)≈g(Xν,Xρ) whenever i∈Gν and j∈Gρ, assuming as usual that all conditions in Eq. 2are satisfied. Doing so immediately transforms Eq. 6into the following approximate closed form, regardless of the particular choice of reduction vectors a1,. . . ,an: ˙ Xν≈f(Xν)+􏽘 n ρ=1Wνρg(Xν,Xρ), (7) where Wνρ :=􏽘 i∈Gν j∈Gρ aνiwij =􏽘 i∈Gν aνikρ i(8) is the weighted in-degree coming from nodes in Gρ, averaged over nodes in Gν according to aν (see Lemma 2 in section “Approximate reduced dynamics” of the Supplementary Material for details). The form of the reduced dynamics (Eq. 7) is analogous to that of the original dynamics. The matrix W=(Wνρ)ν,ρ is the reduced adjacency matrix: a weighted matrix of interactions among the observables in the approximate reduced system. Despite the reduced system has this form for any choice of the reduction vectors, the observables’ value at any given time and the reduced adjacency matrix do depend on these vectors, and thus the reduction’s accuracy will depend on them too. We choose to define the reduction vectors as being homogeneous over the different groups, that is, aνi=1/mνif i∈Gν, 0 otherwise. 􏼚(9) Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 Vegué et al. | 5 The last equation defines the homogeneous reduction. The justification behind this choice is twofold. First, in the absence of any additional constraint, all nodes in a group should contribute equally to the corresponding observable. Second, in perfectly homogeneous modular networks the homogeneous observables defined by Eq. 9are the only ones that exactly solve the compatibility equations and make this reduction coincide with the spectral reduction defined below (see Proposition 2 in the Supplementary Material). Spectral reduction In what we call the spectral reduction, we go one step further and approximate f and g by first-order Taylor polynomials around the appropriate observables: f(xi)≈f(Xν)+f′(Xν)(xi−Xν), (10a) g(xi,xj)≈g(Xν,Xρ)+g1(Xν,Xρ)(xi−Xν) +g2(Xν,Xρ)(xj−Xρ), (10b) where i∈Gν,j∈Gρ, and g1,g2 denote the partial derivatives of g with respect to its first and second arguments, respectively. Note that if f and g are affine on their arguments, then this approximation is in fact exact. Substituting these expressions into Eq. 6does not, however, yield a closed dynamics. As stated in Proposition 1 (see section “Approximate reduced dynamics” of the Supplementary Material), the reduction vectors must fulfill the following conditions to close the system: Kνρ ˆ aν=μνρ ˆ aν, (11a) WT νρ ˆ aν=λνρ ˆ aρ, (11b) for ν,ρ∈{1, . . . ,n}. The vector ˆ aν∈Rmν is defined by the components of aν that correspond to nodes within group Gν (the other elements are 0 by definition). We call ˆ a1,. . . ,ˆ an the partial reduction vectors. The matrices μ=(μνρ)ν,ρ and λ=(λνρ)ν,ρ, both of dimension n×n, are sets of parameters to be determined. We note that Eqs. 11a and 11b need to be imposed whenever the g function varies with its first and its second arguments, respectively. This means, for example, that reducing a system in which g(x,y)=g(y) does not require Eq. 11a to be fulfilled. As in Ref. (27), we refer to conditions 11a and 11b as the compatibility equations. They relate the reduction vectors with the adjacency and weighted in-degree matrices, independently of the functions that define the node dynamics. It is therefore solely the structure of interactions in the network that shapes and constrains the construction of the observables in our approach. As detailed in the proof of Proposition 1 of the Supplementary Material (section “Approximate reduced dynamics”), once the compatibility equations are fulfilled, the parameters λνρ and μνρ coincide with the group-to-group averaged in-degree defined by Eq. 8, μνρ =Wνρ (12a) λνρ =Wνρ, (12b) and the approximate temporal evolution of the νth observable is given by ˙ Xν≈f(Xν)+􏽘 n ρ=1Wνρg(Xν,Xρ).(13) As in the homogeneous reduction, this dynamics preserves the form of the original dynamics and includes a n×n reduced adjacency matrix W=(Wνρ)ν,ρ between the different observables, defined by Eq. 8. Thus, in the spectral reduction, mapping the original dynamics into the reduced dynamics requires (a) solving the compatibility equations to find the reduction vectors a1,. . . ,an, and (b) computing the reduced adjacency matrix (Wνρ)ν,ρ from the reduction vectors. The second step is straightforward but not the first one. Solving the compatibility equations can be problematic because, except in very particular cases, these equations cannot be fulfilled simultaneously. In the next section, we propose a method for finding an approximate solution, which takes into account the spectral properties of the group-to-group weighted in-degree and adjacency matrices. This is why we call it the spectral reduction. Fig. 1shows a schematics of the spectral reduction process. Solving the compatibility equations The spectral reduction requires solving the compatibility equations 11a and 11b to determine the reduction vectors. Eq. 11a is an eigenvalue–eigenvector equation for the partial reduction vector ˆ aν. Eq. 11b is more involved because it includes a crossed dependency between different partial reduction vectors. Corollary 2 in the Supplementary Material (section “Equivalent forms for the compatibility equations when the adjacency matrix is positive”) provides a strategy to transform Eqs. 11a and 11b into an equivalent set of equations which are easier to solve. This can be done when the original adjacency matrix is positive and it can be summarized as follows. If we assume the partial reduction vectors ˆ a1,. . . ,ˆ an to be also strictly positive, Eqs. 11a and 11b are equivalent to the following decoupled (i.e. without crossed dependencies) compatibility equations Kνρ ˆ aν=μνρ ˆ aν, (14a) W′νρ ˆ aν=λ′ νρ ˆ aν(14b) for ν,ρ∈{1, . . . ,n}, where λ′ νρ :=λνν if ν=ρ, λνρλρν if ν≠ρ, 􏼚(15a) W′νρ := WT νν if ν=ρ, WT ρνWT νρ if ν≠ρ. 􏼨(15b) The decoupled form 14b for fixed ν and variable ρ is easier to treat because it consists of a set of n equations on ˆ aν and {λ′ νρ}ρ that we can try to solve independently for each ν. These equations state that ˆ aν has to be, simultaneously, the dominant eigenvector of a collection of n matrices (the dominant condition being a consequence of the Perron-Frobenius Theorem). Eq. 14a states that ˆ aν should also be an eigenvector of the n diagonal matrices Kν1,. . . ,Kνn. Let us first address the problem of solving Eq. 14b for a fixed ν and with ρ ranging in {1, . . . ,n}. In general, the equations in this set are not simultaneously solvable because, except in very particular cases, the matrices involved do not share the dominant eigenspace. To find an approximate solution, we first assume that the scalars {λ′ νρ}ρ are the dominant eigenvalues of the matrices involved (this would be the case if the equations could be solved exactly). Then, we find a vector ˆ aν that has sum 1 and minimizes the sum of the quadratic errors associated to Eqs. 14b, see section “An approximate solution to the compatibility equations that involve the adjacency matrix” and Fig. S1 in the Supplementary Material for details. Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 6 | PNAS Nexus, 2023, Vol. 2, No. 5 We have addressed the problem of solving Eq. 11b but not Eq. 11a. Assuming again that W is a positive matrix and that we want the reduction vectors to be positive, Eqs. 11a and 11b are equivalent to Eqs. 14a and 14b; for a fixed ν, these are eigenvector–eigenvalue equations for the vector ˆ aν. Thus, it could be tempting to try to find an approximate solution following the strategy proposed above just by adding Eqs. 14a for all ρ to the list of eigenvector–eigenvalue equations that involve ˆ aν. However, contrary to what happens with Eqs. 14b, we do not have a criterion to choose the corresponding scalars μνρ. In principle, any of the diagonal entries of matrix Kνρ could be chosen as μνρ, but the resulting error and solution vector ˆ aν could be very different depending on this choice. To solve this issue, we apply the following procedure: for a fixed ν, we first approximately solve Eqs. 14b to determine ˆ aν. Once this vector is specified, for every ρ we compute the scalar μνρ that minimizes the quadratic error associated to Eq. 14a, which is given by μνρ =ˆ aT νKνρ ˆ aν ‖ˆ aν‖2(16) (see Lemma 3 in the Supplementary Material). In doing so, we no longer assume that Eq. 12a holds, and this leads to a reduced dynamics that incorporates a correction factor which depends on matrix μ=(μνρ)ν,ρ: ˙ Xν≈f(Xν)+􏽘 n ρ=1Wνρ g(Xν,Xρ) +􏽘 n ρ=1 (μνρ −Wνρ)g1(Xν,Xρ)Xν (17) (see section “Correction when the compatibility equations cannot be solved exactly” of the Supplementary Material for details). Notice that the reduced dynamics described by Eq. 17 reduces to the one presented earlier in Eq. 13 when the compatibility equations that involve the weighted in-degree matrix are solved exactly or when the g function does not depend on its first argument. Also, when the node partition is such that the connectivity properties of nodes in the same group are very similar, we can expect each matrix Kνρ to approximately be a multiple of the identity matrix, and in this case conditions [14a] and [12a] are automatically fulfilled for any ˆ aν. This suggests that the reduced dynamics [13] is quite accurate when the groups are composed of nodes of similar connectivity properties, which is one of the main assumptions behind our reduction methods. A summary of the homogeneous and the spectral dimensionreduction methods is given in Table 1. Exploring the spectral reduction So far, we have presented a method for reducing a given N-dimensional dynamical system on a network into an n-dimensional one whose variables, the observables, represent weighted averages of the node activities of the original network. We assumed that the nodes in the original network are organized into n groups of similar connectivity properties. In the reduction, the observables are constructed so that each of them represents the activity within each of these groups. We have also presented a homogeneous reduction in which the observables are simply the homogeneous averages of node activities within each group and where the connection weight from group ρ to group ν in the reduced system is given by the mean weighted in-degree of nodes in group ν considering only connections from group ρ. The homogeneous reduction is then the simplest strategy to coarse-grain the original system and it has been introduced as a baseline for comparison with the spectral reduction. The accuracy of the reduction is expected to strongly depend on the number of groups n and on the precise arrangement of the nodes into the different groups. Defining the groups and anticipating what n should be to get a proper reduction is, however, a difficult task and there is no clear method to that end. A large repertoire of community detection algorithms on networks has been developed in the last years, which include spectral-based methods, algorithms that use information theory analysis, and Bayesian inference methods that fit the input network to modular graph models (41–43), to cite only some examples. The issue of detecting such groups, despite being necessary for our reductions to be accurate, is not central to the present work. When studying the dimension-reduction methods that we have described earlier we will assume that the networks have been previously analyzed and the main communities have been already detected. We will nonetheless propose ways to refine a given node partition to obtain a richer and more accurate reduced system when the node heterogeneity within the given groups is too large. This will be a fruitful strategy when dealing with networks whose connectivity is highly heterogeneous. We expect a proper reduction to be able to capture some salient features of the original dynamical system. In a system at equilibrium, such a feature can be the presence of bifurcations, also called critical transitions, which are qualitative changes of the system’s state in response to perturbations of some structural or dynamical parameters (13, 14). The detection of the tipping points, i.e. parameter values at which bifurcations occur, has proved to be crucial for anticipating dynamical regime shifts in a large variety of real-world complex systems, be them climatic (44), neurological (45), economic (46), or ecological (47). We would like the reduced dynamics to capture these critical parameters even if the precise activity at equilibrium is not necessarily obtained with high accuracy. In what follows, we study the ability of the spectral reduction to predict bifurcation diagrams, including their tipping points, of different dynamical systems as we vary the overall strength of all the interactions in the network. We compare the results to those obtained from the homogeneous reduction. As our method for solving the compatibility equations requires the adjacency matrix to be positive, in this work we restrict ourselves to positive matrices. We can easily transform a nonnegative weighted or binary adjacency matrix into a positive one by simply assuming that the missing interactions are arbitrarily weak. Node dynamics The proposed method for dimension reduction can be applied to a node dynamics defined by Eq. 1for arbitrary functions f and g of class C1. In this paper, we have chosen f and g so as to model three types of dynamics on networks: a form of neuronal dynamics, a model of infectious disease spreading (susceptible-infected- susceptible, SIS, dynamics) and an ecological dynamics, see section “Examples of node dynamics” of the Supplementary Material. Exact versus reduced bifurcation diagrams for networks with block structure We first assess the extent to which the homogeneous and spectral reduction methods are able to reflect the system’s sensitivity to parameter changes in random networks with known block structure. For this, we homogeneously vary the magnitude of all the interactions so as to force the system to transition between bistable regimes and regimes characterized by a single equilibrium point. Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 Vegué et al. | 7 By modifying the interaction strengths back and forth and integrating the system towards equilibrium, we can capture a bifurcation diagram that reflects these transitions (see section “Computing the bifurcation diagrams” of the Supplementary Material for further details). To compare the reduced and the exact bifurcation diagrams, we plot a weighted average of the n observables at equilibrium for the exact and reduced systems, 〈X〉, as a function of the average weighted in-degree of the reduced system, 〈K〉. The magnitude 〈X〉 is the observables’ average weighted by group size and reflects the overall state of the system: 〈X〉:=1 N􏽘 n ν=1 mνXν.(18) The parameter 〈K〉 is defined by 〈K〉:=1 N􏽘 n ν=1 mνKν,Kν:=􏽘 n ρ=1Wνρ.(19) Homogeneous networks We start by considering random networks constructed according to the directed version of the stochastic block model (SBM) (48), in which nodes are arranged into n modules and binary connections appear independently with probabilities that depend on the node membership. By varying these probabilities, we can create a full range of network structures, from assortative ones, in which nodes are densely connected to nodes in their same module, to dissortative networks, in which interactions within nodes in the same module are rare. Fig. 2compares the two reductions when we take the whole network as a single group (n=1) and when the node partition is that of the true communities in the network. When the number of communities is larger than 1, neither the homogeneous nor the spectral reductions are able to reproduce the correct bifurcation diagram with n=1 (although the spectral reduction provides a better approximation of the bifurcation points) but both of them yield very accurate results when the true communities are provided and n is increased accordingly. The two methods exhibit a very similar performance in this case. The reason is that the SBM (in the dense regime and when the network’s size is large) tends to generate quite homogeneous networks, in which there is small variability in terms of connectivity among the nodes that are in the same group (see Fig. 3A). In fact, in any modular network with perfectly homogeneous connectivity (that is, when the connection strength wij only depends on the membership of nodes i and j, for all i,j), the homogeneous and the spectral reductions coincide as long as the true communities are identified (see Proposition 2 in the Supplementary Material). In general, this makes the homogeneous reduction enough for predicting the bifurcation diagram in nearly homogeneous networks, although there are situations in which correctly identifying the communities might not guarantee an accurate prediction of the bifurcation points by the reduced dynamics. We will come back to this issue later. Heterogeneous networks We now analyze the performance of the two methods when the network has a known modular structure and there is also a large heterogeneity in the connectivity properties of nodes that are in the same module. Inspired by the Chung–Lu model (49, 50), we created a modified version of the directed SBM that can incorporate an important variability of in- and out-degrees within nodes belonging to the same community (see section “Construction of heterogeneous networks with communities” of the Supplementary Material as well as Fig. 3B). In this case, the homogeneous and the spectral methods show different performances, even when the true community structure is used to define the groups in the reductions. The spectral reduction tends to provide more accurate bifurcation diagrams. Yet, when the dimension n is lower or equal to the number of communities, even the spectral method might yield results that are not quantitatively accurate for some dynamics. This is illustrated by the two upper rows of Fig. 4, that show the performance of our reduction methods on heterogeneous networks with the same dynamics, the same number of communities and the same mean connection densities as in the homogeneous networks of Fig. 2. This lack of accuracy is caused by the large heterogeneity among the nodes in the same group. In a way, the number of effective groups in these networks is larger than the number of communities used to construct the network. Therefore, more refined partitions should be defined in order for the reduced dynamics to accurately predict the bifurcation diagrams. To refine a given partition, we used a procedure whose goal is to divide the groups into subgroups so that the variability within nodes that are in the same subgroup is reduced. This variability could correspond to different connectivity attributes of nodes. As an example, Table 1. Summary of the homogeneous and the spectral dimension-reduction methods. Original adjacency matrix W=(wij)N i,j=1 Original dynamics ˙ xi=f(xi)+􏽐N j=1wijg(xi,xj) Groups G1,. . . ,Gn, Gν∩Gρ=∅if ν≠ρ, 􏽓n ν=1Gν={1,. . . ,N}, mν:=|Gν| Reduction vectors aν=(aνi)N i=1, aνi=0 if i∉Gν, 􏽐N i=1aνi=1 Partial reduction vectors ˆ aν=(ˆ aνk)mν k=1=(aνi)i∈Gν, 􏽐mν k=1ˆ aνk=1 Reduced adjacency matrix W=(Wνρ)n ν,ρ=1, Wνρ :=􏽐i∈Gν,j∈Gρaνiwij Observables Xν=􏽐N i=1aνixi=􏽐mν k=1ˆ aνkˆ xνk, ˆ xν=(ˆ xνk)mν k=1=(xi)i∈Gν Reduction Conditions Reduced dynamics Homogeneous ˆ aν=1 mν(1,. . . ,1)T˙ Xν≈f(Xν)+􏽐n ρ=1Wνρg(Xν,Xρ) Spectral Kνρ ˆ aν=μνρ ˆ aν(C1) If Eqs. (C1), (C2) can be solved exactly, WT νρ ˆ aν=λνρ ˆ aρ(C2) ˙ Xν≈f(Xν)+􏽐n ρ=1Wνρg(Xν,Xρ) (compatibility equations) Otherwise, approximately solve Eq. (C2), set μνρ =ˆ aT νKνρ ˆ aν ‖ˆ aν‖2 and ˙ Xν≈f(Xν)+􏽐n ρ=1Wνρg(Xν,Xρ)+􏽐n ρ=1(μνρ −Wνρ)g1(Xν,Xρ)Xν To solve the compatibility equations (exactly or approximately if an exact solution does not exist) for positive adjacency matrices, see the procedure defined in section “Solving the compatibility equations.” Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 8 | PNAS Nexus, 2023, Vol. 2, No. 5 we focused on the weighted in/out-degrees from/to the other groups (see section “Partition refinement” of the Supplementary Material). This allows us to create nested partitions from an original partition while progressively increasing the number of groups n and, with it, the dimension of the reduced dynamics. As shown in the lower rows of Fig. 4, the partition refinements improve the quality of the reductions, especially for the spectral method. We can measure the reduction’s quality by the root-mean-square- error (RMSE) between the true bifurcation diagram and the one obtained from simulating the reduced dynamics (Fig. 5A). Fig. 5B and C shows the RMSE as we increase the reduced dimension n. Our results suggest that the spectral reduction is able to cope better with heterogeneities in the adjacency matrix. The comparison between these networks and their homogeneous counterparts of Fig. 2indicates that the effective dimension of the heterogeneous networks is larger, although it is still smaller compared to that of the original dynamics (N=200). We observe a similar trend in other network examples provided with different node dynamics (Fig. S2). Relevant heterogeneities in homogeneous networks Even in homogeneous networks, there are situations in which correctly identifying the communities might not guarantee an accurate prediction of the bifurcation points by the reduced dynamics. Fig. 6shows the bifurcation diagram corresponding to an ecological dynamics on a network composed of two communities. The Fig. 2. Exact versus reduced bifurcation diagrams for homogeneous directed networks generated from the SBM and neuronal dynamics (Eq. S88 with τ=0.3, μ=10). The left panels show the adjacency matrices and the bars on their right and bottom sides indicate the node partition used for the reductions. When the dimension of the reduction is n>1, the bifurcation diagrams show the value of the average observable at equilibrium defined by Eq. 18. The parameter on the x-axis is the average weighted in-degree of the reduced system defined by Eq. 19. A) Network on N=200 nodes and two communities of the same size in which the mean connection densities are p11 =0.3, p12 =0.05, p21 =0.1, p22 =0.6. B) Network on N=200 nodes and four communities with relative sizes 0.2, 0.3, 0.1, 0.4 and mean connection densities p11 =0.75, p12 =0.05, p13 =0.6, p14 =0.3, p21 =0.1, p22 =0.2, p23 =0.03, p24 =0.002, p31 =0.01, p32 =0.5, p33 =0.9, p34 =0.05, p41 =0.35, p42 =0.03, p43 =0.1, p44 =0.25. Fig. 3. Adjacency matrices and in/out-degrees for homogeneous A) and heterogeneous B) directed networks. Each color corresponds to one community. The networks are analogous to those of Figs. 2and 4. Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 Vegué et al. | 9 connection density is relatively high within each group and also from group 1 to group 2 but not the other way around: there exist few connections from group 2 to group 1. When the initial state of the system is that of a low species abundance in both groups, the system stays in that state until the overall connection strength reaches a critical threshold that makes group 2 (the one with denser connectivity) jump to a high abundance state (Fig. 6A, blue continuous curves in the bottom plots). This first jump is well captured by the reduced dynamics (blue dashed curves). The reduced systems also predict that group 1 should remain in the low abundance state until a second threshold in connection strength is reached (green dashed curves). This threshold is nevertheless not well predicted because group 1 shifts to a high abundance state much earlier in the complete system (green continuous curves). The discrepancy between the exact and the reduced bifurcation diagrams is large for both reduction methods. The source of the discrepancy is the heterogeneity in the input that nodes in group 1 receive from group 2: the majority of nodes in group 1 do not receive any input from group 2 but a few of them get input from exactly one node in group 2. In the original network, the input that this last set of nodes receives is enough for them to jump to a high abundance state right after the jump of group 2. Due to the high density within group 1, they recruit the other nodes in their group and the result is that the whole group shifts to a high abundance state right after group 2 does so. The reduced system with 2 observables (either homogeneous or spectral), however, only takes into account the average input from group 2 to group 1. This average is not large enough to drive group 1 to the high abundance state unless the connection strengths are much larger. This suggests that the deviations from the average input are the cause of the mismatch between the original and the reduced system. In this example, a small deviation in the input received can change the whole state of the system, whereas the reduced system is not able to capture it because it relies on group input averages. The problem can be solved by refining the partition until the inter-group input variability is small enough. We applied the same partition refinement described in the previous section and we found that a partition into a large number of groups (n≈116 for a network on N=200 nodes) is needed to properly capture the second transition (Fig. 6B). This is so because our refinement method is designed to reduce the difference between the maximal and minimal weighted degrees in a given group, regardless of the magnitude of these degrees (i.e. a degree difference of 1 is treated the same way when the degrees are of the order of 20 and when they are of the order of 1). The result is that a very fine refinement is needed to separate the nodes in group 1 that cause the whole group to jump. But it is possible to define an ad hoc partition that makes the second transition be well captured by the reduced system. If we Fig. 4. Exact versus reduced bifurcation diagrams for heterogeneous directed networks and neuronal dynamics (Eq. S88 with τ=0.3, μ=10). A) Network on N=200 nodes and two communities with the same sizes and same mean connection densities as in Fig. 2A. B) Network on N=200 nodes and four communities with the same sizes and same mean connection densities as in Fig. 2B. Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024 16 | PNAS Nexus, 2023, Vol. 2, No. 5 34 Kundu P, MacLaren NG, Kori H, Masuda N. 2022. Mean-field theory for double-well systems on degree-heterogeneous networks. Proc Math Phys Eng Sci. 478:20220350. doi:10.1098/rspa.2022.0350 35 Masuda N, Kundu P. 2022. Dimension reduction of dynamical systems on networks with leading and non-leading eigenvectors of adjacency matrices. Phys Rev Res. 4:023257. doi:10.1103/ PhysRevResearch.4.023257 36 Zhang H, Cornelius SP. 2022. Sharpening the universality of network resilience patterns using motifs. J Phys Conf Ser. 2207: 012010. doi:10.1088/1742-6596/2207/1/012010 37 Hartwell LH, Hopfield JJ, Leibler S, Murray AW. 1999. From molecular to modular cell biology. Nature. 402:C47–C52. doi:10. 1038/35011540 38 Newman MEJ. 2006. Modularity and community structure in networks. Proc Natl Acad Sci USA. 103:8577–8582. doi:10.1073/pnas. 0601602103 39 Ravasz E, Somera AL, Mongru DA, Oltvai ZN, Barabási A-L. 2002. Hierarchical organization of modularity in metabolic networks. Science. 297:1551–1555. doi:10.1126/science.1073374 40 Thibeault V. 2020. Réduire la dimension des systèmes complexes: un regard sur l’émergence de la synchronisation [MSc thesis]. [Quebec]: Université Laval. http://hdl.handle.net/20.500. 11794/67313 41 Doreian P, Batagelj V, Ferligoj A, editors. 2019. Advances in network clustering and blockmodeling. Hoboken: Wiley. doi:10.1002/ 9781119483298 42 Fortunato S, Hric D. 2016. Community detection in networks: a user guide. Phys Rep. 659:1–44. doi:10.1016/j.physrep.2016.09.002 43 Peixoto TP. 2021. Descriptive vs. inferential community detection: pitfalls, myths and half-truths, arXiv, arXiv:2112.00183, preprint: not peer reviewed. 44 Lenton TM. 2011. Early warning of climate tipping points. Nat Clim Change. 1:201–209. doi:10.1038/nclimate1143 45 Kramer MA, et al. 2012. Human seizures self-terminate across spatial scales via a critical transition. Proc Natl Acad Sci USA. 109- (51):21116–21121. doi:10.1073/pnas.1210047110 46 van de Leemput IA, et al. 2014. Critical slowing down as early warning for the onset and termination of depression. Proc Natl Acad Sci USA. 111:87–92. doi:10.1073/pnas.1312114110 47 Hastings A, et al. 2018. Transient phenomena in ecology. Science. 361:eaat6412. doi:10.1126/science.aat6412 48 Holland PW, Blackmond Laskey K, Leinhardt S. 1983. Stochastic blockmodels: first steps. Soc Netw. 5:109–137. doi:10.1016/0378- 8733(83)90021-7 49 Chung F, Lu L. 2002. Connected components in random graphs with given expected degree sequences. Ann Comb. 6:125–145. doi:10.1007/PL00012580 50 Chung F, Lu L. 2002. The average distances in random graphs with given expected degrees. Proc Natl Acad Sci USA. 99: 15879–15882. doi:10.1073/pnas.252631999 51 Dupont YL, Hansen DM, Olesen JM. 2003. Structure of a plant– flower-visitor network in the high-altitude sub-alpine desert of Tenerife, Canary Islands. Ecography. 26:301–310. doi:10.1034/j. 1600-0587.2003.03443.x 52 Maier BF, Brockmann D. 2017. Cover time for random walks on arbitrary complex networks. Phys Rev E. 96:042307. doi:10.1103/ PhysRevE.96.042307 53 Peixoto TP. 2014. Efficient Monte Carlo and greedy heuristic for the inference of stochastic block models. Phys Rev E. 89:012804. doi:10.1103/PhysRevE.89.012804 54 Chen BL, Hall DH, Chklovskii DB. 2006. Wiring optimization can relate neuronal structure and function. Proc Natl Acad Sci USA. 103:4723–4728. doi:10.1073/pnas.0506806103 55 Newman M. 2010. Networks: an introduction. Oxford: Oxford University Press. 56 Laurence E. 2020. La résilience des réseaux complexes [PhD thesis]. [Quebec]: Université Laval. http://hdl.handle.net/20.500. 11794/66989 Downloaded from https://academic.oup.com/pnasnexus/article/2/5/pgad150/7147610 by guest on 30 January 2024