paper-with-me

홈 › Papers

NAR-Former V2: Rethinking Transformer for Universal Neural Network Representation Learning

2023-06-19 · NeurIPS 2023 11 · Yun Yi, Haokui Zhang, Rong Xiao, Nannan Wang, Xiaoyu Wang

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.

📄 PDF Abstract BibTeX arXiv:2306.10792

Code (1)

yuny220/NAR-Former-V2 공식 구현 pytorch

Tasks

Graph Neural NetworkRepresentation Learning

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

Fixed Universal Transformers

2026-05-29 · Jingwen Liu, Alexandr Andoni, Daniel Hsu arxiv

We introduce \emph{universal transformers}: fixed transformers that can simulate any transformer in a given class via a suitable input embedding. Analogous to a universal Turing machine, the input embedding encodes a des…

Rethinking the Role of Positional Encoding: Sliding-Window Transformers without PE Remain Turing Complete

2026-06-01 · Qian Li, Xinyu Mao, Shang-Hua Teng arxiv

Positional encoding (PE) is widely viewed as necessary for transformers to process ordered sequences: without them, the next-token map appears permutation-invariant in its context tokens. This intuition underlies all pri…

TSLANet: Rethinking Transformers for Time Series Representation Learning

2024-04-12 · Emadeldeen Eldele, Mohamed Ragab, Zhenghua Chen, Min Wu 외

Time series data, characterized by its intrinsic long and short-range dependencies, poses a unique challenge across analytical applications. While Transformer-based models excel at capturing long-range dependencies, they…

Anomaly DetectionComputational EfficiencyRepresentation LearningSelf-Supervised Learning+2

Rethinking Text Line Recognition Models

2021-04-15 · Daniel Hernandez Diaz, Siyang Qin, Reeve Ingle, Yasuhisa Fujii 외

In this paper, we study the problem of text line recognition. Unlike most approaches targeting specific domains such as scene-text or handwritten documents, we investigate the general problem of developing a universal ar…

DecoderHandwritten Text RecognitionLanguage Modelling

Understanding Video Transformers via Universal Concept Discovery

2024-01-19 · CVPR 2024 1 · Matthew Kowal, Achal Dave, Rares Ambrus, Adrien Gaidon 외

This paper studies the problem of concept-based interpretability of transformer representations for videos. Concretely, we seek to explain the decision-making process of video transformers based on high-level, spatiotemp…

Action RecognitionDecision MakingFine-grained Action RecognitionSemantic Segmentation+2