mlsanityData to 14 Oct 2026

Reverse engineering recurrent networks for sentiment classification reveals line attractor dynamics

arXiv 1906.10720 ↗First posted 25 Jun 2019cs.LG stat.MLcited by 39

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 11; 2022: 4; 2023: 8; 2024: 2; 2025: 8; 2026: 6.

39 papers.

Sort:

By area:

  1. 2021Auxiliary Tasks and Exploration Enable ObjectNavcited by 74
  2. 2021On the difficulty of learning chaotic dynamics with RNNscited by 67
  3. 2021Representation learning for neural population activity with Neural Data Transformerscited by 50
  4. 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuitcited by 49
  5. 2023Deep networks for system identification: a Surveycited by 37
  6. 2022Tractable Dendritic RNNs for Reconstructing Nonlinear Dynamical Systemscited by 36
  7. 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Modelscited by 23
  8. 2021Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systemscited by 18
  9. 2023Bifurcations and loss jumps in RNN trainingcited by 17
  10. 2021An Operator Theoretic Approach for Analyzing Sequence Neural Networkscited by 12
  11. 2025Transformer Dynamics: A neuroscientific approach to interpretability of large language modelscited by 11
  12. 2023Analyzing Populations of Neural Networks via Dynamical Model Embeddingcited by 7
27 more
  1. 2022Expressive architectures enhance interpretability of dynamics-based neural population modelscited by 6
  2. 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNscited by 5
  3. 2022Implicit N-grams Induced by Recurrencecited by 4
  4. 2021Warming up recurrent neural networks to maximise reachable multistability greatly improves learningcited by 3
  5. 2021Understanding Spending Behavior: Recurrent Neural Network Explanation and Interpretationcited by 3
  6. 2024Neural timescales from a computational perspectivecited by 3
  7. 2021Emergent behavior and neural dynamics in artificial agents tracking turbulent plumescited by 2
  8. 2021Understanding How Encoder-Decoder Architectures Attendcited by 2
  9. 2023Trainability, Expressivity and Interpretability in Gated Neural ODEscited by 2
  10. 2025Learning Dynamics of RNNs in Closed-Loop Environmentscited by 2
  11. 2021Slow manifolds in recurrent networks encode working memory efficiently and robustlycited by 1
  12. 2022Reinforcement Learning with Intrinsic Affinity for Personalized Prosperity Managementcited by 1
  13. 2023From Data-Fitting to Discovery: Interpreting the Neural Dynamics of Motor Control through Reinforcement Learningcited by 1
  14. 2023Emergence of Adaptive Circadian Rhythms in Deep Reinforcement Learningcited by 1
  15. 2024Interpretation of the Intent Detection Problem as Dynamics in a Low-dimensional Spacecited by 1
  16. 2025A ghost mechanism: An analytical model of abrupt learning in recurrent networkscited by 1
  17. 2025Finding separatrices of dynamical flows with Deep Koopman Eigenfunctionscited by 1
  18. 2026Learning reveals invisible structure in low-rank RNNscited by 1
  19. 2026When Recursive Models Finish Computingcited by 1
  20. 2021Learning and Generalization in RNNscited by 0
  21. 2023A Population-Level Analysis of Neural Dynamics in Robust Legged Robotscited by 0
  22. 2025Mechanistic Interpretability of RNNs emulating Hidden Markov Modelscited by 0
  23. 2025Random matrix theory of sparse neuronal networks with heterogeneous timescalescited by 0
  24. 2026The Geometry of Thought: How Scale Restructures Reasoning In Large Language Modelscited by 0
  25. 2026Interpretability of the Intent Detection Problem: A New Approachcited by 0
  26. 2026Auditing Finite-Lag Statistics of Recurrent Representationscited by 0
  27. 2026Riding the Fixed-Point Curve: Image Classification in the Continuous Thought Machinecited by 0