NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Open-domain Visual Entity Recognition: Towards Recognizing Millions of Wikipedia Entities

Hexiang Hu, Yi Luan, Yang Chen, Urvashi Khandelwal, Mandar Joshi, Kenton Lee, Kristina Toutanova, Ming-Wei Chang

TL;DR

This paper introduces OVEN (Open-domain Visual Entity recognitioN), a massive-scale challenge where models must link an image to one of six million Wikipedia entities based on a natural language query. By releasing the OVEN-Wiki dataset, the authors demonstrate that while state-of-the-art models like PaLI and CLIP show promise, there is still a massive performance gap between AI and humans in universal visual recognition.

What Problem Does This Paper Address?

Most computer vision benchmarks are "closed-world"—they ask models to choose from a fixed list of a few hundred or thousand categories (like "dog" or "car"). Even large-scale datasets like ImageNet-21k are limited to specific taxonomies. In contrast, the real world is "open-domain." A truly intelligent system should be able to identify specific entities—like the "Skanderbeg Museum" or a "Bugatti Veyron"—out of millions of possibilities.

The authors identify three main gaps in current research:

  1. Granularity: Existing benchmarks often focus on broad categories (e.g., "castle") rather than specific entities (e.g., "Windsor Castle").
  2. Intent Ambiguity: An image of a car in front of a building is ambiguous. Does the user want to know the car model or the building name?
  3. Label Space: There hasn't been a unified, massive label space that covers almost everything known to humankind.

OVEN addresses these by using Wikipedia as a universal entity space and using text queries to define the user's "recognition intent."

An illustration of the OVEN task, showing how images and queries are linked to specific Wikipedia entities.

Methods

The authors evaluate two primary architectural approaches to the OVEN task:

  • Dual Encoders (CLIP variants): These models treat the task as a retrieval problem. They encode the image-query pair and the Wikipedia entity (text + images) into a shared embedding space. The model then searches for the entity with the highest similarity score. The authors tested CLIP Fusion (adding transformer layers) and CLIP2CLIP (a lightweight re-weighting of similarity scores).
  • Encoder-Decoder (PaLI): This is a generative approach. The model (PaLI-3B or 17B) takes the image and query as input and auto-regressively "writes" the name of the entity. To ensure the output matches a real Wikipedia entry, they use a BM25 search to map the generated text to the closest valid entity name in the database.

To handle the massive scale of 6 million candidates, the retrieval models use ScaNN, an efficient library for approximate maximum inner product search.

Datasets

The core contribution is OVEN-Wiki, a dataset created by repurposing 14 existing datasets (including ImageNet21k, iNaturalist, and various VQA sets).

  • Grounding: All labels from these 14 sets were mapped to unique Wikipedia entities.
  • Scale: The total label space consists of 6,063,945 Wikipedia entities.
  • Splits: The data is split into "SEEN" entities (present in training) and "UNSEEN" entities (only in test/val) to measure the model's ability to generalize using its pre-trained knowledge.
  • Human Gold Set: A high-quality evaluation set of ~25,000 examples where human annotators verified entity links and rewrote queries to be unambiguous.
Statistics of the OVEN-Wiki dataset, showing the distribution of categories and data splits.

Key Insights and Ideas

  • Generative vs. Retrieval: Generative models (PaLI) are significantly stronger overall, particularly because they leverage the massive language-world knowledge baked in during their pre-training on billions of web pages.
  • The "Tail" Advantage: While PaLI wins on popular ("head") entities, CLIP-based retrieval models are surprisingly competitive or even better at recognizing rare ("tail") entities (see Figure 6). This suggests that explicit retrieval might be a better strategy for the "long tail" of knowledge.
  • The Generalization Trade-off: Fine-tuning models on OVEN-Wiki improves performance on seen entities but can actually hurt the model's ability to recognize unseen entities if trained for too many steps (see Figure 4).
  • Scaling is King: Moving from PaLI-3B to PaLI-17B resulted in a massive performance jump, suggesting that model capacity is a primary bottleneck for universal recognition.
Performance comparison on head vs. tail entities, showing PaLI's dominance on popular entities and CLIP's strength on rare ones.

Key Results

  • Top Performance: The PaLI-17B model achieved the best results with a 20.2% harmonic mean accuracy on the test set and 31.6% on the human-annotated set.
  • Human Gap: Humans (aided by search engines) achieved 77.7% accuracy. This ~46% gap highlights that OVEN is a very challenging benchmark for current AI.
  • KB Sensitivity: For retrieval models, accuracy declines linearly against the log-scale of the number of candidates. Moving from 20k to 6M candidates makes the task significantly harder (see Figure 5).
Impact of the number of Wikipedia candidates on model accuracy.

Limitations and Future Work

  • Constrained Decoding: The authors suggest that PaLI's performance could be improved by using "constrained decoding"—forcing the model to only generate strings that exist in the Wikipedia entity list.
  • Regularization: Better fine-tuning strategies are needed to prevent the model from "forgetting" its zero-shot capabilities while learning from the OVEN training data.
  • Knowledge-Intensive VQA: The authors view OVEN as a foundational step. Future work could use OVEN to link images to Wikipedia and then use the full text of the Wikipedia page to answer complex, multi-step reasoning questions.

Summary updated

BibTeX
@misc{hu2023open,
  author = {Hexiang Hu and Yi Luan and Yang Chen and Urvashi Khandelwal and Mandar Joshi and Kenton Lee and Kristina Toutanova and Ming-Wei Chang},
  title = {{Open-domain Visual Entity Recognition: Towards Recognizing Millions of Wikipedia Entities}},
  year = {2023},
  eprint = {2302.11154},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.11154},
}
Figure