Introduction
Target-oriented Sentiment Classification (TSC) involves determining the sentiment polarity (positive, negative, or neutral) for specific entities or "targets" within a sentence. While text-based models have seen significant advancement, they often struggle with the informal and ambiguous nature of social media content. This paper introduces TomBERT (Target-oriented multimodal BERT), an architecture designed to leverage both text and associated images to improve TSC performance, particularly in complex scenarios with multiple targets.
Methods
The authors propose TomBERT, which extends the BERT architecture with a novel target-sensitive attention mechanism. The model consists of three primary components: an intra-modality textual encoder, a Target-Image (TI) matching layer, and a multimodal encoder.
The Target-Image (TI) Matching Layer is the central innovation. It uses ResNet-152 to extract features from 49 image regions. The hidden states of target words from a BERT encoder serve as queries in a multi-head attention mechanism, allowing the model to "attend" to image regions most relevant to the specific target. Finally, a multimodal encoder captures interactions between these aligned visual and textual features.
Datasets
The model was evaluated on both purely textual and multimodal datasets:
- Purely Textual: LAPTOP, REST (SemEval-2014), and TWITTER-14.
- Multimodal (TMSC): TWITTER-15 and TWITTER-17. The authors manually annotated these datasets with target-level sentiment polarities to create a robust benchmark for multimodal analysis.
Key Results
TomBERT consistently outperformed both text-only and standard multimodal baselines. On the TWITTER-15 dataset, TomBERT achieved an accuracy of 77.15%, a significant improvement over the 74.15% achieved by a text-only BERT model.
Ablation studies confirmed that the TI matching layer is essential; models utilizing this layer significantly outperformed those using simple global image features. Qualitative analysis showed that TomBERT succeeds where text-only models fail by correctly identifying visual context (e.g., a concert poster or a smiling face) associated with a specific target.
Key Insights and Conclusion
A major finding is that fine-tuning a standard BERT model provides a surprisingly strong baseline for TSC. However, for multimodal tasks, simple concatenation of image and text (as in a naive mBERT) can introduce noise. TomBERT’s strength lies in its ability to align specific words with relevant image regions, acting as a spatial "tie-breaker" in sentences with multiple targets.
While effective, the model's complexity and the relatively small scale of current multimodal datasets remain challenges. Future work may explore more sophisticated inter-modality dynamics and the inclusion of additional data types like audio or video.
Summary updated