How recurrent networks implement contextual processing in sentiment analysis
Not on the map. Why?
Abstract (arXiv)
Neural networks have a remarkable capacity for contextual processing--using recent or nearby inputs to modify processing of current input. For example, in natural language, contextual processing is necessary to correctly interpret negation (e.g. phrases such as "not bad"). However, our ability to understand how networks process context is limited. Here, we propose general methods for reverse engineering recurrent neural networks (RNNs) to identify and elucidate contextual processing. We apply these methods to understand RNNs trained on sentiment classification. This analysis reveals inputs that induce contextual effects, quantifies the strength and timescale of these effects, and identifies sets of these inputs with similar properties. Additionally, we analyze contextual effects related to differential processing of the beginning and end of documents. Using the insights learned from the RNNs we improve baseline Bag-of-Words models with simple extensions that incorporate contextual modification, recovering greater than 90% of the RNN's performance increase over the baseline. This work yields a new understanding of how RNNs process contextual information, and provides tools that should provide similar insight more broadly.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 1; 2023: 4; 2024: 0; 2025: 1.
11 papers.
- 2021Auxiliary Tasks and Exploration Enable ObjectNavcited by 73
- 2021Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systemscited by 17
- 2023Bifurcations and loss jumps in RNN trainingcited by 17
- 2021An Operator Theoretic Approach for Analyzing Sequence Neural Networkscited by 12
- 2022Implicit N-grams Induced by Recurrencecited by 4
- 2023A Review of Hybrid and Ensemble in Deep Learning for Natural Language Processingcited by 3
- 2021Understanding How Encoder-Decoder Architectures Attendcited by 2
- 2021Category-orthogonal object features guide information processing in recurrent neural networks trained for object categorizationcited by 2
- 2023From Data-Fitting to Discovery: Interpreting the Neural Dynamics of Motor Control through Reinforcement Learningcited by 1
- 2023A Population-Level Analysis of Neural Dynamics in Robust Legged Robotscited by 0
- 2025Hyper Hawkes Processes: Interpretable Models of Marked Temporal Point Processescited by 0
- 2025Hyper Hawkes Processes: Interpretable Models of Marked Temporal Point Processes2 Nov 2025
- 2023A Review of Hybrid and Ensemble in Deep Learning for Natural Language Processing9 Dec 2023
- 2023Bifurcations and loss jumps in RNN training26 Oct 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
- 2022Implicit N-grams Induced by Recurrence5 May 2022
- 2021Category-orthogonal object features guide information processing in recurrent neural networks trained for object categorization15 Nov 2021
- 2021Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systems1 Nov 2021
- 2021Understanding How Encoder-Decoder Architectures Attend28 Oct 2021
- 2021Auxiliary Tasks and Exploration Enable ObjectNav8 Apr 2021
- 2021An Operator Theoretic Approach for Analyzing Sequence Neural Networks15 Feb 2021