Introduction
In Aspect-Based Sentiment Analysis (ABSA), the objective is to identify the sentiment polarity toward specific entities within a sentence. For instance, in the review "The food was great, but the service was slow," a model must correctly assign a positive sentiment to food and a negative one to service.
Existing models primarily rely on attention mechanisms to identify words correlating with an aspect. However, these approaches often suffer from two main limitations: atomicity, where words are treated as individual units rather than cohesive "opinion spans" (e.g., "not quite up to par"), and structural rigidity, where manual constraints used to enforce span detection often conflict with natural linguistic dependencies.
The MCRF-SA Model
To address these challenges, we propose the Multi-CRF Structured Attention (MCRF-SA) model. This architecture naturally learns to identify variable-length opinion spans without manual constraints.
The model consists of several key layers:
- Contextualized Representation: A Bi-directional GRU captures the contextual meaning of words.
- Higher-Order Position Decay: A distance-based decay function effectively "mutes" words far from the target aspect, recognizing that relevant opinions are typically physically close to their targets.
- Multi-CRF Structured Attention: The core innovation involves using multiple linear-chain Conditional Random Fields (CRFs). Each CRF assigns latent labels to words to indicate membership in an opinion span. Marginal inference via the forward-backward algorithm provides structured attention weights.
- Aggregation: Representations from multiple CRFs are concatenated, allowing the model to capture diverse opinion features from different data sub-spaces.
Experimental Setup
The model was evaluated on four benchmark datasets from the SemEval workshops: 14Rest, 14Lap, 15Rest, and 16Rest. These datasets provide a gold standard for fine-grained sentiment analysis, containing thousands of manually labeled aspect-polarity pairs.
Results and Analysis
MCRF-SA consistently outperformed state-of-the-art baselines, including Graph Convolutional Network (GCN) and CNN-based models. On the 14Rest dataset, the model achieved 82.86% accuracy, a significant improvement over the previous GCN baseline of 80.86%.
Ablation studies confirmed that the CRF structure is critical; removing it caused the F1 score to drop by over 10 points on the Laptop dataset. Visual analysis of the attention heatmaps demonstrates that while standard models may focus on single words, MCRF-SA successfully identifies distinct, relevant spans—such as "real" and "n't" for the aspect "Indian food"—while ignoring irrelevant context.
Conclusion and Future Work
The MCRF-SA model demonstrates that treating sentiment extraction as a structural task rather than a simple weighting task significantly improves performance. While the model is highly effective, performance tends to plateau after four CRFs due to the limited size of current benchmark datasets. Future work may explore larger corpora to support more complex architectures or hybrid approaches that integrate standard semantic attention with structured span-based attention.
Summary updated