DWM: A Decomposable Winograd Method for Convolution Acceleration

Di Huang, Xishan Zhang, Rui Zhang, Tian Zhi, Deyuan He, Jiaming Guo, Chang Liu, Qi Guo, Zidong Du, Shaoli Liu, Tianshi Chen, Yunji Chen

Introduction

Convolutional Neural Networks (CNNs) are the backbone of modern computer vision, yet their computational demands remain a significant bottleneck. While Winograd’s minimal filtering algorithm has long been a preferred method for accelerating these operations by reducing multiplications, it has historically been plagued by two major limitations: the Precision Trap and the Stride Barrier.

As kernel sizes increase beyond 3x3, traditional Winograd transformation matrices become numerically unstable, leading to catastrophic precision loss. Furthermore, the mathematical foundation of the algorithm inherently assumes a stride of 1, making it incompatible with the downsampling layers common in modern architectures. The Decomposable Winograd Method (DWM) overcomes these hurdles by decomposing complex convolutions into stable, manageable sub-convolutions.

The DWM Framework

DWM treats a complex convolution not as a single monolithic operation, but as a sum of simpler ones. By breaking down large kernels and strides, the method leverages the efficiency of Winograd while maintaining the numerical stability of small-scale transforms.

The five-step DWM pipeline: Splitting, Transformation, Calculation, Detransformation, and Aggregation.

The DWM process follows a rigorous five-step pipeline:

  1. Splitting: Large kernels (e.g., 5x5 or 7x7) are decomposed into smaller sub-kernels (e.g., 3x3 or 2x2). For strides greater than 1, the input and kernel are grouped by parity to transform the operation into multiple stride-1 convolutions.
  2. Transformation: Standard, stable Winograd transforms (such as $F(2,3)$) are applied to each sub-part. Because these matrices are small, they avoid the complex decimal multiplications that cause precision loss.
  3. Calculation: Element-wise multiplication and channel-wise summation are performed within the Winograd domain.
  4. Detransformation: The results are mapped back into the spatial domain.
  5. Aggregation: The sub-results are summed to produce a final output that is mathematically equivalent to the original large-scale convolution.

Experimental Evaluation

The researchers evaluated DWM across a variety of standard architectures, including ResNet-152, Inception-V3, and DenseNet-161, using the ImageNet 2012 dataset. The results demonstrate that DWM is not an approximation but a precise decomposition that maintains model accuracy while significantly improving performance.

Comparison of Speedup (a) and MSE (b) between traditional Winograd and DWM across various kernel sizes.

Key Performance Metrics

  • Consistent Speedup: DWM achieved a consistent ~2x speedup across kernel sizes ranging from 3x3 to 11x11. In contrast, traditional Winograd's performance degrades rapidly as kernel size increases, eventually becoming slower than standard convolution.
  • Numerical Precision: For an 11x11 kernel, traditional Winograd exhibits a Mean Squared Error (MSE) of $1.48 \times 10^{-2}$. DWM maintains an MSE of $5.30 \times 10^{-9}$, effectively matching the precision of standard FP32 convolutions.
  • Hardware Efficiency: On an NVIDIA V100 GPU, DWM outperformed cuDNN in several large-kernel scenarios, showing up to a 1.96x advantage in raw execution speed for 11x11 kernels.

Conclusion and Future Work

DWM successfully bridges the gap between the theoretical efficiency of Winograd and the practical requirements of modern CNNs. By ensuring that transformation matrices remain small and stable, DWM provides a robust framework for accelerating large-kernel and strided convolutions without sacrificing accuracy.

While the current implementation already shows significant gains, the authors identify future opportunities for hardware-level optimizations. Future work will focus on integrating kernel fusion and advanced memory pipelining to further maximize the throughput of the DWM algorithm on specialized hardware.

Summary updated

BibTeX
@inproceedings{huang2020dwm,
  author = {Di Huang and Xishan Zhang and Rui Zhang and Tian Zhi and Deyuan He and Jiaming Guo and Chang Liu and Qi Guo and Zidong Du and Shaoli Liu and Tianshi Chen and Yunji Chen},
  title = {{DWM: A Decomposable Winograd Method for Convolution Acceleration}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5838},
}
Figure