A PyTorch implementation of GrokFormer "GrokFormer: Graph Fourier Kolmogorov-Arnold Transformer".
This implementation is based on Python3. To run the code, you need the following dependencies:
The dataset contains six homophilic benchmark datasets(Cora, Citeseer, Pubmed, Photo, Physics, WikiCS), and five heterophilic datasets(Penn94, Chameleon, Squirrel, Actor, Texas). We use the same experimental setting (60\%/20\%/20\% random splits for train/validation/test (fixed splits for Penn94) with the same epochs, run ten times (five times for Penn94), early stopping) as Specformer.
$ sh run.sh
Training a model on the default dataset.

The node-level code and filter learning code are implemented based on Specformer: Spectral Graph Neural Networks Meet Transformers. The graph-level (TUD Benchmarks) code are implemented based on the public code (https://github.com/kavehhassani/mvgrl/tree/master/graph)
If you find this work useful, please cite our paper:
```bibtex @inproceedings{ai2024grokformer, title = {GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers}, author = {Ai, Guoguo and Pang, Guansong and Qiao, Hezhe and Gao, Yuan and Yan, Hui}, booktitle = {Proceedings of the 42st International Conference on Machine Learning (ICML)}, year = {2025} }
$ claude mcp add GrokFormer \
-- python -m otcore.mcp_server <graph>