atlas

Research map / Architectures and efficiency / Attention and transformers

Understanding the Differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networks

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 3 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.

Introduces the Dynamical Systems Framework (DSF), rewriting softmax/linear attention, S6 SSMs, and qLSTM/RG-LRU RNNs as linear time-varying recurrences to compare them, with MQAR, LRA, and WikiText-103 experiments.

Problem

Attention, SSMs, and RNNs are developed in isolation and lack a theoretical common framework explaining their shared principles and differences in expressivity and performance.

Approach

Write attention (separable/kernel), S6, qLSTM, and RG-LRU in one linear structured time-varying recurrence with hidden dimension N = nd, enabling analysis of normalization vs. discretization, state expansion, and softmax as infinite-dimensional state; proposes normalized attention inspired by S6 and a reversed-sigmoid qLSTM transition.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add input-dependent exponential normalization to linear attentionLinear Attention · LRAaccuracy: 53.52 -> 58.08Helped
add input-dependent exponential normalization to linear attentionLinear Attention · WikiText-103training perplexity: 17.42 -> 16.43Helped
replace exponential normalization with softplus normalization (ablation)Normalized Attention · LRA Imageaccuracy: 35.96 -> 35.27Hurt
replace exponential normalization with softplus normalization (ablation)Normalized Attention · MQAR (L=512, KV-pairs=64)accuracy: 85.9 -> 84.3Hurt
replace exponential normalization with sigmoid normalization (ablation)Normalized Attention · LRA Imageaccuracy: 35.96 -> 35.80Hurt
replace exponential normalization with sigmoid normalization (ablation)Normalized Attention · MQAR (L=512, KV-pairs=64)accuracy: 85.9 -> 84.7Hurt
replace the qLSTM state transition with the S6-inspired reversed-sigmoid state transition (ablation)qLSTM · MQARperformanceHelped
increase state expansionLinear Attention · MQAR (L=512, KV-pairs=64)accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: MQAR LRA WikiText-103

Benchmarks: MQAR LRA WikiText-103

Metrics: accuracy average accuracy training perplexity

Baselines: softmax attention linear attention SSD qLSTM S6

Builds on: Mamba (S6) linear attention qLSTM RG-LRU S4

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