Skip to main content
QUICK REVIEW

[Paper Review] Image Captioning via Compact Bidirectional Architecture

Song, Zijie, Yuanen Zhou|arXiv (Cornell University)|Jan 6, 2022
Multimodal Machine Learning ApplicationsComputer Science14 citations
TL;DR

This paper proposes a Compact Bidirectional Transformer (CBTIC) for image captioning that jointly learns left-to-right and right-to-left caption generation in a single, parallelizable decoder. By tightly coupling bidirectional flows and enabling sentence-level ensemble via model output ranking, CBTIC achieves state-of-the-art performance on MSCOCO without vision-language pretraining, outperforming prior non-pretrained models by up to 4.6% in CIDEr score.

ABSTRACT

Most current image captioning models typically generate captions from left-to-right. This unidirectional property makes them can only leverage past context but not future context. Though refinement-based models can exploit both past and future context by generating a new caption in the second stage based on pre-retrieved or pre-generated captions in the first stage, the decoder of these models generally consists of two networks~(i.e. a retriever or captioner in the first stage and a captioner in the second stage), which can only be executed sequentially. In this paper, we introduce a Compact Bidirectional Transformer model for image captioning that can leverage bidirectional context implicitly and explicitly while the decoder can be executed parallelly. Specifically, it is implemented by tightly coupling left-to-right(L2R) and right-to-left(R2L) flows into a single compact model to serve as a regularization for implicitly exploiting bidirectional context and optionally allowing explicit interaction of the bidirectional flows, while the final caption is chosen from either L2R or R2L flow in a sentence-level ensemble manner. We conduct extensive ablation studies on MSCOCO benchmark and find that the compact bidirectional architecture and the sentence-level ensemble play more important roles than the explicit interaction mechanism. By combining with word-level ensemble seamlessly, the effect of sentence-level ensemble is further enlarged. We further extend the conventional one-flow self-critical training to the two-flows version under this architecture and achieve new state-of-the-art results in comparison with non-vision-language-pretraining models. Finally, we verify the generality of this compact bidirectional architecture by extending it to LSTM backbone. Source code is available at https://github.com/YuanEZhou/cbtic.

Motivation & Objective

  • To address the limitation of unidirectional captioning models that can only access past context during generation.
  • To enable bidirectional context modeling in a single, parallelizable decoder architecture to improve caption quality.
  • To eliminate the sequential dependency of refinement-based models by unifying left-to-right and right-to-left flows into one compact model.
  • To achieve sentence-level ensemble without training two separate models, improving inference efficiency and performance.
  • To extend self-critical training to a two-flow architecture for end-to-end optimization.

Proposed method

  • The model uses a single Transformer decoder with shared parameters to simultaneously support left-to-right (L2R) and right-to-left (R2L) caption generation flows.
  • During training, each image is paired with two captions—one L2R with a <l2r> prefix and one R2L with a <r2l> prefix—trained jointly via a combined loss.
  • Explicit interaction between L2R and R2L flows is optionally enabled via cross-attention mechanisms during decoding.
  • During inference, both L2R and R2L outputs are generated in parallel, and the higher-probability output is selected via sentence-level ensemble.
  • The method integrates word-level ensemble by averaging probability distributions from multiple model instances.
  • Self-critical training is extended to a two-flow setting, optimizing the CIDEr score using both L2R and R2L outputs.

Experimental results

Research questions

  • RQ1Can a compact, single-model architecture effectively exploit both past and future context in image captioning?
  • RQ2Does sentence-level ensemble via L2R and R2L outputs improve performance without requiring two separate models?
  • RQ3How does explicit interaction between bidirectional flows compare to implicit context modeling via shared parameters?
  • RQ4Can the proposed two-flow self-critical training yield better performance than conventional one-flow training?
  • RQ5To what extent does the compact architecture act as a regularizer for bidirectional context learning?

Key findings

  • The compact bidirectional architecture serves as an effective regularizer for implicitly leveraging bidirectional context, outperforming explicit interaction mechanisms.
  • Sentence-level ensemble via L2R and R2L output ranking achieves performance comparable to training two separate models, without additional inference cost.
  • On the MSCOCO Karpathy test split, the CBTIC model achieves a CIDEr score of 40.0 in the ensemble setting, outperforming all non-pretraining models.
  • The model improves CIDEr by 4.1% and 4.6% over the best competitor (RSTNet) on the official test server with c5 and c40 references, respectively.
  • Despite improvements in CIDEr, the R2L flow introduces a tendency to generate bad endings (e.g., 'of a man with a soccer ball on a field'), slightly degrading BLEU scores from 38.9 to 38.0.
  • Combining word-level and sentence-level ensemble amplifies performance gains, demonstrating the orthogonal benefits of both ensemble strategies.

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.