Skip to main content
QUICK REVIEW

[Paper Review] Shift: A Zero FLOP, Zero Parameter Alternative to Spatial Convolutions

BoRui Wu, Alvin Wan|arXiv (Cornell University)|Nov 22, 2017
Advanced Neural Network ApplicationsComputer Science25 references41 citations
TL;DR

This paper introduces the shift operation—a zero-FLOP, zero-parameter alternative to spatial convolutions that shifts feature maps spatially across channels. By combining shifts with point-wise convolutions in a learnable module, the authors achieve competitive accuracy with significantly fewer parameters, outperforming ResNet on CIFAR-10/100 and ImageNet while reducing model size by up to 60%.

ABSTRACT

Neural networks rely on convolutions to aggregate spatial information. However, spatial convolutions are expensive in terms of model size and computation, both of which grow quadratically with respect to kernel size. In this paper, we present a parameter-free, FLOP-free "shift" operation as an alternative to spatial convolutions. We fuse shifts and point-wise convolutions to construct end-to-end trainable shift-based modules, with a hyperparameter characterizing the tradeoff between accuracy and efficiency. To demonstrate the operation's efficacy, we replace ResNet's 3x3 convolutions with shift-based modules for improved CIFAR10 and CIFAR100 accuracy using 60% fewer parameters; we additionally demonstrate the operation's resilience to parameter reduction on ImageNet, outperforming ResNet family members. We finally show the shift operation's applicability across domains, achieving strong performance with fewer parameters on classification, face verification and style transfer.

Motivation & Objective

  • Address the high computational and parameter cost of spatial convolutions in deep neural networks, especially for mobile and edge devices.
  • Reduce model size and FLOPs without sacrificing accuracy, particularly for resource-constrained applications.
  • Propose a parameter-free, FLOP-free operation that replaces spatial convolutions while maintaining or improving performance.
  • Demonstrate the shift operation's effectiveness across diverse vision tasks, including image classification, face verification, and style transfer.
  • Introduce a new hyperparameter, expansion (ℰ), to balance accuracy and efficiency in model design.

Proposed method

  • Propose the shift operation: a spatial shift of feature maps in different directions (e.g., up, down, left, right) per channel, requiring zero FLOPs and zero learnable parameters.
  • Construct a shift-based module by interleaving shift operations with 1x1 (point-wise) convolutions to mix information across channels.
  • Design a learnable architecture called ShiftNet by replacing 3x3 convolutions in ResNet with shift-based modules, enabling end-to-end training.
  • Introduce a hyperparameter, expansion (ℰ), which controls the number of channels per shift group, enabling trade-offs between model size, FLOPs, and accuracy.
  • Implement shift operations efficiently on modern hardware due to their memory-access-friendly, low-arithmetic-intensity nature.
  • Use a channel-wise contribution analysis and correlation measurement to evaluate and guide channel allocation within shift groups.

Experimental results

Research questions

  • RQ1Can a parameter-free and FLOP-free spatial operation effectively replace standard spatial convolutions in deep neural networks?
  • RQ2How does the shift operation compare to depth-wise and separable convolutions in terms of efficiency, accuracy, and hardware usability?
  • RQ3To what extent can shift-based modules reduce model size and FLOPs while maintaining or improving accuracy on image classification and other vision tasks?
  • RQ4How does the choice of expansion hyperparameter (ℰ) affect the trade-off between model efficiency and performance?
  • RQ5Can shift-based modules generalize across diverse vision tasks, including face verification and neural style transfer?

Key findings

  • Shift-based modules reduce model parameters by up to 60% compared to ResNet while improving accuracy on CIFAR-10 and CIFAR-100.
  • On ImageNet, shift-based models outperform ResNet variants under the same parameter and FLOP constraints, demonstrating robustness to parameter pruning.
  • ShiftNet achieves competitive performance on image classification with only 4 million parameters, rivaling standard ResNets.
  • In face verification and style transfer tasks, shift-based models achieve strong results with significantly fewer parameters than baseline models.
  • Channel contribution analysis shows that horizontal and vertical shifts contribute most to the output, suggesting anisotropic importance in spatial feature aggregation.
  • Correlation analysis within shift groups reveals redundant channel pairs, indicating potential for more informed channel allocation to further improve efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.