Topos Causal Models

Sridhar Mahadevan · 2025

Read Topos Causal Models by Sridhar Mahadevan (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2508-08295.txt.

Introduction

Sridhar Mahadevan offers a new kind of causal model built with tools from category theory in this 2025 draft. Such models use a structure called a topos, which has limits, subobject classifiers, and objects for maps between objects. The aim is to show why those three traits matter for causal work.

Inside, each model is made of local rules that join into one global map from outside causes to outcomes. Interventions become sub-models, hard diagrams get solved by limits, and classes of like operations can be compared. The draft also sets out an inner logic for reasoning about cause inside the models, with a way to judge how close an approximate answer sits.

Catalog record

CREATORSridhar Mahadevan
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE123 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2508-08295

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Topos Causal Models Thanks: Draft under submission. Sridhar Mahadevan Abstract We propose topos causal models (TCMs), a novel class of causal models that exploit the key properties of a topos category: they are (co)complete, meaning all (co)limits exist, they admit a subobject classifier , and allow exponential objects . The main goal of this paper is to show that these properties are central to many applications in causal inference. For example, subobject classifiers allow a categorical formulation of causal intervention, which creates sub-models. Limits and colimits allow causal diagrams of arbitrary complexity to be “solved", using a novel interpretation of causal approximation. Exponential objects enable reasoning about equivalence classes of operations on causal models, such as covered edge reversal and causal homotopy. Analogous to structural causal models (SCMs), TCMs are defined by a collection of functions, each defining a “local autonomous" causal mechanism that assemble to induce a unique global function from exogenous to endogenous variables. Since the category of TCMs is (co)complete, which we prove in this paper, every causal diagram has a “solution" in the form of a (co)limit: this implies that any arbitrary causal model can be “approximated" by some global function with respect to the morphisms going into or out of the diagram. Natural transformations are crucial in measuring the quality of approximation. In addition, we show that causal interventions are modeled by subobject classifiers: any sub-model is defined by a monic arrow into its parent model. Exponential objects permit reasoning about entire classes of causal equivalences and interventions. Finally, as TCMs form a topos, they admit an internal logic defined as a Mitchell-Benabou language with an associated Kripke-Joyal semantics. We show how to reason about causal models in TCMs using this internal logic. K eywords Causal inference \cdot Topos Theory \cdot Category Theory \cdot AI \cdot \cdot Machine Learning 1 Introduction In recent years, there has been significant interest in categorical models of causality, based on symmetric monoidal categories [ Fong 2012 , Fritz and Klingler 2023 , Cho and Jacobs 2019 , Jacobs et al. 2018 ] , as well as simplicial sets and higher-order categories [ Mahadevan 2023 ] . [ Mahadevan 2023 , Mahadevan 2025 ] introduced the framework of universal causality based on the notion of universal properties in category theory [ Riehl 2017 ] : a causal property is universal if it can be defined in terms of an initial or final object in a category of causal diagrams, or in terms of a causal representable functor using the Yoneda Lemma. For example, a structural causal model (SCM) [ Pearl 2009a ] is ostensibly defined as a (deterministic) mapping from a collection of exogenous variables into a collection of endogenous variables, derived by “collating" local functions that serve as independent causal mechanisms [ Galles and Pearl 1988 , Parascandolo et al. 2017 ] . However, SCMs can be further analyzed in terms of their universal properties, such as categorical product, coproduct, limits and colimits, equalizers and coequalizers etc. These latter properties can be shown formally to be initial or final objects in a category of diagrams [ Riehl 2017 ] , or as representable functors through the Yoneda Lemma, and finally also characterized in terms of the universal properties of Kan extensions [ MacLane 1971 ] . In summary, categorical approaches fundamentally differ from past work in causality in their focus on the elucidation of universal properties. Markov categories [ Fritz 2020 ] define a broad unifying framework for probabilistic inference and statistics using an elegant string diagrammatic language [ Selinger 2010 ] , which allows rigorous proofs of classical results and yet is significantly simpler than the traditional “assembly language" formalism of measure theory [ Halmos 1974 ] . Any causal model based on graphs [ Pearl 2009a , Forré and Mooij 2017 , Spirtes et al. 2000 ] or other algebraic formalisms, such as integer-valued multisets [ Studeny 2010 ] , can be translated into a string diagram over a symmetric monoidal category, or a simplicial set. Operations on causal models, such as interventions, can be modeled as functors on the objects of the associated symmetric monoidal category or simplicial set. Categorical approaches to causality also extend to the potential outcomes counterfactual framework [ Imbens and Rubin 2015 ] . Our main contribution in this paper is present a topos-theoretic view of causality. A topos is a type of category [ MacLane 1971 ] , which is particularly well-suited to modeling operations that are “set-like" [ MacLane and leke Moerdijk 1994 ] . It also features an internal logical language [ Goldblatt 2006 ] . We claim that a topos provides three universal properties that make it natural as a category to do causal inference in: it provides a general theory for how to combine local functions, which can be viewed as “independent causal mechanisms" [ Parascandolo et al. 2017 ] , into a consistent global function building on the theory of sheaves in a topos [ Mac Lane and Moerdijk 1992 ] . It enables a generic way to define causal interventions using a subobject classifier in a topos category [ Johnstone 2014 ] . Finally, it gives an internal logical language for causal and counterfactual reasoning [ Bell 1988 ] . We illustrate the application of this topos-theoretic view of causality both to structural causal models (SCMs), as well as previous categorical models of causality, and to Lewis’ theory of counterfactuals [ Lewis 1973 ] . In addition, a topos causal model introduces into the causal inference literature new ways of combining causal models, using universal constructions such as limits , colimits , (co)equalizers , and their specializations such as pullbacks and pushforwards . These universal constructions, whose role in causal inference was first articulated in [ Mahadevan 2023 ] , show that it is possible to “solve" causal diagrams of arbitrary complexity using a novel interpretation of what an approximation is. More formally, a causal diagram F:{\cal J}\rightarrow{\cal C_{T}} is defined by some functor F from an indexing category {\cal J} into some TCM category {\cal C_{T}} . We can exploit the topos-like nature of the TCM category to show that all causal diagrams have a solution in terms of their limits or colimits. At the outset, it is important to stress that our paper is not intended to be an algorithmic contribution to the vast literature on causal discovery (for a recent survey of the past 30 years of causal discovery, see [ Zanga and Stella 2023 ] ), or indeed a proposal for causal inference on particular types of data-generating distributions [ Guo et al. 2023 ] . Rather, in the spirit of categorical characterizations, we aim to uncover more general principles that apply to a broad class of algorithms and models. For example, exchangeable causal models have recently been proposed as a way to instantiate the independent causal mechanism hypothesis [ Parascandolo et al. 2017 , Guo et al. 2023 ] . The fundamental classical result of de Finetti on exchangeability can be elegantly generalized using Markov categories [ Fritz et al. 2021 ] , which can potentially be combined with our topos-theoretic view to yield a deeper understanding of discovering causal

Read the complete text