English

Self-Attention as Distributional Projection: A Unified Interpretation of Transformer Architecture

Machine Learning 2025-11-19 v1

Abstract

This paper presents a mathematical interpretation of self-attention by connecting it to distributional semantics principles. We show that self-attention emerges from projecting corpus-level co-occurrence statistics into sequence context. Starting from the co-occurrence matrix underlying GloVe embeddings, we demonstrate how the projection naturally captures contextual influence, with the query-key-value mechanism arising as the natural asymmetric extension for modeling directional relationships. Positional encodings and multi-head attention then follow as structured refinements of this same projection principle. Our analysis demonstrates that the Transformer architecture's particular algebraic form follows from these projection principles rather than being an arbitrary design choice.

Keywords

Cite

@article{arxiv.2511.13780,
  title  = {Self-Attention as Distributional Projection: A Unified Interpretation of Transformer Architecture},
  author = {Nihal Mehta},
  journal= {arXiv preprint arXiv:2511.13780},
  year   = {2025}
}

Comments

17 pages, 0 figures. This work provides a mathematical interpretation of self-attention mechanisms in Transformers through distributional semantics principles