Introduction
Targeted Aspect-Based Sentiment Analysis (TABSA) is a granular natural language processing task that involves identifying the sentiment polarity of specific aspects related to particular targets within a sentence. For instance, in the sentence "The food at the restaurant was great, but the service was slow," a TABSA model must distinguish between the positive sentiment for the "food" aspect and the negative sentiment for the "service" aspect.
Traditional models often struggle with three primary challenges:
- Target Complexity: Multi-word targets (e.g., "West London") are often averaged, losing the nuance of informative words.
- Attention Mechanisms: Standard attention often fails to explicitly model the human-like two-step process of identifying a target and then searching for relevant sentiment clues.
- Contextual Gaps: Models limited to training data lack the "commonsense" knowledge humans use to link concepts like "rotten fish" to poor "food quality."
Proposed Methodology: The Sentic LSTM
To address these hurdles, this paper introduces the Sentic LSTM, a novel architecture that integrates affective commonsense knowledge directly into the recurrent neural network's internal gating mechanisms.
Hierarchical Attention Mechanism
The model employs a two-level attention strategy to refine its focus:
- Target-Level Attention: This mechanism weighs individual words within a target expression to generate a more accurate target representation ($v_t$).
- Sentence-Level Attention: Using the target representation and a specific aspect (e.g., "safety") as a query, the model scans the sentence to identify sentiment-bearing words relevant to that specific target-aspect pair.
Integrating Commonsense Knowledge
The core innovation lies in the Sentic LSTM cell. Unlike traditional approaches that treat external knowledge as a simple input feature, the Sentic LSTM uses SenticNet—a knowledge base of 50,000 concepts—to guide its internal gates. A "knowledge recall gate" allows the model to use affective context to decide which information to retain or discard at each time step. By leveraging AffectiveSpace, a vector space mapping emotional similarity, the model can understand relationships between concepts (e.g., "joy" and "win lottery") even if they do not co-occur in the training set.
Experimental Evaluation
The model was evaluated on two benchmarks: SentiHood (neighborhood reviews) and a filtered subset of SemEval-2015.
Quantitative Results
The Sentic LSTM with hierarchical attention significantly outperformed state-of-the-art baselines. On the SentiHood dataset, it achieved a Strict Accuracy of 67.43%, compared to 50.83% for the standard TDLSTM. Sentiment polarity accuracy reached 89.32%, demonstrating the efficacy of integrating commonsense knowledge.
Qualitative Analysis
Visualization of attention weights confirms that the model successfully shifts its focus based on the aspect being queried. As shown in the heatmaps below, the model prioritizes different words for the same sentence depending on whether it is analyzing "Location" or "Price."
Conclusion
This research demonstrates that external commonsense knowledge is most effective when used as a filter to control information flow within a deep learning model. By combining hierarchical attention with the Sentic LSTM, the proposed approach provides a more robust and interpretable solution for complex sentiment analysis tasks. Future work will explore multi-target interactions and methods to handle masked targets in standardized datasets.
Summary updated