atlas

Research map / Architectures and efficiency / Attention and transformers

MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Linear attention approximations · 1 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.

Unifies linear transformers, SSMs and linear RNNs as one linear attention form, derives conditions for an optimal linear approximation to softmax attention, and proposes MetaLA (query + dynamic decay, no key, self-augmentation, short conv) that beats prior linear models on MQAR, language modeling, LRA and ImageNet.

Problem

Linear complexity models (linear transformers, SSMs, linear RNNs) replace softmax attention, but the optimal design of such models is unclear; the paper asks what linear attention must satisfy to functionally approximate softmax attention.

Approach

Unify LinFormer/SSM/LinRNN into a general linear attention form with Query, Key, Value and decay; derive necessary conditions (dynamic memory, static approximation, least parameters) showing Query plus dynamic decay suffice and Key is unnecessary; build MetaLA with 1-alpha_t in place of keys, self-augmentation and short convolution.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use MetaLA instead of Mamba0.36B language model · SuperGLUEAVG: 43.96 -> 44.05Helped
Use MetaLA with tied embedding instead of HGRN1.3B language model · SuperGLUEAVG: 45.60 -> 45.81Helped
Train MetaLA with 300B tokens instead of using Pythia1.4B language model · SuperGLUEAVG: 44.14 -> 49.22Helped
Use MetaLA instead of Pythia0.36B language model · Commonsense ReasoningAVG: 42.66 -> 42.52Hurt
Use MetaLA instead of Mamba1.4B language model · Commonsense ReasoningAVG: 47.37 -> 47.01Hurt
Train MetaLA with 300B tokens instead of using Pythia1.4B language model · Commonsense ReasoningAVG: 49.85 -> 49.99Helped
Use MetaLA instead of HGRN6M image classifier · ImageNet-1kAcc: 74.40 -> 75.33Helped
Use MetaLA instead of HGRN23M image classifier · ImageNet-1kAcc: 80.09 -> 80.14Helped
Use MetaLA instead of MegaMetaLA · LRAAVG.: 88.21 -> 86.67Hurt
Add self-augmentation (ablation)MetaLA · Commonsense Reasoning, 360M model / 15B tokensAVG: 42.16 -> 42.52Helped
Add short convolution (ablation)MetaLA · Commonsense Reasoning, 360M model / 15B tokensAVG: 38.51 -> 42.52Helped
Restore the Key matrix (ablation)MetaLA · Commonsense Reasoning, 360M model / 15B tokensAVG: 42.52 -> 40.80Hurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile MQAR synthetic ImageNet-1k Long Range Arena

Benchmarks: MQAR SuperGLUE Commonsense Reasoning Long Range Arena ImageNet-1k

Metrics: accuracy

Baselines: Mamba GLA RWKV-4 HGRN RetNet Pythia Based DeiT S4 Mega

Builds on: Mamba GLA RetNet HGRN Griffin

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