BiVLC is a benchmark for Bidirectional Vision-Language Compositionality evaluation. Each instance consists of two images and two captions. Using each of the images and captions as a base, a model is asked to select the pair that correctly represents the base versus the hard negative distractor with minor compositional changes. Thus, we can measure image-to-text and text-to-image retrieval with hard negative pairs. To obtain good results on the dataset, it is necessary that the model performs well in both directions for the same instance.
Each instance of the dataset consists of six fields:
To load data with datasets:
>>> data = load_dataset("imirandam/BiVLC", split = "test")
Each instance has the following structure:
{
'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=500x332 at 0x7F9BFC0C5430>,
'caption': 'A man throwing a ball while smiling and on a field.',
'negative_caption': 'A man throwing a ball while a child is smiling on a field.',
'negative_image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=512x512 at 0x7F9BE45571C0>,
'type': 'add',
'subtype': 'obj',
}
test: 2,933 instances formed by 2 images and 2 captions. 11,732 retrieval instances, 50% text-to-image and 50% image-to-text.
Step 1 - Uniformly format positive and hard negative captions
Step 2 - Generate hard negative images
Step 3 - Ask to human annotators to choose the best generated image
Step 4 - Filter ambiguous instances
If you need training and validation data, you can use the datasets proposed in the paper in the following links, TROHN-Text and TORHN-Img.
This work is licensed under a MIT License.
If you find this dataset useful, please consider citing our paper:
@misc{miranda2024bivlc,
title={BiVLC: Extending Vision-Language Compositionality Evaluation with Text-to-Image Retrieval},
author={Imanol Miranda and Ander Salaberria and Eneko Agirre and Gorka Azkune},
year={2024},
eprint={2406.09952},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
29 commits
BiVLC is a benchmark for Bidirectional Vision-Language Compositionality evaluation. Each instance consists of two images and two captions. Using each of the images and captions as a base, a model is asked to select the pair that correctly represents the base versus the hard negative distractor with minor compositional changes. Thus, we can measure image-to-text and text-to-image retrieval with hard negative pairs. To obtain good results on the dataset, it is necessary that the model performs well in both directions for the same instance.
Each instance of the dataset consists of six fields:
To load data with datasets:
>>> data = load_dataset("imirandam/BiVLC", split = "test")
Each instance has the following structure:
{
'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=500x332 at 0x7F9BFC0C5430>,
'caption': 'A man throwing a ball while smiling and on a field.',
'negative_caption': 'A man throwing a ball while a child is smiling on a field.',
'negative_image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=512x512 at 0x7F9BE45571C0>,
'type': 'add',
'subtype': 'obj',
}
test: 2,933 instances formed by 2 images and 2 captions. 11,732 retrieval instances, 50% text-to-image and 50% image-to-text.
Step 1 - Uniformly format positive and hard negative captions
Step 2 - Generate hard negative images
Step 3 - Ask to human annotators to choose the best generated image
Step 4 - Filter ambiguous instances
If you need training and validation data, you can use the datasets proposed in the paper in the following links, TROHN-Text and TORHN-Img.
This work is licensed under a MIT License.
If you find this dataset useful, please consider citing our paper:
@misc{miranda2024bivlc,
title={BiVLC: Extending Vision-Language Compositionality Evaluation with Text-to-Image Retrieval},
author={Imanol Miranda and Ander Salaberria and Eneko Agirre and Gorka Azkune},
year={2024},
eprint={2406.09952},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
29 commits