Multi-Granularity Cross-Modality Representation Learning for Named Entity Recognition on Social Media

Peipei Liu, Gaosheng Wang, Hong Li, Jie Liu, Yimo Ren, Hongsong Zhu, Limin Sun

TL;DR

This paper tackles the challenge of Named Entity Recognition (NER) on social media, where text and images are often intertwined but can be semantically mismatched or incomplete. They propose a novel "Multi-Granularity Cross-Modality Representation Learning" approach that enhances text representations with semantic augmentation and fuses information from both global images and local objects at different granularities to improve entity recognition accuracy.

What Problem Does This Paper Address?

Social media posts are increasingly multimodal, combining text with images. This presents a unique challenge for Named Entity Recognition (NER), a task that aims to identify and classify entities (like people, organizations, or locations) within text. While images can provide crucial context, existing Multimodal NER (MNER) methods struggle with several issues:

  1. Semantic Mismatch: The text and its accompanying image might not always align perfectly, leading to reliance on potentially incomplete or informal text. Social media text is often short, slang-filled, and grammatically inconsistent, exacerbating data sparsity.
  2. Granularity of Visual Information: Previous methods often use either the entire image or just object-level features. This can overlook fine-grained correspondences between specific objects in an image and words in the text, or conversely, be misled by irrelevant objects or images lacking discernible objects.

The authors aim to bridge this gap by developing a method that effectively leverages both text and visual information at multiple levels of detail.

Methods

The proposed approach, Multi-Granularity Cross-Modality Transformer (MGCMT), consists of three main components:

  1. Unimodal Representation Learning:
    • Text: Each word's representation is a combination of its contextualized embedding (from BERT) and a "semantic augmentation" representation. This augmentation enhances the text by incorporating information from similar words in an embedding space, addressing the data sparsity issue in short social media posts.
  2. Vision: Global image features are extracted using a ResNet, and local object features are obtained using Mask R-CNN.
  3. Multi-Granularity Cross-Modality Transformer (MGCMT): This is the core of the proposed method. It comprises two modules:
  4. TextImg Module: Learns cross-modality interaction between text and the global image.
  5. TextObj Module: Learns cross-modality interaction between text and local objects detected in the image. Both modules employ Transformer layers to capture multi-level semantic interactions. A gating mechanism is used to dynamically weigh the contributions from different levels of interaction. The outputs from these two modules are concatenated to form a comprehensive multimodal representation.

  6. MNER Decoding Module: A standard CRF layer is used to predict the entity label sequence based on the fused multimodal representation. Additionally, an auxiliary entity span detection (ESD) module, also using a CRF, is employed to further improve performance by focusing on text-based entity boundaries.

Datasets

The experiments were conducted on two publicly available multimodal NER datasets based on Twitter:

  • TWITTER-2015: Contains 8257 tweets from 2116 users.
  • TWITTER-2017: Contains 4819 tweets.

The datasets were split into training, development, and testing sets following established practices in prior work.

Key Insights and Ideas

  • Semantic Augmentation is Crucial for Social Media: The paper highlights that for short, informal social media text, simply relying on contextual embeddings isn't enough. Augmenting word representations with similar words from a larger corpus significantly improves performance, directly addressing data sparsity.
  • Multi-Granularity Vision Matters: Simply using global image features or only object features is suboptimal. The authors demonstrate that combining information from both the overall scene (global image) and specific objects within it (local objects) at different granularities leads to richer and more accurate multimodal representations.
  • BERT and CRF Synergy: The results reinforce the effectiveness of pre-trained language models like BERT for text understanding and the utility of Conditional Random Fields (CRFs) for sequence labeling tasks like NER, especially when combined.
  • Entity Span Detection as an Auxiliary Task: Incorporating a text-only entity span detection module, even with a multimodal primary task, proves beneficial, suggesting that robust textual entity boundary identification aids the overall MNER process.

Key Results

The proposed MGCMT model achieved state-of-the-art (SOTA) or approximate SOTA performance on both the TWITTER-2015 and TWITTER-2017 datasets. Specifically:

  • On TWITTER-2015, the model outperformed previous SOTA methods.
  • On TWITTER-2017, it achieved performance comparable to the best existing models.
  • Ablation studies showed that removing any of the core components (semantic augmentation, TextImg module, TextObj module, or ESD) led to a performance drop, underscoring the contribution of each element. For instance, removing the semantic augmentation module resulted in a significant performance decrease.

Limitations and Future Work

  • Unmatched Text-Image Pairs: The authors acknowledge that the performance on TWITTER-2017 was slightly worse than MAF in some aspects, potentially due to a higher number of unmatched text-image pairs. This is identified as a direction for future work.
  • Object Number Influence: The optimal number of detected objects to consider varied between datasets and influenced performance, suggesting that finding the right balance is important.
  • Future Work: The paper implicitly suggests further exploration into handling unmatched text-image pairs and potentially refining the object selection strategy. The authors also mention that the code, data, and models are publicly available, encouraging further research.

Summary updated

Abstract

Named Entity Recognition (NER) on social media refers to discovering and classifying entities from unstructured free-form content, and it plays an important role for various applications such as intention understanding and user recommendation. With social media posts tending to be multimodal, Multimodal Named Entity Recognition (MNER) for the text with its accompanying image is attracting more and more attention since some textual components can only be understood in combination with visual information. However, there are two drawbacks in existing approaches: 1) Meanings of the text and its accompanying image do not match always, so the text information still plays a major role. However, social media posts are usually shorter and more informal compared with other normal contents, which easily causes incomplete semantic description and the data sparsity problem. 2) Although the visual representations of whole images or objects are already used, existing methods ignore either fine-grained semantic correspondence between objects in images and words in text or the objective fact that there are misleading objects or no objects in some images. In this work, we solve the above two problems by introducing the multi-granularity cross-modality representation learning. To resolve the first problem, we enhance the representation by semantic augmentation for each word in text. As for the second issue, we perform the cross-modality semantic interaction between text and vision at the different vision granularity to get the most effective multimodal guidance representation for every word. Experiments show that our proposed approach can achieve the SOTA or approximate SOTA performance on two benchmark datasets of tweets. The code, data and the best performing models are available at https://github.com/LiuPeiP-CS/IIE4MNER
BibTeX
@misc{liu2022multi,
  author = {Peipei Liu and Gaosheng Wang and Hong Li and Jie Liu and Yimo Ren and Hongsong Zhu and Limin Sun},
  title = {{Multi-Granularity Cross-Modality Representation Learning for Named Entity Recognition on Social Media}},
  year = {2022},
  eprint = {2210.14163},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.14163},
}
Figure