TL;DR
MOFI (Manifold OF Images) is a new vision foundation model that bridges the gap between massive-scale web data and high-quality supervised learning. By automatically extracting 2 million distinct entity labels from over 1 billion noisy image-text pairs, the authors created the Image-to-Entities (I2E) dataset. Using this dataset, MOFI achieves a new state-of-the-art in image retrieval, outperforming OpenAI’s CLIP by over 14% on challenging benchmarks.
What Problem Does This Paper Address?
In the world of computer vision, there has long been a trade-off between quality and scale.
Classic supervised models (like those trained on ImageNet) use high-quality, human-verified labels, but they are expensive and difficult to scale beyond a few thousand categories. On the other hand, "weakly supervised" models like CLIP and ALIGN scale to billions of images by using raw alt-text from the web. However, web text is notoriously noisy, unstructured, and often irrelevant to the actual image content.
The authors of MOFI ask: Can we have both? Can we automatically extract structured, fine-grained knowledge (entities) from messy web text to train better, more scalable vision models?
Methods
The researchers developed a two-part solution: a massive data-mining pipeline and a flexible multi-task training recipe.
1. The Entity Mining Pipeline
Instead of just using raw alt-text, the team "mined" entities to create the Image-to-Entities (I2E) dataset:
- Extraction: They used Named Entity Recognition (NER) to find potential entities in alt-text and page titles.
- Linking: These were mapped to unique identifiers in the Wikidata knowledge base (e.g., distinguishing "Apple" the fruit from "Apple" the company).
- Filtering: To ensure the entity was actually in the image, they used a pre-trained CLIP model to score the image-entity pairs, discarding those with low similarity.
2. Multi-Task Training
With this structured data, they explored three training approaches:
- Supervised: Treating each of the 2 million entities as a distinct class label.
- Contrastive: A CLIP-style approach, but enriching entity names with their Wikidata descriptions (e.g., "Honda Civic, a line of cars manufactured by Honda") treated as free-form text.
- Multi-Task (MOFI): Combining both supervised and contrastive losses. This allows the model to learn the discriminative features of classification while maintaining the zero-shot flexibility of text-based models.
Datasets
- Image-to-Entities (I2E): The star of the paper. It contains 1 billion images and 2 million unique entities, covering rich visual concepts in the wild.
- Evaluation Benchmarks: The models were tested on GPR1200 (a difficult 1,200-category retrieval set), ImageNet-1K (for classification and retrieval), and VTAB (a suite of 19 diverse vision tasks).
Key Insights and Ideas
- Entity Mining as Data Cleaning: One of the most striking findings is that even when using the exact same training method as CLIP, training on the "mined" I2E dataset significantly beats training on the raw, noisy image-text data. The process of identifying and filtering entities acts as a powerful automated data-cleaning step.
- Classification is King for Retrieval: Supervised pre-training on millions of fine-grained labels makes the model exceptionally good at distinguishing between similar objects (e.g., different car models or dog breeds), which is the core requirement for image retrieval.
- Semantic Manifolds: MOFI learns a highly structured embedding space where related concepts (like different types of household appliances) naturally cluster together, even without explicit hierarchy provided during training.
Key Results
- Image Retrieval SOTA: On the challenging GPR1200 dataset, the final MOFI model achieved 86.66% mAP, crushing the previous state-of-the-art (OpenAI's CLIP) which sat at 72.19%.
- Zero-Shot Classification: MOFI reached 77.18% zero-shot accuracy on ImageNet, outperforming a CLIP model trained on the same raw data source.
- Linear Probing: When freezing the model and training only a simple classifier on top, MOFI achieved 81.32% on ImageNet, showing its representations are robust and generalizable.
Limitations and Future Work
- The Long Tail: While the dataset has 2 million entities, the authors found that adding more "tail" entities (those with very few images) didn't significantly improve the current models. They hypothesize that larger model architectures might be needed to truly "memorize" and utilize this long-tail knowledge.
- Domain Specificity: MOFI performed slightly worse on certain product-related datasets (like Stanford Online Products). The authors suggest this is because commercial text is often too short or "keyword-heavy" for their current entity extraction pipeline to work perfectly.
- Future Directions: The team points toward scaling up model size and further refining the entity extraction process to capture even more nuanced visual concepts.
The code and model weights are available at https://github.com/apple/ml-mofi.
Summary updated