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

Nihal Mehta
11/16/2025
cs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mehta2025selfattention,
  title  = {Self-Attention as Distributional Projection: A Unified Interpretation of Transformer Architecture},
  author = {Nihal Mehta},
  year   = {2025},
  eprint = {2511.13780},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.13780v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.13780.svg)](https://codeofpaper.com/paper/2511.13780)

Discussion