NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Approximated Neighbours MinHash Graph Node Kernel

Nicolò Navarin, Alessandro Sperduti

Abstract

This paper introduces the Approximated Neighbours MinHash Graph Node Kernel (ANMHK), a scalable method for measuring similarity between nodes in massive graphs. By combining local neighborhood summaries with the MinHash algorithm, the authors achieve state-of-the-art predictive performance while reducing computational complexity from cubic ($O(n^3)$) to quadratic ($O(n^2)$) or even constant time for on-demand node comparisons.

Introduction

In machine learning on graphs, such as social networks or recommendation systems, node classification and link prediction are fundamental tasks. Kernel methods offer a powerful framework for these tasks, but they traditionally struggle with scalability. Most existing node kernels rely on random walks across the entire graph, requiring matrix operations like exponentiation or inversion that cost $O(n^3)$, where $n$ is the number of nodes. For large-scale graphs, this complexity is prohibitive.

The authors propose ANMHK to address these limitations, focusing on three primary objectives: efficiency (scaling linearly with graph density), on-demand computation (comparing specific nodes without full graph processing), and effectiveness (maintaining high accuracy on real-world datasets).

Methodology

ANMHK is built upon three core technical pillars:

  1. Neighborhood Sets: Rather than analyzing the global graph structure, the kernel defines a node by its $r$-neighborhood—the set of nodes reachable within $r$ hops.
  2. Weisfeiler-Lehman Approximation: To avoid expensive breadth-first searches for every node, the method employs a recursive expansion technique inspired by the Weisfeiler-Lehman graph isomorphism test. This iteratively merges immediate neighbor sets to approximate larger neighborhoods efficiently.
  3. MinHash for Jaccard Similarity: To compare neighborhood sets, the authors utilize MinHash, a locality-sensitive hashing technique. MinHash estimates the Jaccard similarity (the overlap between two sets) in linear time using a small, fixed amount of memory.

The final kernel is a sum of MinHash similarities across different neighborhood radii. Because MinHash produces compact "signatures," the similarity between any two nodes can be computed in constant time once the signatures are pre-calculated.

Experimental Evaluation

The researchers evaluated ANMHK on nine real-world datasets across four categories: movie networks (IMDB, IMDB_ALL), citation graphs (CORA), business news networks (INDUSTRY_YH, INDUSTRY_PR), and computer science department web pages (WEBKB Cornell, Wisconsin, Washington, Texas).

Performance Results

ANMHK achieved the best performance on 5 out of the 9 datasets and ranked second on the remaining four. Notably, on the IMDB_ALL dataset, ANMHK reached 79.44% accuracy, significantly outperforming the next best baseline, MDK (72.24%).

Table 1: Comparison of classification accuracy (mean ± std) across nine real-world datasets for various graph node kernels. ANMHK achieves the highest accuracy in five of the nine benchmarks.

Discussion and Insights

  • The Power of Locality: The results demonstrate that global graph properties are not always necessary for high-quality node classification. Local neighborhood structures often capture sufficient information for predictive tasks.
  • Scalability and Efficiency: By moving from global matrix operations to local set comparisons, ANMHK enables on-demand kernel computation. While traditional kernels like LEDK and MDK require $O(n^3)$ operations, ANMHK's preprocessing scales with $O(n\rho^r)$ (where $\rho$ is the average degree and $r$ is the radius), which is much closer to linear scaling for sparse real-world graphs.
  • Set-Based Simplicity: Despite ignoring edge weights and treating neighbors as unordered sets, ANMHK frequently outperforms more complex models that account for weights.

Limitations and Future Work

While ANMHK offers significant improvements, some challenges remain. The current version ignores edge weights, and generating a full Gram matrix for training still requires $O(n^2)$ operations. Future work will focus on incorporating weighted edges and further reducing the complexity of Gram matrix generation using techniques like the Nyström method. Additionally, the sensitivity of the kernel to the radius $r$ and the number of hash functions $k$ requires careful hyper-parameter tuning for specific datasets.

Summary updated

BibTeX
@inproceedings{navarin2017approximated,
  author = {Nicolò Navarin and Alessandro Sperduti},
  title = {{Approximated Neighbours MinHash Graph Node Kernel}},
  booktitle = {ESANN},
  year = {2017},
}
Figure