GhostNetV3: Exploring the Training Strategies for Compact Models

Zhenhua Liu, Zhiwei Hao, Kai Han, Yehui Tang, Yunhe WangarXiv 2024 · DOI

Abstract

Compact neural networks are essential for edge deployment, but their training often relies on strategies designed for larger models. GhostNetV3 investigates specialized training recipes—including re-parameterization, knowledge distillation, and optimized data augmentation—to maximize the performance of low-capacity models. By refining these techniques, GhostNetV3 achieves state-of-the-art accuracy on ImageNet-1K (79.1%) with minimal inference latency.

Introduction

In deep learning, increasing model size typically yields higher accuracy. However, edge devices like smartphones and IoT sensors require compact models with low latency. While architectures like MobileNet and GhostNet have been optimized for these constraints, they are frequently trained using "bags of tricks" intended for massive models like ResNet-50 or Vision Transformers. GhostNetV3 argues that compact models, due to their limited representational capacity, require a tailored training strategy to avoid being "overwhelmed" by complex augmentation or distillation techniques.

Methods and Training Strategies

The GhostNetV3 framework maintains the fundamental inference architecture of GhostNetV2 while introducing four key training pillars:

  1. Re-parameterization (ReP): During training, parallel branches (e.g., 1x1 depth-wise convolutions alongside standard 3x3 ones) are added to the network. Post-training, these are mathematically "folded" into the main weights, providing a performance boost without increasing inference-time computational cost.
  2. Knowledge Distillation (KD): A high-performing "teacher" model (e.g., BEiTV2-B) guides the compact "student" model. The authors found that teacher quality and a low "temperature" setting are critical for small-scale students.
  3. Refined Data Augmentation: Systematic testing revealed that standard techniques like Mixup and CutMix can actually degrade performance in compact models by making the training task excessively difficult for low-capacity networks.
  4. Optimized Learning Schedule: A tuned learning rate of 5e-3 and a cosine decay schedule over 600 epochs were identified as the optimal configuration.
Table 1: Impact of Re-parameterization (ReP) on ImageNet Top-1 accuracy across different model sizes.

Key Insights

  • The Augmentation Paradox: Unlike large models that benefit from aggressive regularization, compact models perform better with simplified data augmentation. Mixup and CutMix were found to hurt performance in these low-capacity networks.
  • 1x1 Depth-wise Convolutions: Adding a 1x1 depth-wise branch during re-parameterization yielded significantly higher gains than adding additional 3x3 branches.
  • Universality: The GhostNetV3 training recipe is architecture-agnostic. When applied to MobileNetV2 and ShuffleNetV2, it improved Top-1 accuracy by 3.0% and 2.2%, respectively.

Results and Performance

GhostNetV3 sets a new benchmark for efficiency on mobile hardware. On a Huawei Mate40Pro (Kirin 9000 CPU), GhostNetV3 1.0× achieves a latency of 7.81ms with 77.1% accuracy, outperforming MobileOne-S1. The 1.3× variant reaches 79.1% Top-1 accuracy on ImageNet-1K with only 269M FLOPs.

Figure 1: Comparison of Top-1 Accuracy vs. CPU Latency on ImageNet-1K. GhostNetV3 demonstrates a superior Pareto frontier compared to other state-of-the-art mobile models.

GhostNetV3 1.6× achieves 80.4% accuracy, making it 6.8× faster than MobileFormer while maintaining higher precision. Furthermore, the strategies generalize well to downstream tasks; GhostNetV3 backbones consistently outperformed GhostNetV2 and MobileNetV2 on the COCO object detection benchmark.

Conclusion

GhostNetV3 demonstrates that for compact neural networks, the training recipe is as vital as the architecture. By optimizing re-parameterization, distillation, and augmentation for low-capacity models, the authors achieve state-of-the-art performance without increasing inference latency. Future work may extend these compact-specific strategies to other modalities like audio processing or time-series analysis.

Summary updated

BibTeX
@misc{liu2024ghostnetv,
  author = {Zhenhua Liu and Zhiwei Hao and Kai Han and Yehui Tang and Yunhe Wang},
  title = {{GhostNetV3: Exploring the Training Strategies for Compact Models}},
  year = {2024},
  eprint = {2404.11202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.11202},
}
Figure