Modularity-like objective function in annotated networks
Jia-Rong Xie, Bing-Hong Wang

TL;DR
This paper introduces a modularity-like objective function for annotated networks that balances modularity and metadata influence, enabling adjustable community detection and expanding modularity methods.
Contribution
It proposes a novel objective function that integrates metadata influence into modularity optimization, allowing adjustable community detection in annotated networks.
Findings
The objective function is a linear combination of modularity and conditional entropy.
Adjustable influence of metadata enables recovery of metadata-driven communities.
Transition exists between metadata-dominant and modularity-dominant partitions.
Abstract
We ascertain the modularity-like objective function whose optimization is equivalent to the maximum likelihood in annotated networks. We demonstrate that the modularity-like objective function is a linear combination of modularity and conditional entropy. In contrast with statistical inference methods, in our method, the influence of the metadata is adjustable; when its influence is strong enough, the metadata can be recovered. Conversely, when it is weak, the detection may correspond to another partition. Between the two, there is a transition. This paper provides a concept for expanding the scope of modularity methods.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications
Modularity-like objective function in annotated networks
Jia-Rong Xie
Department of Modern Physics, University of Science and Technology of China, Hefei 230026, China
Bing-Hong Wang
Department of Modern Physics, University of Science and Technology of China, Hefei 230026, China
Abstract
We ascertain the modularity-like objective function whose optimization is equivalent to the maximum likelihood in annotated networks. We demonstrate that the modularity-like objective function is a linear combination of modularity and conditional entropy. In contrast with statistical inference methods, in our method, the influence of the metadata is adjustable; when its influence is strong enough, the metadata can be recovered. Conversely, when it is weak, the detection may correspond to another partition. Between the two, there is a transition. This paper provides a concept for expanding the scope of modularity methods.
pacs:
89.75.Hc, 02.50.Tt
I Introduction
Community structure, a partition of nodes in which the density of edges within groups is denser than that between groups, is an important large-scale structure in complex networks, and has attracted significant attention in recent years Fortunato_review ; Newman_review ; Fortunato_review_16 . Many methods have been proposed for detecting community structure. Here, we focus on two: statistical inference Decelle_SatInf ; Decelle_SatInf2 ; Karrer_DCSBM and modularity-based methods Newman_modularity . Statistical inference is flexible; it can be used for different purposes, such as detecting generalized communities Newman_Gen or estimating group number Newman_qnum . Additionally, statistical inference can be used for detecting annotated networks, in which annotations or metadata that describe the attributes of nodes (such as the age, gender, or ethnicity of individuals in a social network) accompany the network structure Newman_metadata . Newman-Girvan modularity Newman_modularity is the most popular measure of the quality of a partition. Several modifications have been proposed for measuring different unannotated network structures, including weighted Weighted_mod , directed Directed_mod , bipartite Bipartite_mod and multiplex networks Multiplex_mod . However, modularity in annotated networks has not been defined. In the paper, we focus on the objective function in these networks and its relation to Newman-Girvan modularity.
The equivalence between modularity optimization and maximum likelihood Zhang_MBP ; Newman_equivalent may inspire us to our goal. However, this derivation is for unannotated networks. In the statistical inference method, the model of a network with community structure is defined and then fit to observed network data. In most cases, the model parameters are estimated by likelihood maximization; for different considerations or data types, the likelihoods are different. The likelihood in annotated networks differs from (though is similar to) that of unannotated networks. Herein, we ascertain the modularity-like objective function whose optimization is equivalent to the maximum likelihood in annotated networks. We demonstrate that the modularity-like objective function is a linear combination of modularity and conditional entropy. In contrast with the statistical inference method, we set a variable parameter that controls the influence of the metadata. Our results, in both synthetic and real-world networks, demonstrate that if the parameter is strong enough, the metadata can be recovered; however, if it is weak, our method may recover another partition that is more evident, instead of the metadata. Between the two, we find a transition from the more evident partition to the metadata.
II Method
To illuminate our method, we first provide a brief introduction to the likelihood of statistical inference in annotated networks Newman_metadata . In this paper, we consider only the case in which the metadata is a classification or a partition of nodes, . In this method, a degree-corrected stochastic block model is defined to a network. The probability, or likelihood, that the model generates a particular network and group assignment with groups is
[TABLE]
where is the probability that a node is assigned to group given its metadata ; denotes the matrix of parameters ; is the probability of node connecting to , where () is degree of node () and are parameters indicate the strength of connection between groups; and denotes the matrix of parameters .
The likelihood maximization is equivalent to the maximization of the logarithm
[TABLE]
where is the number of nodes assigned to group with annotation and is the number of nodes with annotation . The first term is:
[TABLE]
where is the number of nodes in the network and is the conditional entropy. The second and third terms induce the modularity Newman_equivalent . The planted partition model Condon_planted is a special case of the stochastic block model in which the parameters describing the community structure take only two different values:
[TABLE]
Eq. (4) implies that
[TABLE]
[TABLE]
Thus, the second and third terms of Eq. (2) are Newman_equivalent
[TABLE]
in which some constants have been dropped. The maximization of Eq. (2) is equivalent to the maximization of
[TABLE]
where and , which can be estimated. In this paper, we set and treat as a variable parameter to control the balance between the structure and metadata. High values of drag the result to the metadata, though the principle for selecting the appropriate value of is still unknown. We emphasize that our goal is to determine how metadata can be recovered, so the number of groups of detected partitions is equals to that of the metadata in most case. Eq. (8) is the modularity-like objective function, which is a linear combination of modularity and conditional entropy. We have demonstrated that the optimization of Eq. (8) is equivalent to the maximum likelihood of Eq. (1). As the modularity-like objective function is known, we use simulated annealing Guimera_simuanneal for optimization with a fixed .
III Results
Our first example is a network generated by a stochastic block model (SBM). In SBM, nodes are randomly assigned to one of groups and the probability that any pair of nodes connects depends on the node memberships, . In this case, we set and
[TABLE]
where is the average degree in the network. It is also a special case of a nested SBM Peixoto_hierarchical , in which (here ) community structures are coupled. In the first partition , original groups 1 and 2 are merged into one group, and the remaining two original groups are merged into another group. In partition , original groups 1 and 3 are merged and the left original groups are merged. and denote the strength of the two planted structures. In this case, we set , , , and metadata . is much weaker than , so that with this metadata, the method in Newman_metadata recovers rather than . However, by adjusting the influence of the metadata with parameter , our method can recover in an appropriate range (see Fig. 1).
Fig. 1 shows that the modularity-link function looks like a broken line with three segments. There is a transition at . Below this transition, is small enough that structure plays a leading role. Optimization of the objective function finds the partition with the highest modularity. In this case, , so is recovered. Above , the value of overlaps (i.e., the fraction of nodes correctly detected) with the two structures exchanges. If is not high, both the structure and metadata play important roles in detection. The metadata provides all information of , ; while it provides no information to , is high. Thus, the metadata drags the detection to it. However, the landscape has a smooth valley surrounding Good_Landscape . Due to fluctuation, there are some partitions that are correlated with (i.e., the Hamming distance to is low) with higher modularity-like objective functions than those of . Optimization methods will recover one of them, so the overlap between the detected partition and metadata is high but not equal to 1. Only when is high enough, metadata plays crucial role and can be recovered absolutely.
Our second example is a network generated by a planted partition model, which is a special case of SBM with edge probabilities and for within-group and between-group edges. We generated node metadata that matched the true planted assignments, but with an error rate of to indicate random noise. Without metadata, or if , the approximate planted structure can be recovered. As increases, detection is gradually dragged to the metadata (see Fig. 2). If is high enough, the metadata is recovered absolutely and the overlap with the planted structure was . The transition in Fig. 2 is not as strong as that in Fig. 1; the overlap with the planted structure in Fig. 2 changes continuously at . The planted structure was recovered best at an value of about . In Newman_metadata , the strength of the metadata is fixed and may be not the best choice.
Our third example is a network of students drawn from the US National Longitudinal Study of Adolescent to Adult Health AddHeal . This network consists of a high school (US grades 9 to 12) and its feeder middle school (grades 7 and 8). The annotations of high/middle school and ethnicity construct two possible partitions (see Fig. 3(a) and (b)). Between the two, the school is more evident than ethnicity; thus, we treat ethnicity as the metadata. The ethnicity annotation is so weak that with this metadata, the method in Newman_metadata recovers the school level rather than ethnicity. However, with , our method can recover ethnicity in an appropriate range (see Fig. 3(d)-(f) and Fig. 4). Here, we use the normalized mutual information (NMI) Danon_NMI rather than overlap to measure how the detected partition matches the annotation, because the detection may have a different group number than the annotations.
IV Conclusion and discussion
In this paper, we ascertain the modularity-like objective function whose optimization is equivalent to the maximum likelihood in annotated networks. We demonstrate that the modularity-like objective function is a linear combination of modularity and conditional entropy, with a variable scale that indicates the influence of the metadata. Unlike in the statistical inference method, our method allows us to adjust the influence of the metadata. Examples in synthetic and real-world networks show that for an appropriate range of (in which the influence is sufficiently strong), the metadata can be recovered. However, when is low, another partition may be detected. Between the two values, there is a transition phase.
The statistical inference method is flexible, and it can be used to detect generalized communities Newman_Gen and estimate group number Newman_qnum . It is therefore interesting to find the corresponding modularity-like objective functions. In this paper, we optimized the modularity-like objective function by simulated annealing. Other optimization algorithms, such as belief propagation Zhang_MBP , are left for future work.
Acknowledgments
This work is funded by the NSFC (Grant Nos. 11275186, 91024026 and FOM2014OF001).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) S. Fortunato, Phys. Rep. 486, 75 (2010).
- 2(2) M. E. J. Newman, Nat. Phys. 8, 25 (2011).
- 3(3) S. Fortunato and D. Hric, Phys. Rep. 659, 1 (2016).
- 4(4) A. Decelle, F. Krzakala, C. Moore and L. Zdeborová Phys. Rev. Lett. 107, 065701 (2011).
- 5(5) A. Decelle, F. Krzakala, C. Moore and L. Zdeborová Phys. Rev. E 84, 066106 (2011).
- 6(6) B. Karrer and M. E. J. Newman, Phys. Rev. E 83, 016107 (2011).
- 7(7) M. E. J. Newman and M. Girvan, Phys. Rev. E 69, 026113 (2004).
- 8(8) M. E. J. Newman and T. Peixoto, Phys. Rev. Lett. 115, 088701 (2015).
