Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?
Tokio Kajitsuka, Issei Sato

TL;DR
This paper demonstrates that a single-layer, low-rank self-attention Transformer can universally approximate continuous permutation-equivariant functions, resolving previous limitations related to depth requirements for data memorization.
Contribution
It establishes that one-layer, low-rank self-attention Transformers are universal approximators, clarifying their expressive power and addressing prior depth-related limitations.
Findings
One-layer self-attention with low-rank weights can memorize entire sequences.
Single-head Transformers can memorize finite samples.
Transformers with one self-attention layer and two feed-forward networks are universal approximators.
Abstract
Existing analyses of the expressive capacity of Transformer models have required excessively deep layers for data memorization, leading to a discrepancy with the Transformers actually used in practice. This is primarily due to the interpretation of the softmax function as an approximation of the hardmax function. By clarifying the connection between the softmax function and the Boltzmann operator, we prove that a single layer of self-attention with low-rank weight matrices possesses the capability to perfectly capture the context of an entire input sequence. As a consequence, we show that one-layer and single-head Transformers have a memorization capacity for finite samples, and that Transformers consisting of one self-attention layer with two feed-forward neural networks are universal approximators for continuous permutation equivariant functions on a compact domain.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsNeural Networks and Applications · Neural Networks and Reservoir Computing · Model Reduction and Neural Networks
MethodsMulti-Head Attention · Attention Is All You Need · Dense Connections · Dropout · Position-Wise Feed-Forward Layer · Adam · Label Smoothing · Byte Pair Encoding · Residual Connection · Linear Layer
