Home Knowledge Base Weisfeiler-Lehman (WL) Kernel

Weisfeiler-Lehman (WL) Kernel is a graph similarity measure based on the iterative Weisfeiler-Lehman color refinement procedure — which assigns increasingly fine-grained labels to nodes by hashing each node's current label with its sorted neighbors' labels — then compares graphs by the overlap of their label histograms, establishing the theoretical expressiveness ceiling for all standard message-passing Graph Neural Networks.

What Is the Weisfeiler-Lehman Kernel?

Why the WL Kernel Matters

WL Refinement Process

IterationNode Label RepresentsDistinguishing Power
$h = 0$Node attribute (or constant)Same attribute = same color
$h = 1$Attribute + immediate neighbor attributesDifferent 1-hop neighborhoods → different colors
$h = 2$2-hop subtree structureDifferent 2-hop trees → different colors
$h = H$$H$-hop subtree structureFull $H$-hop neighborhood encoding

Weisfeiler-Lehman Kernel is iterative neighborhood coloring — differentiating nodes and graphs by the structural complexity of their neighborhood trees, providing the exact theoretical yardstick against which all message-passing GNN architectures measure their expressiveness.

weisfeiler-lehman kernelgraph algorithms

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.