TL;DR
Graph Transformers are highly effective at capturing global context, but their attention mechanisms act as aggressive low-pass filters that cause node representations to rapidly blend together and become indistinguishable (over-smoothing). To fix this, ParaFormer integrates a Generalized PageRank mechanism into the attention layer, creating an adaptive-pass filter capable of preserving both low- and high-frequency graph signals. Combined with a linear-complexity attention approximation, ParaFormer delivers state-of-the-art performance on both small and million-node graph benchmarks without exploding computational costs.
What Problem Does This Paper Address?
Standard Graph Neural Networks (GNNs) rely on neighborhood aggregation, which excels at learning local structures but struggles to capture long-range dependencies across a graph. Graph Transformers (GTs) solve this by introducing global self-attention, allowing every node to interact with every other node.
However, the authors of this paper expose a major downside: global attention acts as a severe low-pass filter. As you stack more layers, node features flatten out and become identical—a phenomenon known as over-smoothing. This happens even faster in Graph Transformers than in traditional GNNs.
This over-smoothing is particularly destructive for heterophilic graphs (where connected nodes belong to different classes, such as fraud rings or distinct web page categories). In these scenarios, crucial high-frequency structural details are completely wiped out, causing deep Transformers to suffer massive performance drops.
Methods
The authors introduce ParaFormer (PageRank Transformer), which mitigates over-smoothing through two core architectural innovations:
-
Generalized PageRank Attention (GPA): Instead of computing entirely new attention matrices at each layer, GPA propagates and accumulates value vectors across $K$ steps using a shared attention matrix $\hat{A}$ and a set of learnable weights ($\gamma_k$): $$Z = \sum_{k=0}^K \gamma_k \hat{A}^k V$$ Because these weights are learnable, the model can dynamically adjust how much it weights local vs. global multi-hop information.
-
Auxiliary GNN Fusion: To ensure local structural integrity isn't lost to global attention, the output of the GPA module is fused with a lightweight local GNN (like a standard GCN) using a balancing hyperparameter $\beta$.
Scaling to Large Graphs
Computing powers of an $n \times n$ attention matrix ($\hat{A}^k$) scales cubically $O(Kn^3)$, which is impossible for large graphs. To solve this, ParaFormer leverages a kernel-based linear attention approximation ($\hat{A} \approx \hat{Q}\hat{K}^T$). By applying the associative rule of matrix multiplication, the model reorders operations to compute feature-dimension products first: $$\hat{A}^k V = \hat{Q} (\hat{K}^T \hat{Q})^{k-1} (\hat{K}^T V)$$ This mathematical shift drops the computational complexity to a highly scalable $O(Kn + m)$, where $n$ is the number of nodes and $m$ is the number of edges.
Datasets
ParaFormer was evaluated across 13 diverse benchmarks spanning different graph properties and scales:
- Homophilic Graphs: Cora, Citeseer, PubMed, ogbn-arxiv, and Amazon2M.
- Heterophilic Graphs: Film, Squirrel, Chameleon, Deezer, arXiv-year, and pokec.
- Graph-level Classification (Non-inherent Graphs): STL-10 (images) and 20News (text), where graphs were constructed using $k$-nearest neighbors ($k$-NN) to test global property capturing.
Key Insights and Ideas
- Transformers Over-smooth Faster than GATs: The authors theoretically prove that vanilla self-attention has a higher smoothing rate than Graph Attention Networks (GATs). Full connectivity acts as an express highway for feature blending, accelerating the loss of high-frequency details.
- Negative Weights Enable High-Pass Filtering: For heterophilic graphs, the learnable PageRank weights ($\gamma_k$) can actually optimize to negative values. This allows the network to act as a high-pass filter, amplifying the differences between connected nodes rather than smoothing them out.
- Self-Regulating Depth: If deep attention layers begin to over-smooth and harm classification accuracy, gradient descent automatically drives those deep-layer $\gamma_k$ weights toward 0, effectively pruning out the over-smoothed noise.
Key Results
- State-of-the-Art Performance: ParaFormer consistently outperformed 16 competitive baselines (including advanced GNNs and SOTA Graph Transformers) across all 11 node classification datasets. It achieved an average relative performance gain of 3.4% over message-passing GNNs.
- Massive Memory Savings: Thanks to the Scalable GPA optimization, ParaFormer cut GPU memory consumption by 81.86% on PubMed and 75.97% on Deezer compared to the non-optimized version, allowing it to run efficiently on massive graphs like Amazon2M (2.4M nodes) without running out of memory.
- Label-Scarcity Resilience: On graph-level image and text tasks with limited labels, ParaFormer showed significant improvements, demonstrating its strong generalization capabilities when structural graph data is missing or sparse.
Limitations and Future Work
While ParaFormer successfully tackles over-smoothing via PageRank-guided attention, the authors note that the exact theoretical interplay between over-smoothing and other Graph Transformer enhancements (like structural positional encodings or attention biases) still needs systematic exploration.
Moving forward, the authors plan to extend ParaFormer to critical real-world domains featuring complex, long-range biological interactions, such as protein-protein interaction networks, where multi-hop paths dictate vital functional properties.
Summary updated