[Paper Review] Sentiment Classification with Word Attention based on Weakly Supervised Learning with a Convolutional Neural Network
This paper proposes CAM², a weakly supervised sentiment classification model using a convolutional neural network (CNN) with word attention via class activation mapping. By training on sentence-level sentiment labels only, the model identifies key sentiment-bearing words through learned attention maps, achieving over 87% accuracy on IMDB and 78% on WATCHA while effectively highlighting semantically significant terms in both positive and negative sentences.
In order to maximize the applicability of sentiment analysis results, it is necessary to not only classify the overall sentiment (positive/negative) of a given document but also to identify the main words that contribute to the classification. However, most datasets for sentiment analysis only have the sentiment label for each document or sentence. In other words, there is no information about which words play an important role in sentiment classification. In this paper, we propose a method for identifying key words discriminating positive and negative sentences by using a weakly supervised learning method based on a convolutional neural network (CNN). In our model, each word is represented as a continuous-valued vector and each sentence is represented as a matrix whose rows correspond to the word vector used in the sentence. Then, the CNN model is trained using these sentence matrices as inputs and the sentiment labels as the output. Once the CNN model is trained, we implement the word attention mechanism that identifies high-contributing words to classification results with a class activation map, using the weights from the fully connected layer at the end of the learned CNN model. In order to verify the proposed methodology, we evaluated the classification accuracy and inclusion rate of polarity words using two movie review datasets. Experimental result show that the proposed model can not only correctly classify the sentence polarity but also successfully identify the corresponding words with high polarity scores.
Motivation & Objective
- To address the lack of word-level sentiment annotations in most sentiment analysis datasets by enabling identification of key sentiment-contributing words without explicit word-level labels.
- To improve interpretability in sentiment classification by integrating attention mechanisms that highlight important words in a sentence.
- To develop a method that leverages sentence-level sentiment labels to train a CNN model capable of generating both sentiment predictions and attention maps for individual words.
- To evaluate the model's ability to detect domain-specific and general emotional expressions in both English and Korean movie reviews.
- To explore how different word embedding strategies affect both classification accuracy and attention map quality in weakly supervised settings.
Proposed method
- Each word is embedded into a continuous vector space using Word2Vec, GloVe, or FastText, forming a sentence matrix where each row corresponds to a word vector.
- The CNN processes the sentence matrix using multiple filters and applies zero-padding to treat all words equally regardless of position.
- Average pooling is applied to preserve spatial information and reduce dimensionality while maintaining feature representation.
- After training on sentence-level sentiment labels, the final fully connected layer's weights are used to generate a class activation map for word attention.
- The attention score for each word is computed as a weighted sum of feature maps, highlighting words most influential in the sentiment prediction.
- Multiple CNN variants (CNN-Rand, CNN-Non-Static, etc.) are evaluated, differing in whether word embeddings are fine-tuned during training.
Experimental results
Research questions
- RQ1Can a weakly supervised CNN model identify key sentiment-bearing words in a sentence using only sentence-level labels?
- RQ2How does the integration of multiple word embedding techniques affect the model's classification and attention performance?
- RQ3To what extent do different CNN architectures (e.g., with or without fine-tuning word embeddings) influence the quality of attention maps?
- RQ4How well can the model detect both general emotional expressions and domain-specific sentiment phrases in movie reviews?
- RQ5How do attention maps compare qualitatively in identifying semantically meaningful positive and negative expressions in both positive and negative sentences?
Key findings
- The CAM² model achieved a classification accuracy of over 87% on the IMDB dataset and 78% on the WATCHA dataset using only sentence-level sentiment labels.
- CNN models that fine-tune word embeddings during training (e.g., CNN-Rand, CNN-Non-Static) outperformed those that did not (e.g., CNN-Static) in terms of classification accuracy.
- The integration of multiple word embedding techniques improved performance on the IMDB dataset, indicating the benefit of diverse vector representations.
- The model successfully highlighted semantically meaningful expressions such as '감탄스럽다' (impressing) and '존경스럽다' (admirable) in positive sentences, demonstrating effective attention learning.
- In negative sentences, models like CNN-Static focused on general emotional terms, while others emphasized domain-specific phrases like '총체적 난국' (total crisis), showing sensitivity to linguistic context.
- Qualitative analysis confirmed that attention maps correctly identified strong emotional phrases, even when the overall sentiment was ambiguous or contradictory.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.