Presenting Neural Networks via Coherent Functors
Abstract
This paper develops a methodology for representing machine learning models as models of formal theories, grounded in the perspective that machine learning models are a form of database and that databases are models of theories in coherent logic. Two intermediate results support this approach: any functorial database schema has an associated -coherent theory whose models coincide with its instances, and data may be hard-coded into a coherent category such that any model of the resulting theory necessarily contains it. These tools are used to show that any dense feed-forward neural network architecture over the floating point numbers may be presented as a coherent category whose -models are the networks of that architecture, with inference arising as the precomposition functor along a coherent functor . This representation is extended to networks with weight and bias fixing and tying, encompassing sparse and convolutional architectures, via a 2-coequaliser construction in . Taken together, these results recast neural network inference as an extension problem in the 2-category of coherent categories, supporting the interpretation of a network architecture as a formal hypothesis about the structure of data and of model training as a lifting of a dataset into a more constrained theory.
Cite
@article{arxiv.2604.15100,
title = {Presenting Neural Networks via Coherent Functors},
author = {Matthew Pugh and Jo Grundy and Corina Cirstea and Nick Harris},
journal= {arXiv preprint arXiv:2604.15100},
year = {2026}
}