# Microsoft COCO Captions: Data Collection and Evaluation Server

Microsoft COCO Captions provides one server for scoring caption generators

Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollar and 1 more · arXiv · 2015-4-1

- **Problem** Caption systems were hard to compare, since many metrics exist and their implementations differ between papers.
- **Method** Microsoft COCO Captions is a server that tokenizes and scores all submitted captions with BLEU, METEOR, ROUGE and CIDEr.
- **Results** Held-out human captions score CIDEr-D 0.854 on c5 and 0.910 on c40.

## Why caption evaluation needs one protocol

Caption generation is hard to compare across papers, and the metrics themselves are part of the reason. Many evaluation metrics exist, and their implementations often differ from one another. The authors therefore built one evaluation server, so every approach is scored the same way. The reference sentences for the test images stay private, which limits overfitting to a known test set.

## How the caption set was built

The captions describe MS COCO images, which were gathered by searching Flickr for pairs of 80 object categories and scene types. The images were chosen to show several objects in their natural context, which makes them hard to caption. The captions were written by human subjects on Amazon's Mechanical Turk, which the authors used to collect the captions.

Each subject was asked to describe the important parts of the scene, avoid unimportant details, and write at least 8 words.

Two reference sets were built, and they share the training, validation and testing splits of MS COCO. MS COCO c5 gives five reference captions for every image, while MS COCO c40 gives 40 reference sentences for 5,000 testing images. The authors added c40 because several metrics correlate better with human judgment when they receive more references.

In total the authors collected 1,026,459 captions, including 413,915 captions for 82,783 training images.

## How the scoring server computes its metrics

The server takes candidate captions for validation and test images and scores them with BLEU-1 to BLEU-4, ROUGE-L, METEOR and CIDEr-D. It runs these scores on both MS COCO c5 and MS COCO c40. Before scoring, candidate and reference captions go through the Stanford PTBTokenizer from CoreNLP version 3.4.1, and punctuation tokens are then dropped.

BLEU counts clipped n-gram precision over the whole corpus, so a candidate n-gram is credited at most as often as it appears in any single reference. Because precision favors short outputs, a brevity penalty applies when the candidate set is shorter than the effective reference length. The n-gram precisions are then combined with a weighted geometric mean for n from 1 to 4.

BLEU performs poorly on individual sentences, because matches for higher n rarely occur at that level.

METEOR first aligns words by exact match, then by WordNet synonyms, stemmed tokens and paraphrases. Its score is a harmonic mean of precision and recall, reduced by a penalty for fragmented matches.

CIDEr weights each n-gram with TF-IDF, so informative n-grams count more and common words count less. CIDEr-D adds clipping and a Gaussian length penalty with sigma set to 6, which makes it harder to game. CIDEr-D does not use stemming, and the server adopts it as its CIDEr variant.

## How well one human caption agrees with references

The authors took one extra human caption per test image as the prediction and scored it against the references. This measures how far equally good captions can vary in wording.

On MS COCO c40, the same kind of comparison rose to 0.880 BLEU-1, 0.335 METEOR and 0.910 CIDEr-D. More references raise every score, which fits the reason the authors gave for building c40. The authors read the low c5 scores as a sign that many captions say the same thing in different words.

## A simple model of word agreement

The authors tie each word to an object, and a subject uses that word with probability p only when the object is in the image. The model ignores image-level saliency and assumes a subject never uses the word when the object is absent. The authors state that the model explains the empirical observations to a reasonable degree of accuracy.

Human precision and recall are weighted, so a negative image counts 1 and a positive image counts the number of captions that contain the word. Given k reference captions per image, the expected caption count is kpq, the expected true positives are kp squared q, and the expected false positives are q(1-p)kp. Under this model, human recall equals p and human precision depends only on p and k.

## What the model explains and how precision moves

The authors plot human precision against recall for nouns, adjectives, verbs and all 1000 words. Nouns such as elephant have high recall, while the adjective bright is used inconsistently and has low recall. High-recall words also tend to have high precision, so the points lie along one curve.

With k set to 4, the model curve follows the empirical points closely, though not perfectly. Reducing the reference captions from four to one keeps human recall at the same value while human precision drops. Because recall stays fixed, it can be used to recover p for each word.

Nouns such as elephant and tennis get large p, while verbs and adjectives get smaller p. The authors attribute the smaller values to subjects describing attributes less often and to synonyms that replace the same attribute. The authors propose Precision at Human Recall, which reads a system's precision at the human recall of a word and compares it with human precision.

## Submitting results to the server

Participants create a CodaLab account, since the evaluation server is hosted there. They generate results for both the validation and testing images and create two JSON files, one per dataset. Each entry holds an integer image id and a caption string, and the files are zipped before upload. On validation, participants train only on the training set and use validation images just for tuning, while test results may also use the validation set.

