Abstract
In mobile computer vision, efficiency is traditionally measured by FLOPs and parameter counts, leading to the dominance of Depth-Wise Separable Convolutions (DWConv). However, DWConvs often suffer from fragmented memory access, causing high on-device latency despite low theoretical complexity. We present FreeNet, a family of mobile backbones designed for hardware efficiency. FreeNet introduces the Sparse-sampling Mixer (S2-Mixer) and Shift Feed-Forward Network (ShiftFFN) to prioritize continuous memory access. Experimental results on ImageNet-1k and MS-COCO demonstrate that FreeNet achieves state-of-the-art accuracy while being up to 40% faster than recent efficient models.
Introduction
The widespread adoption of Depth-Wise Separable Convolutions (DWConv) in mobile architectures like MobileNet and ConvNeXt-T is based on their low FLOP counts. Yet, modern hardware such as GPUs and mobile CPUs are optimized for continuous data streams. DWConvs process channels individually, creating fragmented memory access patterns that negate their theoretical speed advantages. For instance, a DWConv-based ConvNeXt-T can be twice as slow as a ResNet-50 despite similar parameter counts. FreeNet addresses this "memory tax" by replacing fragmented operators with hardware-friendly sparse operations.
Methods
FreeNet's architecture is built on two core innovations designed to optimize memory throughput without sacrificing representational power.
Sparse-wise Convolution (SWConv) and S2-Mixer
Unlike standard convolutions or DWConvs, Sparse-wise Convolution (SWConv) operates on a continuous subset of channels and samples pixels using specific dilations. This design ensures linear memory access, which is highly efficient on modern hardware. The S2-Mixer leverages multiple SWConvs with varying kernel sizes (e.g., 5x5 and 7x7) to capture diverse spatial patterns. This approach mimics the long-range dependency capture of Self-Attention mechanisms but at a significantly lower computational and memory cost.
Shift Feed-Forward Network (ShiftFFN)
Traditional Feed-Forward Networks (FFNs) are often memory bottlenecks due to large channel expansion ratios (typically 4x). FreeNet introduces ShiftFFN, which utilizes a "ShiftNeck" to aggregate global context efficiently. By reducing the initial projection ratio to 2x and employing a "copy-shift-concatenate" operation to reach the final 4x width, ShiftFFN expands model capacity while maintaining a low memory footprint.
Experimental Results
FreeNet was evaluated on ImageNet-1k for classification and MS-COCO for object detection and instance segmentation.
Classification Performance
On ImageNet-1k, FreeNet-S2 achieves 78.8% top-1 accuracy, outperforming StarNet-S4 (78.4%) and FasterNet-T1 (76.2%). Crucially, FreeNet-S2 is 40% faster on desktop GPUs and 15% faster on mobile GPUs than StarNet-S4, demonstrating a superior accuracy-latency tradeoff.
Downstream Tasks
For object detection on MS-COCO, FreeNet-S4 reaches 39.1 $AP^b$, surpassing FastViT-SA12 (38.9 $AP^b$) while reducing latency by over 10%. These results confirm that the backbone's efficiency translates well to complex vision tasks.
Memory and Hardware Efficiency
FreeNet models exhibit significantly lower CUDA GPU memory requirements as parameter counts scale compared to models like EfficientNet or EdgeNeXt. This efficiency stems from the use of continuous channel subsets and the removal of explicit residual branches in the token mixer, as the unprocessed channels serve as an implicit residual connection.
Key Insights
- Memory Access Patterns Matter: Hardware efficiency is dictated more by how memory is accessed than by the number of floating-point operations. Partially continuous operations provide the best balance.
- Implicit Residuals: By processing only a subset of signals in the S2-Mixer, the remaining channels act as a natural residual, allowing for the removal of costly addition operations during inference.
- Optimizing the Channel Mixer: While attention mechanisms are often the focus of optimization, the FFN is frequently the actual bottleneck in mobile models. ShiftFFN effectively addresses this.
Conclusion
FreeNet "liberates" mobile architecture design from the constraints of DWConv, proving that hardware-aware sparse operations can yield faster and more accurate models. This paradigm shift offers a promising direction for future research in mobile-friendly generative AI and large-scale vision-language models.
Summary updated