Abstract
The availability of graph data with node attributes that can be either discrete or real-valued is constantly increasing. While existing kernel methods are effective techniques for dealing with graphs having discrete node labels, their adaptation to non-discrete or continuous node attributes has been limited, mainly for computational issues. Recently, a few kernels especially tailored for this domain, and that trade predictive performance for computational efficiency, have been proposed. In this paper, we propose a graph kernel for complex and continuous nodes' attributes, whose features are tree structures extracted from specific graph visits. The kernel manages to keep the same complexity of state-of-the-art kernels while implicitly using a larger feature space. We further present an approximated variant of the kernel which reduces its complexity significantly. Experimental results obtained on six real-world datasets show that the kernel is the best performing one on most of them. Moreover, in most cases the approximated version reaches comparable performances to current state-of-the-art kernels in terms of classification accuracy while greatly shortening the running times.
Introduction
In graph-based machine learning, nodes often possess attributes that are either discrete (e.g., atom types) or continuous (e.g., hydrophobicity, 3D coordinates). Traditional graph kernels typically rely on "hard matches" of discrete labels, which fail when applied to real-valued attributes that are rarely identical. Common workarounds, such as discretization or computationally expensive kernels ($O(n^3)$), often result in information loss or poor scalability. This paper addresses the need for a kernel that is both structurally expressive and computationally efficient for continuous data.
Methodology
The authors introduce the Ordered Decomposition DAG Kernel for Continuous Labels (ODDCL_ST). The approach follows a three-stage pipeline:
- Decomposition: The graph is decomposed into a multiset of Directed Acyclic Graphs (DAGs) based on shortest paths from each node. These are subsequently treated as tree structures.
- Ordered Subtree Kernel: The standard Subtree (ST) kernel is extended to incorporate continuous attributes ($K_A$, typically an RBF kernel) at the root of matching structural features. This ensures that continuous information within a structural neighborhood contributes to the final similarity score.
- Approximation: To mitigate the quadratic complexity of node comparisons, ODDCL_Approx utilizes "Random Kitchen Sinks" (Monte Carlo sampling) to map continuous attributes into a low-dimensional explicit feature space. This transforms the kernel computation into a fast summation.
Key Insights
- Structural Context: The method evaluates the arrangement of nodes with similar physical properties rather than just node-to-node similarity.
- Ordering Invariance: The kernel is designed so that continuous evaluation is independent of sibling ordering, making the kernel mathematically robust.
- Efficiency Balance: The approximated version offers a "sweet spot," maintaining higher accuracy than simple path-based kernels while being significantly faster than exact methods.
Experimental Evaluation
The kernel was evaluated on six datasets spanning bioinformatics (ENZYMES, PROTEINS), chemoinformatics (COX2, BZR, DHFR), and synthetic data.
Results
- Top-Tier Accuracy: ODDCL_ST achieved the highest accuracy on 5 out of 6 datasets, demonstrating the superiority of structural integration of continuous attributes.
- Massive Speedups: On the PROTEINS dataset, the proposed kernel was eight times faster than the popular GraphHopper kernel.
- Approximation Performance: The ODDCL_Approx version was the second fastest kernel overall but maintained competitive accuracy, often outperforming much slower state-of-the-art methods.
- Noise Tolerance: On the synthetic dataset, the kernel showed high resistance to attribute noise, suggesting it is robust for real-world experimental measurements.
Conclusion and Future Work
While highly effective, the algorithm's efficiency still benefits from the presence of some discrete labels or structural proxies to prune the search space. Future work may involve extending this framework to other types of tree kernels or applying the approximation method to even larger-scale graph databases where computational efficiency is critical.
Summary updated