NAR-Former V2:重新思考Transformer用于通用神经网络表示学习
NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning
AI总结:
本文提出NAR-Former V2,一种融合GNN归纳能力的改进Transformer模型,用于通用神经网络表示学习,在延迟估计上显著超越NNLP,在精度预测上与最先进方法相当。
摘要:
随着越来越多的深度学习模型被应用于实际场景,对神经网络本身进行建模和学习其表示的需求日益增长。高效的表示可用于预测网络的目标属性,而无需实际训练和部署过程,从而促进高效的网络部署与设计。近期,受Transformer成功的启发,一些基于Transformer的表示学习框架被提出,并在处理单元结构模型方面取得了有前景的性能。然而,基于图神经网络(GNN)的方法仍主导着整个网络表示学习领域。本文重新审视了Transformer,并将其与GNN进行比较,分析它们不同的架构特征。随后,我们提出了一种改进的基于Transformer的通用神经网络表示学习模型NAR-Former V2。该模型能够从单元结构网络和整个网络中学习高效表示。具体而言,我们首先将网络视为图,并设计一个直接的标记器将网络编码为序列。然后,我们将GNN的归纳表示学习能力融入Transformer,使Transformer在面对未见过的架构时能更好地泛化。此外,我们引入了一系列简单而有效的修改,以增强Transformer从图结构中学习表示的能力。在NNLQP数据集上的延迟估计任务中,我们提出的方法显著超越了基于GNN的方法NNLP。此外,在NASBench101和NASBench201数据集上的精度预测任务中,我们的方法取得了与其他最先进方法高度相当的性能。
英文摘要:
As more deep learning models are being applied in real-world applications, there is a growing need for modeling and learning the representations of neural networks themselves. An efficient representation can be used to predict target attributes of networks without the need for actual training and deployment procedures, facilitating efficient network deployment and design. Recently, inspired by the success of Transformer, some Transformer-based representation learning frameworks have been proposed and achieved promising performance in handling cell-structured models. However, graph neural network (GNN) based approaches still dominate the field of learning representation for the entire network. In this paper, we revisit Transformer and compare it with GNN to analyse their different architecture characteristics. We then propose a modified Transformer-based universal neural network representation learning model NAR-Former V2. It can learn efficient representations from both cell-structured networks and entire networks. Specifically, we first take the network as a graph and design a straightforward tokenizer to encode the network into a sequence. Then, we incorporate the inductive representation learning capability of GNN into Transformer, enabling Transformer to generalize better when encountering unseen architecture. Additionally, we introduce a series of simple yet effective modifications to enhance the ability of the Transformer in learning representation from graph structures. Our proposed method surpasses the GNN-based method NNLP by a significant margin in latency estimation on the NNLQP dataset. Furthermore, regarding accuracy prediction on the NASBench101 and NASBench201 datasets, our method achieves highly comparable performance to other state-of-the-art methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。