ONNX-Net: Towards Universal Representations and Instant Performance Prediction for Neural Architectures
Shiwen Qin, Alexander Auras, Shay B. Cohen, Elliot J. Crowley, Michael Moeller, Linus Ericsson, Jovita Lukasik
TL;DR
The paper tackles the bottleneck of NAS evaluation by introducing ONNX-Bench, a unified ONNX-format benchmark spanning diverse search spaces, and ONNX-Net, a text-based surrogate that uses an ONNX-to-text encoding fed to an LLM to predict architecture performance instantly. The approach emphasizes space-agnostic representations and operator-level detail to enable cross-space generalization and zero-shot transfer, addressing limitations of graph-based encodings that rely on fixed topologies. Empirical results show strong cross-space transfer, competitive zero-shot performance, and improved cross-dataset generalization when training data is diverse, with ablations highlighting the importance of input-related encoding components and encoder-based backbones. The work advances NAS by enabling universal, fast performance prediction across a broad spectrum of architectures, paving the way for more flexible and scalable NAS methods and living benchmarks that span multiple search spaces.
Abstract
Neural architecture search (NAS) automates the design process of high-performing architectures, but remains bottlenecked by expensive performance evaluation. Most existing studies that achieve faster evaluation are mostly tied to cell-based search spaces and graph encodings tailored to those individual search spaces, limiting their flexibility and scalability when applied to more expressive search spaces. In this work, we aim to close the gap of individual search space restrictions and search space dependent network representations. We present ONNX-Bench, a benchmark consisting of a collection of neural networks in a unified format based on ONNX files. ONNX-Bench includes all open-source NAS-bench-based neural networks, resulting in a total size of more than 600k {architecture, accuracy} pairs. This benchmark allows creating a shared neural network representation, ONNX-Net, able to represent any neural architecture using natural language descriptions acting as an input to a performance predictor. This text-based encoding can accommodate arbitrary layer types, operation parameters, and heterogeneous topologies, enabling a single surrogate to generalise across all neural architectures rather than being confined to cell-based search spaces. Experiments show strong zero-shot performance across disparate search spaces using only a small amount of pretraining samples, enabling the unprecedented ability to evaluate any neural network architecture instantly.
