Constructive Causal Abstraction and a Case Study in Mechanistic Interpretability
Organizations: Department of Computer Science University College London · Max Planck Institute for Intelligent Systems · Amazon
Abstract
Existing frameworks in causal abstraction first propose a high-level causal model, and then verify whether its interventional effects agree with those of a given micro-level model - the two models are declared causally consistent when the discrepancy is zero. However, proposing a consistent macro causal model is difficult, because macro causal relations are almost never well-defined, since distinct micro-level interventions associated with the same apparent macro intervention can produce different effects. Our central insight is that causally consistent macro-level models can be obtained constructively: ill-defined macro interventions can be interpreted as missing variables on the macro level, and can be accounted for by introducing a complementary variable q that retains omitted causally relevant state. In the linear case, q has a unique form and we provide sufficient conditions for valid implementations to exist; in the nonlinear case, we provide an ODE-based algorithm for constructing implementations. We call this framework Constructive Causal Abstraction (CCA), and use CCA to formulate the difference between machine-learning model auditing and editing. With the Bias-in-Bios biographies dataset, we demonstrate that CCA allows practitioners to articulate assumptions when detecting the model's gender bias. Finally, CCA resolves a well-known paradox known as "interpretability illusion" which points to a mismatch between the subspace for editing and the one where the model implements a signal-to-output pathway.
Figures & tables
| Profession | Nurse | Surgeon | Dietitian | Yoga teacher | Paralegal | Architect | Interior designer | Chiropractor | Software engineer | Psychologist |
|---|---|---|---|---|---|---|---|---|---|---|
| Coefficient |
| Split | Mean absolute per logit | Text profession flips | Fixed- macro-predicted flips |
|---|---|---|---|
| Macro fit | 0.15801 | 60/1213 | 13/1213 |
| Calibration | 0.16599 | 67/1223 | 13/1223 |
| Held-out | 0.16016 | 65/1220 | 13/1220 |
| Predicted profession before after | Largest-change class | Class probability before after | (pp) | |
|---|---|---|---|---|
| journalist journalist | journalist | |||
| professor professor | professor | |||
| professor professor | professor | |||
| journalist journalist | journalist | |||
| nurse teacher | nurse | |||
| physician physician | physician |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Causal Abstraction
Causal abstraction relates detailed causal models to simpler models while preserving the interventions and effects that matter.
See all 30 papersCausal and Compositional Abstraction
distributed' causal abstractions. Our approach is formalised in terms of category theory, and uses the general notion of a compositional model with a given set of queries and semantics in a monoidal, cd- or Markov category; causal models and their queries such as interventions being special cases. We identify two basic notions of abstraction: downward abstractions mapping queries from high to low level; and upward abstractions, mapping concrete queries such as Do-interventions from low to high. Although usually presented as the latter, we show how common causal abstractions may, more fundamentally, be understood in terms of the former. Our approach also leads us to consider a new stronger notion of component-level' abstraction, applying to the individual components of a model. In particular, this yields a novel, strengthened form of constructive causal abstraction at the mechanism-level, for which we prove characterisation results. Finally, we show that abstraction can be generalised to further compositional models, including those with a quantum semantics implemented by quantum circuits, and we take first steps in exploring abstractions between quantum compositional circuit models and high-level classical causal models as a means to explainable quantum AI.