Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Self-critical Sequence Training for Image Captioning

Self-critical training teaches captioners to optimize CIDEr directly with reinforcement learning

  • Problem Captioning models are trained to predict each ground-truth word, but they are scored with CIDEr, which cannot be backpropagated. Policy-gradient methods can handle such rewards, but they need a learned critic or suffer from high gradient variance.
  • Method SCST reinforces sampled captions that beat the model's own greedy caption, with no critic network.
  • Results On the FC-2K Karpathy test split, SCST reached a CIDEr of 106.3, above MIXER at 104.9. An ensemble of four SCST-trained attention models reached 114.7 on the MSCOCO evaluation server.

Why captioners need sequence-level training

Captioning models are normally trained to maximize the likelihood of each ground-truth word given the words before it, which is teacher forcing. At test time, however, each word is predicted from the model's own earlier outputs, so errors made early in a caption can accumulate. Scheduled sampling and Professor-Forcing reduce this mismatch, but they still optimize a per-token likelihood rather than the metric used for evaluation.

Captions are scored with BLEU, ROUGE, METEOR and CIDEr, which are discrete and non-differentiable, so their values cannot be backpropagated through the model. Policy-gradient methods from reinforcement learning can handle such rewards, because they use samples from the model and weight them by the reward they receive.

The weakness of REINFORCE-style training is high variance of the mini-batch gradient, which makes training unstable unless the reward is normalized in a context-dependent way. Learned baselines and actor-critic methods address this by training a second network that estimates values, but the estimator then has to be trained alongside the actor and can itself be unstable.

The FC and attention decoders

The FC models encode the whole image with a deep CNN and project the resulting vector into the LSTM as the first input. Words are one-hot vectors embedded with a matrix that matches the image projection in size, and sentences begin and end with BOS and EOS tokens. The image vector has 2048 dimensions for FC-2K, built from the final convolutional layer of Resnet-101 with average pooling, and 15360 dimensions for FC-15K, built by stacking average-pooled outputs of 13 Resnet-101 layers.

The attention models keep spatial CNN features and reweight them at each step, so the image contribution changes with the words generated so far. Att2in feeds the attention-derived feature only into the LSTM cell, while Att2all feeds it into all gates and into the output, which the authors found helpful when ADAM was used. Spatial features come from Resnet-101 with adaptive max-pooling to 14 × 14 × 2048, and the attention mask covers 196 locations.

Cross-entropy training minimizes the negative sum of log-probabilities of the ground-truth words given their prefixes, and this loss initializes every model before the reinforcement learning stage.

How the self-critical baseline enters the gradient

Training treats the LSTM as an agent whose policy \(p_\theta\) chooses each next word, and the reward is the CIDEr score of the completed caption computed against the reference captions. The objective is the negative expected reward, \(L(\theta) = -\mathbb{E}_{w^s \sim p_\theta}[r(w^s)]\), which in practice is estimated with one sampled caption.

The gradient of this estimate is \(-r(w^s)\nabla_\theta \log p_\theta(w^s)\). Subtracting a baseline \(b\) that does not depend on the sampled caption leaves the expected gradient unchanged while reducing its variance, because the expectation of \(b\nabla_\theta \log p_\theta(w^s)\) is zero.

SCST takes the baseline to be the reward of the caption that the current model produces under its test-time inference procedure. The gradient with respect to the softmax input at step \(t\) becomes \(\frac{\partial L(\theta)}{\partial s_t} = (r(w^s)-r(\hat{w}))(p_\theta(w_t|h_t)-\mathbf{1}_{w^s_t})\), where \(\hat{w}\) is the greedy caption.

A sampled caption that scores higher than the greedy caption is pushed up in probability, and a lower-scoring sample is pushed down. No second network is trained to predict the reward, and no separate normalization needs to be estimated.

The authors choose greedy decoding for the baseline, so the training update matches the decoding used at test time and costs one extra forward pass per sample. Actor-critic training avoids the need to sample over the policy's large action space, but at the cost of estimating future rewards and training two networks that depend on each other, which the authors argue can be unstable.

Training recipe and variants of the baseline

Every model is first trained with the XE objective using ADAM at an initial learning rate of 5×10−4, with the learning rate multiplied by 0.8 every three epochs. The probability of feeding back a sampled word instead of the ground-truth word is raised by 0.05 every five epochs until it reaches 0.25. The checkpoint with the best CIDEr on the development set becomes the starting point for SCST.

The SCST stage then optimizes CIDEr-D with ADAM at a learning rate of 5 × 10−5.

For the FC-2K and FC-15K models, curriculum learning was used at first: the number of trailing words optimized under the sequence reward grows by one each epoch while the prefix stays under cross entropy. The authors later found curriculum learning unnecessary on MSCOCO, so the attention models were trained on whole sentences after the XE initialization.

