Lune

ICML2020Top-tier venue

How recurrent networks implement contextual processing in sentiment analysis

Niru Maheswaranathan, David Sussillo

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Extracting computational mechanisms from neural data using low-rank RNNs cites Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Auxiliary Tasks and Exploration Enable ObjectGoal NavigationJoel Ye, Dhruv Batra, Abhishek Das, Erik WijmansICCV 2021 · 137 citations
  2. Extracting computational mechanisms from neural data using low-rank RNNsAdrian Valente, Jonathan W. Pillow, Srdjan OstojicNeurIPS 2022 · 71 citations
  3. Meta-trained agents implement Bayes-optimal agentsVladimir Mikulik, Grégoire Delétang, Tom McGrath, Tim Genewein et al.NeurIPS 2020 · 56 citations
  4. Reverse engineering recurrent neural networks with Jacobian switching linear dynamical systemsJimmy T. H. Smith, Scott W. Linderman, David SussilloNeurIPS 2021 · 44 citations
  5. Understanding How Encoder-Decoder Architectures AttendKyle Aitken, Vinay V. Ramasesh, Yuan Cao, Niru MaheswaranathanNeurIPS 2021 · 32 citations

Related papers

  1. Approximating Stacked and Bidirectional Recurrent Architectures with the Delayed Recurrent Neural NetworkJavier Turek, Shailee Jain, Vy A. Vo, Mihai Capota et al.ICML 2020 · 13 citations
  2. Word-Level Contextual Sentiment Analysis with InterpretabilityTomoki Ito, Kota Tsubouchi, Hiroki Sakaji, Tatsuo Yamashita et al.AAAI 2020 · 17 citations
  3. Modeling Hierarchical Structures with Continuous Recursive Neural NetworksJishnu Ray Chowdhury, Cornelia CarageaICML 2021 · 18 citations
  4. Recursive Neural Networks with Bottlenecks Diagnose (Non-)CompositionalityVerna Dankers, Ivan TitovEMNLP Findings 2022 · 1 citation
  5. Replicate, Walk, and Stop on Syntax: An Effective Neural Network Model for Aspect-Level Sentiment ClassificationYaowei Zheng, Richong Zhang, Samuel Mensah, Yongyi MaoAAAI 2020 · 48 citations
Dusk over the sea between two cliffs drawn in fine vertical lines