The Topos of Transformer Networks

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Villani, Mattia Jacopo, McBurney, Peter
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929336020369408
author Villani, Mattia Jacopo
McBurney, Peter
author_facet Villani, Mattia Jacopo
McBurney, Peter
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_18415
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Topos of Transformer Networks
Villani, Mattia Jacopo
McBurney, Peter
Machine Learning
Category Theory
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.
title The Topos of Transformer Networks
topic Machine Learning
Category Theory
url https://arxiv.org/abs/2403.18415