Transformer注意力机制的理论解读:贝叶斯估计与预测充分性
Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive Sufficiency
该研究通过组织现有概率与信息论结果,为Transformer注意力建立理论解释,明确了注意力计算后验均值所需的假设条件,以及实现准确下一token预测的额外条件。分析指出,平方误差损失下的后验均值最优性本身并不构成预测充分性,即便表示充分,也需要预测头正确使用其信息。超额对数损失分解将表示信息损失与预测头误差区分开来,使预测保证所需条件更加精确。
arXiv:2611.30349v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org