atlas

Research map / Architectures and efficiency / RNNs and normalization

Separations in the Representational Capabilities of Transformers and Recurrent Architectures

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: RNN training dynamics and gradients · 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.

Shows via communication complexity that RNNs and one-layer Transformers need linear size for several tasks where small (log-width) two-layer Transformers or small-width models suffice, establishing size-based separations between Transformers and recurrent models.

Problem

Whether tasks exist that are representable by one architecture with poly-logarithmic size but require linear size for the other, comparing Transformers and recurrent architectures (RNNs, SSMs, linear attention) under finite precision.

Approach

Uses nearly orthogonal vectors (JL-based, O(log N) dimensions) for attention-based lookup constructions, and lower-bounds recurrent models and one-layer Transformers via one-way and arbitrary-partition communication protocols reducing from Index, Disjointness, Equality.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use a 1-layer Transformer rather than a recurrent modelIndex Lookup · Index Lookuprequired width: O(log N) vs m≥N/pHelped
use a recurrent model rather than a 1-layer Transformerbounded Dyck recognition · Dyck-(2, 2)required model size: constant width vs mH ≥ \frac{N-1}{3(p+\log N)}Helped
add a second Transformer layerString Equality · String Equalityrequired width: Ω(N) to O(log N)Helped
use a 2-layer Transformer rather than a recurrent modelNearest Neighbor · Nearest Neighborrequired width: O(log N) vs m ≥ N/2pHelped
use a 1-layer Transformer rather than recurrent modelsIndex Lookup · Index Lookup, lengths 20–400accuracyHelped
increase sequence length for a 1-layer TransformerIndex Lookup · Index Lookup, lengths over 100accuracyHurt
use a small LSTM or 2-layer Transformer rather than a 1-layer Transformerbounded Dyck recognition · Dyck-2, depth at most 2, lengths up to 400accuracyHelped
increase sequence length for a 1-layer Transformerbounded Dyck recognition · Dyck-2, depth at most 2accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic index lookup sequences synthetic Dyck-2 sequences

Benchmarks: index lookup (synthetic) Dyck-2 (synthetic)

Metrics: accuracy

Baselines: LSTM DSS Mamba linear Transformer RetNet

Builds on: Sanford et al. communication complexity for Transformers and RNNs Johnson-Lindenstrauss lemma Multi-Query Associative Recall

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