An Edge-Based Matching Kernel Through Discrete-Time Quantum Walks

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

Introduction

Graph matching—the process of measuring similarity between graph-structured data—is a cornerstone of modern machine learning, with applications ranging from bioinformatics to computer vision. Traditionally, graph kernels have relied on the R-convolution framework, which decomposes graphs into smaller substructures (such as paths, cycles, or subtrees) and counts their occurrences. While effective, these methods often suffer from a loss of spatial context; they identify the presence of specific structures but fail to account for their relative positions within the global topology.

To address this, recent research has shifted toward "depth-based" kernels that align vertices based on their local neighborhood structures. However, most existing approaches remain vertex-centric. This paper proposes a paradigm shift toward edge-based matching, arguing that the connections between nodes often encode more significant structural information than the nodes themselves. By leveraging the unique properties of discrete-time quantum walks (DTQW) and line graph transformations, the authors introduce the Discrete-Time Quantum Walk Matching Kernel (DQMK).

Methodology

The DQMK pipeline consists of four primary stages designed to capture and compare the structural roles of edges within a graph.

1. Line Graph Transformation

The first step involves converting each graph into its dual representation: a directed line graph. In this transformation, every vertex in the new graph represents an edge from the original graph. This shift allows the kernel to perform edge-based analysis using tools traditionally reserved for vertex-based processing, effectively increasing the dimensionality of the feature space and revealing characteristics hidden in standard representations.

2. Discrete-Time Quantum Walks (DTQW)

Unlike classical random walks, quantum walks exhibit "interference," where different paths can reinforce or cancel each other out. The state space of a DTQW is naturally defined on directed edges, making it an ideal tool for edge-based kernels. The authors demonstrate that a DTQW on the original graph is mathematically equivalent to a walk on the vertices of the transformed line graph, allowing for a sophisticated exploration of the graph's topology.

3. Entropic Signatures

To characterize the structural role of each edge, the authors calculate the probability of a quantum walker visiting a specific vertex in the line graph over time. These probabilities are used to compute Shannon entropy signatures across various "layers" or neighborhood depths ($h$-layers). The result is a multi-dimensional vector for each edge that describes its local and global structural context.

4. Edge Alignment and Matching

Finally, the kernel compares two graphs by aligning their edge signatures. Using an affinity matrix and a greedy assignment strategy, the algorithm identifies the best one-to-one matches between the edges of the two graphs. The final kernel value is derived from the count of these matched pairs, providing a robust measure of similarity that preserves spatial context.

Experimental Evaluation

The researchers evaluated the DQMK against several state-of-the-art kernels, including the Weisfeiler-Lehman subtree kernel (WLSK) and the vertex-based Depth-Based Matching Kernel (DBMK), across four computer vision datasets:

  • SHREC 3D Shape Database (BAR31, BSPHERE31, GEOD31): 300 shapes across 15 classes, converted to graphs using barycenter, bounding sphere, and integral geodesic mapping.
  • Shock: A 2D shape database of 150 graphs representing the skeletal structures of objects across 10 classes.

Key Results

  • Accuracy: The DQMK demonstrated significant performance gains, particularly on the Shock dataset, where it achieved 47.00% accuracy compared to 30.80% for the vertex-based DBMK. It also outperformed competitors on the BSPHERE31 dataset and remained highly competitive on others.
  • Efficiency: Despite the theoretical complexity of quantum simulations, the DQMK proved more efficient than its predecessors. On the BAR31 dataset, the DQMK computed the kernel matrix in 198 seconds, whereas the DBMK required 682 seconds.

Discussion and Future Work

The success of the DQMK highlights the "Power of Duality." By operating on the line graph, the kernel accesses a richer data set, as line graphs typically contain more vertices than the original graphs have nodes. Furthermore, the use of depth-based signatures ensures that the kernel does not just identify substructures, but understands their "location" and "role" within the graph.

Future research will focus on refining the assignment strategy—potentially replacing the greedy approach with the Hungarian algorithm to improve accuracy—and optimizing the initial state of the quantum walk to capture even more nuanced topological features. While the transformation to line graphs increases the vertex count, the efficiency gains observed suggest that edge-based quantum kernels are a viable and powerful path forward for graph-based machine learning.

Summary updated

BibTeX
@inproceedings{bai2015edge,
  author = {Lu Bai and Zhihong Zhang and Peng Ren and Luca Rossi and Edwin R. Hancock},
  title = {{An Edge-Based Matching Kernel Through Discrete-Time Quantum Walks}},
  booktitle = {ICIAP},
  year = {2015},
  doi = {10.1007/978-3-319-23231-7\_3},
}
Figure