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

Difan Deng, Andreas Bentzen Winje, Lukas Fehring, Marius Lindauer
2/3/2026
cs.CLcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

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. 1 weaker match is hidden by default — 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{deng2026neural,
  title  = {Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models},
  author = {Difan Deng and Andreas Bentzen Winje and Lukas Fehring and Marius Lindauer},
  year   = {2026},
  eprint = {2602.03681},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.03681v1}
}

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

Discussion