The Ground Truth About Metadata and Community Detection in Networks
Authors
Affiliations
Across many scientific domains, there is a common need to automatically extract a simplified view or coarse-graining of how a complex system's components interact. This general task is called community detection in networks and is analogous to searching for clusters in independent vector data. It is common to evaluate the performance of community detection algorithms by their ability to find so-called ground truth communities. This works well in synthetic networks with planted communities because these networks' links are formed explicitly based on those known communities. However, there are no planted communities in real-world networks. Instead, it is standard practice to treat some observed discrete-valued node attributes, or metadata, as ground truth. We show that metadata are not the same as ground truth and that treating them as such induces severe theoretical and practical problems. We prove that no algorithm can uniquely solve community detection, and we prove a general No Free Lunch theorem for community detection, which implies that there can be no algorithm that is optimal for all possible community detection tasks. However, community detection remains a powerful tool and node metadata still have value, so a careful exploration of their relationship with network structure can yield insights of genuine worth. We illustrate this point by introducing two statistical techniques that can quantify the relationship between metadata and community structure for a broad class of models. We demonstrate these techniques using both synthetic and real-world networks, and for multiple types of metadata and community structures.
Detectability constraints on meso-scale structure in complex networks.
Arthur R PLoS One. 2025; 20(1):e0317670.
PMID: 39841660 PMC: 11753644. DOI: 10.1371/journal.pone.0317670.
Bradshaw M, Gibbs C, Martin S, Firman T, Gaskell A, Fosdick B PLoS One. 2024; 19(12):e0309205.
PMID: 39724242 PMC: 11670971. DOI: 10.1371/journal.pone.0309205.
Cell Type Differentiation Using Network Clustering Algorithms.
Nasrollahi F, Silva F, Liu S, Chaudhuri S, Yu M, Wang J bioRxiv. 2024; .
PMID: 39677670 PMC: 11643020. DOI: 10.1101/2024.12.04.626793.
Economou K, Gentleman W, Krumhansl K, DiBacco C, Reijnders D, Wang Z PLoS One. 2024; 19(11):e0308787.
PMID: 39535997 PMC: 11559974. DOI: 10.1371/journal.pone.0308787.
Network community detection via neural embeddings.
Kojaku S, Radicchi F, Ahn Y, Fortunato S Nat Commun. 2024; 15(1):9446.
PMID: 39487114 PMC: 11530665. DOI: 10.1038/s41467-024-52355-w.