"You might also like this model": Data Driven Approach for Recommending Deep Learning Models for Unknown Image Datasets

Ameya Prabhu, Riddhiman Dasgupta, Anush Sankaran, Srikanth Tamilselvam, Senthil ManiarXiv 2019

Abstract

For an unknown (new) classification dataset, choosing an appropriate deep learning architecture is often a recursive, time-taking, and laborious process. In this research, we propose a novel technique to recommend a suitable architecture from a repository of known models. Further, we predict the performance accuracy of the recommended architecture on the given unknown dataset, without the need for training the model. We propose a model encoder approach to learn a fixed length representation of deep learning architectures along with its hyperparameters, in an unsupervised fashion. We manually curate a repository of image datasets with corresponding known deep learning models and show that the predicted accuracy is a good estimator of the actual accuracy. We discuss the implications of the proposed approach for three benchmark images datasets and also the challenges in using the approach for text modality. To further increase the reproducibility of the proposed approach, the entire implementation is made publicly available along with the trained models.

Introduction

Selecting the optimal deep learning architecture for a new image classification task is currently a "hit-and-trial" process. Practitioners typically start by fine-tuning popular models like ResNet or VGG pre-trained on ImageNet. If these fail to meet performance requirements, they must manually iterate through different architectures or pre-training datasets. This process is computationally expensive and relies heavily on human intuition. While Neural Architecture Search (NAS) offers automation, it often requires massive GPU clusters and significant time.

This research proposes a "zero-shot" alternative: a recommendation engine that analyzes a new dataset and suggests the best pre-trained model from a repository, predicting its final accuracy without requiring any training on the new data.

System Architecture

The proposed system operates by embedding both neural architectures and datasets into a shared vector space to facilitate performance prediction.

High-level overview of the proposed recommendation system showing the flow from a query dataset to ranked model recommendations based on predicted accuracy.

1. Unsupervised Model Encoder

To treat neural networks as data, they must be converted into a fixed-length mathematical representation. The authors defined a "grammar" for model architectures (e.g., specific sequences of convolution and pooling layers). Using a word2vec and LSTM-based approach, variable-length model descriptions are encoded into 512-dimensional vectors.

The model encoding pipeline: converting architectural JSON descriptions into fixed-length vectors using an RNN-based embedding approach.

2. Dataset Similarity Ranker

To compare a new "query" dataset ($D_q$) to known datasets in the repository, the system extracts classic image features: GIST, DAISY, and Local Binary Patterns (LBP). An ensemble of classifiers then identifies the "signature" of the dataset. If the query data statistically resembles a known dataset like CIFAR-10, it receives a high similarity ranking.

3. Accuracy Regressor

The final component is a regressor (such as Ridge Regression or Support Vector Regression) that takes the model vector and the dataset similarity vector as input. It outputs a predicted accuracy score that the model would likely achieve after fine-tuning on the new dataset.

Experimental Setup and Results

The system was trained and validated using a repository of over 1,200 model-dataset pairs derived from seven benchmark image datasets, including MNIST, CIFAR-10, CIFAR-100, and SVHN. All images were resized to 32x32 pixels for consistency.

Key Findings

  • High Predictive Accuracy: The system’s predicted accuracy showed a very high correlation with actual trained results. For architectures like VGG-16 and LeNet, the Spearman correlation was often above 0.9, meaning the system correctly ranked which models would perform best.
  • Low Error Rates: The Ridge Regression model achieved a Mean Square Error (MSE) of 0.15, demonstrating that a relatively simple regression can capture the complex relationship between architecture and data.
  • Real-world Validation: In practical tests on the Stanford Cars and ETHZ Food-101 datasets, the system correctly identified that VGG-16 would outperform ResNet variants, matching established findings in existing literature.

Limitations and Conclusion

While the approach proved highly effective for image data, the researchers encountered significant challenges with text modality. The system struggled with text classification, showing a negative correlation in performance prediction. This suggests that while images share abstract concepts like edges and shapes that translate across datasets, text similarity is too sensitive to specific vocabulary overlaps to serve as a reliable proxy for model performance in this framework.

In conclusion, this data-driven recommendation system provides a viable path toward reducing the computational burden of model selection for image tasks, allowing practitioners to discard poorly performing architectures immediately without the need for costly training cycles.

Summary updated

BibTeX
@misc{prabhu2019you,
  author = {Ameya Prabhu and Riddhiman Dasgupta and Anush Sankaran and Srikanth Tamilselvam and Senthil Mani},
  title = {{"You might also like this model": Data Driven Approach for Recommending Deep Learning Models for Unknown Image Datasets}},
  year = {2019},
  eprint = {1911.11433},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11433},
}
Figure