Aiding Intra-Text Representations with Visual Context for Multimodal Named Entity Recognition

Omer Arshad, Ignazio Gallo, Shah Nawaz, Alessandro CalefatiarXiv 2019

TL;DR

This paper introduces an end-to-end neural architecture for Multimodal Named Entity Recognition (MNER) that uses visual context to enhance relationships between words. By extending multi-dimensional self-attention to incorporate image regions, the model effectively disambiguates noisy social media text, achieving new state-of-the-art results on the standard Twitter MNER benchmark.

What Problem Does This Paper Address?

Named Entity Recognition (NER)—the task of identifying and categorizing entities like people, locations, and organizations—is a cornerstone of NLP. However, social media platforms like Twitter present a "noisy" challenge: text is often short, informal, and riddled with slang or typos.

Crucially, text alone is often ambiguous. For example, the word "Apple" in the phrase "Apple valley Tags gymnastics" might be flagged as an Organization by a text-only model. However, an accompanying photo of a gymnastics podium makes it clear that "Apple Valley" is a Location. The authors aim to bridge this gap by using visual information to ground and disambiguate textual entities.

Fig. 1: Two NER multimodal examples show how some entities in the text can be correctly tagged in combination with visual information. Looking only at the text, the word Apple is ambiguous in the text description on the left, because it can be interpreted as Location (LOC) or as Organization (ORG).

Methods

The authors propose a novel architecture that jointly learns intra-modal (word-to-word) and cross-modal (word-to-image) dependencies. The pipeline consists of several key stages:

  1. Hybrid Embeddings: To handle the informal nature of social media, the model combines character-level features (learned via a 2D CNN) with pre-trained word embeddings (FastText).
  2. Multi-Dimensional Self-Attention: Unlike standard attention that produces a single scalar score, this model uses multi-dimensional attention to compute feature-wise scores. This allows the model to capture complex dependencies between different dimensions of the word embeddings.
  3. Attention Guided Visual Attention: This is the core innovation. The model uses the alignment score between two words to query the image. It extracts regional image features (using a pre-trained VGG-19) and calculates which parts of the image are relevant to the relationship between those specific words.
  4. Gated Multimodal Fusion: A gating mechanism dynamically decides how much information to take from the textual alignment vs. the visual context vector.
  5. CRF Layer: Finally, the fused representations are passed through a Conditional Random Field (CRF) layer to predict the sequence of entity tags, accounting for the dependencies between labels (e.g., an "I-PER" tag should follow a "B-PER" tag).
Fig. 3: End-to-end Multi Dimensional Attention based model improving intra-modal attention using visual context for mul- timodal NER.

Datasets

The model was evaluated on the Twitter multimodal NER dataset (introduced by Zhang et al., 2018).

  • Content: 8,257 tweets containing text and images.
  • Entities: Four types: Person (PER), Location (LOC), Organization (ORG), and Miscellaneous (Misc).
  • Split: 4,000 samples for training, 1,000 for validation, and 3,257 for testing.

Key Insights and Ideas

  • Vision Aids Word Relationships: The most significant insight is that visual context doesn't just help identify a single word; it helps the model understand the relationship between two words. For instance, an image of an airplane helps the model strengthen the link between the tokens "Air" and "China" to correctly label them as an entity.
  • Dynamic Disambiguation: By using a gated fusion module, the model can "ignore" the image if it is unrelated to the text, preventing visual noise from degrading performance.
  • Embedding Impact: The choice of word embeddings matters significantly. While the model performed well with Twitter-specific embeddings, switching to larger "Crawl" embeddings provided a clear performance boost, particularly for the "Organization" and "Misc" categories.

Key Results

The proposed model outperformed previous state-of-the-art methods across all metrics. Using Crawl embeddings, the model achieved an overall F1 score of 72.91, surpassing the previous best of 70.69 (Adaptive Co-Attention Network).

Entity Our Model (Crawl) F1
Person 83.98
Location 78.65
Organization 59.27
Misc 39.54
Overall F1 72.91

Qualitative analysis showed that the model successfully attends to relevant image regions, such as focusing on a car to correctly tag "Mercedes Benz" or identifying the Sydney Opera House to distinguish it as a building/misc entity rather than just a generic location.

Limitations and Future Work

The authors identified two primary failure modes through error analysis:

  • Unrelated Images: When a tweet contains an image that has nothing to do with the text (e.g., a meme accompanying a news snippet), the model can be misled, resulting in "wrong attention."
  • Attention Misalignment: In some cases, the model aligns the text and image correctly but still focuses on the wrong part of the image (e.g., focusing on people in a photo when the entity is a mountain in the background), leading to incorrect tags.

Future work could involve more robust methods for filtering out unrelated images or using more advanced visual backbones (like ResNet or Vision Transformers) to improve regional feature extraction.

Summary updated

BibTeX
@misc{arshad2019aiding,
  author = {Omer Arshad and Ignazio Gallo and Shah Nawaz and Alessandro Calefati},
  title = {{Aiding Intra-Text Representations with Visual Context for Multimodal Named Entity Recognition}},
  year = {2019},
  eprint = {1904.01356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.01356},
}
Figure