Abstract
A distinguishing property of communities in networks is that cycles are more prevalent within communities than across communities. Thus, the detection of these communities may be aided through the incorporation of measures of the local "richness" of the cyclic structure. In this paper, we introduce renewal non-backtracking random walks (RNBRW) as a way of quantifying this structure. RNBRW gives a weight to each edge equal to the probability that a non-backtracking random walk completes a cycle with that edge. Hence, edges with larger weights may be thought of as more important to the formation of cycles. Of note, since separate random walks can be performed in parallel, RNBRW weights can be estimated very quickly, even for large graphs. We give simulation results showing that pre-weighting edges through RNBRW may substantially improve the performance of common community detection algorithms. Our results suggest that RNBRW is especially efficient for the challenging case of detecting communities in sparse graphs.
Introduction
Identifying communities—clusters of nodes with dense internal connections—is a fundamental task in network science. While heuristic algorithms such as Louvain and Clauset-Newman-Moore (CNM) are widely used for their efficiency in maximizing modularity, they face significant challenges in two specific scenarios: sparse graphs and the "resolution limit." In sparse networks with low average degrees, the structural signal is often too weak for standard heuristics to resolve. Furthermore, the resolution limit causes modularity-based methods to overlook small communities in large networks, often merging them into larger, inaccurate clusters.
This paper introduces Renewal Non-Backtracking Random Walks (RNBRW), a method designed to amplify the structural signals of communities by leveraging network cycles. Because cycles are statistically more likely to occur within communities than between them, RNBRW uses cycle-completion frequency to weight edges, effectively highlighting the internal backbone of a network's community structure.
The RNBRW Framework
The core of the RNBRW method lies in how it explores the network and identifies structural importance through edge weighting. The process involves three key components:
- Non-Backtracking Constraint: Unlike standard random walks that can immediately return to a previous node (e.g., A to B and back to A), a non-backtracking random walk (NBRW) is forbidden from making immediate U-turns. This constraint forces the walk to explore new territory more efficiently.
- The Renewal Step: The walk continues until it visits a node it has already encountered, thereby completing a cycle. The specific edge that closes this cycle is designated as the "retraced edge." At this point, the walk terminates and a new walk begins (renews).
- Edge Weighting via Retracing Probability: By conducting millions of these independent walks, the algorithm calculates the "retracing probability" for every edge—the frequency with which an edge serves as the cycle-closer. Edges with high retracing probabilities are identified as being central to the network's cyclic richness and are likely located within communities.
One of the primary advantages of RNBRW is that each walk is entirely independent. This makes the sampling process "embarrassingly parallel," allowing the algorithm to scale to massive datasets by distributing the workload across multiple compute nodes.
Experimental Evaluation
The authors evaluated the effectiveness of RNBRW using LFR benchmark graphs, the industry standard for testing community detection. These synthetic networks allow for precise accuracy measurements using Normalized Mutual Information (NMI) by comparing algorithmic results against ground-truth community labels.
The study tested the method across a wide range of parameters:
- Scale: Networks ranging from 500 to 1,000,000 nodes.
- Sparsity: Highly sparse graphs where the average degree scales logarithmically with the number of nodes ($d \approx \log n$).
- Mixing Parameter ($\mu$): Varying levels of noise, where higher $\mu$ indicates a higher ratio of inter-community edges to intra-community edges.
Key Results and Impact
The application of RNBRW weights to standard algorithms yielded dramatic improvements in detection accuracy, particularly in the most challenging sparse cases:
- Massive Sparse Graphs: On a 1,000,000-node sparse graph, the standard CNM algorithm initially failed, producing an NMI of only 0.050. After pre-weighting the edges with RNBRW, the CNM algorithm's accuracy rose to 0.989. The Louvain algorithm showed a similar improvement, jumping from 0.192 to 0.969.
- Overcoming the Resolution Limit: By heavily weighting intra-community edges, RNBRW effectively "tricks" the modularity function into recognizing small communities that would otherwise be ignored or merged.
- Competitive Performance: When paired with Louvain, RNBRW matched or outperformed specialized scalable algorithms like Infomap, Label Propagation, and Walktrap, especially as the mixing parameter increased and the community structure became noisier.
Conclusion
RNBRW offers a powerful, parallelizable preprocessing step that significantly enhances the performance of traditional community detection algorithms. By focusing on the cyclic nature of communities, it provides a robust solution for analyzing massive, sparse networks where standard modularity maximization typically fails. While the current study focuses on synthetic benchmarks, the theoretical convergence and computational efficiency of RNBRW suggest it is a prime candidate for large-scale real-world network analysis.
Summary updated