NN-Former: Rethinking Graph Structure in Neural Architecture Representation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xu, Ruihan, Zhang, Haokui, Wang, Yaowei, Zeng, Wei, Zhang, Shiliang
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912459618516992
author Xu, Ruihan
Zhang, Haokui
Wang, Yaowei
Zeng, Wei
Zhang, Shiliang
author_facet Xu, Ruihan
Zhang, Haokui
Wang, Yaowei
Zeng, Wei
Zhang, Shiliang
contents The growing use of deep learning necessitates efficient network design and deployment, making neural predictors vital for estimating attributes such as accuracy and latency. Recently, Graph Neural Networks (GNNs) and transformers have shown promising performance in representing neural architectures. However, each of both methods has its disadvantages. GNNs lack the capabilities to represent complicated features, while transformers face poor generalization when the depth of architecture grows. To mitigate the above issues, we rethink neural architecture topology and show that sibling nodes are pivotal while overlooked in previous research. We thus propose a novel predictor leveraging the strengths of GNNs and transformers to learn the enhanced topology. We introduce a novel token mixer that considers siblings, and a new channel mixer named bidirectional graph isomorphism feed-forward network. Our approach consistently achieves promising performance in both accuracy and latency prediction, providing valuable insights for learning Directed Acyclic Graph (DAG) topology. The code is available at https://github.com/XuRuihan/NNFormer.
format Preprint
id arxiv_https___arxiv_org_abs_2507_00880
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle NN-Former: Rethinking Graph Structure in Neural Architecture Representation
Xu, Ruihan
Zhang, Haokui
Wang, Yaowei
Zeng, Wei
Zhang, Shiliang
Machine Learning
Artificial Intelligence
The growing use of deep learning necessitates efficient network design and deployment, making neural predictors vital for estimating attributes such as accuracy and latency. Recently, Graph Neural Networks (GNNs) and transformers have shown promising performance in representing neural architectures. However, each of both methods has its disadvantages. GNNs lack the capabilities to represent complicated features, while transformers face poor generalization when the depth of architecture grows. To mitigate the above issues, we rethink neural architecture topology and show that sibling nodes are pivotal while overlooked in previous research. We thus propose a novel predictor leveraging the strengths of GNNs and transformers to learn the enhanced topology. We introduce a novel token mixer that considers siblings, and a new channel mixer named bidirectional graph isomorphism feed-forward network. Our approach consistently achieves promising performance in both accuracy and latency prediction, providing valuable insights for learning Directed Acyclic Graph (DAG) topology. The code is available at https://github.com/XuRuihan/NNFormer.
title NN-Former: Rethinking Graph Structure in Neural Architecture Representation
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2507.00880