đ€ AI Summary
This paper investigates the asymptotic dynamics of stochastic gradient descent (SGD) in the sequence single-index model (SSI) and a simplified single-layer attention network, aiming to elucidate how sequential structureâparticularly positional encoding and semantic alignmentâenhances attention-based learning. Methodologically, we derive the first closed-form expression for the population loss of the SSI, introduce a pair of sufficient statistics to jointly capture semantic and positional information, and leverage high-dimensional stochastic optimization theory combined with asymptotic statistical analysis to obtain an analytical characterization of SGD trajectories. Our key contributions are threefold: (1) We identify a two-phase convergence mechanismâinitial escape from uninformative initialization followed by alignment onto the target subspace; (2) We quantify how sequence length and positional encoding accelerate convergence rates; (3) We establish the first rigorous, interpretable theoretical foundation for attentionâs efficacy, proving that sequential structure significantly improves learning efficiency.
đ 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. 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.