MagicLens: Self-Supervised Image Retrieval with Open-Ended Instructions
Kai Zhang, Yi Luan, Hexiang Hu, Kenton Lee, Siyuan Qiao, Wenhu Chen, Yu Su, Ming-Wei Chang
TL;DR
MagicLens addresses image retrieval with open-ended textual instructions by mining naturally co-occurring web-page image pairs and generating open-ended instructions via foundation models, training lightweight dual-encoders in a self-supervised setup on 36.7M triplets. It achieves competitive or superior results across eight multimodality-to-image benchmarks and related tasks while being ~50x more parameter-efficient than prior SOTA methods. A large-scale 1.4M open-domain evaluation with human judges demonstrates MagicLens’s ability to satisfy complex and beyond-visual search intents. The work also shows that template-free, diverse instructions and web-derived data significantly boost performance, offering practical, scalable pathways for instruction-guided retrieval and related multimodal tasks.
Abstract
Image retrieval, i.e., finding desired images given a reference image, inherently encompasses rich, multi-faceted search intents that are difficult to capture solely using image-based measures. Recent works leverage text instructions to allow users to more freely express their search intents. However, they primarily focus on image pairs that are visually similar and/or can be characterized by a small set of pre-defined relations. The core thesis of this paper is that text instructions can enable retrieving images with richer relations beyond visual similarity. To show this, we introduce MagicLens, a series of self-supervised image retrieval models that support open-ended instructions. MagicLens is built on a key novel insight: image pairs that naturally occur on the same web pages contain a wide range of implicit relations (e.g., inside view of), and we can bring those implicit relations explicit by synthesizing instructions via foundation models. Trained on 36.7M (query image, instruction, target image) triplets with rich semantic relations mined from the web, MagicLens achieves results comparable with or better than prior best on eight benchmarks of various image retrieval tasks, while maintaining high parameter efficiency with a significantly smaller model size. Additional human analyses on a 1.4M-image unseen corpus further demonstrate the diversity of search intents supported by MagicLens. Code and models are publicly available at https://open-vision-language.github.io/MagicLens/.
