iFormer: Integrating ConvNet and Transformer for Mobile Application

Chuanyang Zheng
1/26/2025
cs.CVcs.AIcs.LG

No official code found. Best implementation: ChuanyangZheng/iFormer (67 stars, MIT, last commit 2025-03-22).

Abstract

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, \textit{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.

View on arXivView PDF

Code Implementations(1)

MIT

Official Pytorch implementation for "IFORMER: INTEGRATING CONVNET AND TRANSFORMER FOR MOBILE APPLICATION" [ICLR 2025]

674Shell, PythonDec 1, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zheng2025iformer,
  title  = {iFormer: Integrating ConvNet and Transformer for Mobile Application},
  author = {Chuanyang Zheng},
  year   = {2025},
  eprint = {2501.15369},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.15369v2},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.15369.svg)](https://codeofpaper.com/paper/2501.15369)

Discussion