Episodic Memory Theory for the Mechanistic Interpretation of Recurrent Neural Networks
Preprint
Abstract
Understanding the intricate operations of Recurrent Neural Networks (RNNs) mechanistically is pivotal for advancing their capabilities and applications. In this pursuit, we propose the Episodic Memory Theory (EMT), illustrating that RNNs can be conceptualized as discrete-time analogs of the recently proposed General Sequential Episodic Memory Model. To substantiate EMT, we introduce a novel set of algorithmic tasks tailored to probe the variable binding behavior in RNNs. Utilizing the EMT, we formulate a mathematically rigorous circuit that facilitates variable binding in these tasks. Our empirical investigations reveal that trained RNNs consistently converge to the variable binding circuit, thus indicating universality in the dynamics of RNNs. Building on these findings, we devise an algorithm to define a privileged basis, which reveals hidden neurons instrumental in the temporal storage and composition of variables, a mechanism vital for the successful generalization in these tasks. We show that the privileged basis enhances the interpretability of the learned parameters and hidden states of RNNs. Our work represents a step toward demystifying the internal mechanisms of RNNs and, for computational neuroscience, serves to bridge the gap between artificial neural networks and neural memory models.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Long sequence Hopfield memory*Journal of Statistical Mechanics: Theory and Experiment, 2024
- Analysis of Explainers of Black Box Deep Neural Networks for Computer Vision: A SurveyMachine Learning and Knowledge Extraction, 2021
- The Alignment Problem: Machine Learning and Human ValuesPerspectives on Science and Christian Faith, 2021
- Zoom In: An Introduction to CircuitsDistill, 2020
- Analyzing and interpreting neural networks for NLP: A report on the first BlackboxNLP workshopNatural Language Engineering, 2019
- The Control Problem. Excerpts from Superintelligence: Paths, Dangers, Strategies2016
- Spectral analysis of nonlinear flowsJournal of Fluid Mechanics, 2009
- QUASI-PERIODIC RESPONSE AND STABILITY ANALYSIS FOR NON-LINEAR SYSTEMS: A GENERAL APPROACHJournal of Sound and Vibration, 1996
- Associative neural network model for the generation of temporal patterns. Theory and application to central pattern generatorsBiophysical Journal, 1988
- Sequential state generation by model neural networks.Proceedings of the National Academy of Sciences of the United States of America, 1986