Abstract
Neural Architecture Search (NAS) has traditionally relied on large-scale labeled datasets to evaluate candidate designs. This dependency limits its applicability to domains where human annotation is costly or unavailable. We present SSNAS (Self-supervised Neural Architecture Search), a novel approach that utilizes contrastive learning to discover optimal network structures without any human labels. By optimizing for representation similarity rather than classification accuracy during the search phase, SSNAS finds architectures that generalize exceptionally well to downstream tasks, particularly in label-scarce regimes.
Introduction
The automation of deep learning model design through NAS has led to state-of-the-art performance across various computer vision tasks. However, the "label-hungry" nature of popular NAS methods like DARTS poses a significant challenge. When labels are scarce, supervised NAS often becomes unstable or produces architectures that fail to generalize. SSNAS addresses this by leveraging the abundance of unlabeled data, decoupling the architectural search from the requirement for human-provided labels.
Methodology: Merging Search and Contrastive Learning
SSNAS combines the differentiable search strategy of DARTS with the contrastive learning framework of SimCLR. The search space is defined by a "cell"—a directed acyclic graph of operations—that can be stacked to form the final network.
The core innovation lies in the objective function. Instead of minimizing cross-entropy loss on class labels, SSNAS employs a contrastive loss. For each input image, two augmented versions are created. The architecture is optimized to maximize the similarity between these positive pairs in a high-dimensional feature space while minimizing similarity between different images (negative pairs). This approach is grounded in "generalization margin" theory: a structure capable of effectively separating unlabeled data inherently possesses the properties required for robust feature extraction.
Experimental Results
The performance of SSNAS was evaluated across multiple benchmarks, focusing on search quality, transferability, and robustness to limited labels.
Performance on Standard Benchmarks
On CIFAR-10, SSNAS achieved a test error of 2.61%, slightly outperforming the second-order supervised DARTS (2.62%). This demonstrates that self-supervision can discover architectures just as effectively as supervised methods on well-labeled datasets. Furthermore, cells found by SSNAS on CIFAR-10 transferred successfully to ImageNet, achieving a 27.75% top-1 error, which surpassed the 28.92% error of the supervised DARTS baseline.
Superiority in Label-Scarce Scenarios
The most significant advantage of SSNAS is observed when labels are limited. In experiments on CIFAR-100 with scarce labels, supervised NAS methods often collapse.
As shown in the results, SSNAS reached 83.36% accuracy, a dramatic improvement over the 64.46% achieved by supervised DARTS in the same environment. This stability stems from the contrastive objective, which remains informative even when class-level supervision is minimal.
Key Insights
- Intrinsic Architecture Quality: The "goodness" of an architecture is an intrinsic property related to its representational capacity, which can be measured without explicit class knowledge.
- Symbiotic Relationship: Self-supervised learning helps find better architectures, and these specialized architectures, in turn, enhance the performance of self-supervised feature learning compared to standard backbones like ResNet-18.
Limitations and Future Directions
While SSNAS shows great promise, it remains sensitive to batch sizes, a common trait in contrastive learning. Future iterations could incorporate memory queues (like MoCo) to reduce hardware requirements. Additionally, jointly searching for optimal data augmentations alongside the architecture could further enhance the discovery process.
Summary updated