Interpretability at Scale: Identifying Causal Mechanisms in Alpaca

Zhengxuan Wu, Atticus Geiger, Christopher Potts, Noah D. Goodman · DOI

Abstract

As Large Language Models (LLMs) scale, understanding their internal decision-making processes becomes a critical safety and alignment requirement. While observational interpretability identifies active neurons, it often fails to establish causal links between neural representations and specific behaviors. This paper introduces Boundless DAS, a method that scales causal abstraction to models with billions of parameters. By applying this technique to the Alpaca (7B) model, we demonstrate that it solves numerical reasoning tasks by implementing a robust, human-interpretable "boundary check" algorithm. Our findings reveal that these causal mechanisms are highly localized and remarkably efficient, utilizing only a small fraction of the model's total neural representation space.

Introduction

The "black box" nature of LLMs poses significant risks as they are integrated into high-stakes environments. The gold standard for interpretability is Causal Abstraction, which verifies if a neural network's internal logic matches a human-understandable symbolic algorithm. However, previous methods like Distributed Alignment Search (DAS) were computationally prohibitive for large models because they required brute-force searches to identify the neural subspaces where specific concepts reside.

Boundless DAS addresses this scalability gap. By transforming the search for causal subspaces into a learning problem, researchers can now identify the internal circuitry of models like Alpaca (7B) using standard hardware. This transition from "toy" models to production-scale LLMs allows for a deeper understanding of how these systems process logic and reasoning.

Methodology: Boundless DAS

Boundless DAS improves upon traditional interpretability techniques through three primary innovations:

  1. Learnable Boundaries: Instead of brute-forcing the number of dimensions to analyze, the method introduces a "boundary mask" with learnable parameters. Using gradient descent and temperature annealing, the model automatically learns the exact dimensions of the hidden representation that encode a specific concept.
  2. Interchange Interventions: To prove causality, the researchers swap neural representations between two different inputs (e.g., an input that should result in "Yes" and one that should result in "No"). If the model’s output changes exactly as a symbolic algorithm would predict, a "faithful" causal alignment is confirmed.
  3. Computational Efficiency: By optimizing the search process, the complexity is reduced from $O(n \times m)$ to $O(m)$, where $n$ is the total number of dimensions. This allows the method to run efficiently on 7-billion parameter models using A100 GPUs.

Experimental Setup: The Price Tagging Game

The study evaluates Alpaca’s reasoning using the Price Tagging Game. In this task, the model is given an instruction: "Please say yes only if it costs between [X.XX] and [X.XX] dollars, otherwise no," followed by a test price.

To ensure the findings were not specific to a single prompt format, the researchers used 20,000 training examples and 1,000 test examples. They also introduced 20 different "irrelevant contexts" (e.g., nonsensical sentences about kiwis) generated by GPT-4 to test if the model's internal logic remained stable despite prompt clutter or "prompt injection" style distractions.

Key Insights and Results

Alpaca as an Algorithmic Thinker

The research confirms that Alpaca does not simply rely on statistical associations to solve the Price Tagging Game. Instead, it implements a specific causal model consisting of two boolean variables: checking if the price is greater than the lower bound and less than the upper bound.

Localization and Sparsity

The causal mechanisms were found to be highly localized, appearing most prominently around Layer 10. These mechanisms occur specifically at the token positions where the model has finished processing the query but has not yet generated a response. Furthermore, these variables only require 5–10% of the total representation space, suggesting that LLMs are incredibly sparse and possess significant redundant capacity.

High Fidelity and Robustness

The identified "Left and Right Boundary" model achieved an Interchange Intervention Accuracy (IIA) of 0.86 to 0.90, matching the model's actual task performance of 85%. The internal alignment remained robust even when the output format was changed (e.g., from "Yes/No" to "True/False"), indicating that the model uses the same internal "circuit" regardless of the surface-level prompt variations.

Limitations and Future Work

While Boundless DAS is a significant advancement, it remains hypothesis-driven. Researchers must propose a symbolic model first; the method verifies the existence of an algorithm rather than discovering one from scratch. Additionally, while the method scales to 7B parameters, applying it to the entire model simultaneously remains memory-intensive, currently requiring a token-by-token approach.

Future research will focus on "human-in-the-loop" systems where researchers can iteratively test and map the full circuitry of LLMs across more complex, abstract reasoning tasks. The tools developed for this study have been made available via the pyvene library to encourage further community research into large-scale mechanistic interpretability.

Summary updated

BibTeX
@inproceedings{wu2023interpretability,
  author = {Zhengxuan Wu and Atticus Geiger and Christopher Potts and Noah D. Goodman},
  title = {{Interpretability at Scale: Identifying Causal Mechanisms in Alpaca}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=nRfClnMhVX},
}
Figure