Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networks

Luca Arnaboldi, Bruno Loureiro, Ludovic Stephan, Florent Krzakala, L. Zdeborová
6/1/2025

No confident code implementation found for this paper.

Abstract

We study the dynamics of stochastic gradient descent (SGD) for a class of sequence models termed Sequence Single-Index (SSI) models, where the target depends on a single direction in input space applied to a sequence of tokens. This setting generalizes classical single-index models to the sequential domain, encompassing simplified one-layer attention architectures.

Show full abstract

We derive a closed-form expression for the population loss in terms of a pair of sufficient statistics capturing semantic and positional alignment, and characterize the induced high-dimensional SGD dynamics for these coordinates. Our analysis reveals two distinct training phases: escape from uninformative initialization and alignment with the target subspace, and demonstrates how the sequence length and positional encoding influence convergence speed and learning trajectories. These results provide a rigorous and interpretable foundation for understanding how sequential structure in data can be beneficial for learning with attention-based models.

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{arnaboldi2025asymptotics,
  title  = {Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networks},
  author = {Luca Arnaboldi and Bruno Loureiro and Ludovic Stephan and Florent Krzakala and L. Zdeborová},
  year   = {2025},
  eprint = {2506.02651},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-0695},
  url    = {https://doi.org/10.52202/085713-0695},
  journal = {Neural Information Processing Systems}
}

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

Discussion