한국어

Inconsistent communities비일관적인 커뮤니티

Created by Claude Opus 5.5, based on the lecture slides and papers by Sang Hoon Lee and colleagues

Most community detection algorithms are stochastic: the Louvain algorithm, for instance, visits the nodes in a random order. Run it twice on the same network and you may get two different answers. The usual reaction is to call this a defect and pick one answer.

Instead, detect an ensemble of community structures, not “the” community structure.

How often the answers disagree, and about which nodes, turns out to be useful information: it points out bridge nodes, outsiders and multiplayers, and it tells you which resolution gives communities you can trust. Half empty, or half full?

2An ensemble of answers many runs of a stochastic algorithm

Take a small network with two dense groups, nodes 1–5 on the left and 9–13 on the right, joined through nodes 6, 7 and 8. Run the Louvain algorithm (modularity maximization with resolution \(\gamma\)) many times, each time with a different random order of the nodes. Each run, or realization, gives one community configuration.

The two groups come out the same every time. Nodes 6, 7 and 8 do not: sometimes they join the left group, sometimes the right, sometimes they form their own. With \(n_d\) realizations, the distinct configurations \(\alpha = 1, 2, \ldots, C\) and how often each appears, \(p_\alpha = m_\alpha/n_d\), make up a statistical community ensemble.

Only the grouping matters, not the labels. Here, the community containing node 1 is always drawn red, so the same configuration always looks the same.

Nothing is wrong with the algorithm. It is fundamentally impossible to define the exact boundary of some nodes’ communities in the first place.

Run the algorithm and watch the bridge nodes change sides. The last ten realizations are shown.

