Winograd Algorithm for AdderNet

Wenshuo Li, Hanting Chen, Mingqiang Huang, Xinghao Chen, Chunjing Xu, Yunhe Wang

Introduction

Deep Convolutional Neural Networks (CNNs) are computationally expensive, largely due to the massive number of multiplications required in their convolutional layers. AdderNet is a recent architectural innovation that addresses this bottleneck by replacing multiplications with $L_1$-norm operations (absolute differences), which only require additions. Since additions are significantly cheaper and less power-hungry than multiplications in hardware, AdderNets save a considerable amount of energy.

However, standard CNNs usually rely on the Winograd algorithm to accelerate $3 \times 3$ convolutions and reduce overall computational complexity. Unfortunately, plugging an AdderNet directly into the Winograd algorithm presents a fundamental mathematical clash. Winograd relies heavily on the distributive law of multiplication—i.e., $a \times (b+c) = a \times b + a \times c$. Because AdderNet uses absolute differences instead of multiplication, the distributive law breaks down ($|a - (b+c)| \neq |a - b| + |a - c|$).

This paper tackles the mathematical and structural challenge of adapting the Winograd algorithm to work seamlessly with the addition-only paradigm of AdderNets.

Bridging the Gap: Methods and Innovations

To make Winograd work for AdderNets, the authors introduce several novel modifications that bypass strict mathematical equivalence in favor of structural efficiency:

  • Vanilla Winograd for AdderNet: The authors start by taking the standard Winograd equation and simply replacing the element-wise multiplications with $L_1$-distances (additions and subtractions of absolute values). By treating the Winograd transform as a structural template rather than a strict mathematical rule, the network can still reap computational benefits.
  • Optimal Transform Matrices: The vanilla swap creates a new problem: "feature unbalance." Because absolute values are always positive, standard Winograd transform matrices cause the magnitude of the output features to vary wildly depending on their spatial position. The authors mathematically derive a new set of transform matrices where every column has an equal number of $+1$ and $-1$ coefficients. This sign-balancing perfectly stabilizes the output magnitudes for downstream layers.
  • $L_2$-to-$L_1$ Training Strategy: Because the Winograd AdderNet is no longer strictly mathematically equivalent to the original AdderNet, training it from scratch is unstable. The authors propose a clever annealing strategy: they start training the network using an $L_2$-norm (squared differences, which mathematically behaves closer to standard multiplication), and gradually reduce the exponent $p$ from 2 down to 1 over the course of training. This acts as a curriculum, helping the network avoid poor local minima.
  • Direct Training in the Winograd Domain: Instead of transforming standard weights during inference, the network's weights are initialized and trained directly within the Winograd domain.

Key Results and Hardware Efficiency

The authors evaluated their approach on standard computer vision classification benchmarks, including MNIST, CIFAR-10, CIFAR-100, and ImageNet.

  • Massive Reduction in Operations: The Winograd AdderNet cuts the number of additions required by more than half. For example, a ResNet-20 on CIFAR-10 drops from 80.74M additions (standard AdderNet) to just 39.24M additions.
  • Highly Competitive Accuracy: The computational savings come at a very minor cost to accuracy. On ImageNet, Winograd AdderNet achieves 66.5% top-1 accuracy, compared to 67.0% for the original AdderNet. On CIFAR-10 (ResNet-20), it hits 91.56% vs. 91.84%.
  • Hardware Efficiency: In FPGA simulations, the Winograd AdderNet dramatically reduced total equivalent energy consumption. Compared to a standard CNN, the relative power drops to a mere fraction, and it even halves the power consumption of a standard AdderNet (dropping from 50.4M to 24.0M equivalent power units).
Relative Power Comparison

Limitations and Future Work

While highly efficient, the method is currently restricted to the $F(2\times2, 3\times3)$ Winograd form. Larger Winograd tiles require transform matrices with non-binary fractions (like $1/2$ or $1/4$), which would reintroduce multiplication or shift operations, defeating the purpose of an addition-only network. Additionally, there is a marginal degradation in accuracy compared to the baseline AdderNet, likely due to the approximation gap that the $L_2$-to-$L_1$ training strategy couldn't entirely close.

Looking forward, this algorithm has excellent prospects for custom hardware design. Applying pipeline techniques to Winograd AdderNets could yield an estimated 50% reduction in latency, paving the way for ultra-efficient edge AI.

Summary updated

BibTeX
@inproceedings{li2021winograd,
  author = {Wenshuo Li and Hanting Chen and Mingqiang Huang and Xinghao Chen and Chunjing Xu and Yunhe Wang},
  title = {{Winograd Algorithm for AdderNet}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=HxraSXGwxc},
}
Figure