Abstract
Vision transformers (ViTs) have dominated computer vision in recent years. However, ViTs are computationally expensive and not well suited for mobile devices; this led to the prevalence of convolutional neural network (CNN) and ViT-based hybrid models for mobile vision applications. Recently, Vision GNN (ViG) and CNN hybrid models have also been proposed for mobile vision tasks. However, all of these methods remain slower compared to pure CNN-based models. In this work, we propose Multi-Level Dilated Convolutions to devise a purely CNN-based mobile backbone. Using Multi-Level Dilated Convolutions allows for a larger theoretical receptive field than standard convolutions. Different levels of dilation also allow for interactions between the short-range and long-range features in an image. Experiments show that our proposed model outperforms state-of-the-art (SOTA) mobile CNN, ViT, ViG, and hybrid architectures in terms of accuracy and/or speed on image classification, object detection, instance segmentation, and semantic segmentation. Our fastest model, RapidNet-Ti, achieves 76.3% top-1 accuracy on ImageNet-1K with 0.9 ms inference latency on an iPhone 13 mini NPU, which is faster and more accurate than MobileNetV2×1.4 (74.7% top-1 with 1.0 ms latency). Our work shows that pure CNN architectures can beat SOTA hybrid and ViT models in terms of accuracy and speed when designed properly.
Introduction
In the quest for high-performance mobile vision, researchers have moved toward Vision Transformers (ViTs) and Vision Graph Neural Networks (ViGs). These architectures excel because they have a "global receptive field," meaning they can understand the relationship between distant pixels in an image. However, these operations (like self-attention or graph construction) are computationally expensive and often run poorly on mobile NPUs (Neural Processing Units).
Standard Convolutional Neural Networks (CNNs) are much faster on mobile hardware but suffer from a "local" receptive field—they only see a small neighborhood of pixels at a time. The challenge addressed by RapidNet is: How can we give a CNN the global context of a Transformer without sacrificing the efficiency of a standard convolution?
Methods: Multi-Level Dilated Convolutions
RapidNet relies on three key architectural innovations to achieve high performance on mobile hardware:
- Multi-Level Dilated Convolutions (MLDC): Instead of a single standard convolution, the MLDC block uses parallel depthwise convolutions with different dilation factors. This allows the network to "see" across larger gaps in the image grid simultaneously, capturing both short-range and long-range features without increasing the number of parameters.
- Reparameterizable Large Kernels: The model uses 7x7 depthwise convolutions during training to expand the receptive field. At inference time, these are "reparameterized" (mathematically collapsed) into a simpler form to reduce latency without losing accuracy.
- Large Kernel Feed-Forward Network (FFN): Borrowing from Transformer design, RapidNet replaces the standard MLP with a "Large Kernel FFN" that includes a 7x7 depthwise convolution. This further bolsters the model's ability to capture spatial context.
The architecture follows a standard four-stage design. The first two stages use efficient Inverted Residual Blocks (IRB) for local processing, while the final two stages (where the resolution is lower) utilize the MLDC blocks to capture global interactions.
Key Results
RapidNet was evaluated across several standard computer vision benchmarks, including ImageNet-1K for classification, MS COCO 2017 for detection, and ADE20K for segmentation.
Image Classification Performance
RapidNet consistently beats established mobile backbones in the accuracy-latency trade-off. RapidNet-Ti (Tiny) achieves 76.3% top-1 accuracy on ImageNet-1K with a latency of just 0.9 ms on an iPhone 13 mini. For comparison, the industry-standard MobileNetV2 x1.4 is both slower (1.0 ms) and less accurate (74.7%).
Downstream Tasks
- Object Detection: On MS COCO, RapidNet-M achieved 42.0 AP, outperforming FastViT-SA12 and PoolFormer-S12 while maintaining a competitive parameter count.
- Semantic Segmentation: On the ADE20K dataset, RapidNet-M reached 41.5 mIoU, significantly higher than ResNet18 (32.9) and MobileViG-M.
Discussion and Conclusion
One of the most significant insights from this work is that dilated convolutions can serve as a highly efficient alternative to complex graph or attention operations. A 3x3 convolution with a dilation of 3 has the same theoretical receptive field (7x7) as the complex graph operations used in MobileViG, but with significantly less computational overhead.
By using multi-level dilation in parallel, the model processes multiple scales of context at once and fuses them, mimicking the multi-head approach found in Transformers. The paper reinforces that "pure" CNNs remain highly effective for mobile deployment because mobile NPUs are highly optimized for 2D convolutions. RapidNet demonstrates that a hardware-aware CNN design can outperform state-of-the-art hybrid and ViT models in both accuracy and speed.
Code available at: https://github.com/mmunir127/RapidNet-Official
Summary updated