Skip to content

Attention to Quantiles: Statistical Theory for Regularized SGD

Junyu Chen, Weining Wang, Ziyang Wei, Wei Biao Wu

stat.ML

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 ℓ2\ell_2 ridge penalties make the density-smoothed population objective strongly convex on a bounded region. We establish finite-sample LpL^p error bounds, consistency, and asymptotic normality of the last iterate. For step sizes γt=γ0t−aγ_t = γ_0 t^{-a}, the last iterate has squared LpL^p error O(γt)O(γ_t) around the regularized target for a∈(0,1)a \in (0,1) and, for a∈(1/2,1)a \in (1/2,1), is asymptotically normal at scale γt\sqrt{γ_t} 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