Inductive Biases and Variable Creation in Self-Attention Mechanisms

Abstract

Self-attention, an architectural motif designed to model long-range interactions in sequential data, has driven numerous recent breakthroughs in natural language processing and beyond. This work provides a theoretical analysis of the inductive biases of self-attention modules. Our focus is to rigorously establish which functions and long-range dependencies self-attention blocks prefer to represent. Our main result shows that bounded-norm Transformer networks "create sparse variables": a single self-attention head can represent a sparse function of the input sequence, with sample complexity scaling only logarithmically with the context length. To support our analysis, we present synthetic experiments to probe the sample complexity of learning sparse Boolean functions with Transformers.

Cite

Text

Edelman et al. "Inductive Biases and Variable Creation in Self-Attention Mechanisms." International Conference on Machine Learning, 2022.

Markdown

[Edelman et al. "Inductive Biases and Variable Creation in Self-Attention Mechanisms." International Conference on Machine Learning, 2022.](https://mlanthology.org/icml/2022/edelman2022icml-inductive/)

BibTeX

@inproceedings{edelman2022icml-inductive,
  title     = {{Inductive Biases and Variable Creation in Self-Attention Mechanisms}},
  author    = {Edelman, Benjamin L and Goel, Surbhi and Kakade, Sham and Zhang, Cyril},
  booktitle = {International Conference on Machine Learning},
  year      = {2022},
  pages     = {5793-5831},
  volume    = {162},
  url       = {https://mlanthology.org/icml/2022/edelman2022icml-inductive/}
}