idoco/PopVQA

Dataset

5

stars

11

commits

1

linked in READMEs

Aug 31, 2025

updated

README

PopVQA: Popular Entity Visual Question Answering

PopVQA is a dataset designed to study the performance gap in vision-language models (VLMs) when answering factual questions about entities presented in images versus text.

Paper: https://huggingface.co/papers/2412.14133 Code: https://github.com/ido-co/vlm-modality-gap

PopVQA Teaser

πŸ” Motivation

Motivation

PopVQA was curated to explore the disparity in model performance when answering factual questions about an entity described in text versus depicted in an image. This is achieved by asking the same questions twice, once with the textual representation (the entity's name), then, with the visual representation (entity image). We include several questions about every entity to allow a more fine grained evaluation. This dataset was introduced in the paper:

"Performance Gap in Entity Knowledge Extraction Across Modalities in Vision Language Models"
Ido Cohen, Daniela Gottesman, Mor Geva, Raja Giryes (2025)

πŸ“¦ Dataset Structure

The dataset consists of:

  • entities.csv: Metadata of 15,395 popular entities, of various types (celebrities, landmarks, logos, and paintings).
  • questions.csv: Over 100,000 factual questions, each given in two forms: one referring to a textual representation and one referring to a visual representation of the entity.
  • original_path/: Original images.
  • resized_path/: Images resized to 336Γ—336 with aspect ratio preserved via padding.

entities.csv columns:

ColumnDescription
typeEntity type (e.g., celebs, logos)
subjectEntity name
s_uriWikidata URI of the subject
popularityWikipedia popularity score
aliasesAlternate names/aliases for the entity
imagewiki commons url
original_pathPath to the original image
resized_pathPath to the 336x336 padded image

questions.csv columns:

ColumnDescription
typeEntity type
subjectEntity name
question_for_imageQuestion phrased for visual context (e.g., β€œ...in this image?”)
questionTextual version of the same question
possible_answersList of acceptable answers
relationRelation name (e.g., occupation, language)
s_uri, r_uri, a_uriWikidata URIs for subject, relation, and answer
attribute, a_typeAnswer string and attribute types (e.g., "language")

πŸ—οΈ Reproducing the questions.csv File

To regenerate the questions.csv file used in this dataset, you can use the provided script in the scripts/ directory.

πŸ“‚ Required Structure

Before running the script, make sure your working directory contains:

  • A base dataframe CSV with at least the following columns:
    • s_uri: Wikidata URI of the entity
    • type: Category of the entity (e.g., celebs, logos, etc.)
  • A folder called relation_templates/, which should include files named like:
    • relation_templates_celebs.csv
    • relation_templates_logos.csv
    • etc.
  • Refer to the existing files for reference and structure.

πŸ§ͺ Generating the Questions

To build the dataset, run:

python scripts/build_dataset.py --base-df path/to/base_entities.csv

Contributors

idoco

10 commits

nielsr

1 commits

idoco/PopVQA

Dataset

5

stars

11

commits

1

linked in READMEs

Aug 31, 2025

updated

README

PopVQA: Popular Entity Visual Question Answering

PopVQA is a dataset designed to study the performance gap in vision-language models (VLMs) when answering factual questions about entities presented in images versus text.

Paper: https://huggingface.co/papers/2412.14133 Code: https://github.com/ido-co/vlm-modality-gap

PopVQA Teaser

πŸ” Motivation

Motivation

PopVQA was curated to explore the disparity in model performance when answering factual questions about an entity described in text versus depicted in an image. This is achieved by asking the same questions twice, once with the textual representation (the entity's name), then, with the visual representation (entity image). We include several questions about every entity to allow a more fine grained evaluation. This dataset was introduced in the paper:

"Performance Gap in Entity Knowledge Extraction Across Modalities in Vision Language Models"
Ido Cohen, Daniela Gottesman, Mor Geva, Raja Giryes (2025)

πŸ“¦ Dataset Structure

The dataset consists of:

  • entities.csv: Metadata of 15,395 popular entities, of various types (celebrities, landmarks, logos, and paintings).
  • questions.csv: Over 100,000 factual questions, each given in two forms: one referring to a textual representation and one referring to a visual representation of the entity.
  • original_path/: Original images.
  • resized_path/: Images resized to 336Γ—336 with aspect ratio preserved via padding.

entities.csv columns:

ColumnDescription
typeEntity type (e.g., celebs, logos)
subjectEntity name
s_uriWikidata URI of the subject
popularityWikipedia popularity score
aliasesAlternate names/aliases for the entity
imagewiki commons url
original_pathPath to the original image
resized_pathPath to the 336x336 padded image

questions.csv columns:

ColumnDescription
typeEntity type
subjectEntity name
question_for_imageQuestion phrased for visual context (e.g., β€œ...in this image?”)
questionTextual version of the same question
possible_answersList of acceptable answers
relationRelation name (e.g., occupation, language)
s_uri, r_uri, a_uriWikidata URIs for subject, relation, and answer
attribute, a_typeAnswer string and attribute types (e.g., "language")

πŸ—οΈ Reproducing the questions.csv File

To regenerate the questions.csv file used in this dataset, you can use the provided script in the scripts/ directory.

πŸ“‚ Required Structure

Before running the script, make sure your working directory contains:

  • A base dataframe CSV with at least the following columns:
    • s_uri: Wikidata URI of the entity
    • type: Category of the entity (e.g., celebs, logos, etc.)
  • A folder called relation_templates/, which should include files named like:
    • relation_templates_celebs.csv
    • relation_templates_logos.csv
    • etc.
  • Refer to the existing files for reference and structure.

πŸ§ͺ Generating the Questions

To build the dataset, run:

python scripts/build_dataset.py --base-df path/to/base_entities.csv

Contributors

idoco

10 commits

nielsr

1 commits