Statistical Limits in Learning Multi-Head Attention Interactions
Abstract
Multi-head attention aggregates pairwise token interactions, making recovery of the underlying token interaction a statistical inverse problem. We study this problem through an interacting particle system formulation, asking how smoothness and head sparsity determine recovery accuracy and the number of heads needed for estimation. Each head has unknown query-key and value matrices and a -Hölder activation, with head strengths constrained by an budget, . Under suitable assumptions on the token distribution and interaction class, we establish finite-sample minimax lower bounds and upper bounds for empirical risk minimization that avoid the nonparametric curse of dimensionality. As the sample size increases, the lower bound distinguishes three regimes: a saturation regime, a balanced regime in which a sample-dependent number of heads is selected, and a dense regime. In the dense regime, the dependence on the available head count changes at : the nonparametric term is independent of under stronger sparsity, , but increases with under weaker sparsity, . The upper bound exhibits the same transition and, for fixed sequence length, matches the lower bound up to logarithmic factors once both bounds are in the dense regime and the matrix-estimation term does not dominate. Balancing approximation and estimation errors in the upper bound yields a sample-dependent choice of the number of heads, which can be substantially smaller than .
Create a lesson
Metadata
- Categories
- stat.ML, cs.LG
Related papers
Attention to Quantiles: Statistical Theory for Regularized SGD
Shared title terminologystat.MLJunyu Chen, Weining Wang, Ziyang Wei et al.
Queueing-Aware Learning for Multi-Price Dynamic Pricing
Shared title terminologystat.MLXinyun Chen, Guiyu Hong, Yunan Liu
Efficient learning using U-statistics with a valid instrumental variable
Shared title terminologystat.MLShuyuan Chen, Yifan Cui
When is simple target encoding optimal? Moment exactness for sparse categorical features, and the limits of estimating their information
Shared title terminologystat.MLDamián G. Hernández
Online Statistical Inference for Derivative-Free Constrained Stochastic Optimization
Shared title terminologystat.MLJianliang Ye, Sen Na
Statistically Optimal and Near Linear Time Hypothesis Selection
Shared title terminologystat.MLSatyen Kale, Amirreza Shaeiri, Kunal Talwar