Bruno Gavranović
2 previous affiliations
- Symbolica2024
- Principal Researcher · 2024
- University of Strathclyde2019–2023
- PhD student · 2019–2023
Research Overview
Bruno Gavranović focuses on the intersection of category theory and machine learning, specifically developing the framework of Categorical Foundations of Compositional Deep Learning. His work aims to replace the heuristic-driven "alchemy" of deep learning with a rigorous algebraic theory that treats neural network architectures, optimization algorithms, and bidirectional data flow as composable mathematical structures. Currently, he is focused on building neural networks that generate provably correct code and developing the software infrastructure required for their training.
Research Trajectory
Gavranović’s research began with a focus on the internal mechanics of neural networks and the potential for functional programming to provide a more robust implementation framework. During his Master’s studies at the University of Zagreb, he explored the implementation of complex architectures such as Differentiable Neural Computers and Generative Adversarial Networks from scratch. This practical engagement with deep learning coincided with an interest in Haskell and the emerging field of applied category theory. His 2019 Master’s thesis, Compositional Deep Learning, established an early bridge between these domains, proposing a formal mathematical language to describe how neural networks are composed and trained. This work included early explorations into Learning Image Transformations Without Paired Data, treating image manipulation as a categorical operation.
During his doctoral research at the University of Strathclyde, Gavranović transitioned toward a more fundamental investigation of the mathematical structures underlying gradient-based learning. This period was characterized by a move away from ad-hoc architectural designs toward a "periodic table" of neural network components. He focused on the concept of compositionality—the idea that complex systems can be understood by the way their simpler parts are combined. This led to significant work on the categorical "plumbing" of machine learning, specifically using lenses and optics to model the bidirectional flow of information (forward passes and backpropagation).
In 2022, Gavranović’s work began to address the computational implications of these mathematical abstractions. He investigated The Algorithmic Pareto Frontier of Space and Time, demonstrating that different categorical constructions for bidirectional data flow correspond to specific hardware trade-offs. For instance, his research showed that lenses and optics, while mathematically related, represent opposite ends of a space-time tradeoff: one saves memory through recomputation (similar to gradient checkpointing), while the other saves time by storing intermediate states. During this time, he also applied categorical tools to specific architectures, providing a formal definition for Graph Convolutional Neural Networks (GCNNs) as parametric morphisms.
By 2024, Gavranović’s research culminated in a unified theory of Categorical Deep Learning (CDL). This framework suggests that diverse architectures—including CNNs, RNNs, and Transformers—are not merely a collection of tricks but are instances of a single algebraic theory. His recent work has also expanded into Modular Gradient Wrappers for Neural Network Optimization, treating optimizers and loss functions as composable blocks. This trajectory reflects a consistent move from empirical implementation to foundational theory, and finally toward the application of these theories to the problem of formal verification in AI.
Current Directions
Gavranović is currently applying the principles of categorical deep learning to the challenge of "the intent gap"—the discrepancy between a programmer's actual intent and the code communicated to a compiler. He is developing neural networks designed to generate provably correct code, utilizing dependently-typed languages like Idris and Lean to ensure that software satisfies its specifications by construction. This work is pursued through Coend, a research-led company he founded, and in affiliation with the Glasgow Lab for AI Verification (GLAIVE), where he works on structured tactics for theorem proving.
His current research also explores the broader implications of categorical cybernetics and game theory, viewing learning systems as agents within a compositional framework. This includes ongoing work on the software infrastructure necessary to support training regimes that are grounded in these formal mathematical structures.
Representative Work
In Compositional Deep Learning (2019), Gavranović provides an early formalization of neural network construction and training through the lens of category theory. As the first author, he establishes the groundwork for treating deep learning components as morphisms in a category, allowing for a rigorous description of how models are built and manipulated.
In Space-time tradeoffs of lenses and optics via higher category theory (2022), Gavranović uses 2-categories to demonstrate that the mathematical isomorphism between lenses and optics hides significant operational differences. He proves that these two frameworks represent a fundamental tradeoff between memory usage and execution time, providing a mathematical explanation for common engineering practices like gradient checkpointing.
In Graph Convolutional Neural Networks as Parametric CoKleisli morphisms (2022), Gavranović moves beyond treating GCNNs as black boxes. By defining them as parametric CoKleisli morphisms, he provides a rigorous mathematical foundation that distinguishes GCNNs from standard feedforward networks based on their structural handling of graph-structured data.
In Position: Categorical Deep Learning is an Algebraic Theory of All Architectures (2024), Gavranović and his co-authors propose CDL as a unifying framework for the field. The paper argues that high-level architectural constraints, such as symmetry and equivariance, can be bridged with low-level tensor operations through the language of monads and parametric maps, offering a descriptive and prescriptive theory for AI architecture.
In his PhD thesis, Fundamental Components of Deep Learning: A category-theoretic approach (2024), Gavranović synthesizes his research into a comprehensive mathematical foundation for the field. He introduces the concept of "parametric weighted optics" to unify parameterization and bidirectionality, creating a systematic framework for understanding the "alchemical" designs of modern deep learning.
In Deep Learning with Parametric Lenses (2024), Gavranović contributes to a framework that treats models, optimizers, and loss functions as composable blocks. This work bridges the gap between continuous neural networks and discrete Boolean circuits, providing a unified language for the "plumbing" of gradient-based learning and facilitating a more modular approach to AI system design.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake