HyperDAS: Towards Automating Mechanistic Interpretability with Hypernetworks
Jiuding Sun, Jing Huang, Sidharth Baskaran, Karel D'Oosterlinck, Christopher Potts, Michael Sklar, Atticus Geiger
TL;DR
HyperDAS automates mechanistic interpretability by using a transformer-based hypernetwork to locate where a target concept is realized in a model's residual stream and to identify a low-rank subspace of features mediating that concept. It couples concept encoding, dynamic token-position selection, and a Householder-based subspace rotation to implement distributed interchange interventions, trained with a RAVEL-specific loss plus a sparsity penalty. On Llama3-8B, HyperDAS achieves state-of-the-art disentanglement on the RAVEL benchmark while providing careful discussion of fidelity, potential pitfalls, and computational trade-offs relative to prior approaches like MDAS. The work advances scalable, end-to-end automated interpretability for large language models, and its analysis via Householder vectors offers insight into attribute-specific subspaces, informing future robustness and reliability considerations in mechanistic explanations.
Abstract
Mechanistic interpretability has made great strides in identifying neural network features (e.g., directions in hidden activation space) that mediate concepts(e.g., the birth year of a person) and enable predictable manipulation. Distributed alignment search (DAS) leverages supervision from counterfactual data to learn concept features within hidden states, but DAS assumes we can afford to conduct a brute force search over potential feature locations. To address this, we present HyperDAS, a transformer-based hypernetwork architecture that (1) automatically locates the token-positions of the residual stream that a concept is realized in and (2) constructs features of those residual stream vectors for the concept. In experiments with Llama3-8B, HyperDAS achieves state-of-the-art performance on the RAVEL benchmark for disentangling concepts in hidden states. In addition, we review the design decisions we made to mitigate the concern that HyperDAS (like all powerful interpretabilty methods) might inject new information into the target model rather than faithfully interpreting it.
