Reverse engineering recurrent networks for sentiment classification reveals line attractor dynamics
Not on the map. Why?
Abstract (arXiv)
Recurrent neural networks (RNNs) are a widely used tool for modeling sequential data, yet they are often treated as inscrutable black boxes. Given a trained recurrent network, we would like to reverse engineer it--to obtain a quantitative, interpretable description of how it solves a particular task. Even for simple tasks, a detailed understanding of how recurrent networks work, or a prescription for how to develop such an understanding, remains elusive. In this work, we use tools from dynamical systems analysis to reverse engineer recurrent networks trained to perform sentiment classification, a foundational natural language processing task. Given a trained network, we find fixed points of the recurrent dynamics and linearize the nonlinear system around these fixed points. Despite their theoretical capacity to implement complex, high-dimensional computations, we find that trained networks converge to highly interpretable, low-dimensional representations. In particular, the topological structure of the fixed points and corresponding linearized dynamics reveal an approximate line attractor within the RNN, which we can use to quantitatively understand how the RNN solves the sentiment analysis task. Finally, we find this mechanism present across RNN architectures (including LSTMs, GRUs, and vanilla RNNs) trained on multiple datasets, suggesting that our findings are not unique to a particular architecture or dataset. Overall, these results demonstrate that surprisingly universal and human interpretable computations can arise across a range of recurrent networks.
Key facts. Cited by 39 papers in the map (data through 14 Oct 2026). First posted on arXiv 25 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 11; 2022: 4; 2023: 8; 2024: 2; 2025: 8; 2026: 6.
39 papers.
Sort:
By area:
- 2021Auxiliary Tasks and Exploration Enable ObjectNavcited by 74
- 2021On the difficulty of learning chaotic dynamics with RNNscited by 67
- 2021Representation learning for neural population activity with Neural Data Transformerscited by 50
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuitcited by 49
- 2023Deep networks for system identification: a Surveycited by 37
- 2022Tractable Dendritic RNNs for Reconstructing Nonlinear Dynamical Systemscited by 36
- 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Modelscited by 23
- 2021Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systemscited by 18
- 2023Bifurcations and loss jumps in RNN trainingcited by 17
- 2021An Operator Theoretic Approach for Analyzing Sequence Neural Networkscited by 12
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
- 2023Analyzing Populations of Neural Networks via Dynamical Model Embeddingcited by 7
27 more
- 2022Expressive architectures enhance interpretability of dynamics-based neural population modelscited by 6
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNscited by 5
- 2022Implicit N-grams Induced by Recurrencecited by 4
- 2021Warming up recurrent neural networks to maximise reachable multistability greatly improves learningcited by 3
- 2021Understanding Spending Behavior: Recurrent Neural Network Explanation and Interpretationcited by 3
- 2024Neural timescales from a computational perspectivecited by 3
- 2021Emergent behavior and neural dynamics in artificial agents tracking turbulent plumescited by 2
- 2021Understanding How Encoder-Decoder Architectures Attendcited by 2
- 2023Trainability, Expressivity and Interpretability in Gated Neural ODEscited by 2
- 2025Learning Dynamics of RNNs in Closed-Loop Environmentscited by 2
- 2021Slow manifolds in recurrent networks encode working memory efficiently and robustlycited by 1
- 2022Reinforcement Learning with Intrinsic Affinity for Personalized Prosperity Managementcited by 1
- 2023From Data-Fitting to Discovery: Interpreting the Neural Dynamics of Motor Control through Reinforcement Learningcited by 1
- 2023Emergence of Adaptive Circadian Rhythms in Deep Reinforcement Learningcited by 1
- 2024Interpretation of the Intent Detection Problem as Dynamics in a Low-dimensional Spacecited by 1
- 2025A ghost mechanism: An analytical model of abrupt learning in recurrent networkscited by 1
- 2025Finding separatrices of dynamical flows with Deep Koopman Eigenfunctionscited by 1
- 2026Learning reveals invisible structure in low-rank RNNscited by 1
- 2026When Recursive Models Finish Computingcited by 1
- 2021Learning and Generalization in RNNscited by 0
- 2023A Population-Level Analysis of Neural Dynamics in Robust Legged Robotscited by 0
- 2025Mechanistic Interpretability of RNNs emulating Hidden Markov Modelscited by 0
- 2025Random matrix theory of sparse neuronal networks with heterogeneous timescalescited by 0
- 2026The Geometry of Thought: How Scale Restructures Reasoning In Large Language Modelscited by 0
- 2026Interpretability of the Intent Detection Problem: A New Approachcited by 0
- 2026Auditing Finite-Lag Statistics of Recurrent Representationscited by 0
- 2026Riding the Fixed-Point Curve: Image Classification in the Continuous Thought Machinecited by 0
- 2026Riding the Fixed-Point Curve: Image Classification in the Continuous Thought Machine13 Oct 2026
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Auditing Finite-Lag Statistics of Recurrent Representations2 Jul 2026
- 2026Learning reveals invisible structure in low-rank RNNs5 May 2026
- 2026Interpretability of the Intent Detection Problem: A New Approach23 Jan 2026
- 2026The Geometry of Thought: How Scale Restructures Reasoning In Large Language Models19 Jan 2026
- 2025Random matrix theory of sparse neuronal networks with heterogeneous timescales14 Dec 2025
- 2025Mechanistic Interpretability of RNNs emulating Hidden Markov Models29 Oct 2025
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNs9 Jun 2025
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuit3 Jun 2025
- 2025Finding separatrices of dynamical flows with Deep Koopman Eigenfunctions21 May 2025
- 2025Learning Dynamics of RNNs in Closed-Loop Environments19 May 2025
27 more
- 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language models17 Feb 2025
- 2025A ghost mechanism: An analytical model of abrupt learning in recurrent networks4 Jan 2025
- 2024Neural timescales from a computational perspective4 Sep 2024
- 2024Interpretation of the Intent Detection Problem as Dynamics in a Low-dimensional Space5 Aug 2024
- 2023Bifurcations and loss jumps in RNN training26 Oct 2023
- 2023Emergence of Adaptive Circadian Rhythms in Deep Reinforcement Learning22 Jul 2023
- 2023Trainability, Expressivity and Interpretability in Gated Neural ODEs12 Jul 2023
- 2023A Population-Level Analysis of Neural Dynamics in Robust Legged Robots27 Jun 2023
- 2023From Data-Fitting to Discovery: Interpreting the Neural Dynamics of Motor Control through Reinforcement Learning18 May 2023
- 2023Analyzing Populations of Neural Networks via Dynamical Model Embedding27 Feb 2023
- 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Models24 Feb 2023
- 2023Deep networks for system identification: a Survey30 Jan 2023
- 2022Expressive architectures enhance interpretability of dynamics-based neural population models7 Dec 2022
- 2022Tractable Dendritic RNNs for Reconstructing Nonlinear Dynamical Systems6 Jul 2022
- 2022Implicit N-grams Induced by Recurrence5 May 2022
- 2022Reinforcement Learning with Intrinsic Affinity for Personalized Prosperity Management20 Apr 2022
- 2021Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systems1 Nov 2021
- 2021Understanding How Encoder-Decoder Architectures Attend28 Oct 2021
- 2021On the difficulty of learning chaotic dynamics with RNNs14 Oct 2021
- 2021Emergent behavior and neural dynamics in artificial agents tracking turbulent plumes25 Sep 2021
- 2021Understanding Spending Behavior: Recurrent Neural Network Explanation and Interpretation24 Sep 2021
- 2021Representation learning for neural population activity with Neural Data Transformers2 Aug 2021
- 2021Warming up recurrent neural networks to maximise reachable multistability greatly improves learning2 Jun 2021
- 2021Learning and Generalization in RNNs31 May 2021
- 2021Auxiliary Tasks and Exploration Enable ObjectNav8 Apr 2021
- 2021An Operator Theoretic Approach for Analyzing Sequence Neural Networks15 Feb 2021
- 2021Slow manifolds in recurrent networks encode working memory efficiently and robustly8 Jan 2021
- 2021Auxiliary Tasks and Exploration Enable ObjectNavcited by 74
- 2021On the difficulty of learning chaotic dynamics with RNNscited by 67
- 2021Representation learning for neural population activity with Neural Data Transformerscited by 50
- 2023Deep networks for system identification: a Surveycited by 37
- 2022Tractable Dendritic RNNs for Reconstructing Nonlinear Dynamical Systemscited by 36
- 2021Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systemscited by 18
- 2023Bifurcations and loss jumps in RNN trainingcited by 17
- 2021An Operator Theoretic Approach for Analyzing Sequence Neural Networkscited by 12
- 2023Analyzing Populations of Neural Networks via Dynamical Model Embeddingcited by 7
- 2022Expressive architectures enhance interpretability of dynamics-based neural population modelscited by 6
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNscited by 5
- 2022Implicit N-grams Induced by Recurrencecited by 4
12 most cited of 34 All 34 (JSON)
- 2026Riding the Fixed-Point Curve: Image Classification in the Continuous Thought Machine13 Oct 2026
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Auditing Finite-Lag Statistics of Recurrent Representations2 Jul 2026
- 2026Learning reveals invisible structure in low-rank RNNs5 May 2026
- 2026Interpretability of the Intent Detection Problem: A New Approach23 Jan 2026
- 2025Random matrix theory of sparse neuronal networks with heterogeneous timescales14 Dec 2025
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNs9 Jun 2025
- 2025Finding separatrices of dynamical flows with Deep Koopman Eigenfunctions21 May 2025
- 2025Learning Dynamics of RNNs in Closed-Loop Environments19 May 2025
- 2025A ghost mechanism: An analytical model of abrupt learning in recurrent networks4 Jan 2025
- 2024Neural timescales from a computational perspective4 Sep 2024
- 2024Interpretation of the Intent Detection Problem as Dynamics in a Low-dimensional Space5 Aug 2024
12 newest of 34 All 34 (JSON)