Quantization-Friendly Winograd Transformations for Convolutional Neural Networks

Vladimir Protsenko, Vladimir Kryzhanovskiy, Alexander FilippovECCV 2024

Introduction

Deploying deep convolutional neural networks (CNNs) on resource-constrained mobile and embedded devices requires aggressive optimization. Two primary techniques are widely used: 8-bit quantization, which reduces numerical precision to save memory and power, and Winograd convolutions, which reduce the number of multiplications required for convolutional layers.

However, these techniques are often mutually exclusive in practice. Winograd transformations involve multiplying inputs by specific matrices that, for larger tile sizes like $F(4,3)$ or $F(6,3)$, contain very large values. When combined with the rounding errors of 8-bit quantization, these large values amplify noise exponentially, leading to severe accuracy degradation.

Methodology: PSO-Driven Optimization

To address this numerical instability, researchers from Huawei Noah’s Ark Lab propose a two-stage approach to create "quantization-friendly" Winograd transformations.

1. PSO-based Initialization

Instead of using standard, mathematically minimal Winograd matrices, the authors employ Particle Swarm Optimization (PSO) to search for alternative transformation matrices. The optimization objective is to minimize the Frobenius norm of the matrices. By keeping the matrix elements small, the amplification of quantization noise is significantly curtailed.

Figure 2: Convergence of the PSO objective function (Frobenius norm) over iterations, showing the search for quantization-friendly transformation matrices.

2. Learnable Transformations

The PSO-optimized matrices serve as a superior starting point for a training-aware phase. During the model's training, the Winograd transformation matrices are treated as learnable parameters ($\theta$). By starting from a "quiet" (low-norm) initialization rather than the "noisy" standard Winograd matrices, the network can converge to a state that maintains high accuracy even under 8-bit constraints.

Key Results and Insights

The proposed method demonstrates substantial improvements across classification, super-resolution, and semantic segmentation tasks.

Figure 3: Accuracy gains for static (left) and trainable (right) transformation matrices. Stages 0-6 correspond to the optimization progress shown in Figure 2.
  • Classification Performance: On ImageNet with ResNet-18, the method achieved 69.15% accuracy, outperforming the previous state-of-the-art (SOTA) Winograd-aware training result of 67.05%. For a static ResNet-50 configuration, PSO-optimized matrices improved accuracy by 12.7% over standard Winograd.
  • Super-Resolution Quality: In super-resolution tasks (e.g., ESPCN-6 on Set5), the method improved the Peak Signal-to-Noise Ratio (PSNR) by over 2.5 dB compared to existing Winograd methods, effectively eliminating common "gridding artifacts" caused by quantization noise.
  • Viability of Large Tiles: The $F(6,3)$ Winograd configuration, previously considered too unstable for 8-bit deployment, becomes viable with this approach, allowing for maximum inference speed without sacrificing precision.

Conclusion

By reframing Winograd transformation matrices as learnable, quantization-sensitive parameters and providing a robust initialization via PSO, this work bridges the gap between high-speed algorithmic shortcuts and low-precision hardware execution. This enables the deployment of complex, high-performance models on edge devices with minimal accuracy loss.

Summary updated

BibTeX
@inproceedings{protsenko2024quantization,
  author = {Vladimir Protsenko and Vladimir Kryzhanovskiy and Alexander Filippov},
  title = {{Quantization-Friendly Winograd Transformations for Convolutional Neural Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73636-0\_11},
}
Figure