mlsanityData to 7 Oct 2026

Towards Compositional Interpretability for XAI

arXiv 2406.17583 ↗First posted 25 Jun 2024cs.AI cs.LG cs.LOcited by 10

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

  1. 2013Auto-Encoding Variational Bayescited by 3,980
  2. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  3. 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
  4. 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
  5. 2016Tutorial on Variational Autoencoderscited by 404
  6. 2019Counterfactual Visual Explanationscited by 312
  7. 2018Towards a Definition of Disentangled Representationscited by 294
  8. 2020Opportunities and Challenges in Explainable Artificial Intelligence (XAI): A Surveycited by 252
  9. 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 183
  10. 2017Explainable AI: Beware of Inmates Running the Asylum Or: How I Learnt to Stop Worrying and Love the Social and Behavioural Sciencescited by 84
  11. 2018Theoretical Impediments to Machine Learning With Seven Sparks from the Causal Revolutioncited by 66
  12. 2021lambeq: An Efficient High-Level Python Library for Quantum NLPcited by 43
29 more
  1. 2020Causal Effects of Linguistic Propertiescited by 39
  2. 2021Category Theory in Machine Learningcited by 36
  3. 2021Sparse Interventions in Language Models with Differentiable Maskingcited by 34
  4. 2024Position: Categorical Deep Learning is an Algebraic Theory of All Architecturescited by 32
  5. 2018Causal Learning and Explanation of Deep Neural Networks via Autoencoded Activationscited by 23
  6. 2023Dear XAI Community, We Need to Talk! Fundamental Misconceptions in Current XAI Researchcited by 22
  7. 2022Scientific Inference With Interpretable Machine Learning: Analyzing Models to Learn About Real-World Phenomenacited by 21
  8. 2023The role of causality in explainable artificial intelligencecited by 17
  9. 2021A CCG-Based Version of the DisCoCat Frameworkcited by 16
  10. 2023Causal models in string diagramscited by 14
  11. 2021Compositionality as we see it, everywhere around uscited by 11
  12. 2023An Introduction to String Diagrams for Computer Scientistscited by 9
  13. 2023Distilling Text into Circuitscited by 7
  14. 2023Categorical Foundations of Explainable AI: A Unifying Theorycited by 7
  15. 2021Learning from What's Right and Learning from What's Wrongcited by 5
  16. 2021Cyber Kittens, or Some First Steps Towards Categorical Cyberneticscited by 4
  17. 2021A Categorical Semantics of Fuzzy Concepts in Conceptual Spacescited by 4
  18. 2020Open Diagrams via Coend Calculuscited by 3
  19. 2021Formalising Concepts as Grounded Abstractionscited by 3
  20. 2022Categorical Tools for Natural Language Processingcited by 3
  21. 2023Active Inference in String Diagrams: A Categorical Account of Predictive Processing and Free Energycited by 3
  22. 2015An Introduction to Effectus Theorycited by 2
  23. 2022A Mathematical Framework for Transformations of Physical Processescited by 2
  24. 2022Compositional Active Inference II: Polynomial Dynamics. Approximate Inference Doctrinescited by 2
  25. 2023Evidential Decision Theory via Partial Markov Categoriescited by 2
  26. 2023Obstructions to Compositionalitycited by 2
  27. 2023Peptide Binding Classification on Quantum Computerscited by 2
  28. 2023Higher-Order DisCoCat (Peirce-Lambek-Montague semantics)cited by 2
  29. 2014Terminality implies non-signallingcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 2; 2026: 5.

10 papers.