atlas

Research map / Architectures and efficiency / Attention and transformers

Neural Attention Search

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Neural Attention Search (NAtS), a learnable sparse attention method that assigns each token a global, local, or sliding-window role via Gumbel-Softmax-searched masks, reducing KV cache while keeping performance.

Problem

Long-context LLM inference is bottlenecked by KV cache size and cost; existing KV eviction and sparse attention rely on fixed heuristics or approximate dense attention outputs.

Approach

Each token is assigned one of three roles (global, local, sliding-window) by a learned attention-score layer trained end-to-end through a learnable multiplicative attention mask, with Gumbel-Softmax sampling and a sparsity regularizer lambda, so token roles are learned from the task loss rather than predefined rules.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use learned token-role attention with a 50% KV budget instead of full attentionLlama 3.1-8B · RULER (4k–128k)scoreNo clear effect
Use learned token-role attention with a 25% KV budget instead of full attentionLlama 3.1-8B · RULER (4k–128k)scoreMixed
Use NAtS rather than strongest listed non-full baselineLlama 3.1-8B · LongBench (25% KV budget)scoreMixed
Use NAtS rather than full attention at 200,000 context lengthLlama 3.1-8B · Latency evaluationprefill latency: 3.0× latency speed upHelped
Use NAtS rather than full attention at 200,000 context lengthLlama 3.1-8B · Latency evaluationdecoding latency: 1.38~× decoding speed upHelped
Use NAtS rather than full attentionLlama 3.1-8B · Maximum context lengthcontext length: 700,000; 3.5 times largerHelped

Surprising findings

Limitations

Experimental setup

Datasets: PG-19 HotpotQA 2WikiMultihopQA MuSiQue DuReader NarrativeQA Qasper GovReport QMSum MultiNews VCSUM TREC

Benchmarks: PG-19 RULER LongBench

Metrics: perplexity accuracy/score KV cache budget fraction latency memory usage

Baselines: Full attention StreamingLLM H2O DuoAttention SnapKV AdaKV ChunkKV CriticalKV PyramidKV MoA

Builds on: FlashAttention-2 GDAS DuoAttention Streaming LLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy