CVAINov 15, 2022

NAR-Former: Neural Architecture Representation Learning towards Holistic Attributes Prediction

arXiv:2211.08024v315 citationsh-index: 8Has Code
AI Analysis

This work addresses the need for efficient neural architecture evaluation, which is incremental as it builds on existing representation learning methods for neural networks.

The paper tackles the problem of predicting neural network attributes like accuracy and latency without training or inference by proposing NAR-Former, a model that encodes architecture information into sequences and uses a transformer for representation learning, achieving promising performance on benchmarks such as NAS-Bench-101 and NAS-Bench-201.

With the wide and deep adoption of deep learning models in real applications, there is an increasing need to model and learn the representations of the neural networks themselves. These models can be used to estimate attributes of different neural network architectures such as the accuracy and latency, without running the actual training or inference tasks. In this paper, we propose a neural architecture representation model that can be used to estimate these attributes holistically. Specifically, we first propose a simple and effective tokenizer to encode both the operation and topology information of a neural network into a single sequence. Then, we design a multi-stage fusion transformer to build a compact vector representation from the converted sequence. For efficient model training, we further propose an information flow consistency augmentation and correspondingly design an architecture consistency loss, which brings more benefits with less augmentation samples compared with previous random augmentation strategies. Experiment results on NAS-Bench-101, NAS-Bench-201, DARTS search space and NNLQP show that our proposed framework can be used to predict the aforementioned latency and accuracy attributes of both cell architectures and whole deep neural networks, and achieves promising performance. Code is available at https://github.com/yuny220/NAR-Former.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes