The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks

Published: 21 Sept 2023, Last Modified: 03 Jan 2024NeurIPS 2023 oralEveryoneRevisionsBibTeX
Keywords: mechanistic interpretability, algorithmic phase transitions, arithmetic learning, neural network, transformer, ensemble
TL;DR: We find that neural networks do not always rediscover known algorithms (Clock), but also discover new ones (Pizza), with modular addition as a prototypical example.
Abstract: Do neural networks, trained on well-understood algorithmic tasks, reliably rediscover known algorithms? Several recent studies, on tasks ranging from group operations to in-context linear regression, have suggested that the answer is yes. Using modular addition as a prototypical problem, we show that algorithm discovery in neural networks is sometimes more complex: small changes to model hyperparameters and initializations can induce discovery of qualitatively different algorithms from a fixed training set, and even learning of multiple different solutions in parallel. In modular addition, we specifically show that models learn a known *Clock* algorithm, a previously undescribed, less intuitive, but comprehensible procedure we term the *Pizza* algorithm, and a variety of even more complex procedures. Our results show that even simple learning problems can admit a surprising diversity of solutions, motivating the development of new tools for mechanistically characterizing the behavior of neural networks across the algorithmic phase space.
Supplementary Material: zip
Submission Number: 8064
Loading