Fast Task-Aware Architecture Inference

Efi Kokiopoulou, Anja Hauth, Luciano Sbaiz, Andrea Gesmundo, Gábor Bartók, Jesse BerentarXiv 2019

Abstract: Neural architecture search has been shown to hold great promise towards the automation of deep learning. However in spite of its potential, neural architecture search remains quite costly. To this point, we propose a novel gradient-based framework for efficient architecture search by sharing information across several tasks. We start by training many model architectures on several related (training) tasks. When a new unseen task is presented, the framework performs architecture inference in order to quickly identify a good candidate architecture, before any model is trained on the new task. At the core of our framework lies a deep value network that can predict the performance of input architectures on a task by utilizing task meta-features and the previous model training experiments performed on related tasks. We adopt a continuous parametrization of the model architecture which allows for efficient gradient-based optimization. Given a new task, an effective architecture is quickly identified by maximizing the estimated performance with respect to the model architecture parameters with simple gradient ascent. It is key to point out that our goal is to achieve reasonable performance at the lowest cost. We provide experimental results showing the effectiveness of the framework despite its high computational efficiency.

Introduction

Neural Architecture Search (NAS) promises to automate the design of deep learning models, yet its practical application is often hindered by staggering computational costs. Standard NAS methods typically treat every new dataset as an isolated problem, requiring the training and evaluation of thousands of candidate models to find an optimal architecture. This paper addresses the efficiency-performance trade-off by proposing a framework for knowledge transfer across tasks, enabling the inference of high-performing architectures for unseen datasets in seconds.

Methodology

The proposed framework operates in two distinct phases to bypass the need for exhaustive training during the search process:

  1. Offline Training Phase: A wide variety of "child" architectures are trained on multiple related tasks. The resulting data—architecture parameters, task features, and final performance—are stored in a database. This database is then used to train a Deep Value Network (DVN). The DVN acts as a performance predictor, taking a task description and an architecture design as input to output a predicted performance score.
  2. Online Inference Phase: When a new task arrives, the system extracts its meta-features. Using the DVN, it performs gradient ascent to optimize the architecture parameters. This is made possible by a continuous parametrization of the search space, where discrete choices (e.g., layer sizes) are relaxed into a differentiable form using a weighted softmax.
Overview of the offline training phase and the online inference phase for fast architecture search.

To ensure robustness, the framework utilizes learned meta-features. Instead of relying solely on manual statistics, a "Deep Sets" approach learns task embeddings directly from raw data samples, allowing the DVN to recognize similarities between new and previously seen tasks.

Experimental Evaluation

The framework was evaluated on ten diverse NLP classification datasets sourced from Crowdflower. These datasets cover various domains, including sentiment analysis (e.g., Airline, Emotion), public interest (e.g., Disasters, Global Warming), and politics (e.g., Political Bias). This variety provides a rigorous testing ground for cross-task generalization.

Results and Discussion

Experimental results demonstrate that the DVN is a highly effective "critic," achieving a Spearman’s rank correlation of approximately 0.8 between predicted and actual performance across most tasks. This high predictive accuracy allows the system to propose effective architectures before any training occurs on the target task.

A key finding is the significant impact of task-specific meta-features. By including these features, the DVN can better distinguish between tasks and suggest architectures that are specifically suited to the data's characteristics.

Comparison of model performance with and without the inclusion of task-specific meta-features.

When compared to traditional Reinforcement Learning-based NAS, the proposed "Fast Inference" method achieved nearly identical test accuracy while requiring only a fraction of the online computational cost. Furthermore, the system showed improved generalization as more training tasks were added to the offline database.

Conclusion

By treating architecture search as an inference problem rather than a reinforcement learning problem, this framework significantly reduces the barrier to entry for automated machine learning. While currently focused on Feedforward Neural Networks, future work will explore extending this continuous relaxation and task-aware inference to more complex structures like CNNs and Transformers, as well as expanding to other modalities such as image and audio data.

Summary updated

BibTeX
@misc{kokiopoulou2019fast,
  author = {Efi Kokiopoulou and Anja Hauth and Luciano Sbaiz and Andrea Gesmundo and Gábor Bartók and Jesse Berent},
  title = {{Fast Task-Aware Architecture Inference}},
  year = {2019},
  eprint = {1902.05781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.05781},
}
Figure