Abstract
Multi-modal Named Entity Recognition (NER) and Relation Extraction (RE) tasks aim to leverage visual information to improve the understanding of textual data. However, existing methods often rely on generic visual features that fail to capture the specific knowledge required to identify unique entities. We present MoRe (Multi-modal Retrieval), a framework that bridges this "knowledge gap" by retrieving entity-specific information from external knowledge bases like Wikipedia. By employing a dual-modality retrieval strategy and a Mixture of Experts (MoE) fusion mechanism, MoRe achieves state-of-the-art performance across five benchmarks while significantly reducing computational overhead compared to traditional object-detection-based methods.
1. Introduction
In multi-modal NLP, the integration of images is intended to provide context that text alone might lack. For tasks like NER (identifying entities) and RE (identifying relationships), current state-of-the-art models typically utilize object tags or generic captions. A significant limitation of this approach is that standard visual extractors are often trained on datasets like ImageNet, which prioritize common nouns (e.g., "dog," "person") over specific named entities.
This creates a "knowledge gap." For instance, a model might identify a "person" in an image but fail to recognize that the person is a specific historical figure mentioned in the text. MoRe addresses this by shifting the paradigm from feature extraction to external knowledge retrieval, fetching relevant Wikipedia context based on both textual and visual queries.
2. The MoRe Framework
MoRe is designed to augment input sequences with external knowledge through a three-stage process: retrieval, specialized modeling, and dynamic fusion.
2.1 Multi-modal Retrieval Module
The framework utilizes two distinct retrieval paths to gather context:
- Textual Retrieval: The input text serves as a query to retrieve the most relevant paragraphs from Wikipedia using the BM25 algorithm.
- Image-based Retrieval: To capture visual context that text might miss, the model uses CLIP to encode the input image. It then performs a k-nearest neighbor (k-NN) search via Faiss against a database of 4 million Wikipedia images. The system retrieves the introductory text of the Wikipedia articles associated with the most visually similar images.
2.2 Dual Task Models and MoE Fusion
The retrieved textual and visual contexts are processed by two separate underlying models based on XLM-RoBERTa. This separation allows each "expert" model to specialize in the nuances of its respective modality. To produce a final prediction, MoRe employs a Mixture of Experts (MoE) gating module. This module learns to dynamically weight the predictions from the text-retrieval expert and the image-retrieval expert, as the utility of each modality varies depending on the specific query.
3. Experimental Results
3.1 Performance Benchmarks
The authors evaluated MoRe on five diverse datasets, including social media (Twitter-15, Twitter-17, SNAP, MNRE) and news (WikiDiverse). MoRe achieved new state-of-the-art (SOTA) results across all benchmarks:
- NER: On the WikiDiverse dataset, MoRe achieved an F1 score of 79.33, a significant improvement over the previous SOTA (76.87).
- RE: On the MNRE dataset, the model reached an F1 of 68.60, surpassing the previous best of 66.89.
3.2 Efficiency and Modality Complementarity
Beyond accuracy, MoRe offers substantial efficiency gains. By replacing heavy object-detection pipelines (such as VinVL) with CLIP-based retrieval, the framework is approximately 9x faster at processing images.
Ablation studies also revealed a clear complementarity between modalities. Image-based retrieval proved most effective for identifying People and Organizations, while textual retrieval excelled at identifying Locations and abstract entities like Festivals or Creative Works.
4. Discussion and Limitations
While MoRe represents a significant advancement, it remains dependent on the quality and coverage of its knowledge corpus (Wikipedia). If an entity is not present in the database, the retrieval process may introduce noise. Furthermore, prepending retrieved text to the input increases sequence length, which can lead to higher inference latency compared to vanilla models.
Future work may involve knowledge distillation to compress the insights of the retrieval-augmented model into smaller, more efficient student models, or the development of domain-specific corpora for specialized applications.
5. Conclusion
MoRe demonstrates that retrieving external, entity-specific knowledge is a more effective strategy for multi-modal NER and RE than relying on generic visual feature extraction. By successfully fusing textual and visual retrieval through an MoE architecture, MoRe sets a new standard for performance and efficiency in multi-modal understanding.
Summary updated