Fundamental limits of learning in sequence multi-index models and deep attention networks: High-dimensional asymptotics and sharp thresholds

Emanuele Troiani, Hugo Cui, Yatin Dandi, Florent Krzakala, Lenka Zdeborová
2/2/2025
cs.LGcond-mat.dis-nn

No official code found. Best implementation: SPOC-group/SequenceIndexModels (0 stars, last commit 2025-01-31).

Abstract

In this manuscript, we study the learning of deep attention neural networks, defined as the composition of multiple self-attention layers, with tied and low-rank weights. We first establish a mapping of such models to sequence multi-index models, a generalization of the widely studied multi-index model to sequential covariates, for which we establish a number of general results. In the context of Bayesian-optimal learning, in the limit of large dimension $D$ and commensurably large number of samples $N$, we derive a sharp asymptotic characterization of the optimal performance as well as the performance of the best-known polynomial-time algorithm for this setting --namely approximate message-passing--, and characterize sharp thresholds on the minimal sample complexity required for better-than-random prediction performance. Our analysis uncovers, in particular, how the different layers are learned sequentially. Finally, we discuss how this sequential learning can also be observed in a realistic setup.

View on arXivView PDF

Code Implementations(1)

Code repository for the "Fundamental limits of learning in sequence multi-index models and deep attention networks: High-dimensional asymptotics and sharp thresholds" paper

01Python, Jupyter NotebookJan 31, 20251 years ago

Similar Papers

Cite this paper

@article{troiani2025fundamental,
  title  = {Fundamental limits of learning in sequence multi-index models and deep attention networks: High-dimensional asymptotics and sharp thresholds},
  author = {Emanuele Troiani and Hugo Cui and Yatin Dandi and Florent Krzakala and Lenka Zdeborová},
  year   = {2025},
  eprint = {2502.00901},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.00901v1},
  journal = {ICML 2025 2025}
}

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/2502.00901.svg)](https://codeofpaper.com/paper/2502.00901)

Discussion