Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representations

Atticus Geiger, Zhengxuan Wu, Christopher Potts, Thomas Icard, Noah D. Goodman

Abstract

Causal abstraction is a promising theoretical framework for explainable artificial intelligence that defines when an interpretable high-level causal model is a faithful simplification of a low-level deep learning system. However, existing causal abstraction methods have two major limitations: they require a brute-force search over alignments between the high-level model and the low-level one, and they presuppose that variables in the high-level model will align with disjoint sets of neurons in the low-level one. In this paper, we present distributed alignment search (DAS), which overcomes these limitations. In DAS, we find the alignment between high-level and low-level models using gradient descent rather than conducting a brute-force search, and we allow individual neurons to play multiple distinct roles by analyzing representations in non-standard bases—distributed representations. Our experiments show that DAS can discover internal structure that prior approaches miss. Overall, DAS removes previous obstacles to uncovering conceptual structure in trained neural nets.

Introduction

A central goal of AI interpretability is causal abstraction: proving that a complex neural network (the "low-level" model) is actually implementing a simpler, interpretable algorithm (the "high-level" model). To test this, researchers typically use interchange interventions (also known as activation patching). If one swaps the neural representation of a specific concept from a source input into a base input, the network’s output should change exactly as the symbolic algorithm predicts if the abstraction is faithful.

Figure 1: Alignment between a high-level symbolic model (left) and a low-level neural network (right).

Until now, this approach faced two massive hurdles. First, the localist assumption presumed that high-level variables align with specific, disjoint sets of neurons. However, neural networks are notoriously distributed—one neuron might participate in many concepts, and one concept might be spread across many neurons. Second, the brute-force bottleneck made finding which neurons correspond to which high-level variables computationally expensive or impossible for large models.

Distributed Alignment Search (DAS)

We propose Distributed Alignment Search (DAS) to solve both problems simultaneously. Instead of searching for a subset of neurons, DAS learns an orthogonal rotation matrix ($R$) that transforms the neural representation space.

Figure 6: The Distributed Alignment Search (DAS) framework using orthogonal rotation matrices to find alignments in distributed representations.

DAS performs a "soft" intervention: it rotates the neural activations into a new basis where specific dimensions align with high-level variables, performs the interchange intervention in this rotated space, and then rotates the result back to the original basis. Because the rotation matrix is differentiable, DAS uses gradient descent to find the optimal alignment. The neural network's weights remain frozen; only the "viewpoint" (the rotation) is trained to maximize Interchange Intervention Accuracy (IIA)—the percentage of times the network's counterfactual behavior matches the high-level model.

Experimental Evaluation

The paper evaluates DAS on two distinct types of tasks:

  1. Hierarchical Equality Task: A relational reasoning task where the model must determine if two pairs of objects have the same relationship (e.g., is $(A=A)$ the same as $(B=B)$?). This tests the model's ability to handle abstract, tree-structured logic.
  2. MoNLI (Monotonicity Natural Language Inference): A linguistic task using a BERT-base model. It involves determining if a sentence entails another based on lexical relations and the presence of negation.

Key Results and Insights

  • Perfect Alignment: DAS achieved 100% IIA on both the Hierarchical Equality and MoNLI tasks, proving the neural networks perfectly implemented the hypothesized symbolic algorithms.
  • Outperforming Baselines: Traditional brute-force "localist" searches only achieved around 60-73% IIA on the same tasks, proving that the relevant information was indeed distributed and "invisible" to older methods.
  • Efficiency: For the NLI task, an exhaustive search would have taken an estimated $2 \times 10^{58}$ seconds. DAS found the alignment in approximately 18 minutes.
  • Basis Matters: Interpretable features are often hidden in non-standard bases. DAS revealed that in the equality task, representations were truly abstract and could not be decomposed back into individual word identities, suggesting the network learned a pure symbolic relation.

Limitations and Future Work

While DAS is efficient, the rotation matrix grows quadratically with the hidden dimension size ($O(N^2)$). Future work may involve using low-rank approximations to scale to massive models like GPT-4. Additionally, DAS currently assumes linear rotations; if a network encodes concepts in highly non-linear manifolds, linear rotations might fail. Finally, DAS requires a hypothesized high-level causal graph; future research could explore using DAS to discover the high-level algorithm itself from scratch.

Summary updated

BibTeX
@inproceedings{geiger2024finding,
  author = {Atticus Geiger and Zhengxuan Wu and Christopher Potts and Thomas Icard and Noah D. Goodman},
  title = {{Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representations}},
  booktitle = {CLeaR},
  year = {2024},
  url = {https://openreview.net/forum?id=50k1yRplHn},
}
Figure