Skip to main content
QUICK REVIEW

[Paper Review] Attention Based Pruning for Shift Networks

Ghouthi Boukli Hacene, Lassance, Carlos|arXiv (Cornell University)|Feb 28, 2019
Advanced Neural Network ApplicationsComputer Science33 references15 citations
TL;DR

This paper proposes Shift Attention Layers (SALs), an attention-based pruning mechanism that learns optimal shifts for shift networks during training, replacing fixed hand-crafted shifts. By using a differentiable attention mechanism to dynamically select the most relevant shift per feature map, SALs achieve higher accuracy than vanilla shift layers and standard CNNs while significantly reducing FLOPs and parameters, making them ideal for resource-constrained inference.

ABSTRACT

In many application domains such as computer vision, Convolutional Layers (CLs) are key to the accuracy of deep learning methods. However, it is often required to assemble a large number of CLs, each containing thousands of parameters, in order to reach state-of-the-art accuracy, thus resulting in complex and demanding systems that are poorly fitted to resource-limited devices. Recently, methods have been proposed to replace the generic convolution operator by the combination of a shift operation and a simpler 1x1 convolution. The resulting block, called Shift Layer (SL), is an efficient alternative to CLs in the sense it allows to reach similar accuracies on various tasks with faster computations and fewer parameters. In this contribution, we introduce Shift Attention Layers (SALs), which extend SLs by using an attention mechanism that learns which shifts are the best at the same time the network function is trained. We demonstrate SALs are able to outperform vanilla SLs (and CLs) on various object recognition benchmarks while significantly reducing the number of float operations and parameters for the inference.

Motivation & Objective

  • To address the inefficiency of fixed, hand-crafted shifts in shift networks by learning optimal shifts during training.
  • To reduce model complexity and FLOPs without sacrificing accuracy in deep learning models for resource-limited devices.
  • To improve upon existing pruning and compression techniques by integrating attention-based dynamic selection of shifts.
  • To demonstrate that learned shifts outperform static shifts in both accuracy and efficiency on standard vision benchmarks.

Proposed method

  • Proposes Shift Attention Layers (SALs) that use a learnable attention mechanism to select the most important shift per feature map.
  • Introduces an attention tensor A that assigns importance scores to each shift position in the kernel, with values updated during backpropagation.
  • Applies a temperature-controlled softmax to A to enable differentiable selection of shifts, with final values rounded to binary for inference.
  • Trains the network end-to-end, allowing the attention mechanism to learn which shifts are most effective for each feature map.
  • Uses a differentiable pruning strategy where only the highest-attention shift is retained per channel, effectively transforming a standard convolution into a shift layer.
  • Employs knowledge distillation and temperature scheduling to stabilize training and improve convergence to binary attention values.

Experimental results

Research questions

  • RQ1Can an attention mechanism be used to learn optimal shifts in shift networks, improving performance over fixed, hand-crafted shifts?
  • RQ2Does end-to-end training of attention-based shift selection lead to better accuracy and efficiency compared to standard convolutional and vanilla shift networks?
  • RQ3How does the choice of temperature scheduling affect the convergence and performance of the attention-based pruning mechanism?
  • RQ4To what extent can SALs reduce FLOPs and parameters while maintaining or improving top-1 accuracy on ImageNet and CIFAR datasets?
  • RQ5How does SAL compare to other compression techniques like binarization and mobile architectures in terms of accuracy and memory footprint?

Key findings

  • SALs achieve 71% top-1 accuracy on ImageNet ILSVRC 2012 with 3.3M parameters and 538M FLOPs, outperforming vanilla ShiftNet (70.1%) and standard CNNs under similar constraints.
  • On CIFAR-10, ResNet-w64 with SALs reaches 93.5% test accuracy, surpassing both standard ResNet-w64 and vanilla ShiftNet.
  • SALs reduce FLOPs by 18% and parameters by 20% compared to standard ResNet-w64 while maintaining higher accuracy.
  • The method outperforms Binary Connect and Binary Weight Networks on ResNet-20, achieving 94.2% accuracy with lower memory footprint.
  • Temperature scheduling significantly affects performance: too high or too fast decay leads to poor convergence, while optimal scheduling (initial T ≈ 6.7, final T ≈ 0.02) yields best results.
  • SAL2, which retains two weights per kernel, further improves accuracy, showing that learning multiple shifts can be beneficial.

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.