[论文解读] MobileNetV4 -- Universal Models for the Mobile Ecosystem
tldr: MobileNetV4 引入 Universal Inverted Bottleneck (UIB) 和 Mobile MQA 块,以及增强的 NAS 和蒸馏策略,提供在 CPU、DSP、GPU 和加速器上几乎 Pareto最优、硬件通用的移动模型,达到 Pixel 8 EdgeTPU 上 3.8 ms 的 ImageNet-1K 准确率 87%。
We present the latest generation of MobileNets, known as MobileNetV4 (MNv4), featuring universally efficient architecture designs for mobile devices. At its core, we introduce the Universal Inverted Bottleneck (UIB) search block, a unified and flexible structure that merges Inverted Bottleneck (IB), ConvNext, Feed Forward Network (FFN), and a novel Extra Depthwise (ExtraDW) variant. Alongside UIB, we present Mobile MQA, an attention block tailored for mobile accelerators, delivering a significant 39% speedup. An optimized neural architecture search (NAS) recipe is also introduced which improves MNv4 search effectiveness. The integration of UIB, Mobile MQA and the refined NAS recipe results in a new suite of MNv4 models that are mostly Pareto optimal across mobile CPUs, DSPs, GPUs, as well as specialized accelerators like Apple Neural Engine and Google Pixel EdgeTPU - a characteristic not found in any other models tested. Finally, to further boost accuracy, we introduce a novel distillation technique. Enhanced by this technique, our MNv4-Hybrid-Large model delivers 87% ImageNet-1K accuracy, with a Pixel 8 EdgeTPU runtime of just 3.8ms.
研究动机与目标
- 开发融合 IB、ConvNext 和 FFN 的架构块(UIB),以提升移动效率。
- 引入针对加速器优化的 Mobile MQA 注意力以提升推理速度。
- refine a two-stage NAS recipe to efficiently search large UIB spaces.
- Refine a two-stage NAS recipe to efficiently search large UIB spaces.
- Propose a distillation technique to boost ImageNet accuracy on mobile models.
- Demonstrate universal Pareto-optimal performance across diverse mobile hardware.
提出的方法
- 提出 Universal Inverted Bottleneck (UIB) 及可选深度卷积以统一多种架构思路。
- 开发 Mobile MQA 注意力,结合空间缩减策略以提升在加速器上的推理速度。
- 使用两阶段 NAS(粗搜索和精细搜索)以高效为不同模型规模实例化 UIB 块。
- 应用离线蒸馏数据集(JFT)和扩展训练以提升 NAS 评估稳定性和最终准确率。
- 使用两阶段蒸馏配方,结合动态数据集混合和大规模数据(JFT 子集)以提升准确率。
- 在 CPU、DSP、GPU 和加速器上对 MNv4 变体在 ImageNet-1K 进行基准测试;评估 RetinaNet 的 COCO 检测。
实验结果
研究问题
- RQ1一个统一块(UIB)是否能够涵盖 IB、ConvNext 和 FFN,以在不同硬件上平衡准确性与效率?
- RQ2Mobile MQA 是否能在移动加速器上带来显著的加速而不牺牲准确性?
- RQ3两阶段 NAS 搜索是否能可靠地产生在多设备上具有 Pareto 最优性的 MNv4 模型?
- RQ4一种新颖的蒸馏策略是否能显著提升移动骨干网的 ImageNet 准确率?
- RQ5MNv4-Conv 和 MNv4-Hybrid 是否在 CPUs、DSPs、GPUs 和加速器上实现通用的 Pareto 最优性?
主要发现
- MNv4 模型在 CPUs、DSPs、GPUs、Apple Neural Engine 和 EdgeTPU 上实现了大多数 Pareto-optimal 的性能。
- Mobile MQA 相较 MHSA 在推理速度上提升超过 39%,而准确率损失可忽略不计。
- 两阶段 NAS 在搜索效率和模型质量上优于单阶段搜索。
- 采用动态数据集混合和 JFT 增强的蒸馏在先前 SOTA 基础上获得最高 0.8% 的 top-1 准确率提升。
- MNv4-Hybrid-L 在 ImageNet-1K 上达到 87% 的 top-1,且 MACs 比其教师模型低 39 倍。
- MNv4-Conv-L 在 CPU/GPU/EdgeTPU 上表现出色并具备跨硬件通用性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。