# Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Them

*Snir Hordan, Nadav Dym, Tim Seppelt*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150655) · [Open on the map](../papers.html#p150655)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Graph Neural Network Signal Propagation](../pgroup/430.md) · Type: new method · Keywords: graph canonicalization, Weisfeiler-Leman test, spectral graphs, graph neural networks, expressivity, DeepSets

Areas: [Graph Learning](../areas/graph-learning.md) › Graph Analysis Methods › Graph Neural Network Expressivity

## Summary
PRiSM is a provably complete canonicalization of simple-spectrum eigendecompositions that closes the expressivity gap of Weisfeiler-Leman and GNNs on such graphs.

## Explained to a 5-year-old
A game that tries to match pictures sometimes makes mistakes. The researchers found a new method that always matches them correctly. This helps computers understand those pictures better. It works for pictures that have a special math property. It also helps computers learn from those pictures.

## Explained to a 5-year-old, longer
Imagine you have two puzzles that look different but are actually the same shape. A simple game tries to tell if they are the same, but it sometimes says they are different when they are not. The researchers noticed this problem and created a new way to compare the puzzles that always gets it right. Their method breaks the puzzles into pieces, refines those pieces, solves a matching problem, and puts them back together in a standard order. This perfect matching helps computers see the true structure of the puzzles. When this method is used with simple neural networks or transformers, it can learn any pattern you throw at it. In practice, the new method works as well as or better than older ways of doing this on tasks like predicting graph properties, classifying graphs, and testing how expressive the models are. This makes graph learning more reliable and powerful.

## For a technical reader
The paper shows that the classic Weisfeiler-Leman graph isomorphism test cannot fully distinguish graphs whose spectra are simple, which also limits many GNN families. To fix this, the authors propose a canonicalization pipeline that partitions eigenvectors, refines them, solves a matching problem, and produces a unique representation. This pipeline provably guarantees completeness and can be combined with DeepSets or Transformers to achieve universal approximation on such graphs. Experiments confirm that the new approach matches or outperforms existing spectral canonicalizations on regression, classification, and expressivity benchmarks.

## Problem
Graph isomorphism testing for graphs with a simple spectrum is theoretically tractable, but the Weisfeiler-Leman test (and GNNs aligned with it) cannot distinguish all non-isomorphic such graphs, limiting their expressive power.

## Method
The approach partitions eigenvectors, refines them, solves a matching problem, and matches them to produce a canonical form of the eigendecomposition. It can be combined with DeepSets or Transformers to achieve universal approximation.

## Results
The approach matches or exceeds the performance of existing spectral canonicalizations across graph regression, classification, and expressivity benchmarks.

## Contributions
It provides the first provably complete canonicalization for simple-spectrum eigendecompositions, resolves the open problem of complete expressivity on such graphs, and demonstrates universal approximation when combined with DeepSets or Transformers.

## Practical relevance
It justifies the use of canonicalized Laplacian positional encodings for graph learning tasks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150655)
