Improving Multimodal Classification of Social Media Posts by Leveraging Image-Text Auxiliary Tasks
Danae Sánchez Villegas, Daniel Preoţiuc-Pietro, Nikolaos Aletras
TL;DR
This paper tackles the challenge of cross-modal semantics in social media by fine-tuning multimodal models with two auxiliary losses: Image-Text Contrastive (ITC) and Image-Text Matching (ITM). ITC pulls image-text representations of the same post closer, while ITM reinforces semantic alignment between image and text, especially when their relationship is implicit or ambiguous, and both are incorporated into a joint loss $l_{C+M} = \lambda_1 l_{CE} + \lambda_2 l_{ITC} + \lambda_3 l_{ITM}$. The authors conduct an extensive evaluation across five diverse English datasets and four base multimodal models, showing improvements up to 2.6 F1 points and providing insights into when each auxiliary task is most beneficial. The approach offers a practical, low-cost enhancement to multimodal social media classification without additional pre-training, with implications for sentiment, hate-speech, and sarcasm detection in real-world applications. Limitations include language scope and increased training time, with future work pointing to multilingual extension and broader model compatibility.
Abstract
Effectively leveraging multimodal information from social media posts is essential to various downstream tasks such as sentiment analysis, sarcasm detection or hate speech classification. Jointly modeling text and images is challenging because cross-modal semantics might be hidden or the relation between image and text is weak. However, prior work on multimodal classification of social media posts has not yet addressed these challenges. In this work, we present an extensive study on the effectiveness of using two auxiliary losses jointly with the main task during fine-tuning multimodal models. First, Image-Text Contrastive (ITC) is designed to minimize the distance between image-text representations within a post, thereby effectively bridging the gap between posts where the image plays an important role in conveying the post's meaning. Second, Image-Text Matching (ITM) enhances the model's ability to understand the semantic relationship between images and text, thus improving its capacity to handle ambiguous or loosely related modalities. We combine these objectives with five multimodal models across five diverse social media datasets, demonstrating consistent improvements of up to 2.6 points F1. Our comprehensive analysis shows the specific scenarios where each auxiliary task is most effective.
