paper-with-me

홈 › Papers

Flexformer: Flexible Linear Transformer with Learnable Attention Kernel

2026-06-26 · Haoran Zhang, Feng Zhou arxiv

Transformer models rely on attention mechanism to capture long-range dependencies but suffer from quadratic complexity, limiting their scalability to long sequences. Kernel-based linear attention reduces this complexity but typically relies on fixed or weakly learnable kernels, restricting expressiveness and performance. In this work, we propose Flexformer, a flexible linear Transformer that learns attention kernels in a fully data-driven manner. Flexformer builds on random Fourier feature-based linear attention and treats spectral frequencies as trainable parameters, enabling the model to learn a broad family of attention kernels. We develop both stationary and nonstationary variants, with the latter offering strictly greater expressiveness. Extensive experiments on language modeling and sequence classification demonstrate that Flexformer consistently outperforms baselines. Moreover, Flexformer can be effectively distilled from pretrained Transformers to recover softmax attention and exhibits strong kernel transferability across domains, achieving both high efficiency and competitive performance on long-sequence tasks.

📄 PDF Abstract BibTeX arXiv:2606.27748

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

RelFlexformer: Efficient Attention 3D-Transformers for Integrable Relative Positional Encodings

2026-05-11 · Byeongchan Kim, Arijit Sehanobish, Avinava Dubey, Min-hwan Oh 외 arxiv

We present a new class of efficient attention mechanisms applying universal 3D Relative Positional Encoding (RPE) methods given by arbitrary integrable modulation functions $f$. They lead to the new class of 3D-Transform…

Point Clouds

WiFlexFormer: Efficient WiFi-Based Person-Centric Sensing

2024-11-06 · Julian Strohmayer, Matthias Wödlinger, Martin Kampel

We propose WiFlexFormer, a highly efficient Transformer-based architecture designed for WiFi Channel State Information (CSI)-based person-centric sensing. We benchmark WiFlexFormer against state-of-the-art vision and spe…

Activity RecognitionDomain GeneralizationHuman Activity RecognitionNVIDIA Jetson Orin Nano

Learning Linear Attention in Polynomial Time

2024-10-14 · Morris Yau, Ekin Akyürek, Jiayuan Mao, Joshua B. Tenenbaum 외

Previous research has explored the computational expressivity of Transformer models in simulating Boolean circuits or Turing machines. However, the learnability of these simulators from observational data has remained an…

Learning to ExecutePAC learning

LoViC: Efficient Long Video Generation with Context Compression

2025-07-17 · Jiaxiu Jiang, Wenbo Li, Jingjing Ren, Yuping Qiu 외

Despite recent advances in diffusion transformers (DiTs) for text-to-video generation, scaling to long-duration content remains challenging due to the quadratic complexity of self-attention. While prior efforts -- such a…

Text-to-Video GenerationVideo Generation

Linear Transformer Topological Masking with Graph Random Features

2024-10-04 · Isaac Reid, Kumar Avinava Dubey, Deepali Jain, Will Whitney 외

When training transformers on graph-structured data, incorporating information about the underlying topology is crucial for good performance. Topological masking, a type of relative position encoding, achieves this by up…

Inductive Bias