[论文解读] iFormer: Integrating ConvNet and Transformer for Mobile Application
iFormer 是一种适用于移动端的混合视觉网络,将快速卷积块与高效的单头调制自注意力机制相结合,在移动 Vision 任务上实现最先进的延迟–精度权衡,包括 iPhone 13 上 ImageNet-1K 的 1.10 ms 得到 80.4% Top-1。
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, extit{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.
研究动机与目标
- 为移动视觉网络提供动力并设计轻量化网络,在延迟与精度之间取得平衡。
- 将快速局部卷积表示与高效全局注意力集成。
- 开发适用于设备端推理的内存高效注意力变体。
- 在图像分类、目标检测、实例分割和语义分割等任务上评估架构。
提出的方法
- 从基于 ConvNeXt 的轻量骨干网络入手以捕获局部表示。
- 引入单头调制自注意力(SHMA)以在降低内存成本的同时建模全局上下文。
- 融合卷积分支与 SHMA 分支的输出以实现动态信息交换。
- 使用条件位置信编码(CPE)注入动态位置信息。
- 尝试更宽/更窄的模块、核大小,以及激活/归一化选择以优化移动硬件上的延迟。

实验结果
研究问题
- RQ1如何通过整合 CNN 与 transformer 实现移动视觉任务的最先进延迟–精度权衡?
- RQ2单头调制注意力机制是否能够在移动设备上以更低的内存与延迟成本实现具有竞争力的全局建模?
- RQ3在不使用蒸馏或重参数化的情况下,哪些架构与训练选择能够最大化设备端性能?
主要发现
- iFormer 在 iPhone 13 上以 1.10 ms 延迟达到 ImageNet-1K 的 80.4% Top-1 准确率(未使用蒸馏或重参数化)。
- 单头调制注意力(SHMA)降低了内存访问并在与多头注意力基线的比较中保持具有竞争力的准确率(SHA 基线比 MHA 快 1.25 倍)。
- iFormer-L 在下游任务如目标检测(MS COCO)和语义分割(ADE20K)中以更低的移动端延迟处理高分辨率输入,超越了若干轻量基线。
- 带条件位置信编码的调制注意力在所测试的变体中提供最佳的帕累托最优的准确率–延迟折衷。
- 该架构在移动硬件上实现了在图像分类、目标检测、实例分割和语义分割方面的出色结果。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。