SchoenbAt: Rethinking Attention with Polynomial basis

Yuhan Guo, Lizhong Ding, Yuwan Yang, Xuewei Guo
5/18/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Kernelized attention extends the attention mechanism by modeling sequence correlations through kernel functions, making significant progresses in optimizing attention. Under the guarantee of harmonic analysis theory, kernel functions can be expanded with basis functions, inspiring random feature-based approaches to enhance the efficiency of kernelized attention while maintaining predictive performance.

Show full abstract

However, current random feature-based works are limited to the Fourier basis expansions under Bochner's theorem. We propose Schoenberg's theorem-based attention (SchoenbAt), which approximates dot-product kernelized attention with the polynomial basis under Schoenberg's theorem via random Maclaurin features and applies a two-stage regularization to constrain the input space and restore the output scale, acting as a drop-in replacement of dot-product kernelized attention. Our theoretical proof of the unbiasedness and concentration error bound of SchoenbAt supports its efficiency and accuracy as a kernelized attention approximation, which is also empirically validated under various random feature dimensions. Evaluations on real-world datasets demonstrate that SchoenbAt significantly enhances computational speed while preserving competitive performance in terms of precision, outperforming several efficient attention methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guo2025schoenbat,
  title  = {SchoenbAt: Rethinking Attention with Polynomial basis},
  author = {Yuhan Guo and Lizhong Ding and Yuwan Yang and Xuewei Guo},
  year   = {2025},
  eprint = {2505.12252},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.12252v1}
}

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

Discussion