PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 19, 2025ACM Transactions on Intelligent Systems and Technology2 citationsOpen Access

Spectraformer: A Unified Random Feature Framework for Transformer

View Full Paper
DNDuke NguyenDYDu YinAJAditya Joshi

Key Points

  • A random feature-based approach establishes a new state-of-the-art for efficient transformers, outperforming traditional methods.
  • Empirical results show performance comparable to top-performing sparse and low-rank methods on the Long Range Arena benchmark.
  • Spectraformer introduces systematic comparisons of component functions and weight matrices in transformer attention learning.
  • Variants of the framework offer different advantages in accuracy, training time, and memory consumption for users.

Abstract

Linearization of attention using various kernel approximation and kernel learning techniques has shown promise. Past methods used a subset of combinations of component functions and weight matrices within the random feature paradigm. We identify the need for a systematic comparison of different combinations of weight matrices and component functions for attention learning in Transformer. Hence, we introduce Spectraformer , a unified framework for approximating and learning the kernel function in the attention mechanism of the Transformer. Our empirical results demonstrate, for the first time, that a random feature-based approach can achieve performance comparable to top-performing sparse and low-rank methods on the challenging Long Range Arena benchmark. Thus, we establish a new state-of-the-art for random feature-based efficient Transformers. The framework also produces many variants that offer different advantages in accuracy, training time, and memory consumption. Our code is available at: https://github.com/cruiseresearchgroup/spectraformer .

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Nguyen et al. (2025) studied this question.

synapsesocial.com/papers/68d464ea31b076d99fa64056https://doi.org/10.1145/3768161
Ask AI
Helpful
Bookmark
Share
View Full Paper