Papers › Laplacian Canonization: A Minimalist Approach to Sign and Basis Invariant Spectral Embedding

Laplacian Canonization: A Minimalist Approach to Sign and Basis Invariant Spectral Embedding

28 Oct 2023NeurIPS 2023 11arXiv:2310.18716archive 2025-07-28

Jiangyan Ma, Yifei Wang, Yisen Wang

Spectral embedding is a powerful graph embedding technique that has received a lot of attention recently due to its effectiveness on Graph Transformers. However, from a theoretical perspective, the universal expressive power of spectral embedding comes at the price of losing two important invariance properties of graphs, sign and basis invariance, which also limits its effectiveness on graph data. To remedy this issue, many previous methods developed costly approaches to learn new invariants and suffer from high computation complexity. In this work, we explore a minimal approach that resolves the ambiguity issues by directly finding canonical directions for the eigenvectors, named Laplacian Canonization (LC). As a pure pre-processing method, LC is light-weighted and can be applied to any existing GNNs. We provide a thorough investigation, from theory to algorithm, on this approach, and discover an efficient algorithm named Maximal Axis Projection (MAP) that works for both sign and basis invariance and successfully canonizes more than 90% of all eigenvectors. Experiments on real-world benchmark datasets like ZINC, MOLTOX21, and MOLPCBA show that MAP consistently outperforms existing methods while bringing minimal computation overhead. Code is available at https://github.com/PKU-ML/LaplacianCanonization.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.18716")

Code

Syntology Ran 11 of 12 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 3 ran · our draft was wrong; 8 ran with no contract checked.

By repository: official repository: 12 samples from 2 repositories, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

GeorgeMLP/basis-invariance-synthetic-experiment officialmentioned in paperpytorchMIT report
pku-ml/laplaciancanonization officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 11 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
8ran
1unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

aggregate_max georgemlp/laplacian-canonization/layers/pna_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0cb93154c335108f · report
aggregate_mean georgemlp/laplacian-canonization/layers/pna_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b19d1fdc25bad3bd · report
aggregate_min georgemlp/laplacian-canonization/layers/pna_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · ff879af48e34176e · report
eval GeorgeMLP/basis-invariance-synthetic-experiment/synthetic.py official repository ran MIT (permissive) · a8de1fa7bc9aaab6 · report
find_complementary_space GeorgeMLP/basis-invariance-synthetic-experiment/utils.py official repository ran fingerprinted MIT (permissive) · 2a7ec17e69572d30 · report
imp_exp_attn georgemlp/laplacian-canonization/layers/graphit_gt_layer.py official repository ran MIT (permissive) · 700de849477f93ce · report
orthogonalize GeorgeMLP/basis-invariance-synthetic-experiment/utils.py official repository ran fingerprinted MIT (permissive) · f8220a5b40f8d459 · report
scaling georgemlp/laplacian-canonization/layers/graphit_gt_layer.py official repository ran MIT (permissive) · a3fb87a259b15eae · report
train GeorgeMLP/basis-invariance-synthetic-experiment/synthetic.py official repository ran MIT (permissive) · 6b32104b7d171641 · report
unique_basis GeorgeMLP/basis-invariance-synthetic-experiment/utils.py official repository ran fingerprinted MIT (permissive) · 2e17b5f232883936 · report
validate GeorgeMLP/basis-invariance-synthetic-experiment/synthetic.py official repository ran MIT (permissive) · 2f90ede6b1995413 · report
src_dot_dst georgemlp/laplacian-canonization/layers/graphit_gt_layer.py official repository unverified MIT (permissive) · 9408c2ca6e799410 · report

Tasks

Graph ClassificationGraph EmbeddingGraph Regression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections