SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic

Liulu He, Yufei Zhao, Rui Gao, Yuan Du, Li Du
7/3/2024
cs.LGcs.AIeess.IV

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Fast convolution algorithms, including Winograd and FFT, can efficiently accelerate convolution operations in deep models. However, these algorithms depend on high-precision arithmetic to maintain inference accuracy, which conflicts with the model quantization. To resolve this conflict and further improve the efficiency of quantized convolution, we proposes SFC, a new algebra transform for fast convolution by extending the Discrete Fourier Transform (DFT) with symbolic computing, in which only additions are required to perform the transformation at specific transform points, avoiding the calculation of irrational number and reducing the requirement for precision. Additionally, we enhance convolution efficiency by introducing correction terms to convert invalid circular convolution outputs of the Fourier method into effective ones. The numerical error analysis is presented for the first time in this type of work and proves that our algorithms can provide a 3.68x multiplication reduction for 3x3 convolution, while the Winograd algorithm only achieves a 2.25x reduction with similarly low numerical errors. Experiments carried out on benchmarks and FPGA show that our new algorithms can further improve the computation efficiency of quantized models while maintaining accuracy, surpassing both the quantization-alone method and existing works on fast convolution quantization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{he2024sfc,
  title  = {SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic},
  author = {Liulu He and Yufei Zhao and Rui Gao and Yuan Du and Li Du},
  year   = {2024},
  eprint = {2407.02913},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.02913v1},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.02913.svg)](https://codeofpaper.com/paper/2407.02913)

Discussion