atlas

Research map / Architectures and efficiency / Attention and transformers

Simple linear attention language models balance the recall-throughput tradeoff

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 4 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 Based, a hybrid of Taylor-approximated linear attention (global) and small sliding-window softmax attention (local, 64-128 tokens) with IO-aware CUDA kernels, to push the recall-throughput Pareto frontier.

Problem

Attention-based LMs excel at recall but their KV-cache makes generation memory- and throughput-bound, while sub-quadratic alternatives (SSMs, gated convolutions, linear attention) often lag on recall; the paper asks whether a simple architecture can balance recall and throughput.

Approach

Combine second-order Taylor linear attention applied globally (fixed-size recurrent state, feature dimension controls state size) with exact softmax attention in small tensor-core-friendly sliding windows (w<=128), plus gated short convolutions, and write hardware-efficient kernels for linear attention prefill and decoding.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Combine global Taylor linear attention with local sliding-window attention and gated-convolution layersBased versus Mamba · Recall-intensive downstream tasks, 1.3b parameters, 50b tokensaverage accuracy-point advantage: +10.36 accuracy pointsHelped
Use IO-aware algorithms for Based generationBased versus FlashAttention-2 · Generation, 1.3b parameters, 1024 tokens, batch size 128throughput: 24× higher throughputHelped
Replace the Taylor feature map with CosFormer (ablation)Based · Pile language modelingqualityMixed
Replace the Taylor feature map with Performer (ablation)Based · Pile language modelingqualityHurt
Increase linear-attention feature dimension to 24 or 32 (ablation)Based · Pile language modelingqualityNo clear effect
Increase the sliding-window size (ablation)Based · Associative recallaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile MQAR synthetic associative recall SWDE FDA SQUAD LM Eval Harness common sense tasks

Benchmarks: The Pile perplexity MQAR SWDE FDA SQUAD LM Eval Harness

Metrics: perplexity accuracy F1 tokens per ms throughput latency

Baselines: Transformer++ Mamba GLA RWKV v5 H3 Hyena FlashAttention-2 Mistral-7B

Builds on: Mamba FlashAttention-2 Hyena H3 Transformer++

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