GraphTARIF: Linear Graph Transformer with Augmented Rank and Improved Focus
Zhaolin Hu, Kun Li, Hehe Fan, Yi Yang
TL;DR
GraphTARIF tackles the expressiveness gap in linear Graph Transformers by addressing two core issues: low-rank attention and high entropy. It introduces a gated local GAT-augmented branch to raise the effective rank of the attention map and a learnable log-power sharpening function to reduce entropy, complemented by a node-wise post-modulation that sharpens representations. Theoretical results connect rank to inter-class separability and show entropy reduction improves discriminability, while experiments across homophilic, heterophilic, and large-scale graphs demonstrate competitive accuracy with linear scalability. The approach yields practical benefits for Web-scale graph tasks, balancing efficiency and expressiveness in graph learning.
Abstract
Linear attention mechanisms have emerged as efficient alternatives to full self-attention in Graph Transformers, offering linear time complexity. However, existing linear attention models often suffer from a significant drop in expressiveness due to low-rank projection structures and overly uniform attention distributions. We theoretically prove that these properties reduce the class separability of node representations, limiting the model's classification ability. To address this, we propose a novel hybrid framework that enhances both the rank and focus of attention. Specifically, we enhance linear attention by attaching a gated local graph network branch to the value matrix, thereby increasing the rank of the resulting attention map. Furthermore, to alleviate the excessive smoothing effect inherent in linear attention, we introduce a learnable log-power function into the attention scores to reduce entropy and sharpen focus. We theoretically show that this function decreases entropy in the attention distribution, enhancing the separability of learned embeddings. Extensive experiments on both homophilic and heterophilic graph benchmarks demonstrate that our method achieves competitive performance while preserving the scalability of linear attention.
