Abstract
Neural Architecture Search (NAS) has revolutionized deep learning design but remains computationally expensive. One-shot NAS methods, while efficient, suffer from weight-sharing conflicts and costly post-training searches. We propose PreNAS, a "preferred learning" strategy that prunes the search space using a zero-cost proxy before training begins. By focusing supernet training on a small set of high-quality architectures, PreNAS eliminates the need for post-training search and significantly improves model performance. Our method introduces a Normalized Isomer Proxy to handle Transformer-specific biases and achieves state-of-the-art results on ImageNet-1K and various downstream tasks.
Introduction
Designing deep learning architectures manually is a slow, expert-heavy process. Neural Architecture Search (NAS) automates this, but it is notoriously resource-intensive. The current state-of-the-art approach is One-Shot NAS, which trains a massive "supernet" containing billions of possible sub-architectures (subnets) that share weights. While clever, this approach has two major flaws:
- Search Efficiency: Even after the supernet is trained, dozens of GPU hours are spent using evolutionary algorithms or reinforcement learning to find the best subnet.
- Training Efficacy: Making one set of weights work for $10^9$ different architectures causes "update conflicts." Weights struggle to satisfy high-quality and low-quality subnets simultaneously, leading to mediocre convergence.
PreNAS addresses these by asking: What if we only trained the good architectures in the first place?
Methods
PreNAS flips the standard NAS pipeline by identifying preferred architectures upfront using cheap proxies.
- Zero-Cost Selector: Before training, PreNAS uses a "zero-cost proxy" (a modified version of SNIP) to score architectures. This requires only a single mini-batch and one forward/backward pass to estimate potential.
- Handling Transformer Isomers: The authors discovered that standard proxies fail on Transformers because of "isomers"—architectures with the same parameters and FLOPs but different block arrangements. PreNAS introduces the Normalized Isomer Proxy, which normalizes scores per layer to remove bias toward wider lower blocks.
- Preferred One-Shot Training: The supernet is trained only on the "preferred" architectures identified by the selector. This concentrated optimization reduces gradient interference between subnets.
- Search-Free Specialization: Since the best architectures are identified before training, there is no costly post-training search phase. Top-ranked models are simply selected and inherit their trained weights.
Key Insights
- The "Isomer" Discovery: In Vision Transformers (ViTs), rearranging blocks can maintain resource consumption while significantly changing performance. PreNAS's normalization fix makes proxies "aware" of these differences.
- Less is More: Shrinking the search space from billions to a narrow "preferred" set allows supernet weights to converge better. Training on "trash" architectures actually hurts the performance of the "treasure" architectures.
- Upfront Search: Moving search to the beginning using cheap proxies is far more efficient than doing it at the end with expensive evaluations.
Key Results
PreNAS consistently outperformed competitors like AutoFormer and BigNAS across various scales:
- Accuracy: On ImageNet, PreNAS-Base achieved 82.6% Top-1 accuracy, surpassing AutoFormer-B (82.4%) and the handcrafted DeiT-B (81.8%) while using significantly fewer FLOPs.
- Speed: While AutoFormer requires over 90 GPU hours for its post-training evolutionary search, PreNAS is essentially search-free, requiring only about 0.1 to 0.3 hours for its initial proxy selection.
- Versatility: When applied to CNNs (using the BigNAS search space), it improved Top-1 accuracy by 0.5% to 1.0% across different model sizes. It also demonstrated strong transfer learning performance on benchmarks like CIFAR-10/100, iNaturalist, and fine-grained tasks like Oxford-IIIT Pets.
Conclusion
PreNAS streamlines NAS by prioritizing high-quality architectures before the heavy lifting of training begins. By mitigating weight-sharing conflicts and eliminating the post-training search phase, it offers a more efficient and accurate path to automated architecture design. Future work includes developing data-free proxies and extending this paradigm to Large Language Models (LLMs).
Summary updated