DANCE: Resource-Efficient Neural Architecture Search with Data-Aware and Continuous Adaptation

Maolin Wang, Tianshuo Wei, Sheng Zhang, Ruocheng Guo, Wangyu Wang, Shanshan Ye, Lixin Zou, Xuetao Wei, Xiangyu Zhao · DOI

Abstract

Traditional Neural Architecture Search (NAS) often results in rigid models that require computationally expensive re-optimization when deployment constraints or data distributions change. We present DANCE (Dynamic Architectures with Neural Continuous Evolution), a framework that reformulates NAS as a continuous evolution problem. By learning probability distributions over architectural components via a novel SelectGate mechanism, DANCE allows a single trained "SuperNet" to adapt fluidly to varying hardware budgets and data characteristics. Our results demonstrate that DANCE significantly reduces search costs while achieving superior accuracy-efficiency trade-offs compared to state-of-the-art one-shot NAS and pruning methods.

Introduction: The Deployment Bottleneck in NAS

While Neural Architecture Search has successfully automated the design of high-performing models, it faces a significant "deployment problem." Models optimized for high-end GPUs often fail to meet the latency or power requirements of mobile devices, necessitating a brand-new search process for every specific hardware target. Furthermore, static architectures cannot adapt to shifts in data distribution or changing real-time performance requirements.

DANCE addresses these hurdles by bridging the gap between NAS and network pruning. Instead of searching for a single discrete architecture, it learns a continuous space of sub-networks, enabling "on-the-fly" adaptation to resource constraints and input data.

Methodology: Continuous Evolution via SelectGates

The core of DANCE is the transition from discrete operator selection to learning distributions over feature dimensions.

The SelectGate Mechanism

At each layer, a data-aware dynamic select gate determines which feature dimensions to retain. This decision is conditioned on three primary factors:

  1. Input Data: The gate analyzes the current batch to identify features most relevant to the specific input.
  2. Resource Constraints: A target budget (e.g., FLOPs limit) is provided as an input, guiding the pruning process.
  3. Importance Metrics: Selection is driven by a combination of static weight magnitude, dynamic activation patterns, discriminative feature importance, and a correlation penalty to minimize redundancy.

Three-Stage Training Strategy

DANCE employs a structured multi-stage approach to ensure both robustness and efficiency:

  • Stage 1: SuperNet Pre-training: A comprehensive SuperNet is trained to learn foundational feature representations across various parallel branches.
  • Stage 2: Distribution-Guided Learning: SelectGates are optimized using a dual-loop system. Differentiable exploration is enabled via Gumbel-Softmax, allowing the system to learn how to sample sub-networks that maximize performance under specific constraints.
  • Stage 3: Scenario-Specific Optimization: For a final deployment target, the model inherits SuperNet weights and undergoes rapid fine-tuning to lock in the optimal sub-structure for the given data and hardware.
Figure 2: The three-stage training pipeline of DANCE, moving from SuperNet pre-training to distribution-guided learning and final scenario-specific optimization.

Experimental Evaluation

The researchers evaluated DANCE on standard benchmarks (CIFAR-10/100) and fine-grained classification tasks (Food-101, Stanford Cars, CUB-200-2011) to test its scalability and precision in high-resolution visual discrimination.

Key Results and Efficiency Gains

DANCE consistently outperformed existing one-shot NAS methods. On CIFAR-100, it achieved 70.92% accuracy in Stage 2, surpassing SPOS (60.76%) and RecNAS (66.50%).

The most significant advantage of DANCE is its efficiency-accuracy trade-off. As shown in the comparison below, DANCE reaches performance milestones at a fraction of the computational cost required by traditional score-based pruning methods. For instance, DANCE achieves 60% accuracy with approximately 450M FLOPs, whereas baseline methods require over 1200M FLOPs to reach the same level.

Figure 5: Comparison of Accuracy vs. FLOPs. DANCE demonstrates a significantly more efficient Pareto frontier compared to standard score-based and random pruning methods.

Conclusion

DANCE represents a shift toward more fluid and adaptable neural architectures. By treating NAS as a continuous pruning process guided by data-aware gates, it eliminates the need for redundant searches across different hardware platforms. While currently focused on computer vision, the principles of SelectGates and distribution-guided learning offer a promising path for resource-efficient deployment in other domains like NLP and edge computing.

Summary updated

BibTeX
@inproceedings{wang2025dance,
  author = {Maolin Wang and Tianshuo Wei and Sheng Zhang and Ruocheng Guo and Wangyu Wang and Shanshan Ye and Lixin Zou and Xuetao Wei and Xiangyu Zhao},
  title = {{DANCE: Resource-Efficient Neural Architecture Search with Data-Aware and Continuous Adaptation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/705},
}
Figure