Flickr30k

On this page 7

Flickr30k is a benchmark dataset of roughly 31,800 photographs collected from the photo-sharing site Flickr, each paired with five independent English captions written by human annotators. In artificial intelligence, it belongs to the family of well-known training data resources for vision and language research, where it serves mainly as a compact, standardized test bed for image captioning and image-text retrieval.

Released in 2014 by researchers at the University of Illinois as an extension of the smaller Flickr8k collection, the dataset focuses on everyday scenes of people and animals engaged in activities. Its modest size, fixed evaluation splits and dense human descriptions made it one of the most cited multimodal benchmarks of the deep learning era, and it remains a common zero-shot retrieval test for modern vision-language models.

How Flickr30k was built

Flickr30k was assembled by selecting Flickr photos of people and animals in action and then asking crowd workers to describe each one. The authors chose images from a set of activity-oriented Flickr groups, which deliberately excluded landscapes, product shots and abstract images, so that every picture contained describable entities and events.

Captions were gathered through crowdsourced labeling on Amazon Mechanical Turk. Each worker saw a single image and wrote one sentence describing its important people, objects, scenes and actions, guided by short annotation guidelines that asked for complete, factual sentences. Because five workers described every image independently, the dataset captures natural variation in human description, which later became essential for fair evaluation.

The following table summarizes the core composition of the original release and its most common extension.

PropertyValueNotes
Images31,783Photographs sourced from Flickr
Captions per image5Written independently by different workers
Total captionsAbout 158,900English, one sentence each
Average caption lengthAbout 12 wordsVaries from short to detailed
Phrase-box links (Entities)About 276,000 boxesAdded in 2015 for grounding
Coreference chains (Entities)About 244,000Link mentions across the five captions
Core composition of Flickr30k and Flickr30k Entities

Standard splits and evaluation protocols

Flickr30k is almost always used with the Karpathy split, a fixed partition introduced in 2015 that assigns 29,000 images to training, about 1,000 to validation and 1,000 images to testing. This split matters because results are only comparable when every model is scored on the same 1,000 test images and their 5,000 captions.

Two task families dominate. Image-text retrieval asks a model to rank all test captions for a given image, or all test images for a given caption, and reports Recall@K, the share of queries whose correct match appears among the top K results. Image captioning asks the model to generate a sentence, which is then compared with the five reference captions using n-gram and semantic metrics.

TaskTypical metricsWhat a high score means
Image-to-text retrievalR@1, R@5, R@10Correct captions rank near the top
Text-to-image retrievalR@1, R@5, R@10Correct image ranks near the top
Image captioningBLEU-4, METEOR, CIDEr, SPICEGenerated text matches human references
Phrase groundingAccuracy at IoU 0.5Phrases are localized to the right boxes
Main tasks and metrics on Flickr30k

Zero-shot evaluation has become the most frequent use in recent years: a model pretrained on large web corpora is tested on the Flickr30k test split without any fine-tuning, which offers a quick check of how well its image and text embeddings align.

Flickr30k sits between small curated caption sets and massive web-scraped corpora. Its closest relative is COCO Captions, which is larger and covers more object categories, while datasets such as Conceptual Captions and DataComp trade careful human annotation for scale. The table below positions Flickr30k among these neighbors in the training data landscape.

DatasetApproximate sizeCaption sourceTypical role
Flickr8k8,000 imagesCrowd workers, 5 per imageEarly captioning research
Flickr30k31,800 imagesCrowd workers, 5 per imageRetrieval and captioning benchmark
COCO Captions123,000 imagesCrowd workers, 5 per imagePrimary captioning benchmark
Conceptual Captions3.3 million pairsFiltered web alt textPretraining data
Visual Genome108,000 imagesRegion descriptions and graphsDense scene understanding
Flickr30k and neighboring image-text datasets

Several extensions reuse the same images. Flickr30k Entities links noun phrases in the captions to bounding boxes for visual grounding, and Multi30k adds German, French and Czech translations for multimodal machine translation. These derivatives keep the original images, so their licensing conditions follow the base dataset.

Practical use in model development

Teams use Flickr30k mainly as a fast, well-understood sanity check rather than as primary training data. Its 29,000 training images are far too few to pretrain a modern vision-language model, but they are sufficient for fine-tuning experiments, ablation studies and teaching, and the small test split runs in minutes.

Choosing how to use the dataset depends on the question being answered. The following decision table summarizes common situations.

SituationRecommended useReason
Comparing a new embedding modelZero-shot retrieval on Karpathy testResults are directly comparable with published numbers
Studying caption generationFine-tune and report CIDEr and SPICEFive references reduce scoring noise
Building a grounding systemUse Flickr30k Entities annotationsPhrase-to-box links are provided
Pretraining a large modelUse web-scale corpora insteadFlickr30k is too small
Commercial product trainingReview license terms firstImages remain under Flickr owners’ rights
When and how to use Flickr30k

A practical precaution is checking for test contamination. Because Flickr images circulate widely online, large web-scraped pretraining corpora may contain Flickr30k test images or near duplicates, so careful teams run training data deduplication against the test split before claiming zero-shot results.

Limitations, bias and benchmark saturation

Flickr30k has well-documented weaknesses that experienced practitioners account for when interpreting results. The most significant concern is dataset bias: analyses of the captions have found gender and ethnicity stereotypes, unwarranted inferences about relationships and occupations, and an overrepresentation of Western, English-speaking contexts.

  • Benchmark saturation: leading models now exceed 90 percent Recall@1 for image-to-text retrieval on the 1,000-image test set, so small differences rarely reflect meaningful progress.
  • Narrow domain: images center on people and animals in action, so strong scores do not transfer to documents, medical images or diagrams.
  • Caption subjectivity: the five references disagree on detail and wording, which caps how well n-gram metrics can reflect human judgment.
  • Licensing ambiguity: images are distributed for non-commercial research use, and the original photographers retain their rights.
  • Small test set: with only 1,000 test images, score differences under about one point often fall within run-to-run variance.

For these reasons, current evaluation practice reports Flickr30k alongside harder or broader benchmarks rather than relying on it alone, and treats caption content as a record of annotator perception rather than objective ground truth.

The short version

Flickr30k is a collection of about 31,000 everyday photos. Each photo has five short descriptions written by different people. One might say a dog jumps over a log. Another might say a brown dog leaps in a park.

Researchers use it like a standard exam for AI systems that connect pictures and words. The system must find the right sentence for a photo, or write its own description. Because everyone uses the same exam, scores are easy to compare. The exam is now quite easy for the best systems, so it is no longer the final word on quality.

Where it makes a difference

A small research team at a university lab trains a new image-text embedding model for searching a museum photo archive. Before testing on their own private collection, they run a zero-shot evaluation on the Flickr30k Karpathy test split: 1,000 images and 5,000 captions. The run takes under ten minutes on a single GPU.

Their model reaches 82 percent Recall@1 for text-to-image retrieval, close to published baselines of similar size, which confirms that the training pipeline works. The team then discovers that a few hundred test images appear in their scraped pretraining data. After removing the duplicates and retraining, the score drops by about two points, and the team reports the clean figure together with results on their archive, giving reviewers an honest picture of the model’s ability.