Content-Based Search for Deep Generative Models

6 Oct 2022  ยท  Daohan Lu, Sheng-Yu Wang, Nupur Kumari, Rohan Agarwal, Mia Tang, David Bau, Jun-Yan Zhu ยท

The growing proliferation of customized and pretrained generative models has made it infeasible for a user to be fully cognizant of every model in existence. To address this need, we introduce the task of content-based model search: given a query and a large set of generative models, finding the models that best match the query. As each generative model produces a distribution of images, we formulate the search task as an optimization problem to select the model with the highest probability of generating similar content as the query. We introduce a formulation to approximate this probability given the query from different modalities, e.g., image, sketch, and text. Furthermore, we propose a contrastive learning framework for model retrieval, which learns to adapt features for various query modalities. We demonstrate that our method outperforms several baselines on Generative Model Zoo, a new benchmark we create for the model retrieval task.

PDF Abstract

Datasets


  Add Datasets introduced or used in this paper
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Model Description Based Search Generative Models Image (Gen.) CLIP+Gaussian Density (ours) Top-1 Accuracy 0.81 # 1
Top-5 Accuracy 0.75 # 2
Top-10 Accuracy 0.76 # 2
Model Description Based Search Generative Models Sketch CLIP+Gaussian Density (ours) Top-1 Accuracy 0.68 # 3
Top-5 Accuracy 0.64 # 3
Top-10 Accuracy 0.66 # 3
Image and Sketch based Model Retrieval Generative Models Sketch CLIP+Gaussian Density (ours) Top-5 Accuracy 0.67 # 3
Top-10 Accuracy 0.86 # 3
MAP@5 0.68 # 4
MAP@10 0.64 # 3
mAP 0.66 # 3
Model Description Based Search Generative Models CLIP+Gaussian Density (ours) Top-1 Accuracy 0.77 # 2
Top-5 Accuracy 0.95 # 1
Top-10 Accuracy 1 # 1
Image and Sketch based Model Retrieval Generative Models Sketch CLIP+1st Moment (ours) Top-10 Accuracy 0.84 # 4
MAP@5 0.7 # 3
MAP@10 0.64 # 3
mAP 0.64 # 4
Image and Sketch based Model Retrieval Generative Models Image (Gen.) CLIP+Gaussian Density (ours) Top-1 Accuracy 0.77 # 1
Top-10 Accuracy 1 # 1
MAP@5 0.81 # 1
MAP@10 0.75 # 1
mAP 0.76 # 1
Image and Sketch based Model Retrieval Generative Models Image (Gen.) CLIP+1st Moment (ours) Top-1 Accuracy 0.75 # 2
Top-5 Accuracy 0.95 # 1
Top-10 Accuracy 0.99 # 2
MAP@5 0.79 # 2
MAP@10 0.74 # 2
mAP 0.74 # 2
Text based Model Retrieval Generative Models Augmented 1st + 2nd Moment (ours) MAP@5 0.77 # 3
mAP 0.72 # 1
Text based Model Retrieval Generative Models Augmented 1st Moment (ours) MAP@5 0.79 # 1
MAP@10 0.72 # 1
mAP 0.69 # 3
Text based Model Retrieval Generative Models Original 1st + 2nd Moment (ours) MAP@5 0.74 # 4
MAP@10 0.7 # 3
mAP 0.70 # 2
Text based Model Retrieval Generative Models Original 1st Moment (ours) MAP@5 0.78 # 2
MAP@10 0.71 # 2
mAP 0.68 # 4
Image and Sketch based Model Retrieval Generative Models CLIP+Gaussian Density (ours) Top-1 Accuracy 0.33 # 4
Image and Sketch based Model Retrieval Generative Models CLIP+1st Moment (ours) Top-1 Accuracy 0.35 # 3
Top-5 Accuracy 0.7 # 2

Methods