Introduction
Named Entity Recognition (NER) is a fundamental task in natural language processing, involving the identification and classification of entities such as people, organizations, and locations within text. In the context of social media, Multimodal NER (MNER) has emerged to leverage accompanying images as additional context. However, social media data is notoriously noisy; approximately 56-60% of tweet images are irrelevant to the text. Standard MNER models often struggle with this, as their attention mechanisms may "hallucinate" relevance, leading to errors. RpBERT (Relation Propagation BERT) addresses this by introducing a mechanism to explicitly model and propagate the relationship between text and images.
Methodology
RpBERT treats MNER as a multitask learning problem, integrating Text-Image Relation Classification (TRC) with the core NER task. The architecture, illustrated below, employs a ResNet-152 backbone for visual feature extraction and a BERT-based transformer for multimodal fusion.
The core innovation is the Relation Propagation Gating mechanism. The model first predicts a relevance score ($r$) for the text-image pair. This score acts as a gate:
- Soft Gating: Scales visual features continuously using a softmax function.
- Hard Gating: Employs Gumbel-Softmax for discrete "keep or discard" decisions, maintaining differentiability for end-to-end training.
If an image is deemed irrelevant ($r \approx 0$), its features are suppressed before they can interfere with the text processing layers. The final sequence tagging is performed by a biLSTM-CRF layer.
Experimental Results
The authors evaluated RpBERT on three benchmark datasets: the TRC dataset (Bloomberg LP), the Fudan University MNER dataset, and the Snap Research MNER dataset. RpBERT achieved state-of-the-art (SOTA) performance across all metrics:
- Fudan MNER: 74.9% F1 score (outperforming UM-Transformer's 73.4%).
- Snap MNER: 87.8% F1 score.
- TRC Task: 88.1% F1 score, a 7.1% improvement over previous baselines.
Ablation studies highlighted the importance of the relation propagation mechanism. Removing the "Rp" component led to a 3.1% drop in F1 score on the Fudan dataset for cases where images were irrelevant, proving the model's effectiveness in noise suppression.
Visual Attention Dynamics
A significant insight from this work is the relationship between the predicted relevance score ($r$) and the intensity of visual attention ($S_{TV}$). In traditional models, visual attention is often distributed randomly. In RpBERT, the relevance score effectively guides the model's focus.
As shown in the scatter plot, a high relevance score correlates with a higher concentration of visual attention. When the image is relevant, the model focuses intensely on visual clues; when irrelevant, the attention map flattens, preventing visual noise from degrading the NER performance.
Conclusion
RpBERT introduces a robust approach to MNER by acknowledging that not all visual data is useful. By incorporating a relation propagation mechanism, the model learns to intelligently filter visual noise, leading to significant performance gains on real-world, noisy social media datasets. Future work may explore propagating these relations through deeper layers of the transformer architecture to further refine multimodal integration.
Summary updated