Transformer attention can be understood as Bayesian posterior estimation, but this alone doesn't guarantee good predictions; the prediction head must also correctly use the learned representations.
This paper provides a theoretical framework for understanding how Transformer attention mechanisms work, connecting them to Bayesian posterior estimation and information theory. It shows that attention computing a posterior mean isn't enough for good predictions—you also need the prediction head to actually use that information correctly.