A Layered Architecture for Universal Causality

Sridhar MahadevanarXiv 2022 · DOI

Introduction

Causal inference—the science of determining the effects of interventions—has traditionally relied on specific representations like Directed Acyclic Graphs (DAGs). While effective, these representations struggle to scale as models incorporate relational databases, higher-order logic, or non-graphical structures. The Universal Causality Layered Architecture (UCLA) addresses this by providing a unified, mathematically rigorous foundation using category theory. By moving beyond "graph-only" causality, UCLA offers a language that remains consistent regardless of whether the underlying model is a graph, a string diagram, or a set of logical constraints.

The UCLA Architecture

The core of the UCLA framework is a four-layer hierarchy connected by functors and synchronized by universal arrows. This structure allows abstract causal logic to be mapped down to low-level data instances and topological structures.

The four-layer hierarchy of the Universal Causality Layered Architecture.
  1. The Simplicial Layer: At the top, causal interventions (or "surgery") are modeled using simplicial categories. Operations like deleting an edge or "freezing" a variable are treated as combinatorial face and degeneracy operators.
  2. The Graphical Layer: This layer contains the actual causal model, such as a DAG or relational schema, defining entities and their attributes.
  3. The Instance Layer: Here, abstract objects from the graphical layer are mapped to sets of actual data instances, much like a database schema maps to table rows.
  4. The Homotopy Layer: The bottom layer adds topological or measurable structure, allowing the evaluation of causal models through the lens of "shape" and continuity.

A key innovation is the use of the Grothendieck Category of Elements to bind abstract variables to specific data points, and modeling interventions as Kan extensions to find the best approximation of a mapping when the underlying structure changes.

Applications and Insights

UCLA is validated through theoretical models rather than standard benchmarks. One prominent example is a conceptual model of how Covid-19 lockdowns (interventions) affect pollution and health outcomes.

Mapping abstract causal diagrams to real-world models via functors.

By formalizing Judea Pearl’s "graph surgery" using simplicial objects, UCLA ensures that changing a causal model is a mathematically defined operation traceable across all layers. A significant insight is the definition of causal effects in terms of homotopy colimits. Instead of merely comparing means (like the Average Treatment Effect), this approach compares the entire topological "shape" of the data before and after an intervention. Furthermore, the author identifies a "Causal Reproducing Property," suggesting that presheaves in category theory can represent causal information similarly to how kernel matrices function in machine learning.

Results and Future Directions

The paper demonstrates that major existing approaches to categorical causality can be viewed as specific instances of the UCLA hierarchy. It reformulates causal inference as a "lifting problem"—a formal method to verify if a causal query is identifiable given the available data.

While powerful, the framework's reliance on higher-order category theory presents a steep learning curve. Future work aims to address causal confounding more deeply and explore "causal sheaves" to model how information varies across different contexts or neighborhoods of a dataset.

Summary updated

BibTeX
@misc{mahadevan2022layered,
  author = {Sridhar Mahadevan},
  title = {{A Layered Architecture for Universal Causality}},
  year = {2022},
  eprint = {2212.08981},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.08981},
}
Figure