Abstract
Predictor-based Neural Architecture Search (NAS) significantly reduces the computational overhead of automated model design by using surrogate predictors to estimate architecture performance. A central challenge in this paradigm is the effective encoding of graph-based neural architectures. We present GATES (Graph-based neural ArchiTecture Encoding Scheme), a novel framework that treats neural operations as information transformations rather than static labels. By mimicking the actual data flow of a neural network, GATES provides a unified, sample-efficient encoding mechanism applicable to diverse search spaces. Our results on NAS-Bench-101, NAS-Bench-201, and ENAS benchmarks demonstrate that GATES achieves state-of-the-art prediction accuracy and search efficiency, particularly in data-scarce scenarios.
1. Introduction
Neural Architecture Search (NAS) has revolutionized the design of high-performing deep learning models but often requires immense computational resources. Predictor-based NAS mitigates this by training a surrogate model to predict the performance of candidate architectures. However, the effectiveness of the predictor depends heavily on the architecture encoder.
Existing encoders, such as LSTMs or standard Graph Convolutional Networks (GCNs), often fail to capture the structural logic of neural networks. LSTMs ignore graph topology, while GCNs treat operations (e.g., 3x3 convolutions) as simple node attributes. GATES addresses these limitations by modeling the "physics" of neural networks: operations are functional transformations that propagate information through a Directed Acyclic Graph (DAG).
2. The GATES Framework
The core innovation of GATES is the representation of neural operations as "soft gates" that transform propagating virtual information.
2.1 Information Propagation as Encoding
In GATES, an architecture's embedding is generated by propagating "virtual information" through its DAG. For any given operation, the input information $x_{in}$ is transformed via a linear weight matrix $W_x$ and modulated by an attention mask $m$ (the "soft gate") derived from the operation's embedding. This process, $x_{out} = m \odot x_{in}W_x$, ensures that the resulting embedding reflects the actual computational flow of the network. This approach naturally handles graph isomorphism, as identical functional flows result in identical embeddings.
2.2 Unified Search Space Handling
NAS search spaces typically follow either "Operation-on-Node" (OON) or "Operation-on-Edge" (OOE) conventions. GATES provides a unified logic for both, treating operations as transformations regardless of their graph position.
2.3 Optimization Objectives
While Mean Squared Error (MSE) is a common loss function for predictors, GATES leverages a hinge pair-wise ranking loss. In NAS, the relative ranking of architectures is often more critical than absolute accuracy prediction. Training the predictor to distinguish which of two models is superior improves search performance and robustness.
3. Experimental Evaluation
GATES was evaluated on three major benchmarks: NAS-Bench-101 (OON), NAS-Bench-201 (OOE), and the ENAS search space.
3.1 Sample Efficiency and Prediction Accuracy
GATES demonstrates remarkable sample efficiency. On NAS-Bench-101, using only 0.05% of available training data (approx. 190 models), GATES achieved a Kendall’s Tau ranking correlation of 0.76. In contrast, baseline GCN and LSTM encoders achieved correlations between 0.40 and 0.55. This efficiency is attributed to the encoder's ability to capture the underlying structural logic of the architectures.
3.2 Search Performance
When integrated into a full NAS pipeline, GATES-powered search outperformed traditional methods significantly. On NAS-Bench-101, it was found to be 511x more sample-efficient than random search. On NAS-Bench-201, GATES achieved an N@5 of 1, meaning the true optimal architecture was among the top 5 predicted candidates. In the large-scale ENAS search space, GATES discovered a CIFAR-10 architecture with a 2.58% test error after evaluating only 800 candidates, a fraction of the evaluations required by original NASNet or AmoebaNet.
4. Conclusion
GATES introduces a functionally-aware encoding scheme that aligns the representation of a neural architecture with its actual data-processing behavior. By treating operations as information transformations, GATES achieves superior prediction accuracy and extreme sample efficiency across both OON and OOE search spaces. Future work includes extending GATES to hierarchical topological search spaces and incorporating multi-objective signals such as hardware latency.
Summary updated