Structure Meets Attributes: A Sparse Graph Kernel Built from Neighborhood Pairs and Paths
Abstract
Graph learning methods often require extensive tuning, while incorporating continuous node attributes into graph kernels can be computationally expensive. To tackle these issues we introduce the Neighborhood Subgraph Pairwise Path Kernel (NSPPK), which maps graphs with continuous node attributes into high-dimensional sparse feature vectors. NSPPK encodes graph structure through hashed pairs of rooted subgraphs augmented with shortest-path connectors, and incorporates continuous attributes through structure-dependent aggregation. This avoids attribute discretization and allows graph similarities to be computed as inner products between explicit feature vectors. Graph vectorization is deterministic, requires no training, and can be performed independently across graphs in parallel. With fixed structural parameters and bounded local adjacency sizes, its computational complexity is linear in the number of nodes. We examine the kernel's discriminative properties and sensitivity to structural and attribute perturbations. Across six graph classification benchmarks, NSPPK achieves the best average accuracy rank among the evaluated graph kernels, without dataset-specific structural parameter tuning. Used as a vectorization method with XGBoost, it achieves higher mean classification accuracy than the evaluated neural baselines on five of the six datasets. Further experiments on QM9 and MolPCBA assess vectorization efficiency and applicability to larger molecular datasets. These results show that explicit sparse graph kernels can provide an effective alternative to learned graph embeddings for attributed graph classification.
Create a lesson
Related papers
Learning Sparse Finite Element Operators on Graphs
Shared title terminologycs.LGStefanos Bakirtzis
Direction-Adaptive Haar Framelets on Graphs
Shared title terminologycs.LGZehua Fang, Xiaosheng Zhuang
Label Geometry and Certified Kernel Subset Refitting
Shared title terminologycs.LGYuha Song
On the Low Rank Theory of Data Shapley: A Kernel Perspective
Shared title terminologycs.LGDonghwan Rho, Seungcheol Shin, Myungjoo Kang
Stiefel-Projected 4D Tucker Fast-Weight Memory: Zero-SVD Cubic-Kernel Linear Attention, Exact Subspace Unlearning and O(1) Multi-Hop Retrieval
Shared title terminologycs.LGShubham Barmase
Effects of Structural Reward Shaping on Biophysical Properties in RL-Trained Plasmid Generators
Shared title terminologycs.LGMcClain Thiel, Angus G. Cunningham, Chris P. Barnes