cs.LGNov 23, 2026

Toward a Theoretical Understanding of Transformer Attention: Bayesian Estimation and Predictive Sufficiency

Authors: Fouad B. Chedid

Organizations: AI HORIZON, Muscat, Oman.

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.

Explore similar work

CardsList
  1. Learning Source Structure: Bayesian Prediction with Transformers

    Oct 13, 2026Meir Feder, Ruediger UrbankeTransformerSequence Modeling

  2. Transformers Can Learn Posterior Predictive Distributions In-Context

    May 26, 2026Gyeonghun Kang, Changwoo J. Lee, Xiang ChengBayesian InferenceTransformer Attention

  3. Transformer-like Inference from Optimal Control

    May 15, 2026Aditya Kudre, Heng-Sheng Chang, Prashant G. MehtaTransformer InferenceDecoder-Only Language Models