RepoAmazon (Nova)Amazon (Nova)published Nov 4, 2026seen 2w

amazon-science/wire

Python

Open original ↗

Captured source

source ↗
published Nov 4, 2026seen 2wcaptured 2whttp 200method plain

amazon-science/wire

Language: Python

License: NOASSERTION

Stars: 0

Forks: 0

Open issues: 1

Created: 2026-11-04T21:28:49Z

Pushed: 2026-11-07T22:44:01Z

Default branch: main

Fork: no

Archived: no

README:

WIRE: a human-annotated resource for multimodal image retrieval

Companion repository of the paper *WIRE: A Large Human-Annotated Resource for Multimodal Image Retrieval* (under review). It ships the human relevance annotations, the identifiers needed to rebuild the dataset from public sources, the toolkit that rebuilds it, and the paper's result tables.

Abstract

While billions of weakly-supervised image-caption pairs exist for vision-language pre-training, no comparable resource offers human relevance judgments for evaluating image retrieval from information-seeking queries. We introduce WIRE, a benchmark of 99,089 human-annotated (query, image, web document) tuples spanning 13,260 image-seeking queries targeting LLM-augmented search scenarios. Each query is paired with a pool of candidate images, and every candidate includes the image (URL, pixels, caption) and its parent web document from which arbitrary context can be derived, and carries graded relevance labels from multiple annotators. Results of our experiments to assess the complexity and utility of WIRE show that (i) modern vision-language models remain far from the oracle ceiling in the zero-shot setting; (ii) fusing image, caption, and contextual signals from the parent web document through fine-tuning consistently improves ranking performance.

The dataset

| Feature | Value | |---|---| | Judged (query, image) pairs | 77,250 released (99,089 annotated) | | Queries | 13,120 (train 10,165 / val 986 / test 1,969) | | Images | 73,480, referenced by URL | | Labels | 17,233 highly relevant, 48,140 somewhat relevant, 11,877 irrelevant | | Query source | Natural Questions question/answer pairs rewritten into image-seeking queries | | Page context | public mlfoundations/MINT-1T-HTML rows, located down to the parquet page | | Languages | queries English; pages predominantly English | | License | CC BY-NC 4.0, except data/wire_queries.parquet (CC BY-SA 3.0); see [License](#license) |

How it was built. Queries derive from Natural Questions: an LLM (DeepSeek-R1-Distill-Qwen-32B, prompt in prompts/image_seeking_query.txt) judged whether a question/answer pair could be enriched by an image and, if so, rewrote it into a short image-seeking query; unsuitable pairs were discarded. For each query, the top-20 documents of a BM25 index over the MINT-1T-HTML web corpus were retrieved and their images (above an icon-size threshold) became the candidate pool, about 7 images per query, each with its alt-text caption and its parent page. Because candidates come from retrieved documents rather than random sampling, every negative is topically related to the query, and several candidates often share a page.

Annotation. Crowd workers on Amazon Mechanical Turk saw the query, the image and its caption and rated each pair *Highly Relevant*, *Somewhat Relevant* or *Irrelevant* (a fourth option flagged images that failed to load). Each pair was judged by at least two workers, with a third recruited on disagreement; control questions with known answers filtered inattentive workers. The released label is the majority vote over the retained judgments, ties resolved to *Somewhat Relevant*. Pairs whose judgments split between *Irrelevant* and a relevant grade with no tie-breaker are flagged safe_for_eval = false: they stay in the training split and are excluded from validation and test.

Splits are by query. The paper describes the full annotated set; the release leaves out the hard disagreements of validation and test queries, the queries whose Natural Questions pair could not be verified, and every pair whose image or page is hosted on a site that disallows automated access by Amazon's crawlers or that is a licensed news or stock-photo source.

docs/SCHEMA.md documents every column; docs/KNOWN_GAPS.md lists the known limits; docs/RESULTS.md reproduces the paper's result tables and baselines.

What is shipped, and what is not

Shipped

  • data/wire_queries.parquet, data/wire_images.parquet, data/wire_labels.parquet: the queries,

the image and page URLs, and the labels with the train / val / test split.

  • data/wire_mint.parquet, data/wire_mint_pages.parquet: where each image's page sits in the public

MINT-1T-HTML corpus, down to the parquet data pages that hold it, so a rebuild reads 72 GB of pages instead of the 3 TB corpus.

  • data/MANIFEST.json with the sha256 of every table, the query-generation prompt, and the toolkit that

rebuilds the full dataset.

Not shipped (third-party content, rebuilt locally by the toolkit)

  • Image bytes: fetched from image_url.
  • The Natural Questions question, answers and context: joined from the public dataset

lucadiliello/naturalquestionsshortqa through nq_key.

  • Captions and page text: read from the public mlfoundations/MINT-1T-HTML rows the release points at

(or re-crawled from page_url).

  • Per-annotator judgments: only the consolidated label is released.

The tables have different schemas: load them one at a time (for example load_dataset("parquet", data_files="data/wire_labels.parquet")) or read the parquet files directly.

Rebuilding the full dataset

pip install -e '.[build]' # aiohttp, pillow, trafilatura, lxml, datasets
export HF_TOKEN=... # a huggingface.co token: the MINT step makes many small requests
wire-build --release data --out BUILD_DIR # tables, Natural Questions join, images, paragraphs from MINT-1T-HTML
wire-verify --data data --build BUILD_DIR # sha256 of the tables, fetch outcomes per split
wire-assemble --out BUILD_DIR # datasets.DatasetDict with an Image column

wire-build writes BUILD_DIR/images/{image_id}.jpg, a fetch_log.parquet with one row per image (outcome, HTTP status, content type, size, md5, decoded format and dimensions, error, attempts), fetch_report.json, wire_queries_full.parquet with the restored Natural Questions fields, wire_documents.parquet with the caption and the paragraphs around each image, and BUILD_MANIFEST.json.

The downloader (wire-fetch) identifies itself, makes one request at a time per host with a pause between them, honours X-Robots-Tag directives, verifies that what it stored decodes as an image, and then runs three recovery passes over the...

Excerpt shown — open the source for the full document.