Skip to main content
QUICK REVIEW

[Paper Review] Searching for Winograd-aware Quantized Networks

Javier Fernández-Marqués, Paul N. Whatmough|arXiv (Cornell University)|Feb 25, 2020
Advanced Neural Network ApplicationsComputer Science69 references14 citations
TL;DR

This paper proposes Winograd-aware quantized networks that integrate numerical error from Winograd transformations into model training, enabling accurate INT8 inference on mobile CPUs. By learning transformation matrices during training and using a latency-aware NAS framework (wiNAS), the method achieves up to 2.66× speedup over im2row with no accuracy loss on CIFAR-10, while maintaining 1.32× faster inference than FP32 Winograd implementations.

ABSTRACT

Lightweight architectural designs of Convolutional Neural Networks (CNNs) together with quantization have paved the way for the deployment of demanding computer vision applications on mobile devices. Parallel to this, alternative formulations to the convolution operation such as FFT, Strassen and Winograd, have been adapted for use in CNNs offering further speedups. Winograd convolutions are the fastest known algorithm for spatially small convolutions, but exploiting their full potential comes with the burden of numerical error, rendering them unusable in quantized contexts. In this work we propose a Winograd-aware formulation of convolution layers which exposes the numerical inaccuracies introduced by the Winograd transformations to the learning of the model parameters, enabling the design of competitive quantized models without impacting model size. We also address the source of the numerical error and propose a relaxation on the form of the transformation matrices, resulting in up to 10% higher classification accuracy on CIFAR-10. Finally, we propose wiNAS, a neural architecture search (NAS) framework that jointly optimizes a given macro-architecture for accuracy and latency leveraging Winograd-aware layers. A Winograd-aware ResNet-18 optimized with wiNAS for CIFAR-10 results in 2.66x speedup compared to im2row, one of the most widely used optimized convolution implementations, with no loss in accuracy.

Motivation & Objective

  • To address the numerical instability of Winograd convolutions in quantized networks, which limits their use in low-precision inference.
  • To enable the use of fast Winograd convolutions in INT8 quantized models by exposing numerical errors to the learning process.
  • To jointly optimize network architecture and convolution algorithm choice for accuracy and latency on mobile CPUs.
  • To develop a neural architecture search framework (wiNAS) that selects optimal Winograd-aware layers for speed and accuracy.
  • To demonstrate that learned Winograd transforms can outperform standard fixed transforms in quantized settings.

Proposed method

  • Proposes a Winograd-aware convolution layer that integrates the transformation matrices into the network’s learnable parameters, allowing the model to adapt to numerical errors introduced by the Winograd transform.
  • Introduces a relaxation of the standard Winograd transformation matrix form to reduce numerical error, especially under quantization.
  • Employs gradient checkpointing to manage high memory usage during backpropagation due to intermediate outputs in the Winograd computation graph.
  • Develops wiNAS, a differentiable NAS framework that jointly optimizes for accuracy and latency using measured inference times on mobile CPUs (A73/A53).
  • Uses a multi-objective loss function with a latency weighting term (λ₂) to balance accuracy and speed during search.
  • Employs mixed-precision quantization, with higher bit-widths used in early layers to mitigate accuracy degradation.

Experimental results

Research questions

  • RQ1Can Winograd convolutions be effectively used in INT8 quantized models by learning the transformation matrices during training?
  • RQ2How does relaxing the form of the Winograd transformation matrices affect numerical stability and accuracy in quantized networks?
  • RQ3Can a NAS framework (wiNAS) effectively select Winograd-aware layers that minimize latency while maintaining high accuracy on mobile CPUs?
  • RQ4What is the trade-off between latency, accuracy, and numerical error when using learned vs. fixed Winograd transforms in quantized models?
  • RQ5To what extent can Winograd-aware layers outperform standard im2row and FP32 Winograd implementations in INT8 inference?

Key findings

  • A Winograd-aware ResNet-18 quantized to INT8 achieves 2.66× speedup over im2row on A73, with no accuracy drop compared to full-precision models.
  • The method achieves up to 1.32× faster inference than FP32 Winograd implementations, demonstrating that INT8 Winograd can outperform FP32 in practice.
  • Using learned Winograd transforms results in up to 10% higher accuracy on CIFAR-10 compared to standard fixed transforms.
  • wiNAS with latency-aware search reduces latency by up to 9 ms on A53 for CIFAR-100 while improving INT8 accuracy by 1.1%.
  • Models optimized with wiNAS WA-Q close the accuracy gap with full-precision models, achieving 0.32% and 1.1% higher INT8 accuracy on CIFAR-10 and CIFAR-100, respectively.
  • The approach maintains strong speedups on A73, with ResNet-18 models being 1.54× faster than optimized im2row implementations in INT8.

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.