Towards Compositional Interpretability for XAI
Not on the map. Why?
Abstract (arXiv)
Artificial intelligence (AI) is currently based largely on black-box machine learning models which lack interpretability. The field of eXplainable AI (XAI) strives to address this major concern, being critical in high-stakes areas such as the finance, legal and health sectors. We present an approach to defining AI models and their interpretability based on category theory. For this we employ the notion of a compositional model, which sees a model in terms of formal string diagrams which capture its abstract structure together with its concrete implementation. This comprehensive view incorporates deterministic, probabilistic and quantum models. We compare a wide range of AI models as compositional models, including linear and rule-based models, (recurrent) neural networks, transformers, VAEs, and causal and DisCoCirc models. Next we give a definition of interpretation of a model in terms of its compositional structure, demonstrating how to analyse the interpretability of a model, and using this to clarify common themes in XAI. We find that what makes the standard 'intrinsically interpretable' models so transparent is brought out most clearly diagrammatically. This leads us to the more general notion of compositionally-interpretable (CI) models, which additionally include, for instance, causal, conceptual space, and DisCoCirc models. We next demonstrate the explainability benefits of CI models. Firstly, their compositional structure may allow the computation of other quantities of interest, and may facilitate inference from the model to the modelled phenomenon by matching its structure. Secondly, they allow for diagrammatic explanations for their behaviour, based on influence constraints, diagram surgery and rewrite explanations. Finally, we discuss many future directions for the approach, raising the question of how to learn such meaningfully structured models in practice.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 41 of its 173 references that are in the map. First posted on arXiv 25 Jun 2024.
Builds on
41 of 173 references.
References · 41
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
- 2016Tutorial on Variational Autoencoderscited by 404
- 2019Counterfactual Visual Explanationscited by 312
- 2018Towards a Definition of Disentangled Representationscited by 294
- 2020Opportunities and Challenges in Explainable Artificial Intelligence (XAI): A Surveycited by 252
- 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 183
- 2017Explainable AI: Beware of Inmates Running the Asylum Or: How I Learnt to Stop Worrying and Love the Social and Behavioural Sciencescited by 84
- 2018Theoretical Impediments to Machine Learning With Seven Sparks from the Causal Revolutioncited by 66
- 2021lambeq: An Efficient High-Level Python Library for Quantum NLPcited by 43
29 more
- 2020Causal Effects of Linguistic Propertiescited by 39
- 2021Category Theory in Machine Learningcited by 36
- 2021Sparse Interventions in Language Models with Differentiable Maskingcited by 34
- 2024Position: Categorical Deep Learning is an Algebraic Theory of All Architecturescited by 32
- 2018Causal Learning and Explanation of Deep Neural Networks via Autoencoded Activationscited by 23
- 2023Dear XAI Community, We Need to Talk! Fundamental Misconceptions in Current XAI Researchcited by 22
- 2022Scientific Inference With Interpretable Machine Learning: Analyzing Models to Learn About Real-World Phenomenacited by 21
- 2023The role of causality in explainable artificial intelligencecited by 17
- 2021A CCG-Based Version of the DisCoCat Frameworkcited by 16
- 2023Causal models in string diagramscited by 14
- 2021Compositionality as we see it, everywhere around uscited by 11
- 2023An Introduction to String Diagrams for Computer Scientistscited by 9
- 2023Distilling Text into Circuitscited by 7
- 2023Categorical Foundations of Explainable AI: A Unifying Theorycited by 7
- 2021Learning from What's Right and Learning from What's Wrongcited by 5
- 2021Cyber Kittens, or Some First Steps Towards Categorical Cyberneticscited by 4
- 2021A Categorical Semantics of Fuzzy Concepts in Conceptual Spacescited by 4
- 2020Open Diagrams via Coend Calculuscited by 3
- 2021Formalising Concepts as Grounded Abstractionscited by 3
- 2022Categorical Tools for Natural Language Processingcited by 3
- 2023Active Inference in String Diagrams: A Categorical Account of Predictive Processing and Free Energycited by 3
- 2015An Introduction to Effectus Theorycited by 2
- 2022A Mathematical Framework for Transformations of Physical Processescited by 2
- 2022Compositional Active Inference II: Polynomial Dynamics. Approximate Inference Doctrinescited by 2
- 2023Evidential Decision Theory via Partial Markov Categoriescited by 2
- 2023Obstructions to Compositionalitycited by 2
- 2023Peptide Binding Classification on Quantum Computerscited by 2
- 2023Higher-Order DisCoCat (Peirce-Lambek-Montague semantics)cited by 2
- 2014Terminality implies non-signallingcited by 1
Built on by
Citing papers per year: 2024: 3; 2025: 2; 2026: 5.
10 papers.
- 2025Finding Manifolds With Bilinear Autoencoderscited by 5
- 2026Actionable Interpretability Must Be Defined in Terms of Symmetriescited by 4
- 2024DLBacktrace: A Model Agnostic Explainability for any Deep Learning Modelscited by 2
- 2026Conversable Complexity: Agentic LLM Collectives as Interpretable Substratescited by 1
- 2024Let the Quantum Creep In: Designing Quantum Neural Network Models by Gradually Swapping Out Classical Componentscited by 0
- 2024A Diagrammatic Approach to Improve Computational Efficiency in Group Equivariant Neural Networkscited by 0
- 2025Efficient Generation of Parameterised Quantum Circuits from Large Textscited by 0
- 2026Interpretability in Deep Time Series Models Demands Semantic Alignmentcited by 0
- 2026Quantum Models with Multi-Stage Training for Compositional Concept Generalizationcited by 0
- 2026Graphical Design of Interpretable Architecturescited by 0
- 2026Graphical Design of Interpretable Architectures19 Aug 2026
- 2026Quantum Models with Multi-Stage Training for Compositional Concept Generalization16 Aug 2026
- 2026Conversable Complexity: Agentic LLM Collectives as Interpretable Substrates1 Jul 2026
- 2026Interpretability in Deep Time Series Models Demands Semantic Alignment2 Feb 2026
- 2026Actionable Interpretability Must Be Defined in Terms of Symmetries19 Jan 2026
- 2025Finding Manifolds With Bilinear Autoencoders19 Oct 2025
- 2025Efficient Generation of Parameterised Quantum Circuits from Large Texts19 May 2025
- 2024A Diagrammatic Approach to Improve Computational Efficiency in Group Equivariant Neural Networks14 Dec 2024
- 2024DLBacktrace: A Model Agnostic Explainability for any Deep Learning Models19 Nov 2024
- 2024Let the Quantum Creep In: Designing Quantum Neural Network Models by Gradually Swapping Out Classical Components26 Sep 2024