The Geometry of Thought: Disclosing the Transformer as a Tropical Polynomial Circuit

Faruk Alpay, Bilge Senturk
1/14/2026
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

We prove that the Transformer self-attention mechanism in the high-confidence regime ($β\to \infty$, where $β$ is an inverse temperature) operates in the tropical semiring (max-plus algebra). In particular, we show that taking the tropical limit of the softmax attention converts it into a tropical matrix product. This reveals that the Transformer's forward pass is effectively executing a dynamic programming recurrence (specifically, a Bellman-Ford path-finding update) on a latent graph defined by token similarities. Our theoretical result provides a new geometric perspective for chain-of-thought reasoning: it emerges from an inherent shortest-path (or longest-path) algorithm being carried out within the network's computation.

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{alpay2026geometry,
  title  = {The Geometry of Thought: Disclosing the Transformer as a Tropical Polynomial Circuit},
  author = {Faruk Alpay and Bilge Senturk},
  year   = {2026},
  eprint = {2601.09775},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.09775v1}
}

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

Discussion