Introduction
Traditional image retrieval research typically focuses on the service provider's objective: optimizing how large-scale databases are organized for general user consumption. However, this paper addresses the inverse challenge from the user's perspective. Modern users often possess custom, black-box scoring models—such as neural networks trained on specific aesthetic preferences or fairness criteria—and wish to find the highest-scoring matches within massive external databases like Flickr or Safebooru.
This task is complicated by two primary constraints: limited access and query budgets. Users can only interact with these databases through restrictive search APIs (e.g., tag-based queries) and are subject to strict rate limits. The goal is to maximize the score of retrieved images while minimizing the number of API calls.
The Tiara Algorithm
To solve this, the authors propose Tiara (Tag-based image retrieval algorithm), which frames the search as a Multi-Armed Bandit (MAB) problem. In this setting, each searchable tag is an "arm," and the "reward" is the score assigned to the returned image by the user's black-box model.
Tiara improves upon standard MAB approaches like LinUCB through two key innovations:
- Semantic Generalization via Tag Embeddings: By utilizing pre-trained word embeddings (such as GloVe), Tiara maps discrete tags into a continuous semantic vector space. This allows the algorithm to infer that if a tag like "cat" yields a high score, semantically related tags like "feline" or "kitten" are also likely to be high-value, even before they are queried.
- Oracle Feedback Expansion: Tiara leverages the metadata returned by search APIs. When an image is retrieved, the algorithm uses all associated tags as "free" training data to update its internal reward model, significantly accelerating the learning process.
Experimental Evaluation
The researchers evaluated Tiara across three distinct environments to test its robustness and versatility:
- Open Images V6: A controlled environment using a ResNet18 model to find specific object classes.
- Safebooru: A domain-specific test for illustrations where the task was to find images semantically similar to a target source.
- Flickr (In-the-wild): A real-world application using the live Flickr API, testing the algorithm against noisy, user-generated, and multi-lingual tags.
Results and Interpretability
Tiara consistently outperformed baselines including Random search, $\epsilon$-greedy, and standard UCB. In the Open Images environment, Tiara achieved an average maximum score of 20.33 within a 500-query budget, nearly doubling the performance of Random search (11.57) and significantly exceeding standard UCB (12.02).
Beyond raw performance, Tiara offers accidental interpretability. By visualizing the highest-scoring tags as a word cloud, users can gain insights into the semantic concepts their black-box model is prioritizing. For instance, in the "Black Swan" task, the algorithm quickly identified related concepts like "Waterfowl," "Mallard," and "Ciconiiformes," demonstrating its ability to navigate complex semantic landscapes efficiently.
Conclusion
Tiara provides a practical and robust framework for retrieving optimal images from external databases under strict query constraints. By bridging discrete search interfaces with continuous semantic embeddings, it enables efficient discovery that aligns with private, black-box user preferences. Future work may explore "max-bandit" variations to further optimize for the single best image and investigate human-in-the-loop applications where sample efficiency is even more critical.
Summary updated