HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Unicom: Universal and Compact Representation Learning for Image Retrieval

Xiang An; Jiankang Deng; Kaicheng Yang; Jaiwei Li; Ziyong Feng; Jia Guo; Jing Yang; Tongliang Liu

Unicom: Universal and Compact Representation Learning for Image Retrieval

Abstract

Modern image retrieval methods typically rely on fine-tuning pre-trained encoders to extract image-level descriptors. However, the most widely used models are pre-trained on ImageNet-1K with limited classes. The pre-trained feature representation is therefore not universal enough to generalize well to the diverse open-world classes. In this paper, we first cluster the large-scale LAION400M into one million pseudo classes based on the joint textual and visual features extracted by the CLIP model. Due to the confusion of label granularity, the automatically clustered dataset inevitably contains heavy inter-class conflict. To alleviate such conflict, we randomly select partial inter-class prototypes to construct the margin-based softmax loss. To further enhance the low-dimensional feature representation, we randomly select partial feature dimensions when calculating the similarities between embeddings and class-wise prototypes. The dual random partial selections are with respect to the class dimension and the feature dimension of the prototype matrix, making the classification conflict-robust and the feature embedding compact. Our method significantly outperforms state-of-the-art unsupervised and supervised image retrieval approaches on multiple benchmarks. The code and pre-trained models are released to facilitate future research https://github.com/deepglint/unicom.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
image-classification-on-imagenetUnicom (ViT-L/14@336px) (Finetuned)
Top 1 Accuracy: 88.3
image-retrieval-on-google-landmarks-datasetUNICOM-ViT-B-16-512px
mAP@100: 35.7
image-retrieval-on-google-landmarks-datasetUNICOM-ViT-L-14-512px
mAP@100: 36.4
image-retrieval-on-google-landmarks-dataset-1UNICOM-ViT-L-14-512px
mAP@100: 33.1
image-retrieval-on-google-landmarks-dataset-1UNICOM-ViT-B-16-512px
mAP@100: 32.4
image-retrieval-on-inaturalistUnicom+ViT-L@336px
R@1: 88.9
image-retrieval-on-sopUnicom+ViT-L@336px
R@1: 91.2
metric-learning-on-cars196Unicom+ViT-L@336px
R@1: 98.2
metric-learning-on-cub-200-2011Unicom+ViT-L@336px
R@1: 90.1
metric-learning-on-in-shop-1Unicom+ViT-L@336px
R@1: 96.7
metric-learning-on-stanford-online-products-1Unicom+ViT-L@336px
R@1: 91.2
self-supervised-image-classification-onUnicom (ViT-B/16)
Number of Params: 80M
Top 1 Accuracy: 79.1%
self-supervised-image-classification-onUnicom (ViT-B/32)
Number of Params: 80M
Top 1 Accuracy: 75.0%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Unicom: Universal and Compact Representation Learning for Image Retrieval | Papers | HyperAI