Papers › PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer

PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer

19 Jul 2024arXiv:2407.14459archive 2025-07-28

Jiahong Ma, Mingguo He, Zhewei Wei

Spectral Graph Neural Networks have demonstrated superior performance in graph representation learning. However, many current methods focus on employing shared polynomial coefficients for all nodes, i.e., learning node-unified filters, which limits the filters' flexibility for node-level tasks. The recent DSF attempts to overcome this limitation by learning node-wise coefficients based on positional encoding. However, the initialization and updating process of the positional encoding are burdensome, hindering scalability on large-scale graphs. In this work, we propose a scalable node-wise filter, PolyAttn. Leveraging the attention mechanism, PolyAttn can directly learn node-wise filters in an efficient manner, offering powerful representation capabilities. Building on PolyAttn, we introduce the whole model, named PolyFormer. In the lens of Graph Transformer models, PolyFormer, which calculates attention scores within nodes, shows great scalability. Moreover, the model captures spectral information, enhancing expressiveness while maintaining efficiency. With these advantages, PolyFormer offers a desirable balance between scalability and expressiveness for node-level tasks. Extensive experiments demonstrate that our proposed methods excel at learning arbitrary node-wise filters, showing superior performance on both homophilic and heterophilic graphs, and handling graphs containing up to 100 million nodes. The code is available at https://github.com/air029/PolyFormer.

PaperPDFCodeCode 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="2407.14459")

Code

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

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

air029/polyformer officialmentioned in paperpytorch 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

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

1ran · honoured contract
2ran · our draft was wrong
7ran
4unverified

Licence: 14 of the 14 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 air029/polyformer. “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.

accuracy air029/polyformer/node_classification_large_graph/training_batch.py official repository ran no licence file found · pointer only · 5842468b7170d5c1 · report
cheby air029/polyformer/node_classification/utils.py official repository ran · honoured contract no licence file found · pointer only · d7653b0093307e2d · report
even_quantile_labels air029/polyformer/node_classification_large_graph/dataloader/LINKX_dataset.py official repository ran no licence file found · pointer only · 60fa16c14dfd02f0 · report
index_to_mask air029/polyformer/node_classification/utils.py official repository ran no licence file found · pointer only · 015b48620e1b8319 · report
load_twitch air029/polyformer/node_classification_large_graph/dataloader/LINKX_dataset.py official repository ran no licence file found · pointer only · 8e507f8a537044ad · report
load_twitch_gamer air029/polyformer/node_classification_large_graph/dataloader/LINKX_dataset.py official repository ran · our draft was wrong no licence file found · pointer only · d4e6fd9f6cd8a3ad · report
sparse_mx_to_torch_sparse_tensor air029/polyformer/node_classification_large_graph/processing_dataset.py official repository ran · our draft was wrong no licence file found · pointer only · c97b99c4e8201a97 · report
sys_normalized_adjacency air029/polyformer/node_classification_large_graph/processing_dataset.py official repository ran no licence file found · pointer only · adcee8aadfbcc909 · report
sys_normalized_adjacency_i air029/polyformer/node_classification_large_graph/processing_dataset.py official repository ran no licence file found · pointer only · b6d88af9096c2c9a · report
take_rest air029/polyformer/node_classification/utils.py official repository ran fingerprinted no licence file found · pointer only · 54cc1bc4ace00fb7 · report
DataLoader air029/polyformer/node_classification/dataloader/dataset_loader.py official repository unverified no licence file found · pointer only · f36c10b62c48e05e · report
DataLoader air029/polyformer/node_classification_large_graph/dataloader/dataset_loader.py official repository unverified no licence file found · pointer only · 3e9e130cf0f52cb4 · report
create_batch air029/polyformer/node_classification_large_graph/training_batch.py official repository unverified no licence file found · pointer only · c92a4ce1dc31074e · report
train air029/polyformer/node_classification_large_graph/training_batch.py official repository unverified no licence file found · pointer only · b756e3430fe59b3a · report

Tasks

Graph Representation LearningRepresentation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFocusGraph 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