An Aligned Subtree Kernel for Weighted Graphs

Lu Bai, Luca Rossi, Zhihong Zhang, Edwin R. Hancock

Overview

The Aligned Subtree Kernel (ASK) is a novel framework designed for comparing weighted graphs by aligning their structural representations. Graph kernels are essential tools for machine learning on structured data, but traditional "R-convolution" kernels—which decompose graphs into smaller substructures like walks or paths—suffer from three major flaws:

  1. Neglecting Relative Location: They often compare all pairs of substructures without considering where those structures sit relative to each other in the global graph.
  2. Weight Blindness: Most kernels struggle with weighted graphs because edge weights make it difficult to identify "isomorphic" (identical) subgraphs.
  3. The Tottering Problem: Many walk-based kernels allow a walk to move back and forth between the same two vertices, creating "noise" that artificially inflates similarity scores.

By leveraging Continuous-Time Quantum Walks (CTQW) and entropic measurements, ASK captures both topological and weight information while establishing reliable correspondences between substructures. This approach bridges existing gaps by creating a kernel that is both "weight-aware" and structurally "aligned."

Methodology

The authors propose a multi-step pipeline to transform raw weighted graphs into a comparable format:

  • Quantum-Directed Graphs: The framework uses a Continuous-Time Quantum Walk (CTQW) to simulate how "information" flows through the weighted graph. Unlike classical random walks, CTQWs are reversible and do not collapse into a limiting distribution. The probability of the quantum walk visiting a vertex is used to turn the undirected weighted graph into a directed graph, where edges point toward vertices with higher visit probabilities.
  • Non-Backtracking Tree-Indexing (TI): To solve the "tottering" problem, the authors develop a TI method that strengthens vertex labels based on their $m$-sphere neighborhoods. Because it relies on shortest paths, it naturally avoids backtracking.
  • Entropic Representations: For every vertex, an "h-layer entropic representation" is computed. This vector captures the complexity of the vertex's neighborhood using Shannon entropy (for topology) and directed von Neumann entropy (for weights).
  • Entropic Matching: Instead of comparing all possible subtrees, the method aligns vertices between two graphs by finding the smallest Euclidean distance between their entropic signatures. This establishes a one-to-one correspondence between substructures.

Key Insights

  • Quantum Walks as a Feature Extractor: Using CTQW allows the researchers to "bake" edge weights into the graph's directionality, making the weights a structural feature rather than just a numerical attribute.
  • Alignment over All-Pairs: By forcing a one-to-one correspondence between vertices based on their entropic signatures, the kernel ensures that it is comparing "apples to apples" across different graphs, which is superior to exhaustive all-pairs comparisons.
  • Entropy as a "Soft" Isomorphism: Identifying exact isomorphisms in weighted graphs is computationally hard. Using entropy as a vectorial signature provides a "soft" way to measure structural similarity that is robust to small variations in edge weights.

Experimental Results

The researchers evaluated their kernel on four distinct datasets: BAR31, BSPHERE31, and GEOD31 (derived from the SHREC 3D Shape database using different mapping functions) and MUTAG (a classic benchmark of chemical compounds).

Classification Accuracy

The Aligned Subtree Kernel (ASK) consistently outperformed seven other state-of-the-art kernels—including Weisfeiler-Lehman and Shortest Path kernels—across all datasets.

Classification accuracy of ASK compared to state-of-the-art graph kernels.

On the BAR31 dataset, ASK achieved 73.10% accuracy, significantly higher than the next best competitor (DBMK at 69.40%). Similar leads were maintained across BSPHERE31, GEOD31, and MUTAG.

Computational Efficiency

Despite the complexity of quantum walks, the kernel operates in polynomial time ($O(N^3 + hMN^2)$).

Computation times (in seconds) across different datasets and kernel methods.

While not the absolute fastest (simple walk kernels are quicker), ASK is generally faster than previous depth-based (DBMK) kernels while providing vastly superior results.

Limitations and Future Work

  • Randomized Selection: To keep computational costs down, the authors use a randomized strategy to finalize vertex matches rather than the more precise (but expensive) Hungarian algorithm. This suggests there might be a slight "accuracy ceiling" imposed by the need for speed.
  • Parameter Sensitivity: The kernel relies on pre-specified values for the height of the subtrees ($h$) and the number of correspondences ($M$). While the authors found stable results at $h \geq 8$, these parameters might need careful tuning for new, unseen datasets.
  • Future Directions: The framework's ability to handle weighted graphs opens the door for its application in domains like social network analysis or brain connectivity mapping, where edge weights are critical.

Summary updated

BibTeX
@inproceedings{bai2015aligned,
  author = {Lu Bai and Luca Rossi and Zhihong Zhang and Edwin R. Hancock},
  title = {{An Aligned Subtree Kernel for Weighted Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
}
Figure