Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systems
Not on the map. Why?
Abstract (arXiv)
Recurrent neural networks (RNNs) are powerful models for processing time-series data, but it remains challenging to understand how they function. Improving this understanding is of substantial interest to both the machine learning and neuroscience communities. The framework of reverse engineering a trained RNN by linearizing around its fixed points has provided insight, but the approach has significant challenges. These include difficulty choosing which fixed point to expand around when studying RNN dynamics and error accumulation when reconstructing the nonlinear dynamics with the linearized dynamics. We present a new model that overcomes these limitations by co-training an RNN with a novel switching linear dynamical system (SLDS) formulation. A first-order Taylor series expansion of the co-trained RNN and an auxiliary function trained to pick out the RNN's fixed points govern the SLDS dynamics. The results are a trained SLDS variant that closely approximates the RNN, an auxiliary function that can produce a fixed point for each point in state-space, and a trained nonlinear RNN whose dynamics have been regularized such that its first-order terms perform the computation, if possible. This model removes the post-training fixed point optimization and allows us to unambiguously study the learned dynamics of the SLDS at any point in state-space. It also generalizes SLDS models to continuous manifolds of switching points while sharing parameters across switches. We validate the utility of the model on two synthetic tasks relevant to previous work reverse engineering RNNs. We then show that our model can be used as a drop-in in more complex architectures, such as LFADS, and apply this LFADS hybrid to analyze single-trial spiking activity from the motor system of a non-human primate.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 13 of its 60 references that are in the map. First posted on arXiv 1 Nov 2021.
Builds on
13 of 60 references.
References · 13
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,806
- 2019Universality and individuality in neural dynamics across large populations of recurrent networkscited by 61
- 2018Emergence of grid-like representations by training recurrent neural networks to perform spatial localizationcited by 52
- 2016Convolutional Recurrent Neural Networks for Music Classificationcited by 49
- 2019Identifying nonlinear dynamical systems via generative recurrent neural networks with applications to fMRIcited by 39
- 2019Reverse engineering recurrent networks for sentiment classification reveals line attractor dynamicscited by 38
- 2019Learning interpretable continuous-time models of latent stochastic dynamical systemscited by 29
- 2018Tree-Structured Recurrent Switching Linear Dynamical Systems for Multi-Scale Modelingcited by 27
- 2019Gated recurrent units viewed through the lens of continuous time dynamical systemscited by 18
- 2020How recurrent networks implement contextual processing in sentiment analysiscited by 11
- 2020Variational Deep Learning for the Identification and Reconstruction of Chaotic and Stochastic Dynamical Systems from Noisy and Partial Observationscited by 8
1 more
Built on by
Citing papers per year: 2022: 2; 2023: 4; 2024: 4; 2025: 3; 2026: 4.
17 papers.
Sort:
- 2023Generalized Teacher Forcing for Learning Chaotic Dynamicscited by 55
- 2024Towards Scalable and Stable Parallelization of Nonlinear RNNscited by 38
- 2023Generative learning for nonlinear dynamicscited by 22
- 2023Bifurcations and loss jumps in RNN trainingcited by 17
- 2024Modeling Latent Neural Dynamics with Gaussian Process Switching Linear Dynamical Systemscited by 11
- 2024Self-supervised contrastive learning performs non-linear system identificationcited by 9
- 2022Expressive architectures enhance interpretability of dynamics-based neural population modelscited by 6
- 2022Beyond accuracy: generalization properties of bio-plausible temporal credit assignment rulescited by 3
- 2024DFORM: Diffeomorphic vector field alignment for assessing dynamics across learned modelscited by 3
- 2026Continuous-Time Piecewise-Linear Recurrent Neural Networkscited by 3
- 2023On the Dynamics of Learning Time-Aware Behavior with Recurrent Neural Networkscited by 1
- 2025Modeling Neural Activity with Conditionally Linear Dynamical Systemscited by 1
5 more
- 2025RNNs perform task computations by dynamically warping neural representationscited by 1
- 2025Mechanistic Interpretability of RNNs emulating Hidden Markov Modelscited by 0
- 2026Integrative neurocybernetic modeling in the era of large-scale neurosciencecited by 0
- 2026Finite-Lag Operator Geometry of Recurrent Representationscited by 0
- 2026From Redundancy to Minimality: Fixed-Point-Guided Hierarchical Reduction of Learned Piecewise-Linear Dynamicscited by 0
- 2026From Redundancy to Minimality: Fixed-Point-Guided Hierarchical Reduction of Learned Piecewise-Linear Dynamics1 Oct 2026
- 2026Finite-Lag Operator Geometry of Recurrent Representations2 Jul 2026
- 2026Integrative neurocybernetic modeling in the era of large-scale neuroscience26 Apr 2026
- 2026Continuous-Time Piecewise-Linear Recurrent Neural Networks17 Feb 2026
- 2025RNNs perform task computations by dynamically warping neural representations3 Dec 2025
- 2025Mechanistic Interpretability of RNNs emulating Hidden Markov Models29 Oct 2025
- 2025Modeling Neural Activity with Conditionally Linear Dynamical Systems25 Feb 2025
- 2024Self-supervised contrastive learning performs non-linear system identification18 Oct 2024
- 2024Towards Scalable and Stable Parallelization of Nonlinear RNNs26 Jul 2024
- 2024Modeling Latent Neural Dynamics with Gaussian Process Switching Linear Dynamical Systems19 Jul 2024
- 2024DFORM: Diffeomorphic vector field alignment for assessing dynamics across learned models15 Feb 2024
- 2023Generative learning for nonlinear dynamics7 Nov 2023
5 more
- 2023Bifurcations and loss jumps in RNN training26 Oct 2023
- 2023On the Dynamics of Learning Time-Aware Behavior with Recurrent Neural Networks12 Jun 2023
- 2023Generalized Teacher Forcing for Learning Chaotic Dynamics7 Jun 2023
- 2022Expressive architectures enhance interpretability of dynamics-based neural population models7 Dec 2022
- 2022Beyond accuracy: generalization properties of bio-plausible temporal credit assignment rules2 Jun 2022
- 2023Generalized Teacher Forcing for Learning Chaotic Dynamicscited by 55
- 2024Towards Scalable and Stable Parallelization of Nonlinear RNNscited by 38
- 2023Generative learning for nonlinear dynamicscited by 22
- 2023Bifurcations and loss jumps in RNN trainingcited by 17
- 2024Modeling Latent Neural Dynamics with Gaussian Process Switching Linear Dynamical Systemscited by 11
- 2024Self-supervised contrastive learning performs non-linear system identificationcited by 9
- 2022Expressive architectures enhance interpretability of dynamics-based neural population modelscited by 6
- 2022Beyond accuracy: generalization properties of bio-plausible temporal credit assignment rulescited by 3
- 2024DFORM: Diffeomorphic vector field alignment for assessing dynamics across learned modelscited by 3
- 2026Continuous-Time Piecewise-Linear Recurrent Neural Networkscited by 3
- 2023On the Dynamics of Learning Time-Aware Behavior with Recurrent Neural Networkscited by 1
- 2025Modeling Neural Activity with Conditionally Linear Dynamical Systemscited by 1
12 most cited of 17 All 17 (JSON)
- 2026From Redundancy to Minimality: Fixed-Point-Guided Hierarchical Reduction of Learned Piecewise-Linear Dynamics1 Oct 2026
- 2026Finite-Lag Operator Geometry of Recurrent Representations2 Jul 2026
- 2026Integrative neurocybernetic modeling in the era of large-scale neuroscience26 Apr 2026
- 2026Continuous-Time Piecewise-Linear Recurrent Neural Networks17 Feb 2026
- 2025RNNs perform task computations by dynamically warping neural representations3 Dec 2025
- 2025Mechanistic Interpretability of RNNs emulating Hidden Markov Models29 Oct 2025
- 2025Modeling Neural Activity with Conditionally Linear Dynamical Systems25 Feb 2025
- 2024Self-supervised contrastive learning performs non-linear system identification18 Oct 2024
- 2024Towards Scalable and Stable Parallelization of Nonlinear RNNs26 Jul 2024
- 2024Modeling Latent Neural Dynamics with Gaussian Process Switching Linear Dynamical Systems19 Jul 2024
- 2024DFORM: Diffeomorphic vector field alignment for assessing dynamics across learned models15 Feb 2024
- 2023Generative learning for nonlinear dynamics7 Nov 2023
12 newest of 17 All 17 (JSON)