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.
| Property | Value | Notes |
|---|---|---|
| Images | 31,783 | Photographs sourced from Flickr |
| Captions per image | 5 | Written independently by different workers |
| Total captions | About 158,900 | English, one sentence each |
| Average caption length | About 12 words | Varies from short to detailed |
| Phrase-box links (Entities) | About 276,000 boxes | Added in 2015 for grounding |
| Coreference chains (Entities) | About 244,000 | Link mentions across the five captions |
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.
| Task | Typical metrics | What a high score means |
|---|---|---|
| Image-to-text retrieval | R@1, R@5, R@10 | Correct captions rank near the top |
| Text-to-image retrieval | R@1, R@5, R@10 | Correct image ranks near the top |
| Image captioning | BLEU-4, METEOR, CIDEr, SPICE | Generated text matches human references |
| Phrase grounding | Accuracy at IoU 0.5 | Phrases are localized to the right boxes |
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 compared with related datasets
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.
| Dataset | Approximate size | Caption source | Typical role |
|---|---|---|---|
| Flickr8k | 8,000 images | Crowd workers, 5 per image | Early captioning research |
| Flickr30k | 31,800 images | Crowd workers, 5 per image | Retrieval and captioning benchmark |
| COCO Captions | 123,000 images | Crowd workers, 5 per image | Primary captioning benchmark |
| Conceptual Captions | 3.3 million pairs | Filtered web alt text | Pretraining data |
| Visual Genome | 108,000 images | Region descriptions and graphs | Dense scene understanding |
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.
| Situation | Recommended use | Reason |
|---|---|---|
| Comparing a new embedding model | Zero-shot retrieval on Karpathy test | Results are directly comparable with published numbers |
| Studying caption generation | Fine-tune and report CIDEr and SPICE | Five references reduce scoring noise |
| Building a grounding system | Use Flickr30k Entities annotations | Phrase-to-box links are provided |
| Pretraining a large model | Use web-scale corpora instead | Flickr30k is too small |
| Commercial product training | Review license terms first | Images remain under Flickr owners’ rights |
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.