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

Hyowon Wi, Jeongwhan Choi, Noseong Park

Introduction

The "Standard" Transformer's self-attention mechanism, while powerful, suffers from quadratic complexity ($O(n^2)$), limiting its applicability to long sequences. While various "Linear Transformers" have been proposed to address this scaling issue, they often introduce a new problem: they act as inherent low-pass filters. In the framework of Graph Signal Processing (GSP), self-attention can be viewed as a graph where tokens are nodes. Standard attention, due to its softmax operation, tends to smooth signals, effectively losing the high-frequency details—sharp, localized changes—necessary for complex reasoning and fine-grained classification.

Rethinking Attention in the Singular Value Domain

To overcome these limitations, we introduce the Attentive Graph Filter (AGF). AGF reimagines self-attention as a signal processing task performed in the singular value domain. Unlike previous GSP-based models that rely on eigenvalues (suitable for undirected graphs), AGF utilizes Singular Value Decomposition (SVD). This is a critical distinction because self-attention is inherently directed—token A's attention to token B is not necessarily equal to token B's attention to token A.

Figure 3: Directed graph signal processing using Singular Value Decomposition (SVD) allows for more accurate filtering in non-symmetric attention mechanisms.

The Attentive Graph Filter (AGF) Mechanism

Instead of computing a full $N \times N$ attention matrix and then decomposing it, AGF uses neural networks to directly generate the components of the SVD: the singular vectors ($U$ and $V$) and the singular values ($\Sigma$).

Key technical features include:

  1. Polynomial Graph Filtering: We apply a Jacobi expansion to the learned singular values. This allows the model to function as a flexible filter capable of passing both low-frequency (global) and high-frequency (local) information.
  2. Linear Complexity: By optimizing the order of matrix multiplications, AGF achieves a complexity of $O(nd^2)$, where $n$ is the sequence length and $d$ is the embedding dimension. Since $d \ll n$ in most long-sequence scenarios, this provides effective linear scaling.
  3. Orthogonality Regularization: To ensure the learned matrices $U$ and $V$ maintain the properties of true singular vectors, we incorporate an orthogonality penalty into the loss function.
Figure 4: The AGF architecture decomposes the attention operation into learned singular components, achieving linear complexity O(nd^2).

Experimental Evaluation

We evaluated AGF across several challenging benchmarks:

  • Long Range Arena (LRA): AGF achieved an average score of 60.1, outperforming both the vanilla Transformer (58.8) and specialized linear models like Nyströmformer.
  • UEA Time Series Classification: AGF reached an average accuracy of 75.1%, a significant improvement over the standard Transformer (71.9%) and other linear variants like Flowformer (73.0%).
  • Mitigating Over-smoothing: In deep architectures (12+ layers), AGF maintained lower cosine similarity between token representations compared to standard models, demonstrating its ability to preserve unique information throughout the network.

Conclusion

The Attentive Graph Filter provides a mathematically grounded approach to linear self-attention. By operating in the singular value domain, AGF avoids the over-smoothing pitfalls of traditional attention while maintaining the efficiency required for long-sequence processing. Future work will explore the integration of AGF with emerging state-space models to further push the boundaries of long-range dependency modeling.

Summary updated

BibTeX
@inproceedings{wi2025learning,
  author = {Hyowon Wi and Jeongwhan Choi and Noseong Park},
  title = {{Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domain}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/730},
}
Figure