A Deep Learning Approach to Automatic Caption Generation for News Images

Vishwash Batra, Yulan He, George VogiatzisAston 2019

Abstract

Automatic caption generation of images has gained significant interest, enabling a wide range of multimedia applications from enhanced image retrieval to assistive tools for the visually impaired. This paper focuses specifically on the domain of news images, proposing a methodology to automatically generate captions for articles consisting of a text paragraph and an associated image. We introduce several deep neural network architectures built upon Recurrent Neural Networks (RNNs) and Convolutional Neural Networks (CNNs). Experimental results on a BBC News dataset demonstrate that our proposed approach significantly outperforms traditional methods based on Latent Dirichlet Allocation (LDA), as evidenced by both automatic BLEU score evaluations and human preference studies.

Introduction

In the digital age, the volume of multimedia content on the internet has grown exponentially, necessitating advanced tools for automated management and accessibility. While standard image captioning—describing literal visual content—is a well-established field, news image captioning presents a unique set of challenges. A news photograph often carries symbolic or contextual meaning that cannot be inferred from pixels alone. For instance, a generic image of a courtroom only gains specific relevance when linked to the legal proceedings described in the accompanying article.

This paper addresses the problem of bridging the gap between "what is in the image" and "what the image represents in the context of the news." We propose a neural framework that synthesizes visual data with textual context to generate meaningful, context-aware captions.

Methodology

The proposed system utilizes a sequence-to-sequence deep learning architecture designed to align multi-modal data into a shared semantic space. The process involves sophisticated encoding and fusion techniques.

Text and Image Encoding

To ensure the model can compare "apples to apples," both text and images are projected into a 1024-dimensional semantic space.

  • Text Encoding: Sentences from the news article are processed using a pre-trained order-embedding model. Unlike simple bag-of-words approaches, this method preserves the partial order structure of language, capturing deeper semantic relationships.
  • Image Encoding: Visual features are extracted using a pre-trained VGGNet (CNN), specifically from the fc7 layer. These high-level features are then projected into the same 1024-D space as the text.

Fusion Architectures

We evaluated two primary deep neural network (DNN) architectures to integrate these modalities:

  1. Standard Deep NN: In this model, the sequence of sentence vectors is fed into an LSTM chain. The image vector is introduced only at the final timestep, acting as a concluding piece of information to form the "context vector."
  2. Dual Deep NN: This architecture adopts a more integrated approach, concatenating the image vector with the sentence vector at every timestep of the LSTM. This allows the model to maintain constant visual context while processing the narrative flow of the article.
The Standard Deep NN architecture integrates the image vector after processing the sequence of sentence vectors to create a final context vector.
The Dual Deep NN architecture concatenates the image vector with each sentence vector at every timestep of the LSTM, maintaining constant visual focus.

Caption Selection

During the testing phase, the model generates a context vector representing the combined story. It then calculates the cosine similarity between this vector and the original sentences in the article to retrieve the most appropriate sentence to serve as the extractive caption.

Experimental Setup

The study utilized the BBC News Dataset, comprising 3,361 news documents. Each entry includes a text article, a low-resolution image (200x150 pixels), and a human-written caption averaging 20.5 words. The data was split into 3,115 articles for training and 237 for testing. This dataset provides a rigorous benchmark for evaluating how well a model can link specific journalistic text with visual evidence.

Results and Discussion

The neural approach consistently outperformed the traditional Latent Dirichlet Allocation (LDA) baseline across all evaluation metrics.

Quantitative and Qualitative Performance

  • Automated Metrics: The Standard Deep NN model achieved a BLEU score of 0.3427, representing a 4% improvement over the LDA-based method (0.3002).
  • Human Evaluation: In a blind test with 16 human evaluators, the captions generated by the Deep NN were preferred 38.3% of the time, while the LDA model was preferred in only 28.8% of cases.
  • Architectural Comparison: Surprisingly, the Standard architecture slightly outperformed the Dual version. This suggests that the model is more effective when it first summarizes the textual narrative before integrating the visual data into the final context representation.

Key Insights

The research highlighted that article text provides a significantly stronger signal for news captioning than the image alone. The text provides the essential "who, what, and where" that pixels cannot convey. The use of a shared 1024-D semantic space was the critical innovation, allowing the model to effectively determine which sentences in a long article were most visually relevant to the accompanying photo.

Conclusion

This paper demonstrates the efficacy of deep learning for automatic news image captioning. By aligning CNN-based visual features with order-embedded text, our model successfully retrieves contextually relevant captions that outperform traditional topic-modeling approaches. Future work will focus on moving from extractive to abstractive generation, where the model generates entirely original sentences using an encoder-decoder framework. Additionally, integrating external knowledge graphs could help the model handle captions that require background information not explicitly present in the source text.

Summary updated

BibTeX
@inproceedings{batra2019deep,
  author = {Vishwash Batra and Yulan He and George Vogiatzis},
  title = {{A Deep Learning Approach to Automatic Caption Generation for News Images}},
  booktitle = {Aston},
  year = {2019},
}
Figure