Introduction
This paper solves a long-standing theoretical hurdle in machine learning: how to make "optimal assignment" similarity measures mathematically valid for kernel-based algorithms like Support Vector Machines (SVMs). By identifying a specific class of "strong" base kernels, the authors prove that optimal assignments can be both positive semidefinite and computed in linear time. This theoretical breakthrough leads to a new state-of-the-art kernel for graph classification.
The Problem: Valid Kernels for Structured Data
In machine learning, "kernels" are functions that measure the similarity between two objects, such as images, text, or molecular graphs. To be used with standard kernel methods like SVMs, a kernel must be mathematically "valid"—specifically, it must be symmetric and positive semidefinite (p.s.d.).
For structured data, the traditional gold standard is the convolution kernel. It works by breaking objects into parts and summing up all pairwise similarities between these parts. However, this approach often suffers from "diagonal dominance," where an object is scored as being vastly more similar to itself than to any other object, making it difficult for the algorithm to discern meaningful patterns among different objects.
An intuitive alternative is the optimal assignment approach. Instead of summing all pairs, it finds the best one-to-one mapping (bijection) between the parts of two objects and sums only those best-match scores. While this provides a more descriptive and discriminative measure of similarity, it typically results in "invalid" (indefinite) kernels. Previous attempts to resolve this issue were either computationally prohibitive (requiring factorial time) or relied on "soft-max" approximations that diluted the benefits of the optimal mapping.
The Solution: Strong Kernels and Hierarchies
The authors introduce a breakthrough by characterizing a specific class of base kernels they call strong kernels, which guarantee that the resulting optimal assignment kernel is positive semidefinite.
- Strong Kernels: A base kernel $k$ is defined as "strong" if it satisfies a specific inequality: $k(x, y) \geq \min\{k(x, z), k(z, y)\}$ for all $x, y, z$. This property is closely related to the mathematical concept of ultrametrics.
- The Hierarchy Link: The paper proves that every strong kernel is equivalent to a hierarchical partition of the data. You can visualize this as a tree where the leaves represent data points (or parts of an object). The similarity between any two points is determined by the weight of their lowest common ancestor in that tree.
- Linear Time Assignment: The most significant practical implication is that if the base kernel is strong, the optimal assignment problem can be solved greedily. Instead of relying on the $O(n^3)$ Hungarian algorithm, the similarity can be calculated in linear time $O(n)$ using histogram intersection on the hierarchy. A bottom-up, greedy traversal of the hierarchy tree yields the globally optimal assignment, elegantly bridging combinatorial optimization and kernel methods.
Application: The WL-OA Kernel
The authors apply this theory to graph classification by creating the Weisfeiler-Lehman Optimal Assignment (WL-OA) kernel. The standard Weisfeiler-Lehman (WL) subtree kernel uses an iterative label-refinement process to capture graph structure, comparing graphs by counting matching labels.
The WL-OA kernel leverages the same refinement process but replaces the standard counting method with an optimal assignment. Because the iterative refinement naturally builds a hierarchy of labels (where refined labels are children of the previous iteration's labels), it perfectly fits the strong kernel framework.
Evaluation and Results
The approach was evaluated on nine widely-used graph classification benchmarks across three domains:
- Small Molecules: MUTAG, PTC-MR, NCI1, NCI109.
- Macromolecules (Proteins): PROTEINS, D&D, ENZYMES.
- Social Networks: COLLAB, REDDIT (unlabeled graphs where structure is key).
Key Findings: * Superior Accuracy: The WL-OA kernel outperformed the standard Weisfeiler-Lehman subtree kernel on 7 out of 9 datasets. * Significant Gains: Improvements were particularly stark on datasets like ENZYMES and REDDIT. For instance, accuracy on the ENZYMES dataset jumped from ~53.7% to ~59.9%. * Efficiency: Despite computing an "optimal assignment," the processing time was on par with simpler convolution kernels and orders of magnitude faster than traditional assignment algorithms. Most datasets were processed in under a minute. By using assignments instead of all-pairs sums, the kernel successfully mitigates diagonal dominance, focusing on the most relevant structural correspondences.
Limitations and Future Work
- Restrictive Base Kernels: The "strong kernel" requirement is a strict mathematical constraint. While it works exceptionally well for categorical labels (like atom types in a molecule or node degrees), it is challenging to apply to continuous, high-dimensional vectors without losing information through discretization.
- Hierarchy Dependency: The model's performance heavily relies on having a meaningful hierarchy. The Weisfeiler-Lehman process provides a natural one for graphs, but other types of data might require significant feature engineering to construct a suitable strong base kernel.
- Future Directions: The authors suggest that this framework could be extended to other structured data types, such as 3D shapes or images, provided a valid hierarchical decomposition can be established.
Summary updated