paper-with-me

홈 › Papers

LUNA: Linear Universal Neural Attention with Generalization Guarantees

2025-12-08 · Ashkan Shahbazi, Ping He, Ali Abbasi, Yikun Bai, Xinran Liu, Elaheh Akbari, Darian Salehi, Navid NaderiAlizadeh, Soheil Kolouri arxiv

Scaling attention faces a critical bottleneck: the $\mathcal{O}(n^2)$ quadratic computational cost of softmax attention, which limits its application in long-sequence domains. While linear attention mechanisms reduce this cost to $\mathcal{O}(n)$, they typically rely on fixed random feature maps, such as random Fourier features or hand-crafted functions. This reliance on static, data-agnostic kernels creates a fundamental trade-off, forcing practitioners to sacrifice significant model accuracy for computational efficiency. We introduce \textsc{LUNA}, a kernelized linear attention mechanism that eliminates this trade-off, retaining linear cost while matching and surpassing the accuracy of quadratic attention. \textsc{LUNA} is built on the key insight that the kernel feature map itself should be learned rather than fixed a priori. By parameterizing the kernel, \textsc{LUNA} learns a feature basis tailored to the specific data and task, overcoming the expressive limitations of fixed-feature methods. \textsc{Luna} implements this with a learnable feature map that induces a positive-definite kernel and admits a streaming form, yielding linear time and memory scaling in the sequence length. Empirical evaluations validate our approach across diverse settings. On the Long Range Arena (LRA), \textsc{Luna} achieves state-of-the-art average accuracy among efficient Transformers under compute parity, using the same parameter count, training steps, and approximate FLOPs. \textsc{Luna} also excels at post-hoc conversion: replacing softmax in fine-tuned BERT and ViT-B/16 checkpoints and briefly fine-tuning recovers most of the original performance, substantially outperforming fixed linearizations.

📄 PDF Abstract BibTeX arXiv:2512.08061

Code (0)

등록된 구현이 없습니다.

Tasks

Computational Efficiency

Similar Papers 제목 키워드 기반

LUNA: Learning Universal 3D Human Animation Beyond Skinning

2026-06-30 · Peng Li, Rawal Khirodkar, Junxuan Li, Yuan Dong 외 arxiv

Creating photorealistic, animatable 3D human avatars from monocular images still largely depends on Linear Blend Skinning (LBS) and parametric body models, which constrain expressivity and often introduce artifacts due t…

Luna: Linear Unified Nested Attention

2021-06-03 · NeurIPS 2021 12 · Xuezhe Ma, Xiang Kong, Sinong Wang, Chunting Zhou 외

The quadratic computational and memory complexities of the Transformer's attention mechanism have limited its scalability for modeling long sequences. In this paper, we propose Luna, a linear unified nested attention mec…

Language ModelingLanguage ModellingMachine TranslationMasked Language Modeling+1

LUNAR: Benchmarking Personalized Large Language Models on UNiversal User BehAvioR Logs

2026-08-05 · Jiahao Zhang, Yongzhi Tong, Zelin Fu, Pengde Zhao 외 arxiv

Existing personalized LLM benchmarks primarily rely on textual personas or isolated behavioral signals, providing limited evaluation of cross-domain behavioral personalization, where responses must be grounded in heterog…

LUNA: Efficient and Topology-Agnostic Foundation Model for EEG Signal Analysis

2025-10-25 · Berkay Döner, Thorir Mar Ingolfsson, Luca Benini, Yawei Li arxiv

Electroencephalography (EEG) offers a non-invasive lens into human brain activity, but building large-scale models is hampered by topological heterogeneity: each public EEG data defines its own electrode layout, limiting…

Emotion Recognition

Attention Mechanism, Max-Affine Partition, and Universal Approximation

2025-04-28 · Hude Liu, Jerry Yao-Chieh Hu, Zhao Song, Han Liu

We establish the universal approximation capability of single-layer, single-head self- and cross-attention mechanisms with minimal attached structures. Our key insight is to interpret single-head attention as an input do…