This repository contains scripts and instructions to reproduce the COCO-Urdu dataset, a large-scale Urdu image-caption dataset derived from MS COCO. The dataset is accompanied by a hybrid multimodal quality estimation (QE) pipeline for translation, validation, and iterative refinement.
- Research Paper: https://www.arxiv.org/abs/2509.09014
- Dataset: COCO-Urdu on Hugging Face
Urdu, spoken by over 250 million people, remains critically under-served in multimodal and vision-language research. COCO-Urdu addresses this gap by providing 59K images and 319K high-quality Urdu captions. Captions were generated via zero-shot translation using SeamlessM4T v2, validated with a hybrid QE pipeline combining COMET-Kiwi, CLIP-based visual grounding, and BERTScore with back-translation, and low-scoring captions were iteratively refined using open-source LLMs.
This repository contains scripts for preprocessing, translation, quality estimation, refinement, benchmarking, and dataset assembly to reproduce the full pipeline.
Follow these steps to reproduce the COCO-Urdu dataset:
-
Dataset Splitting
Load the MS COCO dataset and preprocess it using thedataset_splitscript to generate the desired training and validation splits. -
Translation with Hybrid QE
Generate Urdu translations and validate them with the hybrid multimodal quality estimation pipeline using thetranslation_pipelinescript.
Requirements: GPU (≥32GB recommended, e.g., A100 or RTX 5090). The pipeline supports distributed execution across multiple GPUs for faster processing. -
Reference Translation Generation
Produce reference translations for evaluation using thenllb_reference_generationscript. GPU execution is recommended. -
Iterative Refinement of Low-Scoring Captions
Refine captions identified as low-quality by the hybrid QE pipeline using thetargeted_refinementsscript. -
Benchmarking
Evaluate captions before and after refinement with thebenchmarkingscript. This handles all metrics and ensures consistency across iterations. -
Final Dataset Assembly
Collate all processed translations and generate the final version of COCO-Urdu using thegenerate_final_versionscript.
Note: Depending on hardware and compute resources, full reproduction may take up to ~40 hours.
Consider citing the work if you find this helpful
@inproceedings{Hassan2025COCOUrduAL,
title={COCO-Urdu: A Large-Scale Urdu Image-Caption Dataset with Multimodal Quality Estimation},
author={Umair Hassan},
year={2025},
url={https://api.semanticscholar.org/CorpusID:281252320}
}