The paper claims that linear self-attention defines a parametric endofunctor whose layered stacking is the free monad, but the construction is mostly restatement and has serious technical flaws.
The Topos of Transformer Networks
1 Pith paper cite this work. Polarity classification is still indexing.
abstract
The transformer neural network has significantly out-shined all other neural network architectures as the engine behind large language models. We provide a theoretical analysis of the expressivity of the transformer architecture through the lens of topos theory. From this viewpoint, we show that many common neural network architectures, such as the convolutional, recurrent and graph convolutional networks, can be embedded in a pretopos of piecewise-linear functions, but that the transformer necessarily lives in its topos completion. In particular, this suggests that the two network families instantiate different fragments of logic: the former are first order, whereas transformers are higher-order reasoners. Furthermore, we draw parallels with architecture search and gradient descent, integrating our analysis in the framework of cybernetic agents.
fields
cs.LG 1years
2025 1verdicts
REJECT 1representative citing papers
citing papers explorer
-
Self-Attention as a Parametric Endofunctor: A Categorical Framework for Transformer Architectures
The paper claims that linear self-attention defines a parametric endofunctor whose layered stacking is the free monad, but the construction is mostly restatement and has serious technical flaws.