Abstract
Multi-Modal Relation Extraction (MMRE) aims to identify semantic relationships between entities by integrating textual and visual information. However, existing methods often struggle with fine-grained cross-modal alignment and the inclusion of irrelevant visual noise. This paper introduces DGF-PT (Dual-Gated Fusion with Prefix-Tuning), a framework that utilizes specialized prefixes to align modalities and a dual-gated mechanism to filter visual interference. Experimental results on the MNRE benchmark demonstrate that DGF-PT achieves a state-of-the-art F1 score of 84.47%, significantly outperforming previous graph-based and fusion-based models.
Introduction
The task of Multi-Modal Relation Extraction (MMRE) involves identifying the relationship between two named entities within a sentence while leveraging associated visual data. For instance, given the sentence "LeBron James plays for the Lakers" and an accompanying image, the model must predict the "Member_of" relation. While visual data can provide crucial context, it often introduces challenges. First, models must achieve fine-grained association, linking specific image regions (e.g., a team logo) to specific textual entities. Second, models must manage visual noise; irrelevant images or background elements can mislead a model into incorrect predictions.
To address these challenges, we present DGF-PT, a framework that combines prefix-tuning with a dual-gated fusion strategy to effectively bridge the gap between text and vision while filtering out non-essential information.
Methodology
The DGF-PT framework is built upon three core components designed to optimize information flow and cross-modal alignment.
1. Prompt-based Autoregressive Encoder
DGF-PT utilizes a pre-trained GPT-2 model as its backbone. To adapt the model for MMRE without the high cost of full fine-tuning, the authors introduce two types of trainable "prefixes":
- Object-Oriented Prefix: This prefix facilitates inter-modal relevance, helping the model understand how specific objects within an image relate to the textual content.
- Entity-Oriented Prefix: This prefix focuses on intra-modal correlations, specifically how the target entity pair relates to the surrounding text.
2. Dual-Gated Fusion Module
The fusion module acts as a sophisticated filter to mitigate the impact of visual noise. It employs a two-tiered gating mechanism:
- Local Gate: This gate weighs the importance of individual objects detected within the image.
- Global Gate: This gate evaluates the relevance of the entire image to the textual sentence.
To facilitate fusion in a shared semantic space, the model uses Oscar (a cross-modal pre-trained model) to generate descriptive text for the images, allowing the gates to operate on comparable representations.
3. Generative Decoder with Constraints
Unlike traditional models that treat relation extraction as a classification task, DGF-PT uses a generative decoder to "write" the relation. To ensure accuracy, the authors implement entity type restrictions. For example, if the entities are identified as a "Person" and an "Organization," the decoder is constrained to relations compatible with those types, effectively filtering out impossible relations like "peer" or "sibling."
Optimization
The model is optimized using a joint objective function. This includes a Distribution-Consistency Constraint (using KL divergence) to prevent the representation from drifting too far during the fusion process, and a Self-Identification Enhancement loss to improve the model's ability to distinguish between similar samples.
Experimental Setup
The researchers evaluated DGF-PT on the MNRE (Multi-modal Relation Extraction) dataset, which consists of data crawled from Twitter. The dataset includes 15,484 samples and 9,201 images, covering 23 distinct relation categories. The data is split into 12,247 samples for training, 1,624 for development, and 1,614 for testing.
Results and Discussion
DGF-PT achieved a new state-of-the-art (SOTA) performance on the MNRE benchmark, reaching an F1 score of 84.47%. This represents a significant improvement over the previous SOTA, HVPNet (81.85%), and a massive gain over earlier graph-based models like MEGA (66.41%).
Key Insights
- Input Sequencing: Ablation studies revealed that the order of data input significantly impacts the autoregressive encoder. The optimal sequence was found to be Objects → Image → Text, suggesting that providing visual context before the text allows the model to interpret the sentence through a visual lens.
- The Power of Prefixes: Prefix-tuning proved to be an efficient "bridge," allowing the model to learn task-specific associations while preserving the broad knowledge of the underlying transformer.
- Robustness in Low-Data Regimes: DGF-PT demonstrated strong few-shot performance, maintaining its lead over competitors even when training data was significantly restricted.
Conclusion
DGF-PT advances the field of MMRE by demonstrating that effective visual filtering and structured prefix-tuning are essential for multi-modal alignment. By treating the image as a contextual lens rather than just additional data, the model avoids the pitfalls of visual noise.
Despite its success, the model faces limitations. It currently assumes a single relation per entity pair and is restricted to text and image modalities. Furthermore, the high computational cost (425 GPU hours on Tesla V100s) highlights the need for more efficient training methods in future iterations. Future research will explore extending this framework to video and audio data, as well as addressing overlapping relations in complex sentences.
Summary updated