Introduction
Target-oriented sentiment classification (TSC) aims to determine the sentiment polarity toward a specific opinion target within a sentence. For instance, in the sentence "The food was great, but the service was dreadful," a model must distinguish the positive sentiment for "food" from the negative sentiment for "service."
Traditional state-of-the-art models often rely on Recurrent Neural Networks (RNNs) paired with attention mechanisms. However, these models frequently suffer from "attention noise," where irrelevant words are highlighted simply due to semantic similarity to the target. Furthermore, standard Convolutional Neural Networks (CNNs) often fail to correctly associate sentiments with their respective targets in multi-target sentences. To address these challenges, this paper introduces Transformation Networks (TNet), which replace noisy attention mechanisms with a novel target-specific transformation layer.
The TNet Architecture
The TNet model is composed of three primary components designed to capture contextual information while maintaining a sharp focus on the specific target.
- Bi-directional LSTM Layer: The process begins by passing word embeddings through a BiLSTM to extract basic contextual features for every word in the sentence.
- Context-Preserving Transformation (CPT) Layers: This core innovation utilizes a Target-Specific Transformation (TST). Instead of a global attention score, TNet dynamically generates a tailor-made representation of the target for every word. To prevent the loss of original context during this transformation, two mechanisms are proposed: TNet-LF (Lossless Forwarding, using residual-like connections) and TNet-AS (Adaptive Scaling, employing a gating mechanism).
- Position-Aware Convolutional Layer: The top layer is a CNN that extracts informative features. A key feature here is the proximity strategy: words closer to the target are weighted more heavily. This allows the CNN to focus on relevant modifiers while ignoring distant, potentially distracting opinion words.
Experimental Evaluation
The authors evaluated TNet on three benchmark datasets: LAPTOP (SemEval 2014), REST (restaurant reviews), and TWITTER. These datasets are particularly challenging due to the prevalence of multi-target sentences and, in the case of Twitter, informal language.
Key Results and Ablation Study
TNet consistently outperformed previous state-of-the-art models, such as RAM and MemNet, across all benchmarks.
As shown in the results table, TNet-AS achieved an accuracy of 76.54% on the Laptop dataset and 80.69% on Restaurant reviews. Ablation studies confirmed that both the TST component and the position-aware scaling were critical to this success; removing either led to a significant performance degradation. Qualitative analysis further demonstrated that TNet is significantly more effective at correctly assigning sentiments in complex, multi-target scenarios compared to traditional attention-based models.
Conclusion
TNet represents a significant advancement in target-oriented sentiment classification by moving beyond the limitations of standard attention mechanisms. By integrating dynamic target representations with position-aware feature extraction, it achieves superior robustness, especially in informal or multi-target contexts. While the model excels at identifying explicit sentiment, future work will focus on addressing implicit semantics—where sentiment is implied without clear negative or positive n-grams—perhaps through deeper semantic parsing or external knowledge integration.
Summary updated