Attention to Quantiles: Statistical Theory for Regularized SGD
Abstract
Transformers are commonly trained using stochastic gradient descent (SGD)-based algorithms, yet the statistical properties of the resulting estimators remain poorly understood. We study projected SGD for conditional quantile estimation with a nonlinear softmax-attention model, where each prompt contains in-context covariate-response pairs and a query token with a masked response. Despite the nonsmooth loss function and nonconvex attention architecture, sufficiently strong ridge penalties make the density-smoothed population objective strongly convex on a bounded region. We establish finite-sample error bounds, consistency, and asymptotic normality of the last iterate. For step sizes , the last iterate has squared error around the regularized target for and, for , is asymptotically normal at scale with covariance given by a continuous Lyapunov equation. The theory guides the choice of learning-rate schedule and regularization strength and provides a theoretical basis for uncertainty quantification in attention-based quantile predictions.
Create a lesson
Metadata
- Categories
- stat.ML, cs.LG, econ.EM
Related papers
Statistical Limits in Learning Multi-Head Attention Interactions
Shared title terminologystat.MLShai Zucker, Fei Lu, Inbar Seroussi
Efficient learning using U-statistics with a valid instrumental variable
Shared title terminologystat.MLShuyuan Chen, Yifan Cui
A Theory of Adversary-Directed Online Learning
Shared title terminologystat.MLSteve Hanneke, Amirreza Shaeiri
Exact theory of next-token prediction
Shared title terminologystat.MLMengyao An, Haiping Huang
Online Statistical Inference for Derivative-Free Constrained Stochastic Optimization
Shared title terminologystat.MLJianliang Ye, Sen Na
A theory of inductive node-level generalization from a single large graph
Shared title terminologystat.MLNicolas Keriven, Yann Viegas