Towards Understanding Inductive Bias in Transformers: A View From Infinity

Itay Lavie, Guy Gur-Ari, Zohar Ringel
2/7/2024
cs.LGcond-mat.dis-nnstat.ML

No confident code implementation found for this paper.

Abstract

We study inductive bias in Transformers in the infinitely over-parameterized Gaussian process limit and argue transformers tend to be biased towards more permutation symmetric functions in sequence space. We show that the representation theory of the symmetric group can be used to give quantitative analytical predictions when the dataset is symmetric to permutations between tokens. We present a simplified transformer block and solve the model at the limit, including accurate predictions for the learning curves and network outputs. We show that in common setups, one can derive tight bounds in the form of a scaling law for the learnability as a function of the context length. Finally, we argue WikiText dataset, does indeed possess a degree of permutation symmetry.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lavie2024towards,
  title  = {Towards Understanding Inductive Bias in Transformers: A View From Infinity},
  author = {Itay Lavie and Guy Gur-Ari and Zohar Ringel},
  year   = {2024},
  eprint = {2402.05173},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.05173v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05173.svg)](https://codeofpaper.com/paper/2402.05173)

Discussion