Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive Sufficiency
Abstract
This paper develops a theoretical account of Transformer attention by organizing existing probabilistic and information-theoretic results. It identifies the assumptions under which attention computes a posterior mean and the additional conditions required for accurate next-token prediction. Posterior-mean optimality under squared-error loss does not by itself establish predictive sufficiency; even a sufficient representation requires a prediction head that uses its information correctly. An excess-log-loss decomposition makes this distinction precise by separating representation information loss from prediction-head error. The analysis clarifies the conditions required for predictive guarantees. Determining when these conditions hold in trained models, and how architectural or training choices can support them, could guide the development of AI systems that preserve and use predictive information more effectively.
Create a lesson
Metadata
- Comments
- 40 pages
Related papers
Rewirable Circuits in Transformers with Loom Attention
Shared title terminologycs.LGDa Xiao, Qingye Meng, Shengping Li et al.
Attention Temperature Confounds Zero-Shot Context Extension
Shared title terminologycs.LGRuben Navasardyan
Predicting Rare-Mode Collapse in Recursive Generative Training from Single-Generation Calibration
Shared title terminologycs.LGJingyao Zhang, Mingyu Du, Lu Han
PVFormer: Proper Velocity Transformer for Stable and Scalable Hyperbolic Representation Learning
Shared title terminologycs.LGXianglong Shi, Nicu Sebe, Bernhard Schölkopf et al.
MTL-MHOL: Predicting Online Conversions under Delayed Feedback and Data Sparsity
Shared title terminologycs.LGMario Tejera Vicente, Eva Hagen, Emma van Breukelen et al.
Near-Far Attention: Region-Aware Sparse Retrieval for Long-Context LLM Decoding
Shared title terminologycs.LGYuanShuo Wang, Jianchao Tan, Lei Gong et al.