Similarity Guided Multimodal Fusion Transformer for Semantic Location Prediction in Social Media

Zhizhen Zhang, Ning Wang, Haojie Li, Zhihui WangarXiv 2024

Abstract

Semantic location prediction aims to derive meaningful location insights from multimodal social media posts, offering a more contextual understanding of daily activities than using GPS coordinates. This task faces significant challenges due to the noise and modality heterogeneity in "text-image" posts. Existing methods are generally constrained by inadequate feature representations and modal interaction, struggling to effectively reduce noise and modality heterogeneity. To address these challenges, we propose a Similarity-Guided Multimodal Fusion Transformer (SG-MFT) for predicting the semantic locations of users from their multimodal posts. First, we incorporate high-quality text and image representations by utilizing a pre-trained large vision-language model. Then, we devise a Similarity-Guided Interaction Module (SIM) to alleviate modality heterogeneity and noise interference by incorporating both coarse-grained and fine-grained similarity guidance for improving modality interactions. Specifically, we propose a novel similarity-aware feature interpolation attention mechanism at the coarse-grained level, leveraging modality-wise similarity to mitigate heterogeneity and reduce noise within each modality. At the fine-grained level, we utilize a similarity-aware feed-forward block and element-wise similarity to further address the issue of modality heterogeneity. Finally, building upon pre-processed features with minimal noise and modal interference, we devise a Similarity-aware Fusion Module (SFM) to fuse two modalities with a cross-attention mechanism. Comprehensive experimental results clearly demonstrate the superior performance of our proposed method.

Introduction: The Challenge of Semantic Location

While GPS coordinates provide precise spatial data, they lack the semantic context necessary to understand human behavior. Semantic location prediction identifies the meaning of a location—such as "Work," "Home," or "Restaurant"—from social media content. However, social media data is inherently noisy and heterogeneous. A user might post a photo of a keyboard with text about a song, or a selfie while mentioning "working late." These inconsistencies, where one or both modalities may be irrelevant to the actual location, pose a significant challenge for traditional fusion models.

Examples of modality heterogeneity and noise in social media posts. The model must navigate cases where only text, only image, or both modalities provide relevant location cues.

Methodology: The SG-MFT Framework

The proposed Similarity-Guided Multimodal Fusion Transformer (SG-MFT) addresses these challenges through a three-stage process focused on intelligent interaction and denoising.

1. High-Quality Feature Extraction

The model leverages Chinese-CLIP as its backbone. By using a pre-trained vision-language model, SG-MFT starts with robust embeddings that already capture shared semantic spaces between text and images, providing a stronger foundation than training from scratch.

2. Similarity-Guided Interaction Module (SIM)

The core innovation of this work is the SIM, which uses similarity scores to dynamically guide the interaction between modalities at two levels:

  • Coarse-grained Interaction: The model calculates a global similarity score between the text and image. This score is used in a similarity-aware feature interpolation attention mechanism. When similarity is high, the model prioritizes cross-modal learning; when low, it relies more on self-attention within each modality to filter out noise.
  • Fine-grained Interaction: By examining specific tokens and image patches, the model uses element-wise similarity to inform a specialized feed-forward block. This allows the model to learn task-specific nuances, such as linking the word "client" to visual cues of an office environment.

3. Similarity-aware Fusion Module (SFM)

Once the features are refined and aligned, the SFM employs a cross-attention mechanism to integrate the modalities. This ensures that the final representation captures the most complementary information from both sources before the final classification.

Experimental Results

The model was evaluated on the Multimedia Weibo Social Media Dataset, consisting of 17,000 text-image pairs across seven categories (Home, School, Work, Shopping Center, Cinema, Travel, and Restaurant).

SG-MFT achieved a state-of-the-art accuracy of 87.29%, outperforming competitive multimodal models like UniS-MMC and BridgeTower. Ablation studies confirmed that the Similarity-Guided Interaction Module is critical to this success; removing the similarity-aware logic led to a significant drop in performance. Furthermore, visualization of the feature space showed that SG-MFT produces much more distinct and well-separated clusters for different semantic locations compared to baseline methods.

Conclusion

SG-MFT demonstrates that similarity guidance is an effective strategy for handling the noise and heterogeneity of social media data. By using similarity as a dynamic filter rather than just an alignment target, the model intelligently balances information from different modalities. Future work will explore extending this framework to dynamic content like video and incorporating real-time environmental context.

Summary updated

BibTeX
@misc{zhang2024similarity,
  author = {Zhizhen Zhang and Ning Wang and Haojie Li and Zhihui Wang},
  title = {{Similarity Guided Multimodal Fusion Transformer for Semantic Location Prediction in Social Media}},
  year = {2024},
  eprint = {2405.05760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.05760},
}
Figure