Papers
Topics
Authors
Recent
Search
2000 character limit reached

MS COCO: Object Detection & Captioning Dataset

Updated 1 April 2026
  • MS COCO is a large-scale dataset with over 2.5M annotated objects across 91 categories, emphasizing context-rich and complex scenes.
  • It provides detailed annotations such as segmentation masks, bounding boxes, keypoints, and captions, enabling robust algorithm evaluation.
  • Standardized evaluation metrics and well-structured training, validation, and test splits facilitate benchmarking advances in detection and multimodal tasks.

Microsoft Common Objects in Context (MS COCO) is a large-scale object detection, segmentation, and captioning dataset designed to facilitate and benchmark algorithms' ability to recognize and localize "things" in complex, non-iconic scenes. Its primary aim is to advance the state-of-the-art in object recognition by embedding object perception within the broader challenge of scene understanding. Unlike earlier datasets that focused on iconic or single-object images, MS COCO prioritizes context, clutter, occlusion, and diversity of object instances, with rich per-instance annotations and multiple levels of semantic granularity. With over 2.5 million labeled objects from 91 categories in more than 328,000 images, MS COCO has established itself as a foundational resource for computer vision research and challenge evaluation (Lin et al., 2014).

1. Dataset Design, Annotation Protocols, and Structure

MS COCO's construction follows a multi-stage pipeline to promote non-canonical views and context-rich scenes:

  • Image Harvesting: Images are sourced predominantly from Flickr, using compound queries of object-object (e.g., “dog + car”) or object–scene (e.g., “chair + kitchen”) types. Post-search, human workers use a 128-thumbnail Amazon Mechanical Turk (AMT) interface to cull iconic/outlier images, yielding 328,000 candidate images (Lin et al., 2014).
  • Annotation Workflow: All annotation is performed on AMT in three consecutive staged tasks, optimizing for annotation quality and granularity:
    • Category detection: Workers classify objects present in an image by super-category, tag representative regions, and then advance subordinate detections to the next round if present. A union of annotations from eight workers is used.
    • Instance spotting: Eight annotators per category provide up to 10 object instance locations, with UI support for small-object detection.
    • Instance segmentation: Workers draw polygons for each instance using a modified OpenSurfaces UI after passing a category-specific qualification test. Each mask is verified by 3–5 workers and must get at least 4/5 positive votes; failed masks are re-annotated.
    • Crowds/Ignore Regions: In images with more than 10 indistinguishable instances (e.g., crowds), a single “crowd” mask is drawn and excluded from most evaluations.
  • Annotation Formats:
    • Segmentation masks: Binary Mk(i,j){0,1}\mathcal{M}_k(i,j) \in \{0,1\} for each instance, with support for occlusion/overlap between masks.
    • Bounding boxes: For each mask, a minimal bounding rectangle Bk=[x1,y1,x2,y2]\mathbf{B}_k = [x_1, y_1, x_2, y_2] is computed from the mask’s nonzero pixels.
    • Keypoints: Provided for the “person” category.
    • Captions: Five independent captions per image in the caption extension (Chen et al., 2015).
  • Splits and File Structure: The 2014 release comprises a training set (82,783 images, \sim1M instances), a validation set (40,504 images), and a test set (40,775 images). JSON annotation files adhere to a consistent schema for images, annotations, and object categories, with captions in separate files (Lin et al., 2014, Chen et al., 2015).

2. Statistical Properties and Benchmark Difficulty

MS COCO is characterized by both the diversity and context of its scenes and the fine-grained nature of its annotations:

  • Categories and Instances: 91 “thing” categories (all PASCAL VOC 20 included) with \sim2.5M object instances. 82 categories have >>5000 instances each; mean per-category instance count is \approx27,000, exceeding PASCAL VOC (1,350) and comparable to ImageNet only for long-tail classes (Lin et al., 2014).
  • Scene and Object Complexity: The mean number of categories per image is 3.5 and instances per image 7.7—higher contextual density than PASCAL (>>60% images single-category) or ImageNet Detection (>>60% iconic). Only 10% of COCO images are single-category, uniquely enabling research into contextual reasoning (Lin et al., 2014).
  • Object Size and Occulusion: The dataset exhibits a greater prevalence of small, partially occluded, and background instances, with mean annotated object area smaller than PASCAL or ImageNet Detection.
  • Comparative Table:

| Dataset | #Categories | #Images | Avg instances/image | Avg categories/image | |-------------------|-------------|----------|---------------------|---------------------| | PASCAL VOC 2012 | 20 | 11,000 | 2.3 | 1.6 | | ImageNet Detection| 200 | ~400,000 | 3.0 | 1.7 | | SUN | 908 | ~15,000 | 17.4 | — | | MS COCO | 91 | 328,000 | 7.7 | 3.5 |

Compared to other benchmarks, MS COCO offers both denser object occurrence and more “in-the-wild” variation, making it systematically more challenging.

3. Evaluation Metrics and Leaderboard Protocols

