Target-Oriented Multimodal Sentiment Classification (TMSC) is a complex task that requires identifying sentiment toward specific entities in posts containing both text and images. Traditional approaches often rely on generic image captions, which frequently fail to capture fine-grained emotional cues or embedded text. This paper, presented at EMNLP 2023, introduces Visual Elements Mining as Prompts (VEMP), a novel framework that extracts deep visual features—specifically text symbols embedded in images (TSEI) and target-aware adjective-noun pairs (TANPs)—to construct descriptive textual prompts. These prompts are then used for instruction-tuning a large language model, bridging the semantic gap between visual content and emotional sentiment. VEMP achieves state-of-the-art performance on benchmark datasets, significantly outperforming existing methods and large-scale models like GPT-4.
Introduction
Target-Oriented Multimodal Sentiment Classification (TMSC) aims to determine the sentiment expressed toward a specific target entity in a multimodal context, such as a tweet with an accompanying image. A primary challenge in this field is the "semantic gap": images are rich in information, but standard computer vision techniques often produce neutral or coarse descriptions that overlook emotional nuances.
As shown in Figure 3, a standard caption might describe a meme neutrally as "a man in a suit and tie giving a speech." However, this ignores the embedded text "because it's a mess," which is the critical indicator of negative sentiment. VEMP addresses this by explicitly mining these fine-grained visual elements to provide the model with the necessary context.
Methodology
The VEMP framework consists of three specialized visual mining modules followed by an instruction-learning stage.
- TSEI Extraction (Text Symbols Embedded in the Image): Using Optical Character Recognition (OCR), the system identifies text within the image. To ensure high-quality input, a "Maximum Area Strategy" focuses on the most prominent text, which is then refined through spelling correction and a RoBERTa-based grammar filter.
- TANPs Extraction (Target-aware Adjective-Noun Pairs): To capture emotional context (e.g., "angry man"), the model extracts adjective-noun pairs. These are aligned with the specific target entity using CLIP, ensuring that only relevant visual descriptors are included in the prompt.
- Image Scene Captioning: A general overview of the scene is generated using BLIP-2 to provide baseline context.
- Instruction Learning with Prompts: All mined elements—the original sentence, the target, TSEI, TANPs, and the scene caption—are integrated into a natural language instruction prompt. This prompt is used to fine-tune Tk-Instruct, a model pre-trained for instruction following, effectively treating multimodal fusion as a translation and reasoning task.
Datasets and Evaluation
The model was rigorously evaluated on the Twitter-2015 and Twitter-2017 benchmarks. The authors also introduced Twitter-TSEI, a specialized subset of samples where images contain embedded text, to demonstrate the specific utility of the TSEI module. This dataset highlights a critical finding: over 50% of images in these social media datasets contain embedded text, which often carries the primary emotional weight of the post.
Key Results
VEMP established new state-of-the-art (SOTA) benchmarks on both main datasets:
- Twitter-2015: 78.88% Accuracy and 75.09% Macro-F1.
- Twitter-2017: 73.01% Accuracy and 72.42% Macro-F1.
By explicitly mining embedded text and aligning adjectives with targets, VEMP significantly outperformed baseline models and even surpassed GPT-4 in zero-shot and few-shot settings. This highlights the value of domain-specific multimodal instruction tuning over general-purpose large-scale models.
Conclusion
The VEMP framework demonstrates that deep visual mining—specifically focusing on embedded text and target-aligned adjectives—is essential for accurate multimodal sentiment analysis. By transforming visual cues into rich textual prompts, VEMP leverages the reasoning capabilities of instruction-tuned language models to bridge the gap between what is seen and what is felt. Future work may explore applying this "mining-as-prompts" approach to other multimodal tasks such as visual question answering or intent detection.
Summary updated