NAR-Former: Neural Architecture Representation Learning Towards Holistic Attributes Prediction
Yun Yi, Haokui Zhang, Wenze Hu, Nannan Wang, Xiaoyu Wang
Abstract
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 .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- CARL: Causality-Guided Architecture Representation Learning for an Interpretable Performance Predictor cites NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- CARL: Causality-Guided Architecture Representation Learning for an Interpretable Performance Predictor cites BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search
- NN-Former: Rethinking Graph Structure in Neural Architecture Representation cites NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- NN-Former: Rethinking Graph Structure in Neural Architecture Representation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- NN-Former: Rethinking Graph Structure in Neural Architecture Representation cites BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search
- NN-Former: Rethinking Graph Structure in Neural Architecture Representation cites Once-for-All: Train One Network and Specialize it for Efficient Deployment
- NN-Former: Rethinking Graph Structure in Neural Architecture Representation cites NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning
- HyperNAS: Enhancing Architecture Representation for NAS Predictor via Hypernetwork cites NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- HyperNAS: Enhancing Architecture Representation for NAS Predictor via Hypernetwork cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- HyperNAS: Enhancing Architecture Representation for NAS Predictor via Hypernetwork cites BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search
- BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search cites NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning cites NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning cites BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search
- NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Learning to Flow from Generative Pretext Tasks for Neural Architecture Encoding cites NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
- Learning to Flow from Generative Pretext Tasks for Neural Architecture Encoding cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning to Flow from Generative Pretext Tasks for Neural Architecture Encoding cites NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning
Cited by top-tier papers7
- NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation LearningYun Yi, Haokui Zhang, Rong Xiao, Nannan Wang et al.NeurIPS 2023 · 8 citations
- Learning to Flow from Generative Pretext Tasks for Neural Architecture EncodingSunwoo Kim, Hyunjin Hwang, Kijung ShinNeurIPS 2025 · 2 citations
- CARL: Causality-Guided Architecture Representation Learning for an Interpretable Performance PredictorHan Ji, Yuqi Feng, Jiahao Fan, Yanan SunICCV 2025 · 1 citation
- HyperNAS: Enhancing Architecture Representation for NAS Predictor via HypernetworkJindi Lv, Yuhao Zhou, Yuxin Tian, Qing Ye et al.CVPR 2026 · 1 citation
- NN-Former: Rethinking Graph Structure in Neural Architecture RepresentationRuihan Xu, Haokui Zhang, Yaowei Wang, Wei Zeng et al.CVPR 2025
Builds on14
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Once-for-All: Train One Network and Specialize it for Efficient DeploymentHan Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang et al.ICLR 2020 · 1,522 citations
- NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture SearchXuanyi Dong, Yi YangICLR 2020 · 825 citations
- BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture SearchColin White, Willie Neiswanger, Yash SavaniAAAI 2021 · 401 citations
Related papers
- BRP-NAS: Prediction-based NAS using GCNsLukasz Dudziak, Thomas Chau, Mohamed S. Abdelfattah, Royson Lee et al.NeurIPS 2020 · 233 citations
- FlowerFormer: Empowering Neural Architecture Encoding Using a Flow-Aware Graph TransformerDongyeong Hwang, Hyunju Kim, Sunwoo Kim, Kijung ShinCVPR 2024
- PINAT: A Permutation INvariance Augmented Transformer for NAS PredictorShun Lu, Yu Hu, Peihao Wang, Yan Han et al.AAAI 2023 · 31 citations
- ReNAS: Relativistic Evaluation of Neural Architecture SearchYixing Xu, Yunhe Wang, Kai Han, Yehui Tang et al.CVPR 2021
- Encodings for Prediction-based Neural Architecture SearchYash Akhauri, Mohamed S. AbdelfattahICML 2024 · 8 citations
