Prompt Me Up: Unleashing the Power of Alignments for Multimodal Entity and Relation Extraction

Xuming Hu, Junzhe Chen, Aiwei Liu, Shiao Meng, Lijie Wen, Philip S. Yu

Abstract

Extracting entities and their relationships from social media requires a nuanced understanding of both textual and visual contexts. Current approaches to Multimodal Named Entity Recognition (MNER) and Multimodal Relation Extraction (MRE) are often hindered by data scarcity and the "modality gap"—the difficulty in aligning specific visual objects with their corresponding textual mentions. This paper introduces PROMU (Prompt-guided Multimodal Alignment), a pre-training framework that utilizes prompt-guided soft pseudo-labels to bridge the gap between vision and language. By leveraging large-scale unlabeled data, PROMU achieves a new state-of-the-art (SOTA), outperforming existing methods by an average of 3.41% in F1 score.

Introduction

In the era of social media, information is rarely conveyed through text alone. Understanding a post often requires synthesizing information from both captions and images. However, automating this synthesis through Multimodal Named Entity Recognition (MNER) and Relation Extraction (MRE) faces two primary challenges. First, while unlabeled image-caption pairs are abundant, human-annotated datasets for fine-grained entity and relation extraction are scarce. Second, models often struggle to map visual features (e.g., a specific trophy) to semantic concepts (e.g., "The Oscars"). When a model fails to correctly identify an entity type due to this modality gap, the subsequent extraction of relationships between entities typically fails as well.

The PROMU Framework

To address these challenges, the researchers developed PROMU, a pre-training strategy designed to align visual objects with textual concepts using unlabeled data. The framework is built upon three core innovations:

1. Prompt-Guided Alignment

Rather than relying solely on feature fusion, PROMU uses natural language prompts as a semantic bridge. For example, a prompt like "This is an image of [Entity]" is used to anchor visual features to a space the text encoder already understands. The model utilizes off-the-shelf tools, such as YOLO for object detection and spaCy for text analysis, to generate initial "teacher" guesses for alignment.

2. Soft Pseudo-Labels

Recognizing that automated tools like YOLO and spaCy are imperfect, PROMU avoids "hard" labels that force the model to commit to a potentially incorrect category during pre-training. Instead, it employs "soft" pseudo-labels—probability distributions that allow for error-smoothing. This flexibility prevents the model from over-fitting to the mistakes of the automated teachers, allowing it to refine its understanding during the fine-tuning phase.

3. Dual-Alignment Tasks

The model undergoes pre-training via two specialized tasks:

  • Entity-Object Alignment: This task matches specific cropped objects within an image to corresponding entity prompts.
  • Relation-Image Alignment: This task matches the broader context of the entire image to potential relationship prompts (e.g., "The image shows the relation of [Spouse]").

Experimental Setup and Results

The researchers pre-trained PROMU on the NewsCLIPping dataset, a large-scale collection of unlabeled image-caption pairs, using four distinct contrastive losses. The model was then fine-tuned and evaluated on standard benchmarks, including Twitter-2015, Twitter-2017, and the MNRE (Multimodal Relation Extraction) dataset.

Performance Gains

PROMU established a new state-of-the-art, achieving an average 3.41% F1 improvement across the three datasets. Notably, the method proved to be "orthogonal" to existing fusion techniques; when added to existing SOTA architectures like MMIB, it provided a performance boost of up to 5.47%.

Visual Reasoning and the "Long Tail"

The model demonstrated superior visual reasoning capabilities. In case studies, PROMU correctly identified "Oscar" as a MISC (miscellaneous) entity by successfully aligning the word with the visual of a trophy, whereas baseline models incorrectly categorized it as a PERSON. Furthermore, PROMU showed a massive 25.5% boost in identifying "tail relations"—rare relationships that are typically difficult for models to learn due to a lack of training examples.

Comparison with Large Language Models

When compared against Visual ChatGPT, PROMU significantly outperformed the general-purpose AI, scoring approximately 40 points higher in F1. This suggests that while Large Language Models (LLMs) are versatile, specialized multimodal alignment remains essential for high-precision information extraction tasks.

Conclusion and Future Work

PROMU demonstrates that prompt-guided alignment and soft pseudo-labeling can effectively mitigate the data scarcity and modality gap issues in multimodal extraction. While the framework is highly effective, the authors note that performance can vary based on prompt engineering (e.g., active vs. passive voice). Future research will focus on automating optimal prompt selection and exploring in-context learning to further enhance the model's adaptability without the need for extensive fine-tuning.

Summary updated

BibTeX
@inproceedings{hu2023prompt,
  author = {Xuming Hu and Junzhe Chen and Aiwei Liu and Shiao Meng and Lijie Wen and Philip S. Yu},
  title = {{Prompt Me Up: Unleashing the Power of Alignments for Multimodal Entity and Relation Extraction}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3611899},
}
Figure