HAQJSK: Hierarchical-Aligned Quantum Jensen-Shannon Kernels for Graph Classification

Lu Bai, Lixin Cui, Yue Wang, Ming Li, Edwin R. Hancock

This paper introduces HAQJSK (Hierarchical-Aligned Quantum Jensen-Shannon Kernels), a new framework for graph classification that bridges the gap between quantum information theory and structural pattern recognition. By combining the global sensitivity of quantum walks with a novel hierarchical alignment strategy, the authors create a kernel that is mathematically robust (positive definite) and highly effective at capturing the "big picture" of graph structures.

TL;DR

HAQJSK is a family of quantum graph kernels that use Continuous-Time Quantum Walks (CTQW) and hierarchical alignment to transform graphs of any size into fixed-size, transitively aligned structures. This approach ensures the kernels are positive definite and permutation invariant, allowing them to outperform state-of-the-art classical kernels and deep learning models on standard benchmarks.

What Problem Does This Paper Address?

Graph classification—assigning a label to an entire graph (like a molecule or a social network)—is a fundamental challenge in machine learning. Most existing methods fall into two camps, both with significant flaws:

  1. R-convolution Kernels: These break graphs into small pieces (subtrees, paths, etc.) and count how many pieces they have in common. The problem? They often ignore the global "layout." As shown in Figure 1, two graphs might contain identical sub-structures (like the red triangles) that are positioned differently relative to the rest of the graph, leading to inaccurate similarity measures. Fig.

  2. Graphs abstracted from digital images of different viewpoints.

  3. Previous Quantum Kernels: While quantum walks are great at capturing global structure, previous attempts to turn them into kernels struggled with vertex ordering. If you align vertices greedily or randomly, the resulting kernel often isn't positive definite (PD)—a strict mathematical requirement for many algorithms like Support Vector Machines (SVMs).

![Fig.

  1. Graphs abstracted from digital images of different viewpoints.](/figures/art_a8cdaa882ce5445f84e6a7eea9b2bd12)

Methods

The authors propose a multi-step pipeline to solve these issues:

  • Continuous-Time Quantum Walks (CTQW): Unlike classical random walks, CTQWs are governed by unitary matrices. This allows for quantum interference, which helps the walk "see" global topological features that classical walks might miss due to "tottering" (repeatedly bouncing between the same nodes).
  • Hierarchical Transitive Alignment: This is the core innovation. Instead of trying to align two graphs directly, the authors align all graphs in a dataset to a common set of "prototypes." These prototypes are learned by clustering vertex representations (Depth-Based complexity traces) across the entire dataset using k-means. Fig.

  • The process of computing the family of 2-level hierarchical prototype representations.

  • Fixed-Size Transformation: Using these alignments, graphs of varying sizes are transformed into fixed-size "Hierarchical Transitive Aligned Adjacency/Density Matrices." Because every graph is aligned to the same global prototypes, the alignment is transitive, which mathematically guarantees that the final kernel is positive definite.
  • Quantum Jensen-Shannon Divergence (QJSD): The similarity between these aligned structures is measured using QJSD, a distance metric from quantum information theory that compares the "density states" of the quantum walks.

![Fig.

  1. The process of computing the family of 2-level hierarchical prototype representations.](/figures/art_3f41ef67940a4110a85a21c8d110155a)

Datasets

The HAQJSK kernels were evaluated on 12 standard benchmark datasets across three domains:

  • Bioinformatics: MUTAG, PPIs, CATH2, PTC(MR).
  • Computer Vision: GatorBait, BAR31, BSPHERE31, GEOD31.
  • Social Networks: IMDB-B, IMDB-M, RED-B, COLLAB.

Key Insights and Ideas

  • Transitivity = Mathematical Validity: By enforcing transitivity through global prototypes, the authors solved the long-standing problem of non-positive definiteness in alignment-based kernels.
  • Quantum Interference as a Feature: The CTQW's ability to avoid "tottering" allows it to distinguish complex graphs that look identical to classical algorithms (like the Weisfeiler-Lehman test).
  • Multi-Scale Fusion: The hierarchical nature of the alignment means the kernel captures information at multiple levels of granularity, from local neighborhoods to global topology.
  • Superior Properties: As summarized in Table I, HAQJSK is the only kernel in its class to simultaneously satisfy positive definiteness, structural alignment, and hierarchical global/local information capture. Extracted table from page 8 showing kernel properties.
Extracted table from page 8 showing kernel properties.

Key Results

  • Outperforming Kernels: HAQJSK outperformed 10 state-of-the-art graph kernels (including Weisfeiler-Lehman and Shortest Path kernels) on 9 out of 12 datasets.
  • Beating Deep Learning: Surprisingly, the HAQJSK-SVM combination often outperformed modern Graph Neural Networks (GNNs) like DGCNN and PSGCNN. The authors attribute this to the fact that many GNNs are theoretically limited by the same issues as the Weisfeiler-Lehman test, whereas quantum walks provide a more powerful structural signature.
  • Efficiency: The kernels have a polynomial time complexity ($O(N^2n^3)$), making them computationally feasible for standard research datasets.

Limitations and Future Work

  • Un-attributed Graphs: The current HAQJSK framework is designed for un-attributed graphs (graphs where nodes don't have extra labels like "Carbon" or "Oxygen"). While it uses structural features, it doesn't directly ingest raw node attributes.
  • Future Direction: The authors plan to integrate vertex label information into the kernel computation to create an "attributed" version of HAQJSK, which could further boost performance in chemical and biological domains.

Summary updated

BibTeX
@article{bai2022haqjsk,
  author = {Lu Bai and Lixin Cui and Yue Wang and Ming Li and Edwin R. Hancock},
  title = {{HAQJSK: Hierarchical-Aligned Quantum Jensen-Shannon Kernels for Graph Classification}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2022},
  url = {https://openreview.net/forum?id=PqZeiBqgFB},
}
Figure