Multi-class Graph Clustering via Approximated Effective $p$-Resistance

Shota Saito, Mark Herbster

Introduction

Graph clustering is a fundamental task in machine learning and data science, traditionally dominated by spectral clustering techniques. Standard spectral clustering relies on the graph Laplacian (the 2-seminorm), which effectively identifies clusters but remains constrained by a fixed bias toward specific cluster geometries.

Researchers have long recognized that generalizing this framework to the $p$-Laplacian (the $p$-seminorm) introduces a "tunable" bias. By adjusting the parameter $p$, one can shift the clustering priority: small $p$ values favor high internal connectivity (min-cut structures), while large $p$ values favor path-based topologies (shortest-path distances). However, a significant mathematical hurdle has prevented the widespread adoption of the $p$-Laplacian for multi-class problems: while the first two eigenvectors are manageable, computing the third or higher-order eigenvectors—necessary for multi-class clustering—is an open and computationally intensive challenge. This paper presents a novel way to sidestep the eigenvector problem entirely by leveraging effective $p$-resistance.

The Proposed Method: Approximated $p$-Resistance

To avoid the "eigenvector nightmare" of the $p$-Laplacian, the authors propose using effective $p$-resistance as a distance metric between nodes. While exact $p$-resistance is typically too expensive to compute for every pair of nodes in a large graph, this work introduces a fast, theoretically grounded approximation.

1. The Approximation Formula

The core contribution is the proof that $p$-resistance can be approximated using the formula: $$r_{G,p}(i, j) \approx \|L^+ e_i - L^+ e_j\|_{G,q}^p$$ where $L^+$ is the pseudoinverse of the standard graph Laplacian and $q$ is the Hölder conjugate of $p$ (satisfying $1/p + 1/q = 1$).

2. Computational Efficiency through "Reuse"

Unlike exact $p$-resistance, which requires solving a complex optimization problem for every unique pair of vertices, this approximation allows for a "compute once, reuse many" strategy. By calculating the pseudoinverse $L^+$ at the start, the distances between any arbitrary pairs can be derived rapidly. This approach results in a significant speedup, with benchmarks showing the method to be 14x to 36x faster than naive exact calculations.

3. The Algorithm

The resulting clustering pipeline is straightforward and robust:

  1. Preprocessing: Compute the pseudoinverse $L^+$ of the graph Laplacian.
  2. Distance Calculation: Calculate the approximated $p$-resistance distances for all node pairs using the Hölder conjugate $q$.
  3. Clustering: Apply $k$-medoids clustering to the resulting distance matrix. The authors favor $k$-medoids over $k$-means because $p$-resistance defines distances between existing data points rather than a Euclidean space where a "mean" is easily defined.

Theoretical Justification

The authors provide rigorous support for this approximation, proving it is exact for tree graphs and establishing clear upper and lower bounds for general graphs. Furthermore, they resolve a long-standing open problem in the field by demonstrating that $p$-resistance characterizes the solution to semi-supervised learning problems for any $p > 1$.

Key Insights

  • The Tuning Knob: The parameter $p$ acts as a bridge between two structural extremes. As $p \to 1$, the model behaves like a min-cut solver focusing on edge weights. As $p \to \infty$, it behaves like a shortest-path solver focusing on graph topology. This allows practitioners to adapt the algorithm to the specific "shape" of their data.
  • Numerical Stability: Interestingly, the approximation is often more stable than exact calculations. At extreme $p$ values, gradient descent for exact $p$-resistance often suffers from vanishing gradients or numerical errors. The approximation avoids this by utilizing the conjugate power $q$, which remains in a more manageable numerical range.

Experimental Results

The researchers evaluated the method against standard spectral clustering and existing $p$-Laplacian approximations across several datasets, including the UCI Repository (Ionosphere, Iris, Wine) and the Hopkins155 motion segmentation benchmark.

  • Accuracy: The proposed method consistently outperformed competitors. On the Wine dataset, for instance, it achieved an error rate of 0.287, a marked improvement over the 0.438 error rate produced by standard spectral clustering.
  • Robustness: The use of $k$-medoids provided additional robustness against outliers compared to traditional centroid-based methods.

Limitations and Future Work

Despite its efficiency, the method faces a memory bottleneck. The reliance on the pseudoinverse $L^+$ means that even if the input graph is sparse, the resulting matrix is typically dense. This creates an $O(n^2)$ memory requirement, currently limiting the approach to graphs with a few tens of thousands of nodes.

Future research directions include the application of graph sparsification or advanced numerical linear algebra to avoid computing the full $L^+$, potentially reducing complexity from $O(n^2)$ to $O(n)$. Additionally, there is significant potential in extending this $p$-resistance framework to hypergraphs, where relationships involve more than two nodes simultaneously.

Summary updated

BibTeX
@inproceedings{saito2023multi,
  author = {Shota Saito and Mark Herbster},
  title = {{Multi-class Graph Clustering via Approximated Effective $p$-Resistance}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=d65OJgQp5Q},
}
Figure