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

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

Introduction

Attentive Graph Neural Networks (GNNs), such as the Graph Attention Network (GAT), were designed to revolutionize graph representation learning by allowing models to dynamically weigh the importance of neighboring nodes. Despite their theoretical appeal, these models often struggle to outperform simpler, non-attentive counterparts in practical applications. This performance gap is frequently attributed to the limited expressive power of the scoring functions used to calculate attention weights.

This paper introduces Kolmogorov-Arnold Attention (KAA), a novel framework that replaces traditional Multi-Layer Perceptron (MLP)-based scoring functions with Kolmogorov-Arnold Networks (KANs). By leveraging the unique architectural properties of KANs, KAA provides a significant boost in expressive power, enabling GNNs to model complex neighbor relationships with unprecedented precision.

The Problem: Expressivity and Measurement

The researchers identify two primary obstacles hindering the progress of attentive GNNs:

  1. Simplistic Scoring Functions: Most modern GNNs rely on linear transformations or shallow MLPs to compute attention scores. These architectures have a finite capacity to represent the diverse range of rankings required to distinguish neighbor importance effectively.
  2. Lack of Granular Metrics: Previous attempts to categorize attention mechanisms (e.g., "static" vs. "dynamic") have been too coarse to provide a quantitative measure of a model's expressive potential. Without a rigorous metric, it is difficult to benchmark and improve attention architectures.

Methodology

To address these challenges, the authors propose a dual solution involving a new mathematical metric and a transformative architecture.

1. Maximum Ranking Distance (MRD)

The authors introduce Maximum Ranking Distance (MRD) as a quantitative tool to measure the expressive power of attention mechanisms. MRD calculates the upper bound of error when a model attempts to produce a specific ranking of neighbor nodes. A lower MRD value signifies a stronger ability to represent any desired ranking, which is the fundamental objective of an attention mechanism. This metric allows for a more rigorous comparison between different scoring architectures.

2. Kolmogorov-Arnold Attention (KAA)

The core innovation of this work is the integration of Kolmogorov-Arnold Networks (KANs) into the attention mechanism. While standard MLPs apply fixed activation functions to nodes and learn weights on the edges, KANs reverse this logic. KANs have no fixed weights on edges; instead, they learn univariate functions—parameterized as splines—directly on the edges.

This shift allows KAA to be "plugged in" to virtually any existing attentive GNN or Graph Transformer. By simply swapping the scoring module for a KAN-based one, the model gains access to a more flexible and powerful function space.

Theoretical and Empirical Insights

The Power of Splines

A key theoretical finding of the paper is that while MLPs are limited by their width and depth, a single-layer KAN utilizing zero-order B-splines can achieve "nearly infinite" expressive power. This allows the model to approximate virtually any ranking function, effectively removing the bottleneck inherent in traditional attention layers.

Universal Compatibility and Efficiency

The authors present a "Unified Scoring Function" framework, demonstrating that most existing attentive GNNs can be viewed as specific instances of a general template. This proves that KAA is not a niche model but a universal upgrade. Remarkably, this increase in power does not come at the cost of complexity. The KAN modules used in experiments often required fewer parameters than the MLPs they replaced, adding less than 2% to the total parameter count and runtime.

Experimental Results

The researchers conducted extensive benchmarks across node-level tasks (Cora, CiteSeer, PubMed, ogbn-arxiv), graph-level classification (PPI, MUTAG, PROTEINS), and graph-level regression (ZINC, QM9).

  • Consistent Performance Gains: KAA-enhanced models outperformed their original versions across every tested dataset and backbone architecture.
  • Significant Improvements in Complex Tasks: On graph-level tasks, the improvements were particularly stark. For instance, KAA-GLCN achieved a performance jump of over 20% on the Protein-Protein Interaction (PPI) dataset.
  • Closing the Attention Gap: In several benchmarks where GAT-based models previously lagged behind non-attentive baselines, the addition of KAA allowed the attentive models to close the gap and, in many cases, set new state-of-the-art results.

Conclusion and Future Work

KAA represents a significant step forward in the evolution of attentive GNNs. By replacing rigid MLP structures with flexible KAN-based splines, the authors have provided a path toward more expressive and efficient graph learning.

Future research may explore the application of KANs beyond the scoring function, potentially integrating them into feature transformation or aggregation steps. Additionally, while KAA has proven effective on medium-large datasets like ogbn-arxiv, further studies on massive, industrial-scale graphs will be essential to fully understand the scalability of spline-based attention mechanisms.

Summary updated

BibTeX
@inproceedings{fang2025kaa,
  author = {Taoran Fang and Tianhong Gao and Chunping Wang and YihaoShang 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