[Paper Review] Shift-based Primitives for Efficient Convolutional Neural Networks
This paper introduces three GPU-optimized shift-based primitives—channel shift, address shift, and shortcut shift—that accelerate inference in compact CNNs by reorganizing feature map pointers without memory copying or floating-point operations. The proposed AddressNet and Enhanced AddressNet architectures achieve faster inference (up to 12.7× faster than ShuffleNet's channel shuffle) with comparable or better accuracy on CIFAR100 and ImageNet.
We propose a collection of three shift-based primitives for building efficient compact CNN-based networks. These three primitives (channel shift, address shift, shortcut shift) can reduce the inference time on GPU while maintains the prediction accuracy. These shift-based primitives only moves the pointer but avoids memory copy, thus very fast. For example, the channel shift operation is 12.7x faster compared to channel shuffle in ShuffleNet but achieves the same accuracy. The address shift and channel shift can be merged into the point-wise group convolution and invokes only a single kernel call, taking little time to perform spatial convolution and channel shift. Shortcut shift requires no time to realize residual connection through allocating space in advance. We blend these shift-based primitives with point-wise group convolution and built two inference-efficient CNN architectures named AddressNet and Enhanced AddressNet. Experiments on CIFAR100 and ImageNet datasets show that our models are faster and achieve comparable or better accuracy.
Motivation & Objective
- Address the gap between reduced FLOPs/parameters and actual inference time in compact CNNs, especially on GPU.
- Overcome the inefficiency of common operations like channel shuffle and shortcut connections that consume significant inference time despite being FLOP- and parameter-free.
- Design GPU-friendly primitives that minimize memory movement and avoid floating-point operations to accelerate inference.
- Develop efficient, inference-optimized CNN architectures—AddressNet and Enhanced AddressNet—using these shift primitives.
- Demonstrate scalability and flexibility of the shift operations across datasets (CIFAR100, ImageNet) and model sizes.
Proposed method
- Propose three shift primitives: channel shift (replaces channel shuffle), address shift (efficient spatial feature collection), and shortcut shift (zero-cost residual connection via pre-allocated memory).
- Implement all shift operations by manipulating memory pointers instead of copying data, avoiding memory bandwidth and floating-point operations.
- Merge address shift and channel shift into point-wise group convolution, reducing kernel call overhead and enabling single-kernel execution.
- Design AddressNet and Enhanced AddressNet by integrating shift primitives with point-wise group convolutions to build compact, fast inference networks.
- Use address shift to accelerate MobileNet variants (Address-MobileNet) and enhance Enhanced AddressNet for ImageNet scaling.
- Optimize for GPU by minimizing kernel launches and leveraging contiguous memory access patterns to reduce latency.
Experimental results
Research questions
- RQ1Can pointer-based shift operations reduce inference time in compact CNNs without increasing FLOPs or parameters?
- RQ2How do shift-based primitives compare to existing operations like channel shuffle and shortcut connections in terms of actual inference time on GPU?
- RQ3Can shift primitives be effectively integrated into existing efficient CNN architectures like MobileNet and ShuffleNet to improve inference speed?
- RQ4To what extent can the proposed shift operations scale across different datasets and model complexities (e.g., CIFAR100 vs. ImageNet)?
- RQ5Does the use of shift primitives enable faster inference while maintaining or improving accuracy compared to state-of-the-art models?
Key findings
- The channel shift operation is 12.7× faster than channel shuffle in ShuffleNet while maintaining the same accuracy.
- Address shift and channel shift can be merged into a single kernel call, reducing overhead and enabling efficient spatial and channel reorganization.
- Shortcut shift enables residual connections with zero inference time by pre-allocating continuous memory space.
- AddressNet and Enhanced AddressNet achieve faster inference than ShiftNet on CIFAR100, with Enhanced AddressNet-B achieving 59.7% top-1 accuracy on ImageNet in 4.3ms.
- Address-MobileNet variants outperform MobileNet and ShuffleNet in both accuracy and latency on ImageNet, with Address-MobileNet-160 achieving 43.6% top-1 accuracy in 1.5ms.
- Despite limited cuDNN optimization for group convolution, the proposed models achieve comparable or better performance than state-of-the-art models across multiple accuracy and latency levels.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.