Skip to main content
QUICK REVIEW

[Paper 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 Science16 citations
TL;DR

GhostNetV3 shows that specialized training strategies—re-parameterization, knowledge distillation, learning schedule, and data augmentation—significantly boost compact model performance without changing inference architecture.

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.

Motivation & Objective

  • Investigate how training ingredients affect performance of compact models with fixed inference architectures.
  • Identify which re-parameterization techniques best improve accuracy for depthwise and 1x1 convolutions in GhostNetV3.
  • Explore the impact of knowledge distillation, learning schedules, EMA, and data augmentation on small models.
  • Provide a specialized training recipe that generalizes across compact architectures and tasks (including object detection).

Proposed method

  • Introduce re-parameterization by adding linear parallel branches to depth-wise and 1x1 convolutions and later folding them into a single layer at inference.
  • Evaluate knowledge distillation with various teacher models (ResNet-101, DeiT-B, BEiTV2-B) and hyperparameters (alpha, tau).
  • Compare learning rate schedules (step vs cosine) and EMA settings to determine robust optimization strategies for compact models.
  • Assess data augmentation options including AutoAug, RandAug, Mixup, CutMix, and RandomErasing to determine which augmentations help or harm compact models.
  • Perform extensive ablation studies on GhostNetV3 (and other compact models like MobileNetV2, ShuffleNetV2) on ImageNet-1K (600 epochs, batch 2048).
  • Extend findings to object detection on COCO to test generalization of the training recipe.

Experimental results

Research questions

  • RQ1How do re-parameterization and an added 1x1 depth-wise branch influence GhostNetV3 performance as the number of branches varies?
  • RQ2What is the impact of different teacher models and KD settings on compact model accuracy?
  • RQ3Which learning rate schedules and EMA settings yield the best validation accuracy for compact models?
  • RQ4Which data augmentation strategies are beneficial or detrimental for compact models?
  • RQ5Do the proposed training strategies transfer to other compact architectures and to object detection tasks?

Key findings

  • Re-parameterization with a 1x1 depth-wise branch significantly improves GhostNetV3 performance, with an optimal branch count around three when using N=3.
  • Knowledge distillation with BEiTV2-B as teacher boosts GhostNetV3 accuracy, with higher teacher quality correlating with better student performance.
  • Cosine learning rate schedule yields the highest top-1 accuracy among schedules tested, and too large learning rates harm performance.
  • Mixup and CutMix augmentations detrimental to compact models, while random augmentation and random erasing prove beneficial.
  • GhostNetV3 1.3x achieves 79.1% top-1 on ImageNet-1K with 269M FLOPs, and GhostNetV3 1.6x reaches 80.4% top-1 with 399 MFLOPs, outperforming several compact baselines in accuracy/latency.
  • The training recipe generalizes to MobileNetV2 and ShuffleNetV2, improving their top-1 accuracy by notable margins.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.