@inproceedings{
bordelon2024infinite,
title={Infinite Limits of Multi-head Transformer Dynamics},
author={Blake Bordelon and Hamza Tahir Chaudhry and Cengiz Pehlevan},
booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},
year={2024},
url={https://openreview.net/forum?id=p0BBKhD5aI}
}
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 which admit well defined infinite width and depth limits that allow 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 heads, infinite key/query dimension, 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 show they maintain the correct scale of updates for both SGD and Adam.
Infinite Limits of Multi-head Transformer Dynamics
Blake Bordelon Hamza Tahir Chaudhry Cengiz Pehlevan