How recurrent networks implement contextual processing in sentiment analysis
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.
Code (1)
Tasks
NegationSentiment AnalysisSentiment ClassificationSimilar Papers 제목 키워드 기반
Modeling Inter-Aspect Dependencies for Aspect-Based Sentiment Analysis
Aspect-based Sentiment Analysis is a fine-grained task of sentiment classification for multiple aspects in a sentence. Present neural-based models exploit aspect and its contextual information in the sentence but largely…
Aspect-Based Sentiment AnalysisAspect-Based Sentiment Analysis (ABSA)ClassificationGeneral Classification+3Combination of Convolutional and Recurrent Neural Network for Sentiment Analysis of Short Texts
Sentiment analysis of short texts is challenging because of the limited contextual information they usually contain. In recent years, deep learning models such as convolutional neural networks (CNNs) and recurrent neural…
Information RetrievalSentiment AnalysisSpeech RecognitionWord EmbeddingsBiERU: Bidirectional Emotional Recurrent Unit for Conversational Sentiment Analysis
Sentiment analysis in conversations has gained increasing attention in recent years for the growing amount of applications it can serve, e.g., sentiment analysis, recommender systems, and human-robot interaction. The mai…
Emotion Recognition in ConversationSentenceSentiment ClassificationContextual Recurrent Units for Cloze-style Reading Comprehension
Recurrent Neural Networks (RNN) are known as powerful models for handling sequential data, and especially widely utilized in various natural language processing tasks. In this paper, we propose Contextual Recurrent Units…
Reading ComprehensionSentenceSentiment AnalysisSentiment ClassificationEffective Quantization Approaches for Recurrent Neural Networks
Deep learning, and in particular Recurrent Neural Networks (RNN) have shown superior accuracy in a large variety of tasks including machine translation, language understanding, and movie frame generation. However, these …
Machine TranslationQuantizationSentiment AnalysisTranslation