Abstract
Researchers from Stanford propose Causal Abstraction Analysis (CAA), a new framework to peer inside the "black box" of neural networks. By aligning internal neural representations with variables in interpretable causal models and performing "interchange interventions," they demonstrate that high-performing models like BERT actually learn to implement the compositional logic required for complex language tasks.
The Causal Gap in Interpretability
Despite their ubiquity, neural networks remain notoriously difficult to interpret. Current structural analysis tools generally fall into two camps: probing (training a classifier to see what information is "encoded" in a layer) and feature attribution (identifying which input tokens were important).
The authors argue that these methods have a "causal gap." Probing only shows correlation—just because a layer contains information about a feature doesn't mean the model actually uses that information to make its prediction. Conversely, attribution methods tell you "how much" a representation contributes but not "what" it is doing or how it composes with other parts of the model. This paper seeks a way to prove that a neural network is executing a specific, high-level algorithm.
Methodology: Causal Abstraction Analysis (CAA)
To bridge this gap, the authors introduce CAA, a three-stage process designed to verify if a model's internal logic matches a human-interpretable hypothesis:
- Formulate a Hypothesis: Define a high-level, interpretable causal model (like a logic tree) that might explain the network's behavior.
- Alignment Search: Map specific neural representations (e.g., a vector at a certain layer and token position) to variables in that high-level model.
- Interchange Interventions: This is the "stress test." Researchers take two different inputs (Base and Source). They run the model on the Base input but "plug in" the internal representation from the Source input at the aligned location. If the model's final output changes exactly as predicted by the high-level symbolic model, it provides evidence of a causal abstraction.
Experimental Setup: The MQNLI Benchmark
The primary benchmark used is the Multiply Quantified Natural Language Inference (MQNLI) dataset. This is a highly complex, synthetic NLI dataset involving nested quantifiers ("every," "some"), negation ("not"), and modifiers. It was built using a specific tree-structured "natural logic" model, making it a perfect "ground truth" to test if a neural network has learned underlying logic or is merely memorizing patterns. The authors specifically focus on the "hardest" split, where simple memorization fails.
Key Results and Compositionality in BERT
The study revealed a significant performance gap: on the hardest MQNLI task, a BERT-based model achieved ~88% accuracy, while a standard BiLSTM baseline struggled at ~46% (barely above the 33% random baseline for a 3-class task).
Using CAA, the authors found that BERT's success isn't magic; its internal states actually mirror the phrasal structure of the logic tree. Specifically, they identified a "clique" of examples where BERT's internal representation of the object noun phrase (NP_obj) functioned exactly like the symbolic variable in the logic tree. In contrast, the BiLSTM showed almost no evidence of causal abstraction (clique sizes near 0%), explaining its poor behavioral performance.
Discussion and Future Directions
While CAA provides a formal bridge between connectionist (neural) and symbolic (logic) AI, it faces challenges in scaling. Currently, the alignment search space is manually suggested, which is computationally expensive and relies on human intuition. Furthermore, even in BERT, the causal abstraction wasn't 100% perfect across all examples, suggesting the model uses a "fuzzy" or approximate version of the logic tree. Future work will focus on automated methods for discovering these alignments in "in-the-wild" language tasks where the correct causal model is unknown.
Summary updated