Infinite Limits of Multi-head Transformer Dynamics

Blake Bordelon, Hamza Tahir Chaudhry, Cengiz Pehlevan
5/24/2024
stat.MLcond-mat.dis-nncs.LG

No confident code implementation found for this paper.

Abstract

In this work, we analyze various scaling limits of the training dynamics of transformer models in the feature learning regime. We identify the set of parameterizations that admit well-defined infinite width and depth limits, allowing the attention layers to update throughout training--a relevant notion of feature learning in these models. We then use tools from dynamical mean field theory (DMFT) to analyze various infinite limits (infinite key/query dimension, infinite heads, and infinite depth) which have different statistical descriptions depending on which infinite limit is taken and how attention layers are scaled. We provide numerical evidence of convergence to the limits and discuss how the parameterization qualitatively influences learned features.

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{bordelon2024infinite,
  title  = {Infinite Limits of Multi-head Transformer Dynamics},
  author = {Blake Bordelon and Hamza Tahir Chaudhry and Cengiz Pehlevan},
  year   = {2024},
  eprint = {2405.15712},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.15712},
  url    = {http://arxiv.org/abs/2405.15712v2},
  journal = {NEURIPS 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/2405.15712.svg)](https://codeofpaper.com/paper/2405.15712)

Discussion