Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Deng, Difan, Winje, Andreas Bentzen, Fehring, Lukas, Lindauer, Marius
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911419636645888
author Deng, Difan
Winje, Andreas Bentzen
Fehring, Lukas
Lindauer, Marius
author_facet Deng, Difan
Winje, Andreas Bentzen
Fehring, Lukas
Lindauer, Marius
contents The quadratic computational complexity of softmax transformers has become a bottleneck in long-context scenarios. In contrast, linear attention model families provide a promising direction towards a more efficient sequential model. These linear attention models compress past KV values into a single hidden state, thereby efficiently reducing complexity during both training and inference. However, their expressivity remains limited by the size of their hidden state. Previous work proposed interleaving softmax and linear attention layers to reduce computational complexity while preserving expressivity. Nevertheless, the efficiency of these models remains bottlenecked by their softmax attention layers. In this paper, we propose Neural Attention Search Linear (NAtS-L), a framework that applies both linear attention and softmax attention operations within the same layer on different tokens. NAtS-L automatically determines whether a token can be handled by a linear attention model, i.e., tokens that have only short-term impact and can be encoded into fixed-size hidden states, or require softmax attention, i.e., tokens that contain information related to long-term retrieval and need to be preserved for future queries. By searching for optimal Gated DeltaNet and softmax attention combinations across tokens, we show that NAtS-L provides a strong yet efficient token-level hybrid architecture.
format Preprint
id arxiv_https___arxiv_org_abs_2602_03681
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models
Deng, Difan
Winje, Andreas Bentzen
Fehring, Lukas
Lindauer, Marius
Computation and Language
Machine Learning
The quadratic computational complexity of softmax transformers has become a bottleneck in long-context scenarios. In contrast, linear attention model families provide a promising direction towards a more efficient sequential model. These linear attention models compress past KV values into a single hidden state, thereby efficiently reducing complexity during both training and inference. However, their expressivity remains limited by the size of their hidden state. Previous work proposed interleaving softmax and linear attention layers to reduce computational complexity while preserving expressivity. Nevertheless, the efficiency of these models remains bottlenecked by their softmax attention layers. In this paper, we propose Neural Attention Search Linear (NAtS-L), a framework that applies both linear attention and softmax attention operations within the same layer on different tokens. NAtS-L automatically determines whether a token can be handled by a linear attention model, i.e., tokens that have only short-term impact and can be encoded into fixed-size hidden states, or require softmax attention, i.e., tokens that contain information related to long-term retrieval and need to be preserved for future queries. By searching for optimal Gated DeltaNet and softmax attention combinations across tokens, we show that NAtS-L provides a strong yet efficient token-level hybrid architecture.
title Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2602.03681