## Limitations

Automatic metrics do not always match human judgment, so the scores can't yet be fully trusted as quality measures. The authors hope to run human experiments that judge caption quality and grammatical correctness. The paper reports no human judging experiments yet.

The word model assumes a subject never uses a word when its object is absent, and its main analysis uses k equal to 4.

## Paper info

- **Authors**: Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollar, C. Lawrence Zitnick
- **Venue**: arXiv · Preprint
- **First published**: 2015-4-1
- **Added**: 2026-11-12
- **Updated**: 2015-4-3
- **Version**: v2
- **arXiv**: 1504.00325
- **Category**: cs.CV · cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1504.00325v2) · [PDF ↗](https://arxiv.org/pdf/1504.00325v2)

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

Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollar, C. Lawrence Zitnick (2015). Microsoft COCO Captions: Data Collection and Evaluation Server. arXiv:1504.00325v2. https://arxiv.org/abs/1504.00325v2

**BibTeX**

```
@misc{chen2015microsoft,
  title = {{Microsoft COCO Captions: Data Collection and Evaluation Server}},
  author = {Xinlei Chen and Hao Fang and Tsung-Yi Lin and Ramakrishna Vedantam and Saurabh Gupta and Piotr Dollar and C. Lawrence Zitnick},
  year = {2015},
  eprint = {1504.00325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1504.00325v2}
}
```

## Other paper commentary

- [Measuring Mathematical Problem Solving With the MATH Dataset](https://refivu.com/en/papers/11c81528-fe00-480d-b385-0b65503db8a1-measuring-mathematical-problem-solving-with-the-math-dataset.md)
- [OpenAI Gym](https://refivu.com/en/papers/0be35f1c-219a-4606-a9f9-894f5c111448-openai-gym.md)
- [Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlation](https://refivu.com/en/papers/8d51315a-ef79-4c4f-a429-17bee5b397f4-evaluation-from-precision-recall-and-f-measure-to.md)
- [Puzzling-Bench: Evaluating Language Models on 23,777 Human-Written Puzzles with Community-Verified Answers](https://refivu.com/en/papers/1b9641d7-d6fa-4ead-8f16-7134498580d3-puzzling-bench-evaluating-language-models-on-23-777.md)
- [Refusal Is Not Scored: A Coverage Limit in Content-Based Bias Evaluation](https://refivu.com/en/papers/d282d82d-de6e-498c-898b-66902724ac0d-refusal-is-not-scored-a-coverage-limit-in.md)
- [ProMiSE: Protein Multi-State Evaluation Benchmark in Biological Contexts](https://refivu.com/en/papers/e163e455-fb04-4bd6-8669-b48b49fec9e9-promise-protein-multi-state-evaluation-benchmark-in.md)
- [Crowdsourcing a Word-Emotion Association Lexicon](https://refivu.com/en/papers/3b0b67cb-6dd6-4162-9110-cdbb5d2cea2a-crowdsourcing-a-word-emotion-association-lexicon.md)
- [A Neural Attention Model for Abstractive Sentence Summarization](https://refivu.com/en/papers/d68d7c9a-7c6e-4b4f-a4e9-ba1853fdfad2-a-neural-attention-model-for-abstractive-sentence.md)
- [KAN: Kolmogorov-Arnold Networks](https://refivu.com/en/papers/6f4194fb-1ce0-4686-96f9-6fc10958db2e-kan-kolmogorov-arnold-networks.md)
- [From Frequency to Meaning: Vector Space Models of Semantics](https://refivu.com/en/papers/dc10591f-f090-4830-a33f-924cbfeba0ff-from-frequency-to-meaning-vector-space-models-of.md)
- [Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learning](https://refivu.com/en/papers/e553048e-8e0b-413a-97b2-7c98f997c30c-virtual-adversarial-training-a-regularization-method-for.md)
- [Unsupervised Learning of Depth and Ego-Motion from Video](https://refivu.com/en/papers/c545cc84-bdea-4ac2-ba9d-bf5f4a19568c-unsupervised-learning-of-depth-and-ego-motion-from.md)

## Terms in this paper

- [BLEU](https://refivu.com/en/terms/42cd9b97719e-bleu)
- [CIDEr](https://refivu.com/en/terms/bd6b0acc54ba-cider)
- [Image Captioning](https://refivu.com/en/terms/9597f1623624-image-captioning)
- [TF-IDF](https://refivu.com/en/terms/b8fd079027e3-tf-idf)
- [METEOR](https://refivu.com/en/terms/71303f52a19d-meteor)
- [longest common subsequence](https://refivu.com/en/terms/b0a5cd89a6bb-longest-common-subsequence)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/1cf4256e-f015-43b3-a7f1-14167d272b8f-microsoft-coco-captions-data-collection-and-evaluation)
