Abstract
Motivated by the demands of large-scale graph analysis, we investigate random-walk-based local clustering algorithms whose complexity scales with the size of the output cluster rather than the entire graph. Traditionally, these algorithms were bounded by Cheeger’s Inequality, providing a conductance guarantee of $\tilde{O}(\sqrt{\phi(A)})$ for a target set $A$ with conductance $\phi(A)$. We improve this guarantee to $\tilde{O}\left( \min\left\{\sqrt{\phi(A)}, \frac{\phi(A)}{\sqrt{\mathsf{Conn}(A)}} \right\} \right)$, where $\mathsf{Conn}(A)$ represents the internal connectivity (the reciprocal of the mixing time) of the induced subgraph on $A$. This result bridges local clustering with recent advances in global spectral graph theory and provides the first theoretical guarantees for clustering accuracy in terms of precision and recall. Our findings, supported by both tightness proofs and empirical evaluations on synthetic and real-world datasets, explain why random-walk algorithms often outperform traditional theoretical predictions in practice.
Introduction
In the era of massive datasets, the ability to extract localized information without traversing an entire network is critical. Local graph clustering algorithms address this by identifying a community or cluster $A$ in time proportional to the volume of $A$. For decades, the theoretical performance of these algorithms was anchored to Cheeger’s Inequality, which relates the conductance of a cut to the spectral properties of the graph.
While Cheeger's Inequality suggests a conductance guarantee of $O(\sqrt{\phi(A)})$, practitioners have long observed that algorithms like PageRank-Nibble perform significantly better than this "square root" bound would suggest. This paper identifies the missing link in the theory: the internal connectivity of the cluster itself. By accounting for how well-connected a cluster is internally, we move beyond the standard Cheeger bound to a tighter, more representative theoretical framework.
The Missing Piece: Internal Connectivity
Previous analyses focused almost exclusively on how well a cluster was separated from the rest of the graph (external conductance). However, the effectiveness of a random walk in identifying a cluster depends heavily on how the walk behaves inside that cluster.
We define Internal Connectivity, $\mathsf{Conn}(A)$, as the reciprocal of the mixing time of a random walk restricted to the subgraph induced by $A$. When a cluster is well-connected internally, the random walk mixes rapidly within $A$ before it has a chance to "leak" out into the rest of the graph.
Breaking the Square Root Barrier
By introducing a "Gap Assumption"—the premise that a cluster is better connected internally than it is to the external world—we derive a new conductance guarantee: $$\tilde{O}\left( \min\left\{\sqrt{\phi(A)}, \frac{\phi(A)}{\sqrt{\mathsf{Conn}(A)}} \right\} \right)$$
In scenarios where $\mathsf{Conn}(A)$ is high, this bound significantly outperforms the traditional $\sqrt{\phi(A)}$ limit, potentially approaching a true $O(1)$-approximation. This mirrors the "improved Cheeger's Inequality" found in global spectral clustering, which uses the third eigenvalue $\lambda_3$ to provide better bounds than the second eigenvalue $\lambda_2$.
Methodology: PageRank-Nibble
Our analysis focuses on the PageRank-Nibble algorithm. The process involves:
- Seeding: Starting a random walk from a node within the target cluster.
- Propagation: Computing an approximate PageRank vector.
- Sweep Cut: Sorting vertices by their degree-normalized PageRank values and testing various thresholds to find the cut with the minimum conductance.
Beyond conductance, we provide explicit theoretical bounds on precision and recall. This is a departure from traditional spectral graph theory, which often ignores whether the found set $S$ actually overlaps with the ground-truth set $A$ in a meaningful way.
Empirical Validation
We tested our theory against two primary benchmarks:
- Synthetic Graphs (Watts-Strogatz Model): We generated graphs where we could precisely control internal connectivity (via a parameter $\beta$) while keeping external conductance constant. As $\beta$ increased (making the cluster more cohesive), the clustering accuracy rose from ~65% to over 90%, and the ratio of found conductance to target conductance dropped toward 1x, confirming our theoretical predictions.
- Real-World Data (USPS Zipcode Dataset): Using a $k$-nearest neighbor graph of handwritten digits, we treated each digit class as a cluster. The algorithm consistently identified clusters with better conductance than the ground-truth sets while maintaining precision levels often exceeding 98%.
Tightness and Limitations
To ensure our analysis was as sharp as possible, we constructed a "hard instance" using a multi-chain graph. This construction proves that for PageRank-based methods, the $\phi(A)/\sqrt{\mathsf{Conn}(A)}$ bound is essentially the best one can achieve.
However, some challenges remain:
- The PageRank Ceiling: To achieve even better approximations (like a pure $O(1)$ bound), researchers may need to look beyond PageRank toward flow-based local algorithms.
- Parameter Sensitivity: The algorithm's performance is sensitive to the choice of the "seed" node and requires an estimate of the cluster's volume or connectivity, which can be difficult to determine in a truly "blind" search.
Conclusion
This work provides a more nuanced understanding of local clustering by proving that internal cohesion is just as important as external isolation. By incorporating $\mathsf{Conn}(A)$ into the analysis, we provide a theoretical foundation that finally aligns with the high performance of random-walk algorithms in practice. These results suggest that for well-connected communities, local clustering is even more powerful than we previously realized.
Summary updated