Can Interpretation Predict Behavior on Unseen Data?
Preprint
Abstract
Interpretability research often aims to predict how a model will respond to targeted interventions on specific mechanisms. However, it rarely predicts how a model will respond to unseen input data. This paper explores the promises and challenges of interpretability as a tool for predicting out-of-distribution (OOD) model behavior. Specifically, we investigate the correspondence between attention patterns and OOD generalization in hundreds of Transformer models independently trained on a synthetic classification task. These models exhibit several distinct systematic generalization rules OOD, forming a diverse population for correlational analysis. In this setting, we find that simple observational tools from interpretability can predict OOD performance. In particular, when in-distribution attention exhibits hierarchical patterns, the model is likely to generalize hierarchically on OOD data -- even when the rule's implementation does not rely on these hierarchical patterns, according to ablation tests. Our findings offer a proof-of-concept to motivate further interpretability work on predicting unseen model behavior.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- The Impact of Depth on Compositional Generalization in Transformer Language Models2024
- Late Breaking Results: Weight Decay is ALL You Need for Neural Network Sparsification2023
- Grokking of Hierarchical Structure in Vanilla Transformers2023
- Extracting Latent Steering Vectors from Pretrained Language Models2022
- Does Syntax Need to Grow on Trees? Sources of Hierarchical Inductive Bias in Sequence-to-Sequence NetworksTransactions of the Association for Computational Linguistics, 2020
- How Can Self-Attention Networks Recognize Dyck-n Languages?2020
- BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performance2020
- LSTMs Compose—and Learn—Bottom-Up2020
- Uniform Random Generation of Balanced Parenthesis StringsACM Transactions on Programming Languages and Systems, 1980
- Mathematics, Matter and Method1979