Local Graph Clustering Beyond Cheeger's Inequality

Zeyuan Allen Zhu, Silvio Lattanzi, Vahab MirrokniarXiv 2013 · DOI

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:

  1. Seeding: Starting a random walk from a node within the target cluster.
  2. Propagation: Computing an approximate PageRank vector.
  3. 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

Abstract

Motivated by applications of large-scale graph clustering, we study random-walk-based LOCAL algorithms whose running times depend only on the size of the output cluster, rather than the entire graph. All previously known such algorithms guarantee an output conductance of $\tilde{O}(\sqrt{ϕ(A)})$ when the target set $A$ has conductance $ϕ(A)\in[0,1]$. In this paper, we improve it to $$\tilde{O}\bigg( \min\Big\{\sqrt{ϕ(A)}, \frac{ϕ(A)}{\sqrt{\mathsf{Conn}(A)}} \Big\} \bigg)\enspace, $$ where the internal connectivity parameter $\mathsf{Conn}(A) \in [0,1]$ is defined as the reciprocal of the mixing time of the random walk over the induced subgraph on $A$. For instance, using $\mathsf{Conn}(A) = Ω(λ(A) / \log n)$ where $λ$ is the second eigenvalue of the Laplacian of the induced subgraph on $A$, our conductance guarantee can be as good as $\tilde{O}(ϕ(A)/\sqrt{λ(A)})$. This builds an interesting connection to the recent advance of the so-called improved Cheeger's Inequality [KKL+13], which says that global spectral algorithms can provide a conductance guarantee of $O(ϕ_{\mathsf{opt}}/\sqrt{λ_3})$ instead of $O(\sqrt{ϕ_{\mathsf{opt}}})$. In addition, we provide theoretical guarantee on the clustering accuracy (in terms of precision and recall) of the output set. We also prove that our analysis is tight, and perform empirical evaluation to support our theory on both synthetic and real data. It is worth noting that, our analysis outperforms prior work when the cluster is well-connected. In fact, the better it is well-connected inside, the more significant improvement (both in terms of conductance and accuracy) we can obtain. Our results shed light on why in practice some random-walk-based algorithms perform better than its previous theory, and help guide future research about local clustering.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
USPS · zipcode data set, digit 1 binary classificationGround-truth digit cluster Aφ(A)0.00304k=20 · digit=1 · graph=weighted k-NN
Source quote
L1164: φ(A) = φ(A) 0.00294 0.00304 0.08518 0.03316 0.22536 0.08580 0.01153 0.03258 0.09761 0.05139
USPS · zipcode data set, digit 4 binary classificationGround-truth digit cluster Aφ(A)0.22536k=20 · digit=4 · graph=weighted k-NN
Source quote
L1164: φ(A) = φ(A) 0.00294 0.00304 0.08518 0.03316 0.22536 0.08580 0.01153 0.03258 0.09761 0.05139
USPS · zipcode data set, digit 1 binary classificationPageRank-NibblePrecision0.995k=20 · alpha=0.003 · digit=1 · graph=weighted k-NN · epsilon=0.00005
Source quote
L1169: 0.995
USPS · zipcode data set, digit 1 binary classificationPageRank-NibbleRecall0.988k=20 · alpha=0.003 · digit=1 · graph=weighted k-NN · epsilon=0.00005
Source quote
L1180: 0.988
BibTeX
@misc{zhu2013local,
  author = {Zeyuan Allen Zhu and Silvio Lattanzi and Vahab Mirrokni},
  title = {{Local Graph Clustering Beyond Cheeger's Inequality}},
  year = {2013},
  eprint = {1304.8132},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1304.8132},
}
Figure