Skip to main content
QUICK REVIEW

[论文解读] GhostNetV3: Exploring the Training Strategies for Compact Models

Zhenhua Liu, Zhiwei Hao|arXiv (Cornell University)|Apr 17, 2024
Generative Adversarial Networks and Image SynthesisComputer Science被引用 16
一句话总结

GhostNetV3 表明,专门的训练策略——再参数化、知识蒸馏、学习率调度和数据增强——在不改变推理架构的情况下显著提升紧凑模型的性能。

ABSTRACT

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$ imes$ 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.

研究动机与目标

  • 研究训练要素如何在固定推理架构下影响紧凑模型的性能。
  • 确定在 GhostNetV3 中哪种再参数化技术能最好地提升深度卷积和1x1卷积的准确性。
  • 探究知识蒸馏、学习率调度、EMA 以及数据增强对小型模型的影响。
  • 提供一个可泛化到各类紧凑架构与任务(包括目标检测)的专门训练方案。

提出的方法

  • 通过在深度卷积和1x1卷积中添加线性并行分支来引入再参数化,推理时再将它们折叠成单层。
  • 在多种教师模型(ResNet-101、DeiT-B、BEiTV2-B)和超参数(alpha、tau)下评估知识蒸馏。
  • 比较学习率调度(阶梯式与余弦)和 EMA 设置,以确定紧凑模型的鲁棒优化策略。
  • 评估包括 AutoAug、RandAug、Mixup、CutMix 和 RandomErasing 的数据增强选项,以确定哪些增强对紧凑模型有帮助或有害。
  • 在 ImageNet-1K 上对 GhostNetV3(以及其他紧凑模型如 MobileNetV2、ShuffleNetV2)进行广泛的消融研究(600 轮、批量大小 2048)。
  • 将发现扩展到 COCO 的目标检测任务,以检验该训练方案的泛化性。

实验结果

研究问题

  • RQ1当分支数量变化时,再参数化和添加的1x1逐通道分支如何影响 GhostNetV3 的性能?
  • RQ2不同教师模型和 KD 设置对紧凑模型准确性的影响如何?
  • RQ3哪些学习率调度和 EMA 设置能够为紧凑模型带来最佳的验证准确性?
  • RQ4哪些数据增强策略对紧凑模型有益或有害?
  • RQ5所提出的训练策略是否可推广到其他紧凑架构以及目标检测任务?

主要发现

  • 在使用 N=3 时,加入一个1x1 深度卷积分支的再参数化显著提升 GhostNetV3 的性能,最佳分支数约为3。
  • 以 BEiTV2-B 作为教师进行知识蒸馏可提升 GhostNetV3 的准确率,而教师质量越高,学生性能越好。
  • 余弦学习率调度在所测试的调度中获得最高的 top-1 准确率,过大的学习率会损害性能。
  • Mixup 和 CutMix 增强对紧凑模型不利,而随机数据增强与 Random Erasing 有益。
  • GhostNetV3 1.3x 在 ImageNet-1K 上以 269M FLOPs 实现 79.1% 的 top-1,与 1.6x 的 GhostNetV3 在 399 MFLOPs 下达到 80.4% top-1,在准确性/延迟方面优于若干紧凑基线。
  • 该训练方案可推广到 MobileNetV2 和 ShuffleNetV2,显著提升它们的 top-1 准确率。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。