Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Yun Yi, Haokui Zhang, Wenze Hu, Nannan Wang, Xiaoyu Wang• 2022

Related benchmarks

TaskDatasetResultRank
Accuracy PredictionNAS-Bench-101 1.0
Kendall's Tau0.871
46
Accuracy PredictionNAS-Bench-201 8 (whole dataset)
Kendall's Tau0.901
36
Accuracy PredictionNAS-Bench-101 (test)
Kendall's Tau0.871
18
Accuracy PredictionNAS-Bench-101 depth=2~7, Test Samples=all 1.0
Kendall's Tau0.891
17
Accuracy PredictionNAS-Bench-201 depth=8
Kendall's Tau0.947
15
Accuracy PredictionNAS-Bench-101 100 samples (test)
Kendall's Tau0.801
10
Accuracy PredictionNAS-Bench-101 depth=2~7, Test Samples=100 1.0
Kendall's Tau0.801
9
Accuracy PredictionNAS-Bench-201 10% (train)
Kendall's Tau0.901
8
Accuracy PredictionNAS-Bench-201 5% samples (train)
Kendall's Tau0.849
8
Accuracy PredictionNAS-Bench-201
Kendall's Tau0.91
6
Showing 10 of 13 rows

Other info

Code

Follow for update