Abstract
Comparing large graphs is a computationally intensive task central to various scientific domains. This paper presents a scalable approach using graphlet kernels, which analyze the distribution of small subgraphs (graphlets) of 3 to 5 nodes. By leveraging theoretically grounded sampling and exploiting bounded-degree properties in sparse graphs, the authors achieve significant speedups and scalability, enabling the comparison of datasets previously considered too large for traditional graph kernels.
Introduction
Graph comparison is vital in fields ranging from bioinformatics, where it helps compare protein structures, to sociology, for analyzing social networks. However, existing methods often face a trade-off between structural detail and computational efficiency. Set-based methods are fast but ignore topology, while frequent subgraph mining is NP-hard. Traditional graph kernels, such as Random Walk or Shortest Path kernels, scale poorly ($O(n^3)$ or $O(n^4)$), making them impractical for large-scale datasets. This research introduces graphlet kernels as an efficient "sufficient statistic" for capturing graph topology.
Methodology: Graphlet Kernels
The core idea is the Graphlet Kernel, which compares graphs based on their "k-spectrum"—the frequency distribution of all possible subgraphs of size $k$ (where $k \in \{3, 4, 5\}$).
To overcome the $O(n^k)$ complexity of exhaustive counting, the authors introduce two key innovations:
Theoretically Grounded Sampling
Instead of counting every subgraph, the authors prove that sampling a fixed number of graphlets is sufficient. Using $L_1$ deviation bounds, they demonstrate that the required sample size depends only on the desired precision and the number of possible graphlet types, making it independent of the total number of nodes ($n$) in the graph.
Bounded Degree Exploitation
For sparse graphs where each node has a limited number of neighbors ($d$), the authors provide an algorithm to count all connected graphlets in $O(nd^{k-1})$ time. This is a significant improvement over the exhaustive approach, especially for real-world biological networks which are typically sparse.
Experimental Evaluation
The kernels were tested on four benchmark datasets: MUTAG (mutagenic compounds), PTC (chemical compounds), Enzyme (protein structures), and D&D (a large dataset of 1,178 protein structures). The D&D dataset, with an average of 284 nodes per graph, served as the primary test for scalability.
Key Results and Insights
- Scalability Breakthrough: On the D&D dataset, traditional kernels failed to finish within 24 hours. In contrast, sampled graphlet kernels completed the task in under 2 hours for $k=4$ and just minutes for $k=3$.
- Accuracy and Precision: Graphlet kernels consistently outperformed Random Walk kernels and remained competitive with Shortest Path kernels. Sampling as few as 10,000 graphlets yielded stable and accurate representations, confirming the theoretical bounds.
- Topological Uniqueness: The paper links graphlet distributions to the "graph reconstruction conjecture," suggesting these distributions are highly unique identifiers for graph topology.
Conclusion and Future Work
Graphlet kernels provide a powerful and scalable tool for comparing large, unlabeled graphs. Future research will focus on extending these kernels to handle node labels (e.g., atom types), improving memory efficiency, and exploring the potential benefits of larger graphlets ($k > 5$).
Summary updated