Fast Algorithms for Hypergraph PageRank with Applications to Semi-Supervised Learning

Konstantinos Ameranis, Adela Frances DePavia, Lorenzo Orecchia, Erasmo Tani

Introduction

In semi-supervised learning (SSL), a fundamental approach is to leverage the structure of the sample space to diffuse label information from a few annotated examples to many unlabeled points. Traditionally, this is done by building a graph where edges connect pairs of similar points, and then solving a system of linear equations (like PageRank) to spread the information.

However, graphs are inherently limited to pairwise relationships. In many real-world scenarios, data exists in groups—for example, a research paper has multiple authors, or a product has multiple categorical tags. Hypergraphs, which utilize "hyperedges" that can connect any number of vertices, are significantly better at capturing these higher-order structures.

Despite their modeling power, hypergraphs have historically been sidelined. Unlike graph Laplacians, which are linear and computationally straightforward to solve, hypergraph Laplacians are non-linear and non-smooth. Previous algorithms were either too slow for large datasets or lacked theoretical guarantees. This paper introduces a highly scalable first-order algorithm for hypergraph PageRank that achieves a 10x speedup over previous methods, finally making hypergraph-based SSL practical for massive, high-dimensional datasets.

Methods

The authors propose a novel first-order optimization method designed for a broad class of hypergraph potentials.

  • The Framework: The approach focuses on "convex, 2-positively homogeneous" functions. In simple terms, these are functions where doubling the input quadruples the output, a property that mimics the squared-error terms commonly used in standard graph theory.
  • The Algorithm: The method resembles a classic "Richardson iteration" (a simple gradient descent used for graphs) but is specifically adapted to handle the non-smooth nature of hypergraphs.
  • Multiplicative Error Guarantee: Standard optimization usually targets an additive error. This paper proves a robust multiplicative error guarantee, which is crucial for managing the scaling issues inherent in hypergraph systems.
  • Preconditioning: For specific types of hypergraphs, the authors demonstrate that a "clique expansion" (converting the hypergraph into a specific type of graph) can be used as a preconditioner. This further accelerates convergence, making the runtime nearly independent of the hypergraph's connectivity.

Datasets and Experimental Setup

The authors evaluated their approach across two main domains:

  1. Categorical Benchmarks: Five classic UCI datasets (Zoo, Mushroom, Covertype45, Covertype67, and Newsgroups) where features are naturally grouped.
  2. Manifold Learning: Synthetic datasets consisting of concentric hyperspheres and hyperrectangles in high-dimensional space (up to 30 dimensions). These tests were designed to evaluate how well the algorithm handles the "curse of dimensionality."
Synthetic hyperrectangle dataset with seeded labels

Key Insights and Results

The empirical results highlight several major advantages of the proposed hypergraph algorithms:

  • Beating the Curse of Dimensionality: As the number of dimensions increases, traditional graph-based methods degrade. Hypergraphs (specifically those using $\ell_\infty$ norms) remain robust. The $\ell_\infty$ distance proves to be a better fit for high-dimensional metric embeddings than the standard $\ell_2$ (Euclidean) distance used in graphs.
  • Superior Manifold Clustering: In high-dimensional tests, hypergraph PageRank significantly outperformed graph PageRank in separating concentric shapes. For instance, in 15-dimensional and 30-dimensional spaces, the hypergraph approach yielded much higher Area Under the Curve (AUC) scores.
AUC comparison in 15 dimensions showing hypergraph outperforming graph methods
  • 10x Speedup: On the UCI categorical datasets, the proposed algorithm was roughly ten times faster than previous state-of-the-art methods (like PDHG and QRCDM) while maintaining identical classification accuracy. By utilizing a first-order method instead of complex submodular minimization, the time per iteration is drastically reduced.
  • Theoretical Milestone: The paper provides the first nearly-linear time algorithm for hypergraph Laplacian systems on bounded-rank hypergraphs, offering a unified toolkit that works for directed hypergraphs and various potential functions.

Limitations and Future Work

While a significant step forward, the approach has a few limitations:

  • Convergence Rate: Because hypergraph potentials are non-smooth, the algorithm converges at a rate of $O(1/\epsilon^2)$. This is slower than the logarithmic convergence seen in linear graph systems. The authors suggest that "Nesterov-style" acceleration could be a promising path for future improvement.
  • Large Hyperedges: The preconditioned version of the algorithm includes a factor related to the size of the largest hyperedge. If a hypergraph contains a "giant" hyperedge encompassing most of the vertices, this specific optimization becomes less efficient.
  • Massive Scale: Although the method is 10x faster, deploying it on a truly massive scale (e.g., billions of edges) will likely require distributed implementations, which remains an open challenge for hypergraph research.

Summary updated

BibTeX
@inproceedings{ameranis2024fast,
  author = {Konstantinos Ameranis and Adela Frances DePavia and Lorenzo Orecchia and Erasmo Tani},
  title = {{Fast Algorithms for Hypergraph PageRank with Applications to Semi-Supervised Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=sfQH4JJ4We},
}
Figure