Metraipolis › archive › dc_aaf93d6d3d32
Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning — arXiv:2610.20337
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.20337
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T14:20:06.936Z
- SHA-256 of the archived text
7017c01a2a73cb29c58540489179921329665ee856195247e3fb85a6d60b537a- Stable URL of this page
https://metraipolis.com/documento/dc_aaf93d6d3d32
How to cite
Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning — arXiv:2610.20337 — arXiv (en), https://arxiv.org/abs/2610.20337 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_aaf93d6d3d32 (Metraipolis archive dc_aaf93d6d3d32, sha256 7017c01a2a73cb29c58540489179921329665ee856195247e3fb85a6d60b537a)
BibTeX
@misc{dcaaf93d6d3d32,
title = {Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning — arXiv:2610.20337},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.20337},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_aaf93d6d3d32; sha256 7017c01a2a73cb29c58540489179921329665ee856195247e3fb85a6d60b537a},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.20337. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
The success of transformers is attributed to several factors, including their capacity to express formal languages over variable-length inputs, and ability of the attention mechanism to focus on relevant input features. However, there is limited understanding of the training dynamics of shallow transformers, specifically how to decouple the learning of the attention and the output (feedforward) layer. A natural extension of the theory of one-step gradient feature learning in feedforward networks suggests that one could first learn the attention weights with a single gradient step, and then train the output layer. We show that this fails for a shallow transformer trained to recognize a star-free language from unbounded-length input. We prove that the transformer can be trained to recognize the language with a three-phase gradient descent: the output layer is updated first, followed by an attention update, and the output layer is fine-tuned in the third phase. In contrast, the language cannot be learned by training only the attention or output layer, or by a single attention-layer update followed by finetuning the output layer. We empirically show that ``attention learning lagging output layer learning" is beneficial in other language recognition, regression, and in-context learning tasks as well. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.LG, nuovi lavori del giorno). Categorie arXiv: Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2610.20337 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-15T13:53:35.731Z dalla pagina https://arxiv.org/list/cs.LG/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).