atlas

Research map / Architectures and efficiency / Attention and transformers

Gated Slot Attention for Efficient Linear-Time Sequence Modeling

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Linear attention approximations · 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 Gated Slot Attention (GSA), a gated version of ABC reformulated as a two-pass GLA linked by softmax, trained with hardware-efficient chunkwise kernels and evaluated in from-scratch LM and Mistral-7B T2R finetuning settings.

Problem

Linear attention and gated linear RNNs lag behind softmax Transformers on recall-intensive in-context tasks, and training them from scratch is expensive; T2R finetuning of softmax Transformers into linear models suffers from a softmax-to-kernel discrepancy.

Approach

Reformulate ABC as a two-pass linear attention with a softmax in between, add data-dependent forget gates per slot (GSA), so it can reuse GLA's chunkwise training kernel and keep softmax for T2R finetuning, with a small recurrent state.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add input-dependent decay gating to ABC (ablation)ABC on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 16.94 -> 13.51Helped
Use input-dependent rather than data-independent decay (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 15.83 -> 13.51Helped
Retain softmax rather than removing it (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 14.03 -> 13.51Helped
Replace softmax with Swish (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 13.51 -> 13.71Hurt
Replace softmax with ReLU (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 13.51 -> 13.69Hurt
Replace softmax with ReLU^2 (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 13.51 -> 13.95Hurt
Reduce slot count from 64 to 32 (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 13.51 -> 13.74Hurt
Increase slot count from 64 to 128 (ablation)GSA on Slimpajama · Slimpajama, 340M, 10B tokensPPL: 13.51 -> 13.46Helped
Finetune Mistral 7B into GSA rather than GLAMistral 7B · Commonsense, knowledge, and aggregated benchmarks; +20B tokensAvg.: 52.5 -> 53.9Helped
Finetune Mistral 7B into GSA rather than SUPRAMistral 7B · Commonsense, knowledge, and aggregated benchmarks; +100B tokensAvg.: 54.2 -> 56.9Helped
Finetune Mistral 7B into GSA rather than GLAMistral 7B · Long-context Qasper, NarrativeQA, QuALITY, and QMSumScoreHelped
Use GSA instead of HGRN21.3B model · Commonsense reasoning, 100B tokensAvg. accuracy: 51.9 -> 51.7Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama MQAR FDA SWDE SQuAD NQ TriviaQA Drop Qasper NarrativeQA QuALITY QMSum

Benchmarks: ARC-easy ARC-challenge HellaSwag LAMBADA PIQA WikiText WinoGrande MQAR FDA SWDE SQuAD NQ

Metrics: perplexity accuracy F1 training throughput inference latency

Baselines: Transformer++ (Xfmr++) Mamba RetNet GLA HGRN2 RWKV6 SUPRA Mistral-7B

Builds on: ABC GLA T2R FlashLinearAttention HGRN2

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