arXiv · 2611.35991
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Cosmina Simionescu, Fabrizio Costa. 2026-11-26. Structure Meets Attributes: A Sparse Graph Kernel Built from Neighborhood Pairs and Paths. https://arxiv.science/abs/2611.35991
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.