HyperNAS: Enhancing Architecture Representation for NAS Predictor via Hypernetwork

Jindi Lv, Yuhao Zhou, Yuxin Tian, Qing Ye, Wentao Feng, Jiancheng Lv

TL;DR

HyperNAS introduces a powerful new paradigm for predictor-based Neural Architecture Search (NAS) by combining a global macro-structural encoding scheme with a shared hypernetwork auxiliary task. This approach significantly enhances how neural predictors learn and generalize architecture representations, achieving state-of-the-art search results on CIFAR-10 and ImageNet while using up to 5× fewer training samples than competing methods.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) automates the design of deep neural networks, but evaluating thousands of candidate architectures is computationally grueling. To speed things up, "predictor-based" NAS methods train a surrogate model (a predictor) on a small dataset of architectures and their known accuracies to forecast the performance of unseen networks.

However, current predictors suffer from two major flaws:

  1. Isolated Cell Encoding: They typically evaluate architectures based on a single cell design, completely ignoring macro-structural features like inter-cell dependencies and reduction operations.
  2. Poor Generalization: The relationship between an architecture's topology and its final accuracy is highly complex and non-linear. Training on small proxy datasets often causes predictors to overfit and generalize poorly to unseen architectures.

HyperNAS tackles both limitations simultaneously to build a more holistic, robust performance predictor.

Methods

HyperNAS frames predictor training as a multi-task learning problem consisting of two main components built on top of a shared Graph Convolutional Network (GCN) architecture encoder:

Figure 1. Overview of HyperNAS. HyperNAS is a multi-task paradigm designed to enhance architecture representation learning. It consists of two tasks: the architecture performance prediction task (blue dashed box) and the architecture parameter generation task (green dashed box). The GCN encoder serves as a shared backbone across both tasks, acting as a feature extractor for architecture representation learning.
  1. Global Architecture Encoding: Instead of looking at cells in isolation, HyperNAS sequentially integrates each cell into the encoding process. Features from preceding cells are pooled and added to the current cell's node features. This allows the shared GCN encoder to capture the macro-structural context of the entire network.
  2. Hypernetwork Auxiliary Task: To prevent the encoder from overfitting to limited architecture-accuracy pairs, the authors introduce a shared hypernetwork (an MLP). This hypernetwork takes the encoder's node features and dynamically generates weights for a target network.

Crucially, the hypernetwork is only used as an auxiliary task during training to regularize the GCN encoder and enforce cross-architecture knowledge transfer. During the actual NAS evaluation phase, the hypernetwork branch can be deactivated to save time.

To balance these two distinct objectives (accuracy regression vs. weight generation), the authors developed a Dynamic Adaptive Multi-Task Loss function featuring a preference coefficient ($q$) to stably guide optimization along the Pareto front.

Datasets

The authors evaluated HyperNAS across several standard tabular benchmarks and open-domain search spaces:

  • NAS-Bench-101 & NAS-Bench-201: Used to evaluate the predictor's ranking ability (measured via Kendall's Tau) under strict few-shot data constraints.
  • DARTS Search Space: Tested on CIFAR-10 and transferred to ImageNet for convolutional space validation.
  • Vision Transformer (ViT) Search Space: Tested on ImageNet using the AutoFormer search space configuration (encompassing embedding dimensions, heads, MLP ratios, and network depth).

Key Insights and Ideas

  • The Power of Auxiliary Supervision: Instead of using a hypernetwork directly as a performance evaluator (which historically yields suboptimal rankings), HyperNAS uses it purely to force the encoder to learn meaningful topological features.
  • Macro Context is Essential: Passing features sequentially from cell to cell ($z^{(i-1)} \rightarrow V^{(i)}$) allows the GCN to differentiate between identical cells placed at different depths, capturing critical macro-structural dependencies that isolated cell encoders miss.
  • Feature Clustering Improvements: As shown via t-SNE visualizations, incorporating the hypernetwork auxiliary task significantly improves the clustering of learned architectural features, making the predictor far more robust to unseen topologies.
Figure 3. t-SNE visualization of learned architecture features.

Key Results

  • Superb Few-Shot Ranking: On NAS-Bench-101, with only 50 training samples (0.01% of the dataset), HyperNAS achieved a Kendall's Tau of 0.678, outperforming methods trained on much larger splits.
  • State-of-the-Art Search Performance:
  • On CIFAR-10 (DARTS space), HyperNAS found an architecture achieving 97.60% top-1 accuracy using only 200 queries—5× fewer queries than the previous state-of-the-art method, PINAT.
  • On ImageNet, HyperNAS achieved 75.4% top-1 accuracy in the DARTS space, and 82.4% top-1 accuracy in the ViT-Base space.
  • Massive Speedups: While search methods like AutoFormer require roughly 1 GPU day due to test-set inference overhead, HyperNAS completes its architecture search in under 1 minute via rapid predictor inference.

Limitations and Future Work

The primary limitation of HyperNAS lies in its training phase. While it drastically reduces the number of architecture-accuracy samples required, training the hypernetwork branch can still be computationally demanding and memory-intensive when dealing with extremely large target architectures.

For future work, the authors plan to maintain this multi-task auxiliary paradigm while optimizing the hypernetwork's efficiency to improve overall scalability.

Summary updated

BibTeX
@inproceedings{lv2026hypernas,
  author = {Jindi Lv and Yuhao Zhou and Yuxin Tian and Qing Ye and Wentao Feng and Jiancheng Lv},
  title = {{HyperNAS: Enhancing Architecture Representation for NAS Predictor via Hypernetwork}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=19GCGjjFEg},
}
Figure