Abstract
Predicting the performance of neural architectures without exhaustive training is a cornerstone of efficient Neural Architecture Search (NAS). While flow-based encoders capture the nuances of information propagation within a network, they are often computationally expensive. Conversely, simpler encoders lack the structural awareness necessary for high-fidelity predictions. This paper introduces Flow-based Generative Pre-training (FGP), a method that empowers simple, fast encoders with flow-awareness through a generative pretext task. By reconstructing a simplified simulation of data and gradient flow, FGP-trained encoders achieve state-of-the-art performance and significant speedups over specialized architectures.
1. Introduction
In Neural Architecture Search (NAS), the goal is to identify optimal network designs for specific tasks. To avoid the prohibitive cost of training thousands of candidate models, researchers employ performance predictors. These predictors are typically graph-based encoders that map a neural network's structural "blueprint" to an estimated accuracy score.
The current landscape of encoders is divided: "flow-based" models use complex Graph Neural Networks (GNNs) to simulate forward and backward passes, offering high accuracy at the cost of high latency. In contrast, standard GNNs are fast and parallelizable but often fail to capture the "information flow" critical to understanding a model's potential. FGP bridges this gap by using self-supervised pre-training to instill flow-awareness into efficient, general-purpose encoders.
2. The Problem: Why Standard Pre-training Fails
Traditional self-supervised learning for graphs often relies on masking—hiding a node or edge and asking the model to predict the missing piece. While effective for molecules (where chemical rules govern structure) or natural language, masking is less effective for neural architectures. In a computational graph, almost any operation can theoretically follow another, meaning masking provides a weak training signal. Furthermore, standard encoders are often "flow-blind," treating the graph as a static set of connections rather than a dynamic pathway for data.
3. Methods: Flow-based Generative Pre-training (FGP)
FGP introduces a generative task that teaches an encoder to understand the "physics" of a neural network's internal movement without requiring labeled data or actual training.
3.1 The Flow Surrogate
Instead of using real data, the authors generate a flow surrogate. This is a vector representing a simplified simulation of how information propagates through the architecture. By passing random noise vectors through the graph (simulating a forward pass) and propagating them back (simulating backpropagation), the surrogate captures the structural essence of the network's connectivity.
3.2 Generative Pre-training and Fine-tuning
During pre-training, an encoder (such as GIN or ResGatedGCN) is tasked with reconstructing this flow surrogate from the architecture's graph. Because the surrogate is calculated using random noise, it can be generated for any number of unlabeled architectures. Once the encoder learns to reconstruct the flow, it is fine-tuned on a small fraction of real performance data (e.g., 1% of a benchmark dataset) to map its structural understanding to actual accuracy metrics.
4. Experimental Evaluation
FGP was evaluated across a diverse range of NAS benchmarks, including:
- Computer Vision: NAS-Bench-101, 201, and 301.
- Natural Language Processing: NAS-Bench-NLP.
- Graph Learning: NAS-Bench-Graph.
- Transfer Learning: Benchmarks for TinyImageNet to DTD and OxfordPet transfers.
4.1 Key Results
- Predictive Accuracy: FGP improved Precision@1% (the ability to correctly identify the top 1% of architectures) by up to 106% compared to purely supervised models.
- Computational Efficiency: A simple encoder pre-trained with FGP outperformed the state-of-the-art FlowerFormer while being 43x to 57x faster. In specific configurations, the speedup reached 94x.
- Search Performance: When integrated into the NPENAS search algorithm, FGP-powered predictors consistently identified models with lower test errors more quickly than established methods like Arch2vec or GMAE.
5. Discussion and Insights
The success of FGP suggests that for neural architecture encoding, the pathway (flow) is more critical than the specific semantics of individual operations. By focusing on how connectivity affects signal propagation, FGP allows non-specialized GNNs to achieve the performance of complex, sequential flow-based models. This effectively decouples the accuracy of the predictor from the complexity of its architecture, enabling the use of highly parallelizable encoders in the search loop.
6. Conclusion
FGP represents a significant step forward in making neural architecture performance prediction both accurate and efficient. By leveraging a generative pretext task based on simulated flow, the method overcomes the limitations of traditional masking-based pre-training. While the current flow surrogate is a simplified simulation, its ability to generalize across domains—from vision to NLP—highlights the universal importance of flow-awareness in architecture encoding.
Summary updated