Enhancing Once-For-All: A Study on Parallel Blocks, Skip Connections and Early Exits

Simone Sarti, Eugenio Lomurno, Andrea Falanti, Matteo Matteucci

Abstract

The Once-For-All (OFA) framework revolutionized Neural Architecture Search (NAS) by decoupling training from search, allowing a single "supernet" to support diverse hardware constraints. However, the original OFA was constrained by a rigid MobileNetV3-based architecture. This paper introduces OFAv2, an enhanced framework that integrates modern architectural components—parallel blocks, dense skip connections, and early exits—alongside an Extended Progressive Shrinking (EPS) training strategy. Our results on Tiny ImageNet demonstrate a significant performance leap, with the best configuration achieving a 12.07% accuracy improvement over the original OFA baseline.

1. Introduction

Traditional Neural Architecture Search (NAS) methods, while effective at finding high-performance models, are notoriously resource-intensive, often requiring the training of thousands of candidate models. The Once-For-All (OFA) approach addressed this by training a single supernet that contains numerous subnets. Once trained, these subnets can be deployed across various hardware platforms without further training.

Despite its efficiency, the original OFA framework's reliance on a sequential MobileNetV3 backbone limits its representational capacity. This study explores whether incorporating recent architectural trends—specifically parallelism and multi-exit strategies—can elevate the "train once, use everywhere" paradigm. We present OFAv2, which introduces structural enhancements and a refined training protocol to maximize the utility of the supernet.

2. Architectural Enhancements

OFAv2 introduces three primary structural modifications to the standard OFA supernet:

2.1 Parallel Blocks (P)

Moving beyond a strictly sequential path, OFAv2 allows the network to select between multiple parallel operations at specific depths. This includes a feature mixing block and a "fast transformation" block, which serves as a computationally lighter alternative to standard layers. This flexibility allows the search process to better balance latency and accuracy.

2.2 Dense Skip Connections (D)

To facilitate better gradient flow and enhance feature reuse, the authors integrated dense skip connections between blocks within the same stage. This modification helps mitigate the vanishing gradient problem and allows deeper subnets to retain information from earlier layers more effectively.

2.3 Early Exits (EE)

Unlike traditional networks that produce a single output at the final layer, the OFAv2 supernet incorporates five intermediate "early exits." These exits serve two purposes: they allow for "short-circuiting" the network for simpler inputs (reducing inference time) and act as a form of regularization during training.

3. Extended Progressive Shrinking (EPS)

To accommodate the increased complexity of the OFAv2 architecture, the original Progressive Shrinking (PS) algorithm was expanded into Extended Progressive Shrinking (EPS). EPS introduces two new elastic dimensions:

  • Elastic Level: Controls the selection and activation of parallel blocks.
  • Elastic Height: Manages the training and utilization of the various early exits.

Furthermore, the authors introduced a Dynamic Teacher Selection strategy. In standard OFA, a static teacher model is used for Knowledge Distillation (KD). In OFAv2, the teacher is updated at the start of each training phase to be the highest-performing configuration from the preceding phase. This ensures that the student subnets are consistently learning from the most optimized version of the supernet.

4. Experimental Results

The framework was evaluated on the Tiny ImageNet dataset, which consists of 100,000 training images across 200 classes downsampled to a 64x64 resolution.

4.1 Performance Gains

The integration of these features led to substantial improvements. The EE_D_OFA_MBV3 configuration (incorporating Early Exits and Dense Skips) achieved a 12.07% accuracy increase over the baseline OFA. Notably, the authors observed that the average accuracy of subnets within the OFAv2 supernet often exceeded the best subnet accuracy of the original OFA.

4.2 The Impact of Dynamic Teaching and Early Exits

The dynamic teacher strategy proved to be a critical component, contributing a standalone accuracy boost of over 3% across various configurations. Additionally, while early exits are typically used for inference efficiency, they functioned as a powerful regularizer in OFAv2. By requiring intermediate layers to produce classifiable features, the internal representations of the network became significantly more robust.

5. Conclusion and Future Work

OFAv2 demonstrates that the "Once-For-All" paradigm can be significantly improved by adopting modern architectural features and a more dynamic training regimen. While parallel blocks showed sensitivity to specific configurations, the combination of dense skips, early exits, and dynamic distillation consistently outperformed the baseline.

Future research will focus on scaling these findings to full ImageNet and exploring the efficacy of OFAv2 in specialized domains such as object detection. Additionally, further optimization of the "ex-post" search process—identifying the optimal subnets after supernet training—remains a promising avenue for further performance gains.

Summary updated

BibTeX
@inproceedings{sarti2023enhancing,
  author = {Simone Sarti and Eugenio Lomurno and Andrea Falanti and Matteo Matteucci},
  title = {{Enhancing Once-For-All: A Study on Parallel Blocks, Skip Connections and Early Exits}},
  booktitle = {IJCNN},
  year = {2023},
  url = {https://openreview.net/forum?id=RPOV8ySgbn},
}
Figure