about
Scalar Arithmetic Multiple Data: Customizable Precision for Deep Neural Networks (arxiv.org)
1 point by godelmachine on Sep 28, 2018 | hide | past | pdf | discuss on HN

In plain words: By packing narrow lanes inside ordinary fixed-width CPU arithmetic, this trick runs any bit-width math on regular chips, so compressed neural networks need no special hardware. At the tightest setting it ran up to about 10 times faster on ARM than native 8-bit math.

Abstract

Quantization of weights and activations in Deep Neural Networks (DNNs) is a powerful technique for network compression, and has enjoyed significant attention and success. However, much of the inference-time benefit of quantization is accessible only through the use of customized hardware accelerators or by providing an FPGA implementation of quantized arithmetic. Building on prior work, we show how to construct arbitrary bit-precise signed and unsigned integer operations using a software technique which logically \emph{embeds} a vector architecture with custom bit-width lanes in universally available fixed-width scalar arithmetic. We evaluate our approach on a high-end Intel Haswell processor, and an embedded ARM processor. Our approach yields very fast implementations of bit-precise custom DNN operations, which often match or exceed the performance of operations quantized to the sizes supported in native arithmetic. At the strongest level of quantization, our approach yields a maximum speedup of $\thicksim6\times$ on the Intel platform, and $\thicksim10\times$ on the ARM platform versus quantization to native 8-bit integers.

Andrew Anderson, David Gregg
arXiv:1809.10572 · cs.PF, cs.CV, cs.MS · submitted Sep 27, 2018 · updated Dec 12, 2019
abstract · pdf · html

add comment on HN