NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Shift: A Zero FLOP, Zero Parameter Alternative to Spatial Convolutions

Bichen Wu, Alvin Wan, Xiangyu Yue, Peter H. Jin, Sicheng Zhao, Noah Golmant, Amir Gholaminejad, Joseph Gonzalez, Kurt Keutzer · DOI

Abstract

The "Shift" operation is a radical alternative to spatial convolutions that requires zero FLOPs and zero parameters. By shifting input channels in different spatial directions and interleaving them with $1 \times 1$ convolutions, the authors create "ShiftNets" that outperform traditional architectures like ResNet and MobileNet in efficiency, achieving up to a 35x reduction in parameters with minimal loss in accuracy.

Introduction

Standard Convolutional Neural Networks (CNNs) rely on spatial convolutions (e.g., $3 \times 3$ or $5 \times 5$ kernels) to aggregate information across an image. However, these operations are computationally expensive: their cost and parameter count grow quadratically with the kernel size ($O(K^2)$). While "depth-wise separable convolutions" (used in MobileNet) reduce this cost, they often suffer from low arithmetic intensity—the ratio of computation to memory access is too low for hardware to process them efficiently. This paper introduces the Shift operation, designed to be both parameter-efficient and hardware-friendly for mobile and IoT devices.

The Shift Operation

The core innovation is the decoupling of spatial aggregation from feature mixing. Instead of performing a weighted sum of neighboring pixels (a standard convolution), the shift operation simply moves each channel of an input tensor in a specific spatial direction (e.g., one pixel up, one to the left, or diagonally).

Comparison of (a) Spatial Convolution, (b) Depth-wise convolution, and (c) the proposed Shift operation.

For a $3 \times 3$ area, there are 9 possible shift directions. The authors divide the input channels into 9 groups and assign one shift direction to each group. Because shifting is just a memory addressing change, it technically requires zero floating-point operations (FLOPs) and stores zero learnable weights.

Architecture: The CSC Module

To make the operation useful, the authors propose the CSC (Conv-Shift-Conv) module, which sandwiches the shift between two $1 \times 1$ (point-wise) convolutions. The first $1 \times 1$ convolution prepares the features, the shift aggregates spatial information, and the second $1 \times 1$ convolution mixes that spatial information across channels.

The Shift operation integrated with a 1x1 convolution to form a functional building block.

An expansion hyperparameter ($E$) is introduced to control the number of intermediate channels, allowing a fine-tuned tradeoff between accuracy and model size.

Key Insights

  • Spatial Aggregation as Data Movement: Spatial convolution is essentially two tasks: moving data from neighbors and then weighting it. By delegating the "weighting" to $1 \times 1$ convolutions and the "moving" to a fixed shift, the most expensive part of the kernel is eliminated.
  • Permutation Invariance: As long as the shift is between two $1 \times 1$ convolutions, the specific order of channels does not matter. The network learns to "route" the correct information to the correct shift direction automatically during training.
  • Resilience to Pruning: Shift-based models are significantly more resilient to parameter reduction than standard CNNs. When reducing parameters by 3x, ShiftResNet maintained its accuracy while standard ResNet performance plummeted.

Experimental Results

The authors evaluated ShiftNet across several domains to prove its versatility:

  • CIFAR-100: ShiftResNet-56 achieved 69.77% accuracy with only 0.29M parameters, compared to the original ResNet-56 which needed 0.86M parameters for 69.27% accuracy.
  • ImageNet: ShiftNet-A achieved 70.1% Top-1 accuracy with 4.1M parameters, outperforming the then-standard 1.0 MobileNet-224 (67.5% accuracy with 4.2M parameters).
  • Face Verification: The authors reduced the FaceNet model size from 28.5M parameters to just 0.78M (a 35x reduction) while losing less than 2% accuracy across major benchmarks (LFW, YTF, MSC).
  • Style Transfer: Shift-based architectures achieved a 6x reduction in parameters with no perceptible loss in image quality on the COCO dataset.

Conclusion and Future Work

ShiftNets provide a highly efficient alternative to traditional CNNs, particularly for resource-constrained environments. While theoretically "zero FLOP," actual hardware efficiency depends on how well memory strides are handled. Future work includes exploring learned allocation strategies for shift directions and applying ShiftNets to tasks requiring much larger receptive fields, such as high-resolution image segmentation, where traditional convolutions become prohibitively expensive.

Summary updated

BibTeX
@inproceedings{wu2018shift,
  author = {Bichen Wu and Alvin Wan and Xiangyu Yue and Peter H. Jin and Sicheng Zhao and Noah Golmant and Amir Gholaminejad and Joseph Gonzalez and Kurt Keutzer},
  title = {{Shift: A Zero FLOP, Zero Parameter Alternative to Spatial Convolutions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00951},
}
Figure