KAA: Kolmogorov-Arnold Attention for Enhancing Attentive Graph Neural Networks

Taoran Fang, Tianhong Gao, Chunping Wang, Yihao Shang, Wei Chow, Lei Chen, Yang Yang

This paper, recently published for ICLR 2025, introduces a powerful yet computationally efficient upgrade for one of the most popular classes of Graph Neural Networks (GNNs). By swapping out standard attention mechanisms for a novel architecture inspired by the Kolmogorov-Arnold representation theorem, the authors demonstrate significant performance leaps across a wide array of graph-based tasks.

TL;DR

KAA (Kolmogorov-Arnold Attention) replaces the simplistic linear or MLP-based scoring functions in attentive GNNs with Kolmogorov-Arnold Networks (KANs). This architectural shift provides nearly infinite expressive power for ranking neighbor importance, leading to performance gains of over 20% in some cases with less than 2% overhead in parameters and runtime.

What Problem Does This Paper Address?

Attentive GNNs (like the famous Graph Attention Network, or GAT) have become a standard tool for graph data. Their core strength is the ability to adaptively "score" neighbors, assigning higher weights to more important nodes during feature aggregation.

However, these models often underperform compared to simpler, non-attentive GNNs on real-world datasets. Previous research suggested this was due to the "static" nature of early attention mechanisms. Even newer "dynamic" attention models (like GATv2) rely on Multi-Layer Perceptrons (MLPs) for scoring. The authors of this paper argue that even MLPs, when constrained by practical limits on width and depth, have finite "expressive power." They lack the granularity needed to accurately rank the relative importance of all neighbors in a node's local neighborhood.

Methods

The authors propose a unified framework for attentive GNN scoring functions, defined as $s(h_i, h_j) = \Psi \circ AF(h_i, h_j)$, where $AF$ is a non-learnable alignment function (like concatenation) and $\Psi$ is the learnable score mapping.

Kolmogorov-Arnold Attention (KAA) replaces the standard $\Psi$ (usually a linear layer or MLP) with a Kolmogorov-Arnold Network (KAN).

The alignment of KAA with other KAN applications. (c) shows how the score mapping in attentive GNNs is replaced with KAN.

Unlike traditional MLPs, which have fixed activation functions on nodes and learnable weights on edges, KANs have learnable activation functions (typically B-splines) on the edges themselves. This allows KANs to model complex, non-linear relationships much more efficiently than MLPs.

To prove this, the authors introduce a new metric called Maximum Ranking Distance (MRD). MRD quantitatively estimates the upper bound of error a scoring function makes when trying to produce a specific ranking of neighbor importance.

Datasets

The authors evaluated KAA across a comprehensive suite of benchmarks:

  • Node-level tasks (Classification & Link Prediction): Cora, CiteSeer, PubMed, ogbn-arxiv, Amazon-Computers, and Amazon-Photo.
  • Graph-level tasks (Classification & Regression): PPI, MUTAG, ENZYMES, PROTEINS, ZINC, and QM9.

These datasets cover diverse domains, including citation networks, product networks, bioinformatics, and quantum chemistry.

Key Insights and Ideas

  • The Expressivity Gap: The paper mathematically proves that linear and MLP-based scoring functions have a strictly limited ability to represent different neighbor rankings.
  • Nearly Infinite Ranking Power: Through their MRD analysis, the authors show that even a single-layer KAN, parameterized by simple zero-order B-splines, achieves an MRD of nearly zero. This means KAA can theoretically represent almost any desired importance ranking among neighbors.
  • Universality: KAA is not a new GNN model itself, but a "plug-and-play" enhancement. It can be applied to almost any existing attentive GNN, from GAT variants to Graph Transformers.
Table 1: A summary of the original scoring functions for various attentive GNN models and their KAA-enhanced counterparts. The central node representation is denoted as hi, while the neighbor node representation is denoted as hj.
  • Efficiency: Despite the jump in expressive power, the KAN modules used in KAA are small. In practice, KAA adds less than 2% to the total parameter count and less than 2% to the training time per epoch.

Key Results

KAA-enhanced models consistently outperformed their original counterparts across all 12 datasets and 5 different backbone architectures (GAT, GLCN, CFGAT, GT, and SAN).

  • Node-Level: KAA-enhanced models saw an average improvement of 1.63%, with Transformer-based models seeing a higher average boost of 2.70%.
  • Graph-Level: The improvements were even more dramatic, averaging 7.71%. In specific cases, like GLCN on the PPI dataset or GAT on the QM9 dataset, performance jumped by over 20%.
  • SOTA Comparison: KAA-GAT outperformed other recent KAN-GNN variants (like KAGIN or GKAN) that attempt to use KANs for general feature transformation rather than specifically for attention scoring.

Limitations and Future Work

While KAA shows broad success, the authors note a few areas for further exploration:

  • Training Complexity: While the KANs used here were simple and stable, KANs in general can sometimes be more challenging to optimize than MLPs in deeper architectures.
  • Theoretical Assumptions: The MRD analysis assumes certain graph properties (like full connectivity for Transformers) to simplify the math; future work could extend this to more complex graph topologies.
  • Broader KAN Integration: This paper focuses specifically on the scoring function. Future research could investigate using KANs in other GNN components, such as the node update functions.

Summary updated

BibTeX
@inproceedings{fang2025kaa,
  author = {Taoran Fang and Tianhong Gao and Chunping Wang and Yihao Shang and Wei Chow and Lei Chen and Yang Yang},
  title = {{KAA: Kolmogorov-Arnold Attention for Enhancing Attentive Graph Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=atXCzVSXTJ},
}
Figure