Datasets:
analogy_id stringlengths 5 5 | word1 stringclasses 393
values | word2 stringclasses 395
values | word3 stringclasses 393
values | word4 stringclasses 395
values | category stringclasses 11
values |
|---|---|---|---|---|---|
00000 | Athens | Greece | Baghdad | Iraq | capital-common-countries |
00001 | Athens | Greece | Bangkok | Thailand | capital-common-countries |
00002 | Athens | Greece | Beijing | China | capital-common-countries |
00003 | Athens | Greece | Berlin | Germany | capital-common-countries |
00004 | Athens | Greece | Bern | Switzerland | capital-common-countries |
00005 | Athens | Greece | Cairo | Egypt | capital-common-countries |
00006 | Athens | Greece | Canberra | Australia | capital-common-countries |
00007 | Athens | Greece | Hanoi | Vietnam | capital-common-countries |
00008 | Athens | Greece | Havana | Cuba | capital-common-countries |
00009 | Athens | Greece | Helsinki | Finland | capital-common-countries |
00010 | Athens | Greece | Islamabad | Pakistan | capital-common-countries |
00011 | Athens | Greece | Kabul | Afghanistan | capital-common-countries |
00012 | Athens | Greece | London | England | capital-common-countries |
00013 | Athens | Greece | Madrid | Spain | capital-common-countries |
00014 | Athens | Greece | Moscow | Russia | capital-common-countries |
00015 | Athens | Greece | Oslo | Norway | capital-common-countries |
00016 | Athens | Greece | Ottawa | Canada | capital-common-countries |
00017 | Athens | Greece | Paris | France | capital-common-countries |
00018 | Athens | Greece | Rome | Italy | capital-common-countries |
00019 | Athens | Greece | Stockholm | Sweden | capital-common-countries |
00020 | Athens | Greece | Tehran | Iran | capital-common-countries |
00021 | Athens | Greece | Tokyo | Japan | capital-common-countries |
00022 | Baghdad | Iraq | Bangkok | Thailand | capital-common-countries |
00023 | Baghdad | Iraq | Beijing | China | capital-common-countries |
00024 | Baghdad | Iraq | Berlin | Germany | capital-common-countries |
00025 | Baghdad | Iraq | Bern | Switzerland | capital-common-countries |
00026 | Baghdad | Iraq | Cairo | Egypt | capital-common-countries |
00027 | Baghdad | Iraq | Canberra | Australia | capital-common-countries |
00028 | Baghdad | Iraq | Hanoi | Vietnam | capital-common-countries |
00029 | Baghdad | Iraq | Havana | Cuba | capital-common-countries |
00030 | Baghdad | Iraq | Helsinki | Finland | capital-common-countries |
00031 | Baghdad | Iraq | Islamabad | Pakistan | capital-common-countries |
00032 | Baghdad | Iraq | Kabul | Afghanistan | capital-common-countries |
00033 | Baghdad | Iraq | London | England | capital-common-countries |
00034 | Baghdad | Iraq | Madrid | Spain | capital-common-countries |
00035 | Baghdad | Iraq | Moscow | Russia | capital-common-countries |
00036 | Baghdad | Iraq | Oslo | Norway | capital-common-countries |
00037 | Baghdad | Iraq | Ottawa | Canada | capital-common-countries |
00038 | Baghdad | Iraq | Paris | France | capital-common-countries |
00039 | Baghdad | Iraq | Rome | Italy | capital-common-countries |
00040 | Baghdad | Iraq | Stockholm | Sweden | capital-common-countries |
00041 | Baghdad | Iraq | Tehran | Iran | capital-common-countries |
00042 | Baghdad | Iraq | Tokyo | Japan | capital-common-countries |
00043 | Baghdad | Iraq | Athens | Greece | capital-common-countries |
00044 | Bangkok | Thailand | Beijing | China | capital-common-countries |
00045 | Bangkok | Thailand | Berlin | Germany | capital-common-countries |
00046 | Bangkok | Thailand | Bern | Switzerland | capital-common-countries |
00047 | Bangkok | Thailand | Cairo | Egypt | capital-common-countries |
00048 | Bangkok | Thailand | Canberra | Australia | capital-common-countries |
00049 | Bangkok | Thailand | Hanoi | Vietnam | capital-common-countries |
00050 | Bangkok | Thailand | Havana | Cuba | capital-common-countries |
00051 | Bangkok | Thailand | Helsinki | Finland | capital-common-countries |
00052 | Bangkok | Thailand | Islamabad | Pakistan | capital-common-countries |
00053 | Bangkok | Thailand | Kabul | Afghanistan | capital-common-countries |
00054 | Bangkok | Thailand | London | England | capital-common-countries |
00055 | Bangkok | Thailand | Madrid | Spain | capital-common-countries |
00056 | Bangkok | Thailand | Moscow | Russia | capital-common-countries |
00057 | Bangkok | Thailand | Oslo | Norway | capital-common-countries |
00058 | Bangkok | Thailand | Ottawa | Canada | capital-common-countries |
00059 | Bangkok | Thailand | Paris | France | capital-common-countries |
00060 | Bangkok | Thailand | Rome | Italy | capital-common-countries |
00061 | Bangkok | Thailand | Stockholm | Sweden | capital-common-countries |
00062 | Bangkok | Thailand | Tehran | Iran | capital-common-countries |
00063 | Bangkok | Thailand | Tokyo | Japan | capital-common-countries |
00064 | Bangkok | Thailand | Athens | Greece | capital-common-countries |
00065 | Bangkok | Thailand | Baghdad | Iraq | capital-common-countries |
00066 | Beijing | China | Berlin | Germany | capital-common-countries |
00067 | Beijing | China | Bern | Switzerland | capital-common-countries |
00068 | Beijing | China | Cairo | Egypt | capital-common-countries |
00069 | Beijing | China | Canberra | Australia | capital-common-countries |
00070 | Beijing | China | Hanoi | Vietnam | capital-common-countries |
00071 | Beijing | China | Havana | Cuba | capital-common-countries |
00072 | Beijing | China | Helsinki | Finland | capital-common-countries |
00073 | Beijing | China | Islamabad | Pakistan | capital-common-countries |
00074 | Beijing | China | Kabul | Afghanistan | capital-common-countries |
00075 | Beijing | China | London | England | capital-common-countries |
00076 | Beijing | China | Madrid | Spain | capital-common-countries |
00077 | Beijing | China | Moscow | Russia | capital-common-countries |
00078 | Beijing | China | Oslo | Norway | capital-common-countries |
00079 | Beijing | China | Ottawa | Canada | capital-common-countries |
00080 | Beijing | China | Paris | France | capital-common-countries |
00081 | Beijing | China | Rome | Italy | capital-common-countries |
00082 | Beijing | China | Stockholm | Sweden | capital-common-countries |
00083 | Beijing | China | Tehran | Iran | capital-common-countries |
00084 | Beijing | China | Tokyo | Japan | capital-common-countries |
00085 | Beijing | China | Athens | Greece | capital-common-countries |
00086 | Beijing | China | Baghdad | Iraq | capital-common-countries |
00087 | Beijing | China | Bangkok | Thailand | capital-common-countries |
00088 | Berlin | Germany | Bern | Switzerland | capital-common-countries |
00089 | Berlin | Germany | Cairo | Egypt | capital-common-countries |
00090 | Berlin | Germany | Canberra | Australia | capital-common-countries |
00091 | Berlin | Germany | Hanoi | Vietnam | capital-common-countries |
00092 | Berlin | Germany | Havana | Cuba | capital-common-countries |
00093 | Berlin | Germany | Helsinki | Finland | capital-common-countries |
00094 | Berlin | Germany | Islamabad | Pakistan | capital-common-countries |
00095 | Berlin | Germany | Kabul | Afghanistan | capital-common-countries |
00096 | Berlin | Germany | London | England | capital-common-countries |
00097 | Berlin | Germany | Madrid | Spain | capital-common-countries |
00098 | Berlin | Germany | Moscow | Russia | capital-common-countries |
00099 | Berlin | Germany | Oslo | Norway | capital-common-countries |
Dataset Card for VisLingA
Dataset Summary
VisLingA (Visual Lingual Analogies) is a dataset for testing whether various analogies hold both visually and linguistically. An analogy is a relationship like "Paris is to France as London is to the UK", or more generally A:B::C:D (A is to B as C is to D). VisLingA is based on the analogies dataset of Mikolov et al. (2013), taking a subset of the analogies and concepts therein and adding images representing those concepts. VisLingA was introduced in Persistent Representational Misalignment Induces Vision-Language Model Failures.
VisLingA was compiled by scraping about 5-10 images per concept from Wikimedia Commons, only taking images in the public domain or with a CC0/CC-BY license. For per-image attribution, see ATTRIBUTION.md.
Usage
# pip install -q datasets
from datasets import load_dataset
images = load_dataset("YGideoni/VisLingA", "images", split="test")
analogies = load_dataset("YGideoni/VisLingA", "analogies", split="test")
An embedding has an analogy A:B::C:D if D is the nearest concept to B - A + C out of all the concepts, with A, B and C excluded from the candidates. For example, evaluating a text model:
# pip install -q datasets sentence-transformers
import numpy as np
from datasets import load_dataset
from sentence_transformers import SentenceTransformer
analogies = load_dataset("YGideoni/VisLingA", "analogies", split="test")
concepts = sorted(set(analogies["word1"]) | set(analogies["word2"]) | set(analogies["word3"]) | set(analogies["word4"]))
idx = {c: i for i, c in enumerate(concepts)}
# text: embed each concept word (for images, embed each image of a concept and average)
model = SentenceTransformer("all-MiniLM-L6-v2")
emb = model.encode(concepts, normalize_embeddings=True)
a, b, c, d = (np.array([idx[w] for w in analogies[f"word{k}"]]) for k in range(1, 5))
target = emb[b] - emb[a] + emb[c]
target /= np.linalg.norm(target, axis=1, keepdims=True)
sims = target @ emb.T
rows = np.arange(len(d))
sim_d = sims[rows, d]
for k in (a, b, c): # A, B and C are not candidates
sims[rows, k] = -np.inf
ranks = 1 + (sims > sim_d[:, None]).sum(axis=1)
print(f"top-10 accuracy: {np.mean(ranks <= 10):.3f}, mean rank: {ranks.mean():.1f}")
# top-10 accuracy: 0.865, mean rank: 17.3
eval_vislinga.py in this repository runs the same evaluation for text and image models (sentence-transformers, Hugging Face image models and OpenCLIP), and also reports top-1 accuracy, median rank and per-category scores:
hf download YGideoni/VisLingA eval_vislinga.py --repo-type dataset --local-dir .
python eval_vislinga.py --model all-MiniLM-L6-v2 --modality text --out results/
python eval_vislinga.py --model openclip:ViT-B-16:laion2b_s34b_b88k --modality image --out results/
Dataset Structure
Data Instances
The dataset has two configs, each with a single test split: analogies (15,455 analogies over 746 concepts) and images (7,365 images, about 5-10 per concept). Every word in analogies is a concept in images.
An example from analogies:
{
"analogy_id": "00000",
"word1": "Athens",
"word2": "Greece",
"word3": "Baghdad",
"word4": "Iraq",
"category": "capital-common-countries"
}
An example from images:
{
"image_id": "Athens/151201904",
"concept": "Athens",
"image": <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=875x1000>,
"commons_pageid": 151201904,
"commons_title": "Anafiotika - view of Athens with Saint George of the Rock Church's roof, 20240531 1204 9574.jpg",
"source_page": "https://commons.wikimedia.org/wiki/File:Anafiotika_-_view_of_Athens_with_Saint_George_of_the_Rock_Church's_roof,_20240531_1204_9574.jpg",
"author": "Jakub Hałun",
"author_url": "https://commons.wikimedia.org/wiki/User:Jakubhal",
"credit": "Own work",
"license": "cc-by-4.0",
"license_name": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"modifications": "Re-encoded as JPEG; Resized (longest side 1000 px)"
}
Data Fields
images:
image_id: unique identifier,<concept>/<commons_pageid>concept: the concept the image representsimage: the image (JPEG)commons_pageid: the image's Wikimedia Commons page idcommons_title: the file's title on Wikimedia Commonssource_page: URL of the file's Wikimedia Commons pageauthor: the image's creator, as plain text ("Unknown" for some public-domain and CC0 images)author_url: link to the creator's page, if availablecredit: the credit line given on Wikimedia Commons, if anylicense: normalised license id:public-domain,cc0-1.0orcc-by-<version>[-<jurisdiction>]license_name: the license as named on Wikimedia Commonslicense_url: link to the license text (null for public domain)modifications: changes made to the original file: "Converted to JPEG" or "Re-encoded as JPEG", plus "Resized (longest side 1000 px)" if it was downscaled
analogies:
analogy_id: the analogy's index in the source analogy datasetword1,word2,word3,word4: A, B, C and D in the analogy A:B::C:Dcategory: the analogy's category in the source dataset, e.g.capital-worldorgram3-comparative
Licensing Information
All images are from Wikimedia Commons and keep their original licenses: 3,156 are in the public domain, 1,656 are CC0 1.0, and 2,553 are under a CC BY license (versions 1.0-4.0, some ported to a jurisdiction). Each image's license, license URL, author, source page and modifications are given in the images config, and ATTRIBUTION.md credits every CC BY image. Reusing a CC BY image requires attributing it as its license specifies. Images whose Commons license was ambiguous (e.g. listed differently in the metadata vs description) were excluded.
The analogies are derived from the Google analogy dataset of Mikolov et al. (2013), released with word2vec under the Apache License 2.0. The analogies config redistributes a modified version of word2vec's questions-words.txt (Copyright 2013 Google Inc.) under the Apache License 2.0: it keeps only the analogies whose four words all have images, and drops the plural, present-participle and adjective-to-adverb categories.
Everything else in the dataset, including the selection of concepts and images and the attribution metadata, is licensed under CC BY 4.0. The evaluation code, eval_vislinga.py, is licensed under the MIT License.
Citation Information
@article{gideoni2026persistent,
title={Persistent Representational Misalignment Induces Vision-Language Model Failures},
author={Gideoni, Yonatan and Gelberg, Yoav and Rudner, Tim GJ and Gal, Yarin},
journal={arXiv preprint},
year={2026}
}
- Downloads last month
- 143