GT-SNT: A Linear-Time Transformer for Large-Scale Graphs via Spiking Node Tokenization

Huizhe Zhang, Jintang Li, Yuchang Zhu, Huazhen Zhong, Liang Chen
4/16/2025
cs.NEcs.LG

No official code found. Best implementation: Zhhuizhe/GT-SNT (0 stars, last commit 2026-01-31).

Abstract

Graph Transformers (GTs), which integrate message passing and self-attention mechanisms simultaneously, have achieved promising empirical results in graph prediction tasks. However, the design of scalable and topology-aware node tokenization has lagged behind other modalities. This gap becomes critical as the quadratic complexity of full attention renders them impractical on large-scale graphs. Recently, Spiking Neural Networks (SNNs), as brain-inspired models, provided an energy-saving scheme to convert input intensity into discrete spike-based representations through event-driven spiking neurons. Inspired by these characteristics, we propose a linear-time Graph Transformer with Spiking Node Tokenization (GT-SNT) for node classification. By integrating multi-step feature propagation with SNNs, spiking node tokenization generates compact, locality-aware spike count embeddings as node tokens to avoid predefined codebooks and their utilization issues. The codebook guided self-attention leverages these tokens to perform node-to-token attention for linear-time global context aggregation. In experiments, we compare GT-SNT with other state-of-the-art baselines on node classification datasets ranging from small to large. Experimental results show that GT-SNT achieves comparable performances on most datasets and reaches up to 130x faster inference speed compared to other GTs.

View on arXivView PDF

Code Implementations(1)

Zhhuizhe/GT-SNTCommunity100%

A Linear-Time Transformer for Large-Scale Graphs via Spiking Node Tokenization

00PythonAug 3, 20248 months ago

Similar Papers

Cite this paper

@article{zhang2025gtsnt,
  title  = {GT-SNT: A Linear-Time Transformer for Large-Scale Graphs via Spiking Node Tokenization},
  author = {Huizhe Zhang and Jintang Li and Yuchang Zhu and Huazhen Zhong and Liang Chen},
  year   = {2025},
  eprint = {2504.11840},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.11840v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.11840.svg)](https://codeofpaper.com/paper/2504.11840)

Discussion