Boosting Entity-aware Image Captioning with Multi-modal Knowledge Graph

Wentian Zhao, Yao Hu, Heda Wang, Xinxiao Wu, Jiebo LuoIEEE Trans. Multimedia 2021 · DOI

Abstract

Entity-aware image captioning aims to describe named entities and events related to the image by utilizing the background knowledge in the associated article. This task remains challenging as it is difficult to learn the association between named entities and visual cues due to the long-tail distribution of named entities. Furthermore, the complexity of the article brings difficulty in extracting fine-grained relationships between entities to generate informative event descriptions about the image. To tackle these challenges, we propose a novel approach that constructs a multi-modal knowledge graph to associate the visual objects with named entities and capture the relationship between entities simultaneously with the help of external knowledge collected from the web. Specifically, we build a text sub-graph by extracting named entities and their relationships from the article, and build an image sub-graph by detecting the objects in the image. To connect these two sub-graphs, we propose a cross-modal entity matching module trained using a knowledge base that contains Wikipedia entries and the corresponding images. Finally, the multi-modal knowledge graph is integrated into the captioning model via a graph attention mechanism. Extensive experiments on both GoodNews and NYTimes800k datasets demonstrate the effectiveness of our method.

Introduction

Traditional image captioning models typically generate generic descriptions like "a man standing in a field." While accurate, these lack the specificity required for news contexts, where identifying specific individuals like "Fernando Alonso" or "Barack Obama" is crucial. Entity-aware image captioning addresses this by leveraging associated news articles to provide informative context.

However, two major hurdles persist in this domain:

  1. The Long-Tail Problem: Many named entities appear infrequently in training sets, making it difficult for models to associate names with visual appearances through standard training alone.
  2. Complex Context: News articles are often long and dense. Relevant entities and their relationships may be separated by many sentences, which standard sequence-to-sequence models struggle to link effectively.

Methods

The proposed solution is the Multi-modal Knowledge Graph (MMKG), a framework designed to bridge visual objects and named entities by structuring the available information into a graph format.

Overview of the proposed Multi-modal Knowledge Graph (MMKG) framework for entity-aware image captioning.

The MMKG consists of three primary components:

  • Text Sub-graph: Named entities and their relationships (e.g., Subject-Relation-Object triples) are extracted from the article using the Stanford CoreNLP toolkit.
  • Image Sub-graph: Visual nodes are created by detecting objects and faces using YOLOv3 and MTCNN, with features extracted via a pre-trained ResNet-152.
  • Cross-modal Entity Matching: To overcome the long-tail problem, the model uses an external knowledge base (Wikipedia) to learn visual-textual alignments. If the similarity between a visual object and a text entity exceeds a specific threshold, an edge is formed between them in the graph.

This unified graph is processed through a Graph Attention Network (GAT), and the resulting features are integrated into a Transformer-based decoder alongside the original image and article text to generate the final caption.

Key Results

The MMKG approach achieved state-of-the-art (SOTA) performance on two large-scale news datasets: GoodNews (445,259 images) and NYTimes800k (nearly 800,000 images). On GoodNews, it reached a CIDEr score of 54.02 and an Entity F1 score of 20.36. On NYTimes800k, it achieved a CIDEr of 54.47 and an Entity F1 of 23.44.

Qualitative comparison of generated captions and MMKGs against ground truth and a baseline without graph integration.

Qualitative analysis demonstrates that the MMKG allows the model to correctly identify specific locations and individuals where baseline models often default to generic terms or incorrect names found elsewhere in the text. The integration of both text and image sub-graphs proved essential for grounding names in visual evidence.

Conclusion

By leveraging external knowledge and graph-based modeling, the MMKG framework effectively addresses the long-tail and context complexity issues in entity-aware captioning. Future work will explore more sophisticated linguistic features and advanced decoding architectures to further refine the fluency and accuracy of generated news descriptions.

Summary updated

BibTeX
@article{zhao2021boosting,
  author = {Wentian Zhao and Yao Hu and Heda Wang and Xinxiao Wu and Jiebo Luo},
  title = {{Boosting Entity-aware Image Captioning with Multi-modal Knowledge Graph}},
  journal = {IEEE Trans. Multimedia},
  year = {2021},
  doi = {10.1109/tmm.2023.3301279},
}
Figure