Skip to main content
QUICK REVIEW

[Paper Review] Fast Algorithms for Convolutional Neural Networks

Andrew Lavin, Scott Gray|arXiv (Cornell University)|Sep 30, 2015
Advanced Neural Network ApplicationsComputer Science12 references78 citations
TL;DR

This paper introduces Winograd-based fast convolution algorithms for convolutional neural networks, leveraging minimal filtering to reduce arithmetic complexity by up to 4× for small 3×3 filters. The method achieves state-of-the-art throughput on NVIDIA Maxwell GPUs across batch sizes 1–64, outperforming cuDNN by up to 2.64× in fp16 and 2.26× in fp32, with minimal memory usage (≤16MB) and high numerical accuracy.

ABSTRACT

Deep convolutional neural networks take GPU days of compute time to train on large data sets. Pedestrian detection for self driving cars requires very low latency. Image recognition for mobile phones is constrained by limited processing resources. The success of convolutional neural networks in these situations is limited by how fast we can compute them. Conventional FFT based convolution is fast for large filters, but state of the art convolutional neural networks use small, 3x3 filters. We introduce a new class of fast algorithms for convolutional neural networks using Winograd's minimal filtering algorithms. The algorithms compute minimal complexity convolution over small tiles, which makes them fast with small filters and small batch sizes. We benchmark a GPU implementation of our algorithm with the VGG network and show state of the art throughput at batch sizes from 1 to 64.

Motivation & Objective

  • To address the performance bottleneck in inference and training of deep CNNs, especially for low-latency applications like self-driving cars and mobile devices.
  • To overcome the inefficiency of conventional FFT and direct convolution methods when applied to small filters and small batch sizes, common in modern architectures like VGG.
  • To develop a fast, memory-efficient convolution algorithm that maintains high numerical accuracy while reducing arithmetic complexity.
  • To enable high-throughput inference at minimal batch sizes (1–64) without relying on large-batch optimizations.
  • To demonstrate practical GPU acceleration of Winograd-based convolutions for real-world CNNs like VGG, outperforming existing libraries such as cuDNN.

Proposed method

  • The method uses Winograd's minimal filtering algorithms to compute 2D convolutions with reduced multiplicative complexity, specifically F(2×2,3×3) and F(4×4,3×3), which require only (m+r−1)(n+s−1) multiplications for m×n outputs and r×s filters.
  • It reformulates convolution as a matrix operation: Y = Aᵀ[(Gg)⊙(Bᵀd)], where Gg and Bᵀd are transformed filter and data inputs, enabling efficient dense matrix multiplication.
  • The algorithm employs two variants: a fused transform (no global workspace) and an external filter transform (FX), with the former preferred for small to moderate filter/channel counts.
  • The method reduces arithmetic complexity by up to 4× compared to direct convolution, with most operations concentrated in high-performance dense matrix multiplications.
  • It uses precomputed transformation matrices A, B, and G to enable fast, numerically stable computation with minimal precision loss, even in fp16.
  • The implementation is optimized for NVIDIA Maxwell GPUs, achieving high memory bandwidth utilization and low memory footprint (≤16MB workspace).

Experimental results

Research questions

  • RQ1Can Winograd-based minimal filtering algorithms achieve superior throughput for small-batch, small-filter convolutions in modern CNNs like VGG?
  • RQ2How does the performance of Winograd convolution compare to FFT-based and direct convolution across varying batch sizes (1 to 64)?
  • RQ3What is the memory and precision overhead of Winograd-based convolution, and can it be minimized for practical deployment?
  • RQ4Does the algorithm maintain numerical accuracy when using low-precision data (fp16) compared to direct convolution?
  • RQ5Can the algorithm scale to larger filter banks and layers without performance degradation?

Key findings

  • The F(2×2,3×3) Winograd algorithm achieved 2.26× higher throughput than cuDNN at batch size 1 with fp32 data, reaching 7.03 TFLOPS.
  • At batch size 8 with fp16 data, the algorithm achieved 9.57 TFLOPS, a 7.42× speedup over cuDNN.
  • The fused F(2×2,3×3) variant used no global workspace, while the FX variant used at most 16MB, significantly less than cuDNN’s 2.6GB.
  • The algorithm outperformed cuDNN at every VGG layer except conv1.1, which contributed less than 0.5% of total computation.
  • For fp16 data, F(2×2,3×3) achieved 10.28 TFLOPS at batch size 64, a 1.63× speedup over cuDNN.
  • Maximum element error was lower for F(2×2,3×3) than direct convolution with fp32 data, and all algorithms were equally accurate with fp16 data.

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.