arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.11202cs.CV
收藏

GhostNetV3:探索紧凑模型的训练策略

GhostNetV3: Exploring the Training Strategies for Compact Models

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Beijing Institute of Technology(北京理工大学)

Zhenhua Liu, Zhiwei Hao, Kai Han, Yehui Tang, Yunhe Wang

AI总结:

本文针对紧凑模型提出专用训练策略,发现重参数化与知识蒸馏能提升性能而Mixup等数据增强有害,在ImageNet-1K上使GhostNetV3等架构大幅提升准确率并保持低延迟。

摘要:

紧凑型神经网络专为边缘设备上的应用而设计,具有更快的推理速度且性能适中。然而,目前紧凑模型的训练策略借鉴自传统模型,忽略了它们在模型容量上的差异,因此可能阻碍紧凑模型的性能。在本文中,通过系统地研究不同训练要素的影响,我们为紧凑模型引入了一种强大的训练策略。我们发现,重参数化和知识蒸馏的适当设计对于训练高性能紧凑模型至关重要,而一些用于训练传统模型的常用数据增强方法(如Mixup和CutMix)则会导致性能下降。我们在ImageNet-1K数据集上的实验表明,我们针对紧凑模型的专用训练策略适用于各种架构,包括GhostNetV2、MobileNetV2和ShuffleNetV2。具体而言,配备我们的策略后,GhostNetV3 1.3$\ imes$在仅有269M FLOPs和移动设备上14.46ms延迟的情况下,实现了79.1%的top-1准确率,大幅超越了其普通训练的对应模型。此外,我们的观察结果也可扩展到目标检测场景。PyTorch代码和检查点可在https://github.com/huawei-noah/Efficient-AI-Backbones/tree/master/ghostnetv3_pytorch获取。

英文摘要:

Compact neural networks are specially designed for applications on edge devices with faster inference speed yet modest performance. However, training strategies of compact models are borrowed from that of conventional models at present, which ignores their difference in model capacity and thus may impede the performance of compact models. In this paper, by systematically investigating the impact of different training ingredients, we introduce a strong training strategy for compact models. We find that the appropriate designs of re-parameterization and knowledge distillation are crucial for training high-performance compact models, while some commonly used data augmentations for training conventional models, such as Mixup and CutMix, lead to worse performance. Our experiments on ImageNet-1K dataset demonstrate that our specialized training strategy for compact models is applicable to various architectures, including GhostNetV2, MobileNetV2 and ShuffleNetV2. Specifically, equipped with our strategy, GhostNetV3 1.3$\times$ achieves a top-1 accuracy of 79.1% with only 269M FLOPs and a latency of 14.46ms on mobile devices, surpassing its ordinarily trained counterpart by a large margin. Moreover, our observation can also be extended to object detection scenarios. PyTorch code and checkpoints can be found at https://github.com/huawei-noah/Efficient-AI-Backbones/tree/master/ghostnetv3_pytorch.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