atlas

Research map / Graph learning / GNN architectures

Aligning Transformers with Weisfeiler-Leman

ICML 2024 · Graph learning › GNN architectures · approach: Weisfeiler-Leman expressivity hierarchies · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a tokenization for standard (pure) transformers that aligns them with the k-WL hierarchy, yielding more expressive, feasible pure transformers (k,s)-tuples and LPE/SPE-based structural embeddings, evaluated on PCQM4Mv2, small molecular datasets and BREC.

Problem

Pure transformers (no architectural modification) for graphs lack a feasible hierarchy with provable expressivity beyond 1-WL; prior k-WL-aligned transformers have prohibitive runtime and head counts (e.g., bell(2k) heads, 203 for k=3).

Approach

Tokenize graphs as k-tuple tokens built by concatenating node-level structural embeddings (node- and adjacency-identifying PEs such as LPE or SPE) plus atomic-type embeddings, aligning a standard transformer with k-WL and its (k,s)-tuple variant, needing only 2k heads; pre-train at low order and transfer weights to higher order.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use (2,1) + LPE instead of GraphormerPCQM4Mv2 validation · PCQM4Mv2 validationMAE: 0.0864 -> 0.0870Hurt
Use (2,1) + LPE instead of TokenGTPCQM4Mv2 validation · PCQM4Mv2 validationMAE: 0.0910 -> 0.0870Helped
Use (2,1) + LPE instead of TokenGTCS · CSaccuracy: 0.903 $\pm$ 0.004 -> 0.924 $\pm$ 0.008Helped
Use (2,1) + LPE instead of TokenGTPhoto · Photoaccuracy: 0.949 $\pm$ 0.007 -> 0.933 $\pm$ 0.013Hurt
Pre-train (2,1) + LPE rather than train from scratch (ablation)(2,1) + LPE · Alchemy (12K)MAE: 0.124 $\pm$ 0.001 -> 0.101 $\pm$ 0.001Helped
Pre-train (2,1) + SPE rather than train from scratch (ablation)(2,1) + SPE · Alchemy (12K)MAE: 0.112 $\pm$ 0.000 -> 0.103 $\pm$ 0.002Helped
Transfer pre-trained (2,1) weights to (3,1) instead of fine-tuning (2,1) (ablation)LPE models · Alchemy (12K)MAE: 0.101 $\pm$ 0.001 -> 0.114 $\pm$ 0.001Hurt
Transfer pre-trained (2,1) weights to (3,1) instead of fine-tuning (2,1) (ablation)SPE models · Alchemy (12K)MAE: 0.103 $\pm$ 0.002 -> 0.108 $\pm$ 0.001Mixed
Use SPE rather than LPE for scratch training (ablation)(2,1) · Alchemy (12K)MAE: 0.124 $\pm$ 0.001 -> 0.112 $\pm$ 0.000Helped
Use LPE rather than SPE after pre-training (ablation)(2,1) · Alchemy (12K)MAE: 0.103 $\pm$ 0.002 -> 0.101 $\pm$ 0.001Helped
Increase order from (2,1) to (3,1) with LPE (ablation)Order-transferred transformer · BREC Allsolved graph pairs: 118 -> 159Helped
Use SPE instead of LPE (ablation)(2,1) transformer · BREC Allsolved graph pairs: 118 -> 226Helped

Surprising findings

Limitations

Experimental setup

Datasets: PCQM4Mv2 Alchemy (12K) BBBP BACE ClinTox Tox21 ToxCast CS Photo BREC

Benchmarks: PCQM4Mv2 CS Photo Alchemy (12K) BBBP BACE ClinTox Tox21 ToxCast BREC

Metrics: MAE accuracy AUROC BREC count of distinguished pairs

Baselines: Graphormer TokenGT GIN GINE SignNet BasisNet SPE 3-WL

Builds on: TokenGT k-order Transformer SPE Laplacian positional encodings (k,s)-WL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy