Skip to main content
QUICK REVIEW

[Paper Review] Fast Image Caption Generation with Position Alignment

Zhengcong Fei|arXiv (Cornell University)|Dec 13, 2019
Multimodal Machine Learning ApplicationsComputer Science28 references25 citations
TL;DR

This paper proposes FNIC, a non-autoregressive image captioning model that accelerates generation by introducing a position alignment module to order detected objects and guide sentence generation. By modeling position-aware coarse captions and using a non-deterministic inference strategy, FNIC achieves performance comparable to autoregressive models while being nearly 8x faster, significantly reducing errors from word repetition and omission.

ABSTRACT

Recent neural network models for image captioning usually employ an encoder-decoder architecture, where the decoder adopts a recursive sequence decoding way. However, such autoregressive decoding may result in sequential error accumulation and slow generation which limit the applications in practice. Non-autoregressive (NA) decoding has been proposed to cover these issues but suffers from language quality problem due to the indirect modeling of the target distribution. Towards that end, we propose an improved NA prediction framework to accelerate image captioning. Our decoding part consists of a position alignment to order the words that describe the content detected in the given image, and a fine non-autoregressive decoder to generate elegant descriptions. Furthermore, we introduce an inference strategy that regards position information as a latent variable to guide the further sentence generation. The Experimental results on public datasets show that our proposed model achieves better performance compared to general NA captioning models, while achieves comparable performance as autoregressive image captioning models with a significant speedup.

Motivation & Objective

  • Address the slow inference speed of autoregressive image captioning models due to sequential word generation.
  • Overcome the fluency and accuracy issues in non-autoregressive (NA) captioning caused by indirect modeling of target word distributions.
  • Improve NA captioning quality by explicitly incorporating spatial and semantic position information from detected objects.
  • Develop an inference strategy that uses position-ordered words as a latent guide to reduce decoding ambiguity and improve sentence coherence.

Proposed method

  • Introduce a lightweight GRU-based position alignment module that orders detected objects by spatial position to generate coarse caption words.
  • Use the ordered coarse words as a structural guide for the final non-autoregressive decoder to generate fluent, coherent sentences.
  • Apply a non-deterministic probability inference strategy that treats the coarse word sequence as a latent variable to reduce information loss.
  • Replace the standard NA decoder input (copied visual features) with position-ordered object descriptions to better align visual and linguistic structure.
  • Leverage object detection features as input to the position alignment module, enabling spatial grounding of generated words.
  • Fine-tune the final sentence using a non-autoregressive decoder conditioned on both visual features and the position-aligned coarse caption.

Experimental results

Research questions

  • RQ1Can non-autoregressive image captioning achieve performance close to autoregressive models while significantly improving inference speed?
  • RQ2How does incorporating explicit position alignment improve the fluency and accuracy of non-autoregressive captioning?
  • RQ3To what extent does using coarse, position-ordered words as a latent guide reduce decoding ambiguity and improve sentence quality?
  • RQ4Does a non-deterministic inference strategy outperform deterministic inference in preserving semantic accuracy and diversity?

Key findings

  • FNIC achieves nearly 8x faster inference speed than autoregressive models while maintaining comparable performance on COCO and Flickr30k benchmarks.
  • The model with a one-layer GRU position alignment module outperforms larger non-autoregressive models (e.g., one-layer Transformer) in caption quality, indicating the effectiveness of position-guided coarse captioning.
  • FNIC with GRU-based alignment surpasses several strong autoregressive models (e.g., SCST, ADP-ATT, LSTM-A) in most metrics on the COCO Karpathy test split.
  • The non-deterministic inference strategy reduces information loss compared to deterministic inference, though gains are smaller when the coarse words are already accurate.
  • FNIC generates more diverse captions than autoregressive models, with 87.12% unique captions and 12.16% vocabulary usage—significantly higher than Up-Down (61.58% unique) and GCN-LSTM (83.22% unique).
  • Case studies confirm that FNIC effectively mitigates common NA issues like word repetition and object omission, which are largely caused by errors in coarse word generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.