Abstract
In network science, assortativity refers to the tendency of links to exist between nodes with similar attributes. In social networks, for example, links tend to exist between individuals of similar age, nationality, location, race, income, educational level, religious belief, and language. Thus, various attributes jointly affect the network topology. An interesting problem is to detect community structure beyond some specific assortativity-related attributes $\rho$, i.e., to take out the effect of $\rho$ on network topology and reveal the hidden community structure which are due to other attributes. An approach to this problem is to redefine the null model of the modularity measure, so as to simulate the effect of $\rho$ on network topology. However, a challenge is that we do not know to what extent the network topology is affected by $\rho$ and by other attributes. In this paper, we propose Dist-Modularity which allows us to freely choose any suitable function to simulate the effect of $\rho$. Such freedom can help us probe the effect of $\rho$ and detect the hidden communities which are due to other attributes. We test the effectiveness of Dist-Modularity on synthetic benchmarks and two real-world networks.
Introduction
In network science, the phenomenon of assortativity (or homophily) is ubiquitous: nodes with similar attributes are more likely to be connected. In social networks, people of the same age, profession, or geographic location naturally form clusters. While standard community detection algorithms, such as Newman-Girvan (NG) modularity, are effective at identifying these dominant structures, they often fail to see "beyond" them.
For instance, in a global organization, physical proximity might be the primary driver of communication, leading standard algorithms to group employees by office location. However, a researcher might be interested in finding latent communities based on shared technical expertise that span across these offices. Standard methods struggle to "un-see" the dominant effect of geography. This paper introduces Dist-Modularity, a framework designed to account for known attributes and reveal the deeper, hidden organizational structures they might mask.
The Dist-Modularity Framework
The core of community detection via modularity ($Q$) involves comparing the actual network topology to a "null model"—a randomized version of the network. Standard modularity assumes that links form purely based on node degrees. Dist-Modularity innovates by incorporating a customizable function $f(d)$ into this null model to simulate the effect of a specific attribute $\rho$ (such as distance).
Flexible Null Model and Parameter Tuning
Unlike previous methods that used fixed empirical distributions, Dist-Modularity allows for parameterized functions like exponentials or reciprocals. By adjusting a parameter $\sigma$, researchers can control the strength of the attribute's expected influence. Since the ideal $\sigma$ is rarely known a priori, the algorithm runs across a range of values. It then uses consensus partitioning to identify the community structure that remains most consistent, effectively filtering out the "noise" of the known attribute.
Experimental Validation
Synthetic Benchmarks
The authors tested Dist-Modularity against standard NG-Modularity and Spa-Modularity (a previous spatial method) using synthetic benchmarks where the correlation between spatial distance and community structure could be precisely controlled.
As shown in the results, Dist-Modularity variants consistently achieved higher Normalized Mutual Information (NMI) scores, particularly in scenarios where space and community were highly correlated. This demonstrates the method's superior ability to recover ground-truth communities by accurately "nulling out" spatial bias.
Real-World Case Studies
- Lazega’s Law Firm: In a network of 36 law firm partners, standard modularity grouped individuals by office location. Dist-Modularity successfully filtered the office effect to reveal communities based on practice type (Litigation vs. Corporate), matching the ground truth with high accuracy.
- Ivory Coast Antenna Network: Analyzing a massive dataset of cell tower communications, the authors found that standard methods primarily identified geographic clusters. Dist-Modularity revealed communities that aligned closely with ethnic and administrative boundaries, achieving NMI scores of 0.72–0.75, significantly higher than Spa-Modularity (~0.41).
Conclusion
Dist-Modularity provides a powerful "subtraction logic" for network analysis. By building known attributes into the null model, it allows researchers to probe what else explains a network's connectivity. While current implementation challenges involve scalability to massive networks, the flexibility of the $f(d)$ function offers a significant advancement in detecting latent organizational structures in complex systems.
Summary updated