Deriving Transformer Architectures as Implicit Multinomial Regression

Jonas A. Actor, Anthony Gruber, Eric C. Cyr
9/4/2025
cs.LGcs.AImath.NA

No confident code implementation found for this paper.

Abstract

While attention has been empirically shown to improve model performance, it lacks a rigorous mathematical justification. This short paper establishes a novel connection between attention mechanisms and multinomial regression. Specifically, we show that in a fixed multinomial regression setting, optimizing over latent features yields solutions that align with the dynamics induced on features by attention blocks. In other words, the evolution of representations through a transformer can be interpreted as a trajectory that recovers the optimal features for classification.

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. Any repos shown below are weak matches — 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{actor2025deriving,
  title  = {Deriving Transformer Architectures as Implicit Multinomial Regression},
  author = {Jonas A. Actor and Anthony Gruber and Eric C. Cyr},
  year   = {2025},
  eprint = {2509.04653},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.04653v2}
}

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/2509.04653.svg)](https://codeofpaper.com/paper/2509.04653)

Discussion