Time-dependent SCST conditions the baseline on the words already sampled, which turns the reward into a baselined future reward. True SCST samples only a fixed number of future tokens before completing the caption with the inference algorithm. Both variants were tried on MSCOCO and did not give a significant additional gain, and a learned control variate for the SCST baseline was also tried without success.

Offline gains over MIXER and REINFORCE

The data use the Karpathy splits, with 113,287 training images, 5K validation images and 5K test images, and a vocabulary of 10096 words after dropping words that occur fewer than five times. Four metrics are reported: BLEU-4, ROUGE-L, METEOR and CIDEr.

On the FC-2K Karpathy test split with CIDEr as the training metric, SCST reached a CIDEr of 106.3, while MIXER reached 104.9, MIXER without a baseline reached 101.9, and cross-entropy training reached 90.9. SCST also scored higher than MIXER on BLEU-4 (31.9 against 31.7), METEOR (25.5 against 25.4) and tied ROUGE-L at 54.3, so the gain is largest on CIDEr.

For Att2all models trained over four seeds and tested on the Karpathy test set, SCST reached a CIDEr of 113.8 ± 0.3, against 113.2 ± 0.2 for MIXER without curriculum learning and 110.4 ± 0.5 for REINFORCE with a learned baseline.

Curriculum learning was not needed for either SCST or REINFORCE with a learned baseline on MSCOCO, and turning it off sped up training without hurting results.

Gradient variance during training

The authors measured gradient variance and word posterior entropy on the Karpathy training set for Att2all models over four seeds, comparing SCST with MIXER without curriculum learning. Both techniques are unbiased, and SCST generally has lower gradient variance, which the authors connect to its better training performance.

SCST has much higher gradient variance than MIXER without curriculum learning in the first epoch, because most sampled sentences initially score well below the sentence produced by the test-time inference algorithm. Figure 4 reports the variance series and Figure 5 the word posterior entropy, both for the Att2all training runs described in the same passage.

Training metric and model family

Training on CIDEr gave the best overall profile for FC-2K models on the Karpathy test split, with CIDEr at 106.3, BLEU-4 at 31.9, ROUGE-L at 54.3 and METEOR at 25.5. Training on BLEU, ROUGE-L or METEOR raised the score on that metric, but none of these runs beat the CIDEr-only model across the set of metrics.

Among single SCST models, the FC-2K model reached 106.3 and the FC-15K model 106.4 under greedy decoding, while the Att2in model reached 111.3 and the Att2all model 110.2 under greedy decoding with the REINFORCE baseline. The Att2all model trained with SCST reached 113.7 under greedy decoding and 114.0 under beam search, and FC-15K models outperform FC-2K models in the same table family.

Ensembles of four random seeds improve on single models for both XE and SCST training, and the SCST-trained Att2all ensemble reaches a CIDEr of 116.8 under greedy decoding and 117.5 under beam search. Attention models outperform FC models on the Karpathy test split, and the authors attribute this to better generalization of attention models to compositions outside the training distribution.

Leaderboard result and an out-of-context image

The Att2all ensemble also scored above the previous best on BLEU-4, ROUGE-L and METEOR in that table.

The qualitative example uses one image from the objects out-of-context dataset, which shows a boat in an unusual setting. The top five captions from each ensemble, with beam width 5, were compared. The FC ensembles fail on this image, while the SCST-trained attention ensemble is the only system in the comparison that describes it correctly.

The captions also carry average log-probabilities that the authors read as higher confidence for SCST-trained attention models.

Limitations

Time-dependent SCST and True SCST did not produce significant extra gains on MSCOCO, and the control-variate baseline did not help either. Curriculum learning was used for the FC models and not for the attention models, so the two families were trained under different schedules.

SCST's gradient variance is much higher than that of the comparison in the first epoch, so early training is noisier. Beam search gave only a small boost for the single Att2all SCST model, rising from 113.7 to 114.0 CIDEr.

The qualitative comparison uses one out-of-context image, so it does not establish how the models behave across such images. The metric comparisons use a single seed setting for each reported single FC model and four seeds for the Att2all runs, so the spread of the FC results is not reported.

Paper info

Authors
Rennie, Steven J., Marcheret, Etienne, Mroueh, Youssef, Ross, Jarret, Goel, Vaibhava
Venue
arXiv · Preprint
First published
2016-12-2
Added
2026-11-12
Updated
2017-11-16
Version
v2
arXiv
1612.00563
Category
cs.LG · cs.AI · cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Rennie, Steven J., Marcheret, Etienne, Mroueh, Youssef, Ross, Jarret, Goel, Vaibhava (2016). Self-critical Sequence Training for Image Captioning. arXiv:1612.00563v2. https://arxiv.org/abs/1612.00563v2

BibTeX
@misc{j2016self,
  title = {{Self-critical Sequence Training for Image Captioning}},
  author = {Rennie, Steven J. and Marcheret, Etienne and Mroueh, Youssef and Ross, Jarret and Goel, Vaibhava},
  year = {2016},
  eprint = {1612.00563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.00563v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up