MS COCO has standardized detection, segmentation, and captioning evaluation protocols:

  • Detection:

    IoU=BpredBgtBpredBgt\text{IoU} = \frac{|B_\text{pred} \cap B_\text{gt}|}{|B_\text{pred} \cup B_\text{gt}|} - Average Precision (AP) per category is the area under the precision-recall curve:

    AP=01p(r)drAP = \int_0^1 p(r)\, dr - Mean Average Precision (mAP) is averaged over all Bk=[x1,y1,x2,y2]\mathbf{B}_k = [x_1, y_1, x_2, y_2]0 categories:

    Bk=[x1,y1,x2,y2]\mathbf{B}_k = [x_1, y_1, x_2, y_2]1 - Challenge results are reported at multiple IoU thresholds (e.g., 0.50, 0.75, and averaged over thresholds from 0.50 to 0.95).

  • Captioning:

    • The server computes BLEU, METEOR, ROUGE-L, and CIDEr (Chen et al., 2015).
    • CIDEr employs TF–IDF n-gram weighting and a Gaussian penalty on length to provide strong correlation with human preference.
    • Candidates and references are matched per image, and averages across the validation/test set are reported to ensure comparability (Chen et al., 2015).
  • Baseline Algorithms: The Deformable Parts Model (DPMv5-P, DPMv5-C) yields substantially lower AP for COCO than PASCAL (e.g., DPMv5-P drops 12.7 points when tested on COCO vs. PASCAL), illustrating dataset difficulty (Lin et al., 2014).

4. Extensions, Refinements, and Known Biases

A growing set of community extensions has refined MS COCO, addressed annotation bias, and enabled new tasks:

  • Sama-COCO: A re-annotation that corrects contour-style bias, crowd-handling, and occluder labeling via more “pixel-tight” polygons. Quantitative analysis reveals mean surface distances between MS COCO and Sama-COCO polygons (~70% differ Bk=[x1,y1,x2,y2]\mathbf{B}_k = [x_1, y_1, x_2, y_2]21 px), changes in crowd instance accounting (+30% in Sama-COCO), and significant drops in cross-style mAP even for perfect predictors, exposing the impact of annotation policy (Zimmermann et al., 2023).
  • MJ-COCO: Employs pseudo-labeling and anomaly detection to correct missing labels, misclassifications, bounding box errors, duplicates, and group inconsistencies. Coverage of small object annotations increases by Bk=[x1,y1,x2,y2]\mathbf{B}_k = [x_1, y_1, x_2, y_2]3200,000, and models trained on MJ-COCO achieve consistent mAP and AP_S gains across multiple external benchmarks (Kim et al., 1 Jun 2025).
  • 3D-COCO: Complements 2D labels with Bk=[x1,y1,x2,y2]\mathbf{B}_k = [x_1, y_1, x_2, y_2]428K CAD models, matching each annotation to its top-3 CAD shapes by 2D silhouette IoU for tasks in 3D reconstruction and detection, with explicit JSON structure and matching indices for 2D–3D alignment (Bideaux et al., 2024).
  • Biases and Generalization: Annotation biases affect downstream detection, especially under domain shift or when merging datasets with different policies. Overfitting to specific annotation styles is an empirically validated risk (Zimmermann et al., 2023, Kim et al., 1 Jun 2025).

5. Captioning, Retrieval, and Multimodal Benchmarks

COCO’s captioning and cross-modal semantics infrastructure provides testbeds for image-language tasks:

  • MS COCO Captions: 1.5M captions for 330K images, with five human-written references per image, collected under strict guidelines to maximize informativeness and diversity. All are released in JSON, cross-referenced by image_id (Chen et al., 2015).
  • Evaluation Protocols: The official server standardizes BLEU, METEOR, ROUGE-L, and CIDEr; candidate captions are uploaded via CodaLab and evaluated on private references to prevent metric overfitting.
  • ECCV Caption: Addresses systematic false negatives in image-caption matching by expanding positive associations ×3.6 (image→cap) and ×8.5 (cap→image) using machine-in-the-loop labeling and human verification. A ranking-based metric, mAP@R, supersedes Recall@K for robust evaluation, with accompanying scripts and data for benchmarking (Chun et al., 2022).
  • Crisscrossed Captions (CxC): Delivers continuous semantic similarity scores for 267,095 pairs of images/captions, including inter-modal (image–caption), intra-modal (caption–caption, image–image) labels, supporting new learning and evaluation workflows (Parekh et al., 2020).

6. Downstream Applications, Subsetting, and Usage Notes

MS COCO underpins a spectrum of computer vision benchmarks, algorithm development, and task-specific fine-tuning:

  • Detection, Segmentation, Keypoints: Standard training and evaluation splits are used by architectures ranging from classical DPM to modern CNNs (Faster/Mask R-CNN, YOLO, DETR).
  • Subsetting for Targeted Tasks: Fine-tuning on category subsets is supported, with tools to sample images and annotations for any desired class list, improving detection performance on specific object subsets (e.g., person/car) (Sonntag et al., 2017).
  • Synthetic Data and Robustness: MS COCOAI enables benchmarking of human-vs-synthetic image detectors by aligning real COCO captions to images generated from multiple diffusion models, with class balancing and accuracy metrics for both binary and generator attribution tasks (Roy et al., 2 Jan 2026).
  • Out-of-distribution Generalization: COCO_OI (COCO+OpenImages) and ObjectNet_D extend MS COCO with additional data and context diversity; evaluation on these sets reveals AP collapse when models are transferred, highlighting the importance of size, background modeling, and cross-domain training (Borji, 2022).

7. Summary and Outlook

MS COCO has established a modern standard for large-scale detection, segmentation, and captioning, with rigorous annotation protocols, a focus on context, and comprehensive evaluation metrics (Lin et al., 2014). Its widespread adoption has catalyzed robust methodological progress and prompted critical re-examination of benchmark saturation, annotation bias, and the need for continual refinement. Successive extensions (captions, keypoints, 3D-COCO, re-annotations, synthetic data augmentations) ensure that MS COCO remains relevant to the evolving scope of vision tasks and supports principled algorithm comparison, domain adaptation, and semantic grounding at scale.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to MS COCO Dataset.