Distinct configurations

    3Who goes with whom the co-occurrence matrix

    Forget the community labels and keep only pairs. The co-occurrence matrix counts, for every pair of nodes, the fraction of realizations in which they land in the same community:

    \[ \phi_{ij} = \frac{1}{n_d}\sum_{\alpha=1}^{n_d} \delta_\alpha(g_i, g_j), \]

    where \(g_i\) is the community of node \(i\) in realization \(\alpha\). A value of 1 means always accompanied, 0 means always separated. Both extremes are consistent; values in between are not.

    The ensemble on the right is the same one as in the previous section, so running more realizations there updates this matrix too.

    Hover over (or tap) a cell to read off how often two nodes were found together.

    always separated 01 always accompanied

    4Companionship inconsistency CoI, a node’s relational flexibility

    To turn the row of node \(i\) into a single number, measure how far each \(\phi_{ij}\) is from the undecided value 1/2:

    \[ \Phi_i = 1 - \frac{1}{N-1}\sum_{j \ne i}\left(1 - 2\phi_{ij}\right)^2 . \]

    \(\Phi_i = 0\) when node \(i\) always forms communities with the same nodes, and \(\Phi_i = 1\) when it goes with every other node exactly half the time. The CoI asks: how inconsistently is the node clustered with the others, or how weak is its community membership?

    Compare it with betweenness centrality, which also looks for “bridge” nodes. Betweenness counts shortest paths, and most of them run through node 8, so nodes 6 and 7 look hardly different from the inside of a group. The CoI flags all three bridge nodes, because it looks at the functional relationship between nodes, not at paths.

    It also differs from a node’s externality \(E_i\), the fraction of its neighbors outside its own community. A node that switches between communities has a large CoI even if, on average, half its neighbors are always outside.

    Same ensemble as above. Stronger color means larger.

    Companionship inconsistency \(\Phi_i\)

    Betweenness centrality

    minmax

    5Partition and membership effective numbers of answers

    The CoI is built from pairs. Two more measures look at whole configurations and at whole memberships. Both need a way to compare two configurations \(\alpha\) and \(\beta\). The element-centric similarity (ECS) does this node by node: in configuration \(\alpha\), a random walker starting at node \(i\) and restarting there with probability \(1-d\) ends up at node \(j\) with probability \(f^\alpha_{ij}\). For non-overlapping communities, \(f^\alpha_{ij} = (1-d)\,\delta_{ij} + d/|g_{i\alpha}|\) for every \(j\) in the community \(g_{i\alpha}\) of node \(i\). Then

    \[ S_{\alpha\beta} = \frac{1}{N}\sum_{i=1}^{N}\left(1 - \frac{1}{2d}\sum_{j=1}^{N}\left|f^\alpha_{ij} - f^\beta_{ij}\right|\right), \qquad d = 0.9, \]

    which is 1 for identical configurations and 0 for completely different ones. The partition inconsistency (PaI) of the ensemble is

    \[ \Omega = \left(\sum_{\alpha=1}^{C}\sum_{\beta=1}^{C} p_\alpha p_\beta S_{\alpha\beta}\right)^{-1} . \]

    If every realization gives the same configuration, \(\Omega = 1\). If \(C\) configurations are equally likely and completely different, \(\Omega = C\). So \(\Omega\) is the effective number of independent configurations.

    The same logic works for a single node. Let \(\psi_{i\alpha}\) be the set of nodes in node \(i\)’s community in configuration \(\alpha\), compare two such sets with the Jaccard index \(J_{i\alpha\beta} = |\psi_{i\alpha}\cap\psi_{i\beta}| / |\psi_{i\alpha}\cup\psi_{i\beta}|\), and define the membership inconsistency (MeI)

    \[ \Psi_i = \left(\sum_{\alpha,\beta} p(\psi_{i\alpha})\, p(\psi_{i\beta})\, J_{i\alpha\beta}\right)^{-1}, \]

    the effective number of independent memberships of node \(i\).

    Computed from the same ensemble as above. Rows and columns of the table are the distinct configurations.

    Membership inconsistency \(\Psi_i\)

    1max

    6The consistency landscape which resolution to trust

    Modularity has a free parameter, the resolution \(\gamma\): larger \(\gamma\) gives more, smaller communities. Which value is right is usually decided by rather ad hoc heuristics. The consistency landscape uses \(\Omega\) instead. Scan \(\gamma\), build an ensemble at each value, and plot \(\Omega\) together with the average number of communities \(\langle n_c\rangle\).

    • At very small \(\gamma\) the whole network is one community: \(\Omega = \langle n_c\rangle = 1\), trivially consistent.
    • As \(\gamma\) grows, the network starts to break up, at first along rather arbitrary lines, and \(\Omega\) rises.
    • When \(\gamma\) matches an intrinsic scale of communities, the configurations agree again: \(\Omega \approx 1\) and \(\langle n_c\rangle\) sits on a plateau at an integer.
    • Beyond that, the algorithm finds spurious, smaller communities and \(\Omega\) grows again.

    A plateau of \(\langle n_c\rangle\) alone is not enough; it has to come with a small \(\Omega\). In the karate club, \(\langle n_c\rangle\) also has plateaus at 3 and 4, but only the two-community range is consistent, matching the two factions in Zachary’s original study. A network with communities inside communities shows one consistent range for each level.

    This page uses its own Louvain implementation, so the ranges of \(\gamma\) differ in detail from the GenLouvain results in the paper.

    Choose a network and scan. Then click the chart to pick a resolution.

    \(\Omega\) (left axis) \(\langle n_c\rangle\) (right axis)shaded: \(\Omega < 1.03\) with \(\langle n_c\rangle > 1\)

    Color nodes by

    7Bulk and boundary MeI versus CoI

    The MeI and the CoI both describe a node’s membership, but they see different things. Take a network of three planted groups, 60 nodes each, in which every node \(i\) has its own externality \(E_i\), drawn uniformly between 0 and 0.5: the probability that a new link of node \(i\) goes to another group.

    Push the resolution beyond the consistent range so that the algorithm hunts for spurious smaller communities. In the pictures each group fills one third of the disk, and nodes with more external links sit closer to the center, much as a force-directed layout would place them. Those central nodes then belong to many different small communities and get a large MeI. The CoI behaves differently: a node in that middle region goes with many different nodes, so its \(\phi_{ij}\) are mostly close to 0 rather than 1/2, and its CoI is not the largest. The largest CoI values sit at the edge of the inconsistent region.

    Simply put, MeI finds the “bulk” of an inconsistent region and CoI finds its “boundary.”

    Each change of \(\gamma\) runs 60 realizations. Each panel is shaded from its own smallest value (faint) to its largest (strong color); links are not drawn.

    MeI \(\Psi_i\)

    CoI \(\Phi_i\)

    Below each picture, every node is plotted against its measured externality (the fraction of its links that leave its planted group). Correlations are Pearson coefficients over the 180 nodes.

    8In real networks outsiders, multiplayers and hierarchies

    The CoI is not just degree or betweenness in disguise: across the model and real networks of the 2019 paper it correlates weakly, or not at all, with them, and more strongly with the mean externality. What it adds is the role a node plays with respect to the communities.

    • Social networks. In Zachary’s karate club, the most inconsistent node is an “outsider” without a firm membership, sitting on the boundary between the two factions. In the Star Wars character network, the most inconsistent characters are “multiplayers” with ties to several groups.
    • Infrastructure. In the Chilean power grid, the CoI shows how evenly the connections are balanced between regions. Its consistency landscape has long stretches of \(\Omega \approx 1\) over several integer values of \(\langle n_c\rangle\): communities split into smaller ones nested inside them, a hierarchical structure.
    • Biology. The weighted photosystem II network has narrow consistent ranges separated by wide inconsistent ones, again with hierarchically nested communities.

    Inconsistency is a property of the ensemble, so it depends on the algorithm and on \(\gamma\). The point is not that one algorithm is right, but that the disagreement among its runs is a source of information rather than an error to be averaged away. Overlapping communities, for example by link clustering, are another way to give nodes more than one membership.