Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domain

Hyowon Wi, Jeongwhan Choi, Noseong Park
5/13/2025
cs.LGcs.AI

No official code found. Best implementation: hyowonwi/AGF (13 stars, MIT, last commit 2025-12-01).

Abstract

Transformers have demonstrated remarkable performance across diverse domains. The key component of Transformers is self-attention, which learns the relationship between any two tokens in the input sequence. Recent studies have revealed that the self-attention can be understood as a normalized adjacency matrix of a graph. Notably, from the perspective of graph signal processing (GSP), the self-attention can be equivalently defined as a simple graph filter, applying GSP using the value vector as the signal. However, the self-attention is a graph filter defined with only the first order of the polynomial matrix, and acts as a low-pass filter preventing the effective leverage of various frequency information. Consequently, existing self-attention mechanisms are designed in a rather simplified manner. Therefore, we propose a novel method, called \underline{\textbf{A}}ttentive \underline{\textbf{G}}raph \underline{\textbf{F}}ilter (AGF), interpreting the self-attention as learning the graph filter in the singular value domain from the perspective of graph signal processing for directed graphs with the linear complexity w.r.t. the input length $n$, i.e., $\mathcal{O}(nd^2)$. In our experiments, we demonstrate that AGF achieves state-of-the-art performance on various tasks, including Long Range Arena benchmark and time series classification.

View on arXivView PDF

Code Implementations(1)

hyowonwi/AGFCommunity69%
MIT

[IJCAI'25] Official PyTorch Implementation of "Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domain" (AGF)

137C++, ShellMay 28, 202510 months agoMIT

Similar Papers

Cite this paper

@article{wi2025learning,
  title  = {Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domain},
  author = {Hyowon Wi and Jeongwhan Choi and Noseong Park},
  year   = {2025},
  eprint = {2505.08516},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.08516v1}
}

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/2505.08516.svg)](https://codeofpaper.com/paper/2505.08516)

Discussion