Abstract
Neural Architecture Search (NAS) is a powerful tool for automating model design but is often limited by the high cost of evaluating candidate architectures. Neural predictors serve as efficient proxies, yet they typically require extensive labeled data. We introduce CAP (Context-Aware Predictor), a novel framework that utilizes unlabeled architectures through self-supervised learning. By training a Graph Isomorphism Network on a context-matching task, CAP learns to capture the intrinsic structural properties of the search space. Our results show that CAP achieves state-of-the-art ranking performance using up to 10x fewer labels than previous methods, significantly reducing the computational overhead of NAS.
Introduction
The automation of deep learning model design through Neural Architecture Search (NAS) has achieved remarkable success but remains computationally prohibitive. Standard NAS methods often require training thousands of models to find an optimal architecture. Neural predictors have emerged as a solution, using a surrogate model to predict performance from architectural descriptions. However, these predictors themselves require a significant amount of labeled (architecture, performance) pairs, which are expensive to obtain. CAP addresses this "data-hunger" by leveraging the vast amount of unlabeled architectures available in any search space.
Methodology
The CAP framework operates in three distinct stages. First, architectures are encoded as directed acyclic graphs (DAGs) and processed by a Graph Isomorphism Network (GIN) to extract structural features. Second, a context-aware self-supervised pre-training task is employed. The model learns to match central subgraphs with their surrounding structural contexts using contrastive learning, allowing it to understand the topology of the search space without performance labels. Finally, the model is fine-tuned on a small set of labeled architectures using Bayesian Personalized Ranking (BPR) loss, optimizing for the relative ranking of models rather than absolute accuracy.
Experimental Results
CAP was evaluated on standard benchmarks including NAS-Bench-101, NAS-Bench-201, and the DARTS search space. On NAS-Bench-101, CAP achieved a Kendall’s Tau of 0.709 with only 172 training samples, outperforming competitors that required significantly more data. Notably, CAP maintains high performance even with a 10-fold reduction in labels. In search tasks, CAP found architectures on CIFAR-10 with 97.58% accuracy, surpassing established methods like ENAS and DARTS while being orders of magnitude faster. On NAS-Bench-201, the search was completed in just 16 seconds, over 80x faster than traditional reinforcement learning methods.
Discussion and Conclusion
CAP demonstrates that structural information from unlabeled architectures is a potent signal for performance prediction. By focusing on ranking rather than regression and utilizing self-supervised pre-training, CAP slashes the data requirements for building effective neural predictors. While currently focused on cell-based search spaces, future work could extend this context-aware approach to more diverse macro-architectures. CAP represents a significant step toward making NAS more accessible and computationally efficient.
Summary updated