The Topos of Transformer Networks

Mattia Jacopo Villani, Peter McBurney
3/27/2024
cs.LGmath.CT

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

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.

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!

Cite this paper

@article{villani2024topos,
  title  = {The Topos of Transformer Networks},
  author = {Mattia Jacopo Villani and Peter McBurney},
  year   = {2024},
  eprint = {2403.18415},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.18415v3}
}

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

Discussion