Efficient algorithm based on non-backtracking matrix for community detection in signed networks
Abstract
Community detection or clustering is a crucial task for understanding the structure of complex systems. In some networks, nodes are permitted to be linked by either ”positive” or ”negative” edges; such networks are called signed networks. Discovering communities in signed networks is more challenging than that in unsigned networks. In this study, we innovatively develop a non-backtracking matrix of signed networks, theoretically derive a detectability threshold for this matrix, and demonstrate the feasibility of using the matrix for community detection. We further improve the developed matrix by considering the balanced paths in the network (referred to as a balanced non-backtracking matrix). Simulation results demonstrate that the algorithm based on the balanced non-backtracking matrix significantly outperforms those based on the adjacency matrix and the signed non-backtracking matrix. The proposed (improved) matrix shows great potential for detecting communities with or without overlap.
Index Terms:
Community detection, signed networks, non-backtracking matrix, spectral analysis, detectability threshold.I Introduction
Communities, also known as clusters or modules, are groups of nodes that may share common attributes or have similar properties in a graph. Community detection involves division of similar nodes or nodes with many (positive, large weighted) connections into a group, thereby providing a possible approach for controlling the network. Since nodes with many (positive) connected edges often have similar properties, in terms of graphs, community detection is also a process of finding cut edges. If a few edges are removed, the network can be divided into several parts, and then, the division of these parts is, to a certain extend, equivalent to community partition.
Community detection is widely applied in fields such as biology, computer science, engineering, economics, political science, and sociology [1]. For example, protein-protein interaction networks are a research hotspot in biology and bioinformatics [2]. The interaction between proteins is the basis of every process in the cell. Each interaction is observed experimentally and marked as a connection. Proteins with the same or similar functions are grouped into one module and are expected to participate in the same process. This is a classical application that conceptualizes the actual scenario as an unsigned network. A social network is also a typical example of a network with a community structure. In general research, a connection in as social network is regarded as being positive, e.g., followers, likes, and message forwarding. However, social networks often contain many negative connections. For example, some websites such as epinions.com and slashdot.com permit users to identify friends and enemies [3]. The signed network introduced in the present study represents such a scenario, i.e., opposite opinions on the same topic [3] and blackout and reporting among users.
In the 1940s [4], Heider introduced the concept of signed networks and proposed the well-known structural balance theory, which states ”the friends of my friends, as well as the enemies of my enemies, are my friends”(see in Fig. 1). This theory, which is one of the most popular social science theories has recently been receiving increasing attention. A related research topic is to design algorithms for computing the structural balance of large-scale datasets [5, 6, 7]. Another research topic is the study of the impact of structural balance on some concrete applications, such as recommender systems [8] and dynamic processes [9].
[width = 0.9]triangles.eps
In social networks, user communities provide valuable services for websites, such as friend recommendations for users. Clustering of web pages can be used to rank them and provide more relevant search results [1]. Furthermore, the use of community detection in social media can clearly explain the observed phenomena and provide benchmarks for social mechanisms [10].
The following are some of the categories into which existing method for community detection can typically be classified: (1) conventional algorithms such as graph partitioning [11], hierarchical clustering [12], partition clustering [13], and spectral clustering [14]; (2) modular-based methods [15]; (3) dynamic algorithms [16, 17]; and (4) methods based on statistical inference [18]. Most of these algorithms are for unsigned networks. However, community detection in signed networks is a more challenging task, because of the distinct roles of the negative inter-community and intra-community links. In general, negative inter-community links segregate the connected communities whereas negative the inter-community links blur the community structure.
In this study, we mainly consider the spectrum method for detecting the community structure. For community detection in unsigned networks, the adjacency matrix [19], Laplacian matrix [20], non-backtracking matrix [21], and other structure-related matrices have been used, whereas for community detection in signed networks, the adjacency matrix has been explored [22].
The remainder of this paper is organized as follows. First, in Sec.II, we define the necessary notations and propose the definition of the non-backtracking matrix. We take full advantage of the structural balance theory to propose the signed non-backtracking (SNBT) matrix of signed networks. In Sec.III, we derive a theoretical detection threshold (where is a community-correlated eigenvalue and is the average degree of the network) and theoretically demonstrate the feasibility of using the SNBT matrix for community detection above the detectability threshold. In Sec.IV, we introduce an improved version of the SNBT matrix, termed the balanced non-backtracking (BNBT) matrix, and propose an efficient community detection algorithm based on the BNBT matrix. In Sec.V, we present numerical simulations performed for demonstrating the effectiveness of the SNBT matrix vis-à-vis the adjacency matrix in community detection. Through experiments on signed stochastic block networks and real-world networks, we show that BNBT matrix-based approach has the best performance among the three approaches based on these three matrices. Finally, in Sec.VI, we conclude the paper.
II Non-backtracking matrix for signed networks
II-A Signed stochastic block model
Signed networks consist of interacting individuals with both positive and negative relationships. Each individual in the network corresponds to a node in the graph. The connection between a pair of individuals is regarded as the edge between the corresponding node pair. Positive and negative relationships are represented as positive and negative edges in the network. For simplicity, the weights of positive and negative edges are defined as and , respectively.
First, we describe the signed stochastic block model [21, 22, 23]. Given an undirected network with nodes (where is assumed to be an even number), we divide the node set into two groups, and , where each group has nodes. Nodes in group are indexed from to and those in group are indexed from to .
A signed network can be represented by an adjacency matrix in which the entries take on values of , where 0 signifies the absence of an edge, and and signify a positive relationship and negative relationship, respectively. The adjacency matrix is symmetric because the network is undirected. The following are some of the parameters for any pair of nodes . The probability of formation of an edge between any given in-group (out-group) node pair is (). The expected edge density of the entire network is . Given the presence of an edge between in-group members, denotes the conditional probability that it will be positive. Analogously, , , and denote the conditional probabilities of a positive edge between out-group members, a negative edge between in-group members, and a negative edge between out-group members, respectively. Thus, the conditional probabilities satisfy and .
Generally speaking, when we say that a network has a community structure, at least one of the following conditions holds:
-
1.
The number of positive intra-community links is greater than the number of negative links, i.e., and .
-
2.
The density of intra-community links is higher than that of inter-community relationships, i.e., .
Under the first condition, the community structure is termed relationship-sensitive and is denoted as r-community. Under the second condition, the community structure is termed link-density-sensitive and denoted as d-community.
II-B Definition of non-backtracking matrix
One of the main contributions of this work is to define non-backtracking matrices for signed networks, which have great potential for community detection. Though a non-backtracking matrix of unsigned networks is well defined–which is presented herein for completeness–a proper definition of a non-backtracking matrix is far from trivial, as demonstrated in following sections.
Prior to providing a formal definition of a non-backtracking matrix of signed networks, we first present the definition of a non-backtracking matrix of unsigned or general networks. The non-backtracking matrix , often termed the matrix in mathematics, is defined as follows:
(1) |
where is the adjacency matrix of the unsigned network and and are two directed edges. It should be noted that if the network is undirected, we treat each undirected edge as two directed edges. Hence, the matrix has the dimensions , where is the number of edges in the network.
The non-backtracking matrix can, in fact, be expressed as
(2) |
Similar to the matrix defined in Eq.(1), the SNBT matrix of signed networks, denoted as , can be directly derived as follows:
(3) |
This matrix can be expressed as
(4) |
where denotes the sign of a directed edge , which takes a value of either or . The significance of the defined non-backtracking matrix is that true information will be transferred between two edge pairs with identical signs and false information will be transferred between two edge pairs with different signs, and this behavior accurately follows the structural balance theory (a triple with either one or three negative signs is unstable).
On the basis of the information flowing along the directed edges in the network, can also be deduced via linearized belief propagation (LBP). This is explained in greater detail in Appendix A.
In other words, we define the non-backtracking matrix from two different perspectives, theoretically deduce its role in community detection, and confirm the feasibility of its application to a basic stochastic block model via the linearization of the updating equation of the BP algorithm around a fixed point.
III Theoretical analysis
III-A Analytical derivation of community detection threshold and detection vector
To demonstrate the applicability of the SBNT matrix to community detection, we derive the community detection threshold and a detection vector for an arbitrary signed network. By generalization on the basis of observations in unsigned networks [21, 24, 25, 26], we define and as -dimensional vectors:
where denotes the neighbor set of node and vector is a given vector with 2m dimensions. Unlike in the case of unsigned network, we not only sum over incoming and outgoing edges but also consider the sign of the edges.
By applying to , we get
where denotes the degree of node (which is independent of the sign of the edges). Rewriting the above two equations in matrix form gives
(5) |
where is the identity matrix, is the diagonal matrix of vertex degrees, and is the adjacency matrix of the underlying unsigned structure corresponding to the signed network.
Suppose that ; then, we have
If and are nonzero, then is an eigenvector of with the same eigenvalue . Hence,
Therefore, is a root of the quadratic eigenvalue equation
(6) |
The complexity of calculating the eigenvalues of will be much lower than that of the original non-backtracking matrix . Eq.(6) is well known in the theory of graph zeta functions [26]. It accounts for of the eigenvalues of , and the remaining eigenvalues are .
In fact, we directly and simply prove that the spectrum of is the same as that of , where the network for the latter matrix is considered as an unsigned network. can also be derived via multiplication of all the elements of some rows and their corresponding columns in by , that is,
(7) |
where is the number of negative edges in the network.
Therefore, the bulk of the spectrum is also confined to the radius disk in signed networks. It should be noted that is the average degree of the network. We can similarly and correspondingly define and .
Further, we obtain the first and second eigenvalues of as
(8) |
In the unsigned network, the second eigenvector of the non-backtracking matrix is a community-correlated eigenvector. If the second eigenvalue of is separated from the bulk of the spectrum, then the eigenvector corresponding to the second eigenvalue can be used in the community detection (via labeling of the vertices according to the sign of the sum of all incoming edges at each vertex) [27]. Similar conclusions for signed networks are verified subsequently in the paper.
Next, we first attempt to construct a vector that is correlated to the communities and is an approximate eigenvector with eigenvalue . We assume that , and therefore the graph is sparse and locally tree-like. For any positive integer and any directed edge , we define the following:
where denotes the community of , denotes the sign of edge , and denotes the number of steps required to go from to in the graph of directed edges, as shown in Fig. 2.
[width=0.6]cal_distance.eps
Application of to gives
which can be simplified as
We can write as
Now, there are (an expected) terms in this sum, each of which is conditioned on values and has an expected value of zero and a constant variance. Hence,
By summing over all the edges, we obtain
Therefore, when the community-correlated eigenvalue (the second eigenvalue) satisfies
(9) |
it can be naturally considered that when this eigenvalue is separated from the bulk spectrum, the error is small and it approaches zero for large . Further, from the conclusion for unsigned networks [28, 29], it can be inferred that, under the condition that the threshold is met and , for every ,
Thus, we can draw the following conclusion:
Therefore, is indeed an approximate eigenvector of having an eigenvalue of , which may be used to detect the community structure of signed networks. Further, Eq.(9) expresses the detection threshold finally derived in this study, which shows agreement with the threshold for unsigned networks.
III-B Threshold for the case of more than two communities
The above-presented analysis is for stochastic block models with two communities (). In fact, according to the above-described derivation process, the SNBT matrix can also be well applied to a model with more than two communities (). Its detectable threshold should be similar to the conclusion for the unsigned network; that is, the community-correlated eigenvalue satisfies Eq.(9), i.e., .
In this case, the second eigenvalue is given as
We can take the first eigenvectors and use the k-means algorithm to determine the group labels of the nodes. However, the threshold value for detection of the network structure using the adjacency matrix when the number of communities is greater than two is yet unknown; therefore, we refrain from performing a more detailed comparative evaluation here.
IV Algorithm for community detection
IV-A Improved non-backtracking matrix for community detection in signed networks
From the above analysis, we know that the SNBT matrix is density sensitive rather than sign sensitive. Even in the case where the negative edges of inter-community connections and the positive edges of intra-community connections constitute the majority of the edges in the connections, the final results are not ideal as long as the density of connected edges within and between groups exceeds the above-derived threshold value. This insensitivity of the SNBT matrix to edge signs is essentially contrary to our original goal of exploring the community structure of signed networks
In fact, from the below-described threshold of the adjacency matrix, we can see that this matrix is only sign-sensitive and that is, too, does not meet our requirements for community detection. The ideal matrix should have good performance in terms of both aspects; that is, it should be both sign-sensitive and density-sensitive.
We considered both the structural balance theory and the BP theory in the construction of the non-backtracking matrix. Why does this sign insensitivity occur? We find from the discussion in Sec.IIIA that the approximation of the second eigenvector is actually related only to the -order neighbors of node , which is simply equal to the total number of communities the node belongs to and whether or not the path between two nodes is balanced, i.e., whether the internal relationship is friendly or hostile, is not considered.
Hence, we improve the matrix by making the following assumption. We assume that a large number of balanced or stable paths of a given length between two vertices and is expected if both the vertices belong to the same community. Then, the improved matrix, denoted by , is defined as follows:
(10) |
This matrix can alternatively be expressed as
(11) |
Therefore, according to the BP algorithm, during the propagation process, only true information is transmitted to edges with same signs, and false information is transmitted to edges with different signs. For simplicity, we term this matrix the BNBT matrix. In fact, is an approximation of , and the detection threshold for community detection is still unclear. However, the below-described experiments demonstrate that this improved matrix is ideal for community detection.
IV-B Community detection algorithms
In this section, we provide a detailed description of the community detection algorithm based on the BNBT matrix. We calculate the first eigenvectors of the adjacency matrix for performing clustering using the -means algorithm. Because the detection accuracy of BNBT matrix is not validated theoretically and the community-related eigenvectors of the BNBT matrix are also unclear, we perform clustering using all eigenvectors corresponding to the real eigenvalues. When applying the SNBT-matrix-based algorithm, we calculate the first , where is the number of real eigenvalues.
[htb]
Framework for community detection in signed networks.
{algorithmic}[1]
\REQUIRE
Adjacency matrix of network ;
Number of communities ;
\ENSURE
\STATEThe BNBT matrix is constructed according to Eq.(11);
\STATEThe eigenvectors corresponding to the real eigenvalues, where is the number of real eigenvalues, are calculated;
here, each th-row vector represents a directed link;
\STATEFor each node , weighted summation of all the vectors of its out-edges , is performed to obtain its representative vector;
\STATEThen, clustering is performed using the -means algorithm to obtain the group label of the nodes;
\RETURN.
In the following section, we compare the community detection performances of the three matrices.
V Results
To evaluate the community detection performances of the SBNT matrix () and BNBT matrix (), we perform extensive simulations on signed networks. The accuracy of community detection is quantified by the concept of overlap [21], which is defined as the ratio of the number of correctly predicted nodes to the total number of nodes. Overlap can be expressed as
where is the actual group label of vertex , and is the label inferred by the algorithm. When for every node , we have and the detection accuracy is 100.
We break symmetry by maximizing the overall permutations of the groups, where is the number of groups into which the nodes are divided. The prediction is accurate when the overlap equals , and under this definition, the minimum value of the overlap can be taken as . The overlap is normalized as
The overlap ranges from 0 to 1, where a value of implies that the prediction is inaccurate because of random grouping. For visualization purposes, we still use the un-normalized overlap in the below-described numerical simulations.
V-A Comparison with adjacency-matrix-based detection
In unsigned networks, most of the eigenvalues of the adjacency matrix are within a threshold. The number of eigenvalues beyond the threshold equals the number of communities. The second eigenvector indicates the community structure[21].
[width=0.9]thrsh_nonvsadj.eps
Similar results have been reported in [22], that is, the bulk of the spectrum of the adjacency matrix is also within a threshold for signed networks. Unlike in the case of the unsigned network, in the signed network, the leading eigenvector represents the community structure, and the number of eigenvalues beyond the threshold is no longer equal to the number of communities (it should be equal to the number of communities minus 1). Moreover, the authors of [22] were the first to consider the detectability transition in signed networks. They concluded that when there are only two communities, as long as the following conditions (Eq.66 in [22]) are met, the sign of the principal eigenvector can be used to detect communities using perturbation analysis and random matrix theory.
(12) |
Considering the average degree of the signed network, we use the SNBT matrix as long as the following inequality is satisfied:
(13) |
[width = 0.9]compare_matrices.eps
In some cases, we can obtain better results by applying the SNBT matrix than by applying the adjacency matrix. Here, we provide a simple but general example for comparing the two methods (see Fig. 3). In all the comparisons, we assume for convenience. We only consider the case of here, because when , the community structure can be represented by (the last eigenvector of the adjacency matrix). However, given the dynamic evolution process of the network, only the driving role of the leading eigenvector of the initial network in the evolution of structural balance yields a dynamic manifestation of the detectability transition [22].
In fact, Fig. 3 is an abstract representation of the community related parameters in a real network. Region 4 represents the situation wherein , and . In other words, the random blocks generated by the parameters in region 4 are not the two communities mentioned above. For the case that the parameters lie in region 2 (or region 3), we actually anticipate that the algorithm is not sign-sensitive (or density-sensitive), and in such a scenario, the BNBT matrix is effective.
It should be noted that because the theoretical detection threshold of the BNBT matrix is still unknown, we refrain from discussing it any further.
V-B Comprehensive comparison among three matrices in terms of community detection performance
[width = 0.6]compare_varpin.eps
In the following, we provide examples to demonstrate the superior performance of the improved algorithm. The comparison results are shown in Fig. 4. The -axis and -axis represents the and , respectively. Both the -axis and the color represent the overlap. The experiments are performed on signed networks with a size of and an average degree of . We set for convenience, which varies from to with an interval of . It is worth noting that the values in the figure are normalized, i.e., , which also varies from to with an interval of .
[width = 0.8]compare_vardin.eps
We can see that the performance of the SNBT matrix is sensitive only to the link density of inter- and intra- community connections, whereas the adjacency-matrix-based algorithm is more sensitive to the link signs. The BNBT-matrix-based algorithm has the advantages of both these matrices, and its performance depends on both the link density and the link signs. Moreover, the area of the undetectable field (in which the overlap is about ) is smallest, which indicates that this matrix has the best performance.
Fig. 5 shows four concrete examples with and varying (in the range of [, ]). In fact, each line in this figure is a slice of the data in shown Fig. 4, which is obtained by considering the corresponding values. The black, red, and blue lines represent the results obtained using the adjacency matrix, the SNBT matrix, and the BNBT matrix, respectively. For each case (i.e., for each matrix), we perform 10 experiments and calculated the average value for joining the data points to form the black, blue, and red dashed lines. From all the graphs except for the first one, which is the case of , we can make the following observations. The overlap is close to 0.5 (which means that the nodes are labelled almost randomly) when the detection threshold of the adjacency matrix is not met, however, the algorithms based on the two non-backtracking matrices show good performances. As discussed above, the overlap does not change with an increase in . As increases, the adjacency matrix-based algorithm outperforms the SNBT-matrix-based algorithm. However, the BNBT-matrix-based algorithm outperforms the adjacency-matrix-based approach at all values. This entire analysis can lead to a satisfactory conclusion regarding the superiority of the BNBT-matrix-based algorithm. The first graph is the only exception; in this case, the density is of no use for dividing the community structure(), and therefore, the SNBT-matrix-based algorithm is invalid and the performance of the BNBT-matrix-based algorithm is poorer than that of the sign-sensitive adjacency-matrix-based algorithm.
As shown in Fig. 6, we further evaluate the performances of the three approaches from another perspective; that is, we provide three concrete examples with and varying (in the range of ). These data lines are slices obtained from the data in Fig. 4 from a different angle. The performance of adjacency-matrix-based approach is not completely independent of . When , the overlap increases at a small . However, after the threshold is met, the performance of this approach does not improve with decreasing . It is further proved that the SNBT matrix is sign-insensitive. As was the case in the above-described analysis, density sensitivity is the only factor we need to consider when , and therefore, is superior; however, at other values, is superior.
In addition, we know that detection of community structure may be difficult when the graph is sparse. For example, in an unsigned network, when is constant and is large, the network is decomposed for several reasons. Most importantly, the leading eigenvalues of are represented by maximum-degree vertices, and the corresponding eigenvectors are localized around these vertices [21, 30]. The non-backtracking matrix has better performance in the case of a sparse graph. We expect it to have superior performance even in the case of a signed network.
If the right side of the first inequality in Eq.(13) is regarded as a function of , we obtain a lower bound according to the monotonicity of the function as follows:
(14) |
Therefore, we theoretically prove that when the community detection using the non-backtracking matrix is feasible, the smaller the value, the better are the results obtained using the non-backtracking matrices than those obtained the adjacency matrix. It should be noted that what we refer to as better performance in the case of a sparse graph is relative. In fact, with an increase in the sparsity of the network, the detection accuracy will indeed decrease correspondingly. The observation is also confirmed by numerical simulations performed on stochastic block models with , , , and varying average degree (in the range of with an interval of ). As shown in Fig. 7, the performances of the two non-backtracking matrix-based algorithms under varying are more stable and robust than that of the adjacency-matrix-based algorithm.
[width=0.6]overlap_c.eps
We are also interested in the performance of the newly proposed in the above comparative analysis; however, these analyses are based only on numerical simulations, and the underlying theory remains to be studied. Nevertheless, we can draw a definitive conclusion that is sensitive to both the edge sign and the connection density. In most cases, it has better performance than the other two matrices, and . These two matrices have their own limitations. Although they may be the best choice in some very special scenarios, generally speaking, the BNBT-matrix-based algorithm is the most reliable and effective approach.
V-C Experiments on real-world networks
Network | |||
---|---|---|---|
Email-Eu-core[31, 32] | 1,005 | 25,571 | 42 |
American College football[16] | 115 | 613 | 12 |
Political blogs[33] | 1,490 | 19,090 | 2 |
[width =0.8]real_data_overlap.eps
Finally, we select three real-world networks with ground-truth communities to compare the community detection performances of the three matrices. The basic features of the three networks are listed in Table I. However, since these networks are unsigned, we use the following method to assign a sign (positive or negative) to each link. First, we classify all the links into two categories: inter-community links and intra-community links. Then, we assign to each inter-community link a positive sign with a probability of and to each intra-community link a probability of . We set , which means that the larger the value, the more significant is the community structure of the network.
In Fig. 8, we have illustrated the community detection accuracies of the three matrices under variation of from to with an interval of . As can be seen from this figure, the performance of the adjacency-matrix-based algorithm increases with increasing . This result reveals that this algorithm is sign-sensitive, which is in agreement with the earlier discussion. Similarly, the accuracy of the SNBT-matrix-based algorithm remains almost unchanged, because it is insensitive to . The BNBT-matrix-based algorithm shows the best performance and its accuracy also increases with increasing . In addition, even though the number of communities in the football network is , the BNBT- and SNBT-matrix-based methods still perform well. This result implies that these matrices are applicable for community detection in a signed network when the number of communities is greater than two, which further confirms our observations.
VI Conclusion and discussion
In this study, we investigate efficient community detection in a signed network by demonstrating the feasibility of defining a non-backtracking matrix of signed networks. We provide the definition of an appropriate non-backtracking matrix from two different perspectives: the well known structural balance theory and belief propagation. We analytically determine the community detection ability of the proposed non-backtracking matrix and propose an even more efficient matrix, termed the balanced non-backtracking matrix ; the algorithm based on this matrix significantly outperforms that based on the adjacency matrix.
We anticipate the algorithm based on the proposed balance non-backtracking matrix to be sensitive and adaptable to both the edge sign and the connection density. Our algorithm (as also the previous algorithms) is completely effective in the case of the most standard community partition; however, we need to have a basic understanding of more complex networks and communities with different characteristics before we can select the most appropriate algorithm for them. From this viewpoint, the balanced non-backtracking matrix is the most universal matrix. An exception to this universality is that when the community in the actual network is not a relationship-dependent community or a density-dependent community, the above-discussed algorithms may not provide satisfactory results.
The proposed framework shows great potential for community detection with or without overlap and paves the way to understanding the collective behaviors of systems in which positive and negative relationships coexist.
Acknowledgment
Z-YZ, C-QQ, and G-HW were supported in part by National Natural Science Foundation of China under Grant 12001324, Grant 11631014, and Grant 11871311, in part by China Postdoctoral Science Foundation under Grant 2019TQ0188, Grand 2019M662315, in part by Shandong University multidisciplinary research and innovation team of young scholars under Grand 2020QNQT017. X-RW acknowledges the partial support of the project ”PCL Future Greater-Bay Area Network Facilities for Large-scale Experiments and Applications (LZC0019)”.
References
- [1] S. Fortunato, “Community detection in graphs,” Physics reports, vol. 486, no. 3-5, pp. 75–174, 2010.
- [2] P. F. Jonsson, T. Cavanna, D. Zicha, and P. A. Bates, “Cluster analysis of networks generated through homology: automatic identification of important protein communities involved in cancer metastasis,” BMC bioinformatics, vol. 7, no. 1, p. 2, 2006.
- [3] P. Anchuri and M. Magdon-Ismail, “Communities and balance in signed networks: A spectral approach,” in 2012 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining. IEEE, 2012, pp. 235–242.
- [4] F. Heider, “Attitudes and cognitive organization,” The Journal of psychology, vol. 21, no. 1, pp. 107–112, 1946.
- [5] G. Facchetti, G. Iacono, and C. Altafini, “Computing global structural balance in large-scale signed social networks,” Proceedings of the National Academy of Sciences, vol. 108, no. 52, pp. 20 953–20 958, 2011.
- [6] S. A. Marvel, J. Kleinberg, R. D. Kleinberg, and S. H. Strogatz, “Continuous-time model of structural balance,” Proceedings of the National Academy of Sciences, vol. 108, no. 5, pp. 1771–1776, 2011.
- [7] A. Kirkley, G. T. Cantwell, and M. Newman, “Balance in signed networks,” Physical Review E, vol. 99, no. 1, p. 012320, 2019.
- [8] N. Monika, G. Lavanya, K. Vaishnavi, M. Kavya, and V. Kanaiya, “Structural balance theory based recommendation,” International Journal of Advanced Research in Computer Science, vol. 9, no. Special Issue 3, p. 45, 2018.
- [9] C. Qu and H. Wang, “Impact of structural balance on self-avoiding pruning walk,” Physica A: Statistical Mechanics and its Applications, vol. 524, pp. 362–374, 2019.
- [10] J. Leskovec, D. Huttenlocher, and J. Kleinberg, “Signed networks in social media,” in Proceedings of the SIGCHI conference on human factors in computing systems, 2010, pp. 1361–1370.
- [11] B. W. Kernighan and S. Lin, “An efficient heuristic procedure for partitioning graphs,” The Bell system technical journal, vol. 49, no. 2, pp. 291–307, 1970.
- [12] J. Friedman, T. Hastie, and R. Tibshirani, The elements of statistical learning. Springer series in statistics New York, 2001.
- [13] J. MacQueen et al., “Some methods for classification and analysis of multivariate observations,” in Proceedings of the fifth Berkeley symposium on mathematical statistics and probability. Oakland, CA, USA, 1967, pp. 281–297.
- [14] U. Von Luxburg, “A tutorial on spectral clustering,” Statistics and computing, vol. 17, no. 4, pp. 395–416, 2007.
- [15] L. Yang, X. Cao, D. He, C. Wang, X. Wang, and W. Zhang, “Modularity based community detection with deep learning.” in IJCAI, vol. 16, 2016, pp. 2252–2258.
- [16] M. Girvan and M. E. Newman, “Community structure in social and biological networks,” Proceedings of the national academy of sciences, vol. 99, no. 12, pp. 7821–7826, 2002.
- [17] M. E. Newman and M. Girvan, “Finding and evaluating community structure in networks,” Physical review E, vol. 69, no. 2, p. 026113, 2004.
- [18] D. J. MacKay and D. J. Mac Kay, Information theory, inference and learning algorithms. Cambridge university press, 2003.
- [19] S. Chauhan, M. Girvan, and E. Ott, “Spectral properties of networks with community structure,” Physical Review E, vol. 80, no. 5, p. 056114, 2009.
- [20] A. Pothen, “Graph partitioning algorithms with applications to scientific computing,” in Parallel Numerical Algorithms. Springer, 1997, pp. 323–368.
- [21] F. Krzakala, C. Moore, E. Mossel, J. Neeman, A. Sly, L. Zdeborová, and P. Zhang, “Spectral redemption in clustering sparse networks,” Proceedings of the National Academy of Sciences, vol. 110, no. 52, pp. 20 935–20 940, 2013.
- [22] M. Morrison and M. Gabbay, “Community detectability and structural balance dynamics in signed networks,” Physical Review E, vol. 102, no. 1, p. 012304, 2020.
- [23] A. Decelle, F. Krzakala, C. Moore, and L. Zdeborová, “Asymptotic analysis of the stochastic block model for modular networks and its algorithmic applications,” Physical Review E, vol. 84, no. 6, p. 066106, 2011.
- [24] P. Ren, R. C. Wilson, and E. R. Hancock, “Graph characterization via ihara coefficients,” IEEE Transactions on Neural Networks, vol. 22, no. 2, pp. 233–245, 2010.
- [25] O. Angel, J. Friedman, and S. Hoory, “The non-backtracking spectrum of the universal cover of a graph,” Transactions of the American Mathematical Society, vol. 367, no. 6, pp. 4287–4318, 2015.
- [26] M. Kotani and T. Sunada, “2.-zeta functions of finite graphs,” Journal of Mathematical Sciences-University of Tokyo, vol. 7, no. 1, pp. 7–26, 2000.
- [27] S. Janson, E. Mossel et al., “Robust reconstruction on trees is determined by the second eigenvalue,” The Annals of Probability, vol. 32, no. 3B, pp. 2630–2649, 2004.
- [28] E. Mossel, Y. Peres et al., “Information flow on trees,” The Annals of Applied Probability, vol. 13, no. 3, pp. 817–844, 2003.
- [29] H. Kesten and B. P. Stigum, “Additional limit theorems for indecomposable multidimensional galton-watson processes,” The Annals of Mathematical Statistics, vol. 37, no. 6, pp. 1463–1481, 1966.
- [30] M. Krivelevich and B. Sudakov, “The largest eigenvalue of sparse random graphs,” Combinatorics, Probability and Computing, vol. 12, no. 1, pp. 61–72, 2003.
- [31] J. Leskovec, J. Kleinberg, and C. Faloutsos, “Graph evolution: Densification and shrinking diameters,” ACM transactions on Knowledge Discovery from Data (TKDD), vol. 1, no. 1, pp. 2–es, 2007.
- [32] H. Yin, A. R. Benson, J. Leskovec, and D. F. Gleich, “Local higher-order graph clustering,” in Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2017, pp. 555–564.
- [33] L. A. Adamic and N. Glance, “The political blogosphere and the 2004 us election: divided they blog,” in Proceedings of the 3rd international workshop on Link discovery, 2005, pp. 36–43.
- [34] A. Coja-Oghlan, E. Mossel, and D. Vilenchik, “A spectral approach to analysing belief propagation for 3-colouring,” Combinatorics, Probability and Computing, vol. 18, no. 6, pp. 881–912, 2009.
- [35] A. Mellor and A. Grusovin, “Graph comparison via the nonbacktracking spectrum,” Physical Review E, vol. 99, no. 5, p. 052309, 2019.
Appendix A Alternative definition of non-backtracking matrix based on linearized belief propagation
Belief propagation (BP) is a kind of acyclic message passing algorithm, which calculates the exact marginal distribution of each vertex in the network. Although BP is designed to work accurately on trees, it is usually applied to general graphs that are sparse and may contain loops [21, 24, 34].
This algorithm starts from the appropriate initial assignment and performs an iteration for some ”messages”. Specifically, for each edge in a graph , the message indicates the conditional probability that belongs to community when does not, and the message indicates the probability that belongs to community when does not. Usually, . As is clear from this explanation, although the original graph is undirected, these messages are delivered to the directed edge, where each message has a value between 0 and 1. The message can be calculated iteratively on the basis of such information transfer.
The BP algorithm has good consistency with the actual group allocation because it approximates the Bayesian optimal reasoning of a block model. The application of the BP algorithm to spectral clustering is also a possible research direction [25, 35].
In this section, we prove that in signed networks, appears in the linearization equation derived from the updating equation of the BP algorithm. Because of the presence of the edge sign, we generalize the existing BP updating equation into the following form for :
(15) |
where denotes the probability that belongs to a community when does not belong to the network and denotes two separate communities. It should be noted that represents the information transmitted from non-edges (points not adjacent to v), where , and denotes to the ratio of the current number of points in two communities to the total number of nodes estimated by the BP algorithm.
It is noteworthy that when and have different signs, the information transmitted to is not but . This means that if these two edges have different signs, the false information will be transmitted to . Similarly, the trivial fixed point of the above updated equation is still ; that is, the probability of each vertex being divided into two communities is equal.
Next, we consider the information update equation near the trivial fixed point. By taking and linearizing around this fixed point (for more details, see Appendix B), we obtain an updating rule of :
(16) |
That is, can also be obtained by the BP algorithm.
Appendix B Derivation process of updating equation of
To simplify the updating equation of , let us carefully consider Eq..
First, we notice that holds near the trivial fixed point; that is, can be written as . Under the assumption of an unknown constant , we split Eq. into two equations:
(17) |
(18) |
Rewriting Eq. near the trivial fixed point gives
(19) |
By merging similar items, we get
(20) |
Eq. can be simplified to
(21) |
Linearization of Eq. and Eq. gives
(22) |
(23) |
To eliminate the constant , we calculate the sum and difference of Eq. and Eq.,
(24) |
After eliminating the constant , we have
(25) |
Consequently, we obtain the updating rule of in signed networks,
(26) |
\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]zyzhong | Zhaoyue Zhong received the B.S. degree from School of Mathematics, Shandong University, China in 2020. She is currently pursuing the M.S. degree in School of Mathematical Sciences, Fudan University, China. Her current research interests include complex networks and mathematical methods in neural networks. |
\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]xwang | Xiangrong Wang is currently a research assistant professor at Southern University of Science and Technology, Shenzhen, China. She received her Ph.D. degree from the Delft University of Technology, the Netherlands in 2016. Before joining Shenzhen, she was a postdoctoral researcher at the Delft University of Technology from 2017 to 2018. In 2017 and 2018, she was a visiting scholar at Zaragoza University, Zaragoza, Spain and ISI Foundation, Torino, Italy. Her research focuses on modeling and analysis of complex networks, nonlinear dynamics and graph spectral analysis. |
\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]cqqu | Cunquan Qu is currently working as a Post-doctor researcher at Data Science Institute, Shandong University, Jinan, China. He did a joint Ph.D. project in the Multimedia Computing Group at the Delft University of Technology for two years. He received his Ph.D. degree from Shandong University in 2019. His research focuses on analyzing network structure, modeling the dynamics process, graph neural networks. |
\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]ghwang | Guanghui Wang received a B.Sc. degree in Mathematics from Shandong University, Jinan, China, in 2001. He got the doctor’s degree from Paris SDU University and worked in Ecole Centrale Paris as a Post-doctor. Now he is a professor in School of Mathematics, Shandong University. His current interests include graph theory, combinatorics, complex networks and bioinformatics. |