Skip to main content
QUICK REVIEW

[Paper Review] Task-Adaptive Neural Network Search with Meta-Contrastive Learning

Wonyong Jeong, Hayeon Lee|arXiv (Cornell University)|Mar 2, 2021
Advanced Neural Network ApplicationsComputer Science67 references5 citations
TL;DR

This paper proposes Task-Adaptive Neural Network Search (TANS), a novel framework that retrieves optimal pretrained neural networks from a diverse model zoo for a given target dataset and constraints (e.g., parameter count). Using amortized meta-learning with contrastive loss in a cross-modal latent space, TANS aligns dataset embeddings with high-performing network embeddings, enabling instant retrieval that outperforms NAS and AutoML baselines with drastically reduced training cost.

ABSTRACT

Most conventional Neural Architecture Search (NAS) approaches are limited in that they only generate architectures without searching for the optimal parameters. While some NAS methods handle this issue by utilizing a supernet trained on a large-scale dataset such as ImageNet, they may be suboptimal if the target tasks are highly dissimilar from the dataset the supernet is trained on. To address such limitations, we introduce a novel problem of \emph{Neural Network Search} (NNS), whose goal is to search for the optimal pretrained network for a novel dataset and constraints (e.g. number of parameters), from a model zoo. Then, we propose a novel framework to tackle the problem, namely \emph{Task-Adaptive Neural Network Search} (TANS). Given a model-zoo that consists of network pretrained on diverse datasets, we use a novel amortized meta-learning framework to learn a cross-modal latent space with contrastive loss, to maximize the similarity between a dataset and a high-performing network on it, and minimize the similarity between irrelevant dataset-network pairs. We validate the effectiveness and efficiency of our method on ten real-world datasets, against existing NAS/AutoML baselines. The results show that our method instantly retrieves networks that outperform models obtained with the baselines with significantly fewer training steps to reach the target performance, thus minimizing the total cost of obtaining a task-optimal network. Our code and the model-zoo are available at https://github.com/wyjeong/TANS.

Motivation & Objective

  • To address the limitation of conventional Neural Architecture Search (NAS) methods that search only for architectures without optimizing parameters, leading to high training costs on new tasks.
  • To overcome the suboptimality of supernet-based NAS when target datasets differ significantly from the source pretraining data (e.g., medical or industrial images).
  • To propose a new problem formulation—Neural Network Search (NNS)—focused on retrieving the best pretrained network (architecture + weights) for a novel dataset under constraints.
  • To enable fast, low-cost adaptation by retrieving task-relevant models instantly, avoiding expensive architecture search and fine-tuning.
  • To construct a model zoo of state-of-the-art networks pretrained on diverse real-world datasets to support effective cross-modal retrieval.

Proposed method

  • Construct a model zoo containing state-of-the-art neural networks pretrained on diverse real-world datasets to serve as candidate models for retrieval.
  • Use a set encoder to embed each target dataset into a latent representation, capturing functional and topological characteristics.
  • Encode each pretrained network using functional and topological embeddings to represent its performance potential.
  • Train a cross-modal contrastive learning objective that maximizes similarity between a dataset and a high-performing network, while minimizing similarity with irrelevant pairs.
  • Integrate a performance predictor to guide the learning process by predicting model accuracy on unseen datasets.
  • Employ amortized meta-learning to learn a shared, task-adaptive latent space that generalizes across diverse datasets and model types.

Experimental results

Research questions

  • RQ1Can a retrieval-based approach outperform traditional NAS and AutoML methods in terms of final accuracy and training efficiency when searching for optimal networks for a novel dataset?
  • RQ2How effective is the proposed cross-modal contrastive learning framework in aligning dataset and network embeddings to identify the most suitable pretrained models?
  • RQ3To what extent does the model zoo construction strategy, based on diverse pretraining data, improve retrieval performance compared to random sampling?
  • RQ4How does the inclusion of a performance predictor enhance the accuracy and generalization of the retrieval system?
  • RQ5Can the proposed TANS framework significantly reduce the number of training steps required to reach target performance compared to baseline methods?

Key findings

  • TANS achieves superior performance on ten real-world datasets, consistently outperforming existing NAS and AutoML baselines in final accuracy.
  • The method reduces the number of training steps required to reach target performance by orders of magnitude, significantly minimizing total cost.
  • The model zoo constructed with diverse pretraining data demonstrates higher sample efficiency than random sampling of dataset-network pairs.
  • TANS enables instant retrieval of task-adapted models without additional architecture search or fine-tuning, achieving state-of-the-art results with minimal inference cost.
  • The contrastive learning objective effectively aligns dataset and network embeddings, enabling accurate retrieval of high-performing models across heterogeneous data distributions.
  • The performance predictor enhances retrieval accuracy by guiding the model to prioritize networks with higher predicted performance on the query dataset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.