2025-01-28 · 进阶 · 机器学习 · 计算机视觉

iFormer: Integrating ConvNet and Transformer for Mobile Application

本文提出了一种名为iFormer的移动混合视觉网络,通过结合卷积神经网络和Transformer的优势,在移动应用中实现了低延迟和高准确率。

更新于 2025-01-28。作者:Chuanyang Zheng。

中文摘要

我们提出了一种新的移动混合视觉网络系列,名为iFormer,专注于优化移动应用中的延迟和精度。iFormer有效地结合了卷积的快速局部表示能力与自注意力的高效全局建模能力。局部交互是通过将标准卷积网络,即ConvNeXt,转化为更轻量级的移动网络来设计的。我们新引入的移动调制注意力移除了MHA中的内存密集型操作,并采用了一种高效的调制机制来提升动态全局表示能力。我们进行了全面的实验,证明了iFormer在各种任务上优于现有的轻量级网络。值得注意的是,iFormer在ImageNet-1k上实现了令人印象深刻的Top-1精度80.4%,在iPhone 13上的延迟仅为1.10毫秒,超过了在类似延迟约束下最近提出的MobileNetV4。此外,我们的方法在下游任务中也表现出显著的改进,包括COCO目标检测、实例分割和ADE20k语义分割,在这些场景中,即使在移动设备上,对于高分辨率输入也能保持低延迟。

英文摘要

We present a new family of mobile hybrid vision networks, called iFormer, with a focus on optimizing latency and accuracy on mobile applications. iFormer effectively integrates the fast local representation capacity of convolution with the efficient global modeling ability of self-attention. The local interactions are derived from transforming a standard convolutional network, i.e., ConvNeXt, to design a more lightweight mobile network. Our newly introduced mobile modulation attention removes memory-intensive operations in MHA and employs an efficient modulation mechanism to boost dynamic global representational capacity. We conduct comprehensive experiments demonstrating that iFormer outperforms existing lightweight networks across various tasks. Notably, iFormer achieves an impressive Top-1 accuracy of 80.4\% on ImageNet-1k with a latency of only 1.10 ms on an iPhone 13, surpassing the recently proposed MobileNetV4 under similar latency constraints. Additionally, our method shows significant improvements in downstream tasks, including COCO object detection, instance segmentation, and ADE20k semantic segmentation, while still maintaining low latency on mobile devices for high-resolution inputs in these scenarios.

解读

一句话总结

本文提出了一种名为iFormer的移动混合视觉网络,通过结合卷积神经网络和Transformer的优势,在移动应用中实现了低延迟和高准确率。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:移动应用中对图像和视频的实时分析需求日益增长,需要轻量级神经网络来平衡延迟和性能。 • 现有方案不足:传统的卷积神经网络在移动设备上依赖于局部滑动窗口机制,限制了建模灵活性;而视觉Transformer(ViT)虽然在性能上有所提升,但在移动设备上的部署存在挑战,如计算复杂度和内存使用问题。 • 研究目标:设计一种轻量级混合视觉网络,在保持高准确率的同时降低移动设备上的延迟。

问题2:论文的核心创新点是什么?

• 技术创新:将标准卷积神经网络(ConvNeXt)转换为更轻量级的移动网络,并引入单头调制注意力(SHMA)以减少内存密集型操作。 • 方法改进:通过优化自注意力机制,减少 reshaping 操作,提高动态全局表示能力。 • 优势:与现有方法相比,iFormer在多个视觉识别任务上表现出色,同时保持低延迟。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在ImageNet-1k、COCO物体检测、实例分割和ADE20k语义分割等任务上进行了实验。 • 性能提升:iFormer在ImageNet-1k上实现了80.4%的Top-1准确率,延迟仅为1.10 ms,优于MobileNetV4。 • 对比结果:iFormer在多个任务上均优于现有的轻量级网络和混合网络。

问题4:这个研究的实际应用价值是什么?

• 应用场景:智能手机、移动应用等对延迟和性能要求较高的场景。 • 实施建议:针对不同硬件资源限制,开发一系列iFormer模型。 • 局限与展望:未来将探索更高分辨率图像的推理瓶颈问题,并优化iFormer适用于更多硬件平台。

来源