Papers › On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformers

On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformers

4 Apr 2024arXiv:2404.03380archive 2025-07-28

Cai Zhou, Rose Yu, Yusu Wang

Graph transformers have recently received significant attention in graph learning, partly due to their ability to capture more global interaction via self-attention. Nevertheless, while higher-order graph neural networks have been reasonably well studied, the exploration of extending graph transformers to higher-order variants is just starting. Both theoretical understanding and empirical results are limited. In this paper, we provide a systematic study of the theoretical expressive power of order-k graph transformers and sparse variants. We first show that, an order-k graph transformer without additional structural information is less expressive than the k-Weisfeiler Lehman (k-WL) test despite its high computational cost. We then explore strategies to both sparsify and enhance the higher-order graph transformers, aiming to improve both their efficiency and expressiveness. Indeed, sparsification based on neighborhood information can enhance the expressive power, as it provides additional information about input graph structures. In particular, we show that a natural neighborhood-based sparse order-k transformer model is not only computationally efficient, but also expressive -- as expressive as k-WL test. We further study several other sparse graph attention models that are computationally efficient and provide their expressiveness analysis. Finally, we provide experimental results to show the effectiveness of the different sparsification strategies.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2404.03380")

Code

Syntology Ran 8 of 13 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 7 ran with no contract checked.

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

zhouc20/k-transformer 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

13 samples harvested; 8 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
7ran
5unverified

Licence: 0 of the 13 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 zhouc20/k-transformer. “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.

Delta_0 zhouc20/k-transformer/Hodge_decomposition.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a59edb7a016ef8b4 · report
PyG_collate zhouc20/k-transformer/train_count_substructure.py official repository ran MIT (permissive) · 589458845725ad19 · report
cumsum_pad0 zhouc20/k-transformer/graphgps/network/k_simplicial_transformer_model.py official repository ran fingerprinted MIT (permissive) · 8134b52cd16bee5c · report
get_final_pretrained_ckpt zhouc20/k-transformer/graphgps/finetuning.py official repository ran MIT (permissive) · 1bb331bf70a78136 · report
get_log_deg zhouc20/k-transformer/graphgps/layer/tensorized_transformer_layer.py official repository ran MIT (permissive) · b5c9e7acf599a98a · report
init_model_from_pretrained zhouc20/k-transformer/graphgps/finetuning.py official repository ran MIT (permissive) · 9a4410b8a6c0cc47 · report
new_optimizer_config zhouc20/k-transformer/train_count_substructure.py official repository ran MIT (permissive) · 585566394225e457 · report
num2batch zhouc20/k-transformer/graphgps/network/k_simplicial_transformer_model.py official repository ran MIT (permissive) · 9655691d41dabccf · report
divergence zhouc20/k-transformer/Hodge_decomposition.py official repository unverified MIT (permissive) · a0f064817b33d41f · report
is_seed zhouc20/k-transformer/graphgps/agg_runs.py official repository unverified MIT (permissive) · c98a702be0660ac9 · report
is_split zhouc20/k-transformer/graphgps/agg_runs.py official repository unverified MIT (permissive) · 438635c08adfe2aa · report
join_list zhouc20/k-transformer/graphgps/agg_runs.py official repository unverified MIT (permissive) · 40e98e1ecbf39f34 · report
load_pretrained_model_cfg zhouc20/k-transformer/graphgps/finetuning.py official repository unverified MIT (permissive) · 91c1f5bb90bbe0f3 · report

Tasks

Graph AttentionGraph Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGraph TransformerLabel SmoothingLapEigenLaplacian PELayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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