Abstract
Differentiable Neural Architecture Search (NAS) often struggles with instabilities such as operation collapse, depth bias, and latency jitter. TF-NAS (Three-Freedom NAS) addresses these by introducing bi-sampling for operations, sink-connecting for depth, and elasticity-scaling for width. This framework achieves state-of-the-art accuracy on ImageNet while strictly adhering to hardware latency constraints.
The Challenges of Differentiable NAS
Designing efficient neural networks automatically via NAS involves balancing accuracy and real-world latency. Current differentiable methods face three primary hurdles:
- Operation Collapse: The search process often converges prematurely to a subset of operations, missing better candidates.
- Depth Instability: Identity or "skip" operations are often favored because they are parameter-free and easy to optimize, leading to shallow networks.
- Latency Jitter: Discrete search spaces make it difficult to hit precise latency targets, often resulting in models that are significantly faster or slower than desired.
The TF-NAS Framework
TF-NAS introduces a novel approach to handle the "three freedoms" of architecture design: operation, depth, and width.
- Bi-sampling (Operation-level): To prevent operation collapse, TF-NAS samples two paths during training. One path uses Gumbel-Softmax to exploit the current best guess, while the other is chosen randomly to ensure exploration. This ensures all operation candidates receive gradient updates.
- Sink-connecting (Depth-level): Instead of including "skip" as a candidate operation, TF-NAS treats stage depth as a separate choice. The "sink-connecting" structure ensures that if a layer is skipped, all subsequent layers in that stage are also bypassed, removing redundant configurations and stabilizing depth search.
- Elasticity-scaling (Width-level): To meet hard latency targets, a fine-grained scaling factor ($\gamma$) is introduced. The model width is dynamically adjusted (shrunk or expanded) after each epoch to match the target latency within a very tight margin.
Key Insights and Results
The separation of skip connections from the operation pool is a critical insight. By treating depth as a structural property rather than an operation, the search avoids the "unfair" gradient advantage of identity mappings.
TF-NAS was evaluated on ImageNet across various latency targets (10ms to 18ms on a Titan RTX GPU).
- Accuracy: TF-NAS-A achieved 76.9% top-1 accuracy, outperforming established models like EfficientNet-B0 (76.3%) and PC-DARTS (75.8%) while maintaining higher speeds.
- Precision: While competitors often miss latency targets by significant margins, TF-NAS models typically stay within 0.06ms of the goal.
- Efficiency: The search process is highly efficient, requiring only 1.8 GPU days for TF-NAS-A, significantly faster than reinforcement learning or evolutionary-based methods.
Conclusion
TF-NAS provides a robust solution to the instabilities of differentiable NAS. By rethinking the search space and introducing targeted scaling strategies, it enables the automated design of high-performance models that strictly satisfy hardware constraints. Future work may extend these scaling strategies to other resource constraints, such as memory footprint or energy consumption.
Summary updated