[Paper Review] FFT Convolutions are Faster than Winograd on Modern CPUs, Here is Why
This paper demonstrates that FFT-based convolutions outperform Winograd-based convolutions on modern multi- and many-core CPUs, contrary to prevailing belief. Using Roofline performance modeling, the authors show that higher arithmetic intensity and better memory bandwidth utilization in FFT methods—especially with large tile sizes—lead to superior performance despite higher operation counts, particularly on systems with high compute-to-memory ratios.
Winograd-based convolution has quickly gained traction as a preferred approach to implement convolutional neural networks (ConvNet) on various hardware platforms because it requires fewer floating point operations than FFT-based or direct convolutions. This paper compares three highly optimized implementations (regular FFT--, Gauss--FFT--, and Winograd--based convolutions) on modern multi-- and many--core CPUs. Although all three implementations employed the same optimizations for modern CPUs, our experimental results with two popular ConvNets (VGG and AlexNet) show that the FFT--based implementations generally outperform the Winograd--based approach, contrary to the popular belief. To understand the results, we use a Roofline performance model to analyze the three implementations in detail, by looking at each of their computation phases and by considering not only the number of floating point operations, but also the memory bandwidth and the cache sizes. The performance analysis explains why, and under what conditions, the FFT--based implementations outperform the Winograd--based one, on modern CPUs.
Motivation & Objective
- To challenge the widely held belief that Winograd-based convolutions are superior for deep learning inference on CPUs.
- To compare the performance of highly optimized FFT-based (regular and Gauss-FFT) and Winograd-based convolution implementations on modern multi- and many-core CPUs.
- To analyze the performance differences using the Roofline model, focusing on arithmetic intensity, memory bandwidth, cache effects, and compute-to-memory ratios.
- To identify the conditions under which FFT-based methods outperform Winograd-based methods, especially in terms of data movement and scalability.
- To provide open-source, highly optimized implementations of both FFT and Winograd convolutions for modern CPUs (AVX2/AVX512).
Proposed method
- Implemented three highly optimized convolution kernels: regular FFT, Gauss-FFT, and Winograd-based, all targeting modern CPUs with AVX2 or AVX512 instruction sets.
- Applied standard CPU optimizations including loop tiling, data layout transformations, and vectorized operations to ensure fair comparison across all three methods.
- Used the Roofline performance model to analyze each method’s computational phases, focusing on arithmetic intensity, memory bandwidth, and cache behavior.
- Quantified operation counts and data movement costs for each method across various tile and kernel sizes, using lookup tables for operation and arithmetic intensity estimation.
- Conducted end-to-end benchmarks on 10 modern CPU systems using VGG and AlexNet networks to measure real-world performance differences.
- Verified theoretical predictions with empirical measurements, comparing their implementations against state-of-the-art libraries like MKL-DNN and LIBXSMM.
Experimental results
Research questions
- RQ1Why do FFT-based convolutions outperform Winograd-based convolutions on modern CPUs, despite requiring more floating-point operations?
- RQ2Under what conditions does the higher arithmetic intensity of FFT-based methods lead to better performance than Winograd, even with more operations?
- RQ3How do memory bandwidth, cache size, and data movement costs affect the relative performance of FFT vs Winograd on modern CPU architectures?
- RQ4To what extent does numerical instability in Winograd methods limit tile size and thus impact performance on CPUs?
- RQ5How does the compute-to-memory ratio of modern CPUs influence the performance advantage of FFT-based over Winograd-based convolutions?
Key findings
- On average, FFT-based convolutions (regular and Gauss-FFT) outperform Winograd-based convolutions across multiple modern CPU systems, with performance margins increasing as compute-to-memory ratios rise.
- The regular-FFT and Gauss-FFT methods achieve higher arithmetic intensity due to complex number operations, enabling better utilization of modern CPUs’ compute-to-memory imbalance.
- Winograd’s numerical instability restricts tile sizes to very small values, limiting its ability to reduce redundant computations, while FFT methods support arbitrarily large tiles.
- Despite requiring more floating-point operations, FFT-based methods achieve better performance because they reduce data movement costs and better exploit cache hierarchies.
- On systems with high compute-to-memory ratios (e.g., 20–40), FFT-based methods can be substantially faster than Winograd, especially in deeper or wider layers of VGG and AlexNet.
- Empirical results show that FFT-based implementations outperform state-of-the-art libraries like MKL-DNN and LIBXSMM on AVX512-capable systems, particularly for non-3×3 kernels.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.