Skip to main content
QUICK REVIEW

[Paper Review] Non-Autoregressive Image Captioning with Counterfactuals-Critical Multi-Agent Learning

Longteng Guo, Jing Liu|arXiv (Cornell University)|May 10, 2020
Multimodal Machine Learning ApplicationsComputer Science25 references11 citations
TL;DR

This paper proposes a non-autoregressive image captioning model using Counterfactuals-Critical Multi-Agent Learning (CMAL), where sequence positions are treated as cooperative agents optimizing a sentence-level reward via policy gradients. By introducing agent-specific counterfactual baselines to solve credit assignment, the method achieves state-of-the-art performance comparable to autoregressive models with 13.9× faster inference, while leveraging unlabeled images to further boost accuracy.

ABSTRACT

Most image captioning models are autoregressive, i.e. they generate each word by conditioning on previously generated words, which leads to heavy latency during inference. Recently, non-autoregressive decoding has been proposed in machine translation to speed up the inference time by generating all words in parallel. Typically, these models use the word-level cross-entropy loss to optimize each word independently. However, such a learning process fails to consider the sentence-level consistency, thus resulting in inferior generation quality of these non-autoregressive models. In this paper, we propose a Non-Autoregressive Image Captioning (NAIC) model with a novel training paradigm: Counterfactuals-critical Multi-Agent Learning (CMAL). CMAL formulates NAIC as a multi-agent reinforcement learning system where positions in the target sequence are viewed as agents that learn to cooperatively maximize a sentence-level reward. Besides, we propose to utilize massive unlabeled images to boost captioning performance. Extensive experiments on MSCOCO image captioning benchmark show that our NAIC model achieves a performance comparable to state-of-the-art autoregressive models, while brings 13.9x decoding speedup.

Motivation & Objective

  • To address the decoding inconsistency in non-autoregressive image captioning, which stems from word-level cross-entropy training that ignores sentence-level coherence.
  • To improve generation quality by formulating NAIC as a cooperative multi-agent reinforcement learning system where sequence positions act as agents.
  • To solve the multi-agent credit assignment problem using agent-specific counterfactual baselines that isolate individual contributions to team reward.
  • To enhance model performance by leveraging large-scale unlabeled images during pre-training.
  • To achieve high-speed inference without sacrificing caption quality, matching state-of-the-art autoregressive models.

Proposed method

  • Treat each word position in the target caption as an independent agent in a cooperative multi-agent reinforcement learning framework.
  • Define a sentence-level reward (e.g., CIDEr) as the shared team reward to optimize global caption quality.
  • Use self-attention in the Transformer decoder to enable agent communication and context sharing during inference.
  • Compute an agent-specific advantage function using a counterfactual baseline: the expected reward when the agent’s action is marginalized out while others are fixed.
  • Apply policy gradient updates with the counterfactual advantage to improve each agent’s policy, focusing only on actions that outperform the baseline.
  • Pre-train the model on large-scale unlabeled images using cross-entropy loss before fine-tuning with CMAL to improve initialization and performance.

Experimental results

Research questions

  • RQ1Can a cooperative multi-agent reinforcement learning framework effectively improve sentence-level consistency in non-autoregressive image captioning?
  • RQ2Does using agent-specific counterfactual baselines outperform global baselines (e.g., moving average or self-critical) in multi-agent credit assignment?
  • RQ3To what extent can unlabeled images improve the performance of non-autoregressive captioning models when used in pre-training?
  • RQ4Can the proposed CMAL method achieve performance on par with autoregressive models while enabling significantly faster inference?
  • RQ5How sensitive is the CMAL training to hyperparameters such as top-k size in action sampling?

Key findings

  • The proposed CMAL model achieves a CIDEr score of 124.0 on the MSCOCO test set, matching state-of-the-art autoregressive models while enabling 13.9× faster inference.
  • The counterfactual baseline (CF) outperforms both moving average (MA) and self-critical (SC) baselines, especially when training from a poor initialization, indicating superior robustness.
  • Using 100,000 unlabeled images during pre-training boosts the CIDEr score from 124.0 to 125.5, demonstrating the effectiveness of self-supervised pre-training.
  • The model is not sensitive to the top-k size in action sampling, with k=2 achieving near-optimal performance (CIDEr=124.0).
  • Qualitative results show that CMAL-trained models eliminate repeated words and incomplete content, significantly improving fluency and coherence over XE-trained non-autoregressive models.
  • The method reduces decoding inconsistency by aligning training objectives with sentence-level metrics, directly optimizing non-differentiable evaluation scores like CIDEr and BLEU.

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.