NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TF-NAS: Rethinking Three Search Freedoms of Latency-Constrained Differentiable Neural Architecture Search

Yibo Hu, Xiang Wu, Ran He

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:

  1. Operation Collapse: The search process often converges prematurely to a subset of operations, missing better candidates.
  2. Depth Instability: Identity or "skip" operations are often favored because they are parameter-free and easy to optimize, leading to shallow networks.
  3. 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.

Overview of the TF-NAS framework, illustrating the bi-sampling algorithm, sink-connecting space, and elasticity-scaling strategy.
  • 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.

Empirical results showing (a) how sink-connecting stabilizes depth search compared to skip-in-candidates, and (b) how elasticity-scaling maintains a precise target latency of 15ms.

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

BibTeX
@inproceedings{hu2020tf,
  author = {Yibo Hu and Xiang Wu and Ran He},
  title = {{TF-NAS: Rethinking Three Search Freedoms of Latency-Constrained Differentiable Neural Architecture Search}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58555-6\_8},
}
Figure