NetLSD: Hearing the Shape of a Graph
About
Comparison among graphs is ubiquitous in graph analytics. However, it is a hard task in terms of the expressiveness of the employed similarity measure and the efficiency of its computation. Ideally, graph comparison should be invariant to the order of nodes and the sizes of compared graphs, adaptive to the scale of graph patterns, and scalable. Unfortunately, these properties have not been addressed together. Graph comparisons still rely on direct approaches, graph kernels, or representation-based methods, which are all inefficient and impractical for large graph collections. In this paper, we propose the Network Laplacian Spectral Descriptor (NetLSD): the first, to our knowledge, permutation- and size-invariant, scale-adaptive, and efficiently computable graph representation method that allows for straightforward comparisons of large graphs. NetLSD extracts a compact signature that inherits the formal properties of the Laplacian spectrum, specifically its heat or wave kernel; thus, it hears the shape of a graph. Our evaluation on a variety of real-world graphs demonstrates that it outperforms previous works in both expressiveness and efficiency.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Graph Distribution Classification and Clustering | ER, RP, SBM, RG graph distributions | Accuracy90 | 31 | |
| Graph classification (trajectory- vs cluster-like) | Single-cell graphs All Graphs (full set) | Accuracy73.1 | 28 | |
| Graph classification (trajectory- vs cluster-like) | Single-cell graphs Gold subset | Accuracy82.3 | 27 | |
| Graph Expressivity | BREC | Basic Expressivity Score60 | 26 | |
| Graph Parameter Classification | Stochastic block model (SBM) | Accuracy83 | 8 | |
| Graph Distribution Classification | Random Graph Models ER, RP, RG, SBM | Accuracy90 | 8 | |
| Graph Parameter Classification | Random Partition (RP) | Accuracy97 | 8 | |
| Graph Parameter Classification | Random Geometric (RG) Graph | Accuracy92 | 8 | |
| Graph Parameter Classification | Erdős-Rényi (ER) random graph model | Accuracy97 | 8 | |
| Binary Graph Classification | All 169 Graphs (5-fold stratified CV) | Accuracy (Test)73.1 | 6 |