NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pointing Novel Objects in Image Captioning.

Yehao Li, Ting Yao, Yingwei Pan, Hongyang Chao, Tao Mei · DOI

Abstract

Standard image captioning models often fail when encountering "novel" objects—entities not present in their specific image-caption training sets. This paper introduces LSTM-P (Long Short-Term Memory with Pointing), a novel architecture that employs a pointing mechanism to intelligently decide when to generate a common word and when to "copy" a recognized object name directly into a sentence. This approach significantly improves the description of out-of-domain scenes by leveraging external object recognition data.

Introduction

Most image captioning models follow an encoder-decoder framework where a CNN extracts visual features and an RNN (typically an LSTM) generates the text. However, these models are strictly limited by their training vocabulary. For instance, a model trained on the COCO dataset might describe "dogs" and "cats" accurately but fail on a "zebra" or "microwave" if those objects were absent from the captioning pairs. This leads to two primary hurdles: expanding the model's vocabulary and seamlessly integrating new words into grammatically correct sentences without "hallucinating" more common objects (e.g., calling a couch a "bed").

Methods: The LSTM-P Architecture

The authors propose the LSTM-P architecture, which integrates visual recognition and linguistic generation through three key components:

  • Object Learners: Pre-trained on large-scale recognition datasets like ImageNet, these learners provide a visual vocabulary that exceeds the linguistic constraints of captioning data.
  • Pointing Mechanism: At each generation step, a multi-layer perceptron (MLP) acts as a soft switch. It calculates a weight ($p_t$) to determine if the next word should come from the standard LSTM vocabulary (e.g., function words like "a", "is") or be "pointed to" and copied from the detected objects.
  • Object Coverage Loss: To ensure the model doesn't ignore detected objects, a sentence-level coverage loss encourages the inclusion of recognized entities, grounding the text in actual visual evidence.
The LSTM-P architecture overview, showing the integration of object learners, the pointing mechanism, and joint learning losses.

Experimental Evaluation

The model was evaluated on two primary benchmarks:

  1. Held-out COCO: A modified COCO dataset where all pairs containing eight specific objects (e.g., bottle, bus, zebra) were removed from training. The model had to learn to describe these novel objects at test time.
  2. ImageNet: A subset of 634 objects not appearing in COCO training was used to test the system's scalability to a vast array of new items.

Key Results and Discussion

LSTM-P achieved state-of-the-art performance on the held-out COCO dataset, reaching an average F1-score of 60.9%, a substantial improvement over previous methods like DCC (39.8%) and NOC (51.8%).

Qualitative analysis demonstrates that while standard models often fall back on high-frequency "safe" words from the training set, LSTM-P correctly identifies and integrates novel object names. For example, where a baseline might call a couch a "bed," the pointing mechanism prioritizes the high-confidence detection of "couch" from the object learners.

Qualitative results comparing LSTM-P against the LRCN baseline. LSTM-P successfully incorporates novel objects like 'abacus', 'orangutan', and 'lawnmower' which the baseline misidentifies.

Conclusion

By decoupling visual recognition from linguistic training, LSTM-P provides a scalable path for image captioning in the wild. While the model excels at naming novel objects, future work remains to better describe complex interactions between these objects and to incorporate novel attributes and actions into the pointing framework.

Summary updated

BibTeX
@inproceedings{li2019pointing,
  author = {Yehao Li and Ting Yao and Yingwei Pan and Hongyang Chao and Tao Mei},
  title = {{Pointing Novel Objects in Image Captioning.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.01278},
}
Figure