atlas

Research map / Architectures and efficiency / Attention and transformers

Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 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.

Shows that one-layer, single-head softmax self-attention with rank-1 weight matrices can act as a contextual mapping via the Boltzmann operator, yielding memorization and universal approximation results for two-layer Transformers.

Problem

Prior analyses of Transformer expressivity (universal approximation and memorization) required many layers or heads because softmax was treated as an approximation of hardmax; it is unclear how few self-attention layers suffice to build a contextual mapping.

Approach

Connects softmax attention to the Boltzmann operator (va^T softmax(va)) and shows that rank-1 Q/K/V weights let a single softmax attention layer map each (sequence, token) pair to a distinct context id, while hardmax attention cannot.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 1-layer rank-1 Transformer instead of a deeper rank-1 Transformer (ablation)Rank-1 Transformer · CoNLL-2003 traintraining accuracy: 0.9872 at 800 epochsMixed
Increase depth from 1 layer to 3 or 6 layers (ablation)Rank-1 Transformer · CoNLL-2003 traintraining accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: CoNLL-2003

Benchmarks: CoNLL-2003

Metrics: training accuracy

Baselines: Kim et al. 2023 (2n-layer memorization) Yun et al. 2020 (universal approximation Transformers) hardmax self-attention

Builds on: Kim et al. contextual mapping Yun et al. Transformers are universal in-context learners Kolmogorov representation theorem analyses of Transformers

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