Twin Studies of Factors in OOD Generalization

Victoria R Li, Jenny Kaufmann, David Alvarez-Melis, Naomi SaphraSciForDL @ NeurIPS 2024

Abstract

Studies of model behavior often neglect the role of random variation in out-of-distribution (OOD) behavior. To enable research on the interplay between random factors and training conditions in determining model behavior, we describe a simple ambiguous setting where models can learn either a counting-based or hierarchical classification rule. We find LSTMs consistently learn the hierarchical rule, while transformer models demonstrate diverse generalization rules across different hyperparameter and random seed settings. We analyze this model population across and at the end of training, using natural variation to draw conclusions about determinants of model performance and generalization. In particular, we quantify the impact of particular hyperparameter choices, finding that different model depths favor different rules and that regularization drives multimodally distributed generalization capabilities. We also release the weights of the 270 transformer models we trained spanning a wide range of OOD behavior, which can serve as a sandbox for theoretical and interpretability investigations.
BibTeX
@inproceedings{li2024twin,
  author = {Victoria R Li and Jenny Kaufmann and David Alvarez-Melis and Naomi Saphra},
  title = {{Twin Studies of Factors in OOD Generalization}},
  booktitle = {SciForDL @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=mOP9QOavMR},
}

Loading related content...

Figure