Quantized neural network kernels using very-low-precision arithmetic such as 4-bit integer weights are gaining popularity for their reduced memory requirements and enhanced computational efficiency. However, standard processor architectures are often not optimized for such fine-grained computations. In this paper, we investigate the utilization of the SIMD Within A Register (SWAR) technique to efficiently execute quantized DNN kernels with 4-bit integer weights. Leveraging bit-level parallelism through SWAR, we achieve significant speedups (up to 7 \(\times \) ) compared to standard implementations. We discuss the key SWAR-based implementation strategies and demonstrate their efficacy through experimental results. C++ source code available at https://github.com/lorenzograssi01/swaruint4 .

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Speeding up Quantized DNN Kernels Having 4-Bit Integer Weights Using the SWAR Approach

  • Lorenzo Grassi,
  • Marco Cococcioni

摘要

Quantized neural network kernels using very-low-precision arithmetic such as 4-bit integer weights are gaining popularity for their reduced memory requirements and enhanced computational efficiency. However, standard processor architectures are often not optimized for such fine-grained computations. In this paper, we investigate the utilization of the SIMD Within A Register (SWAR) technique to efficiently execute quantized DNN kernels with 4-bit integer weights. Leveraging bit-level parallelism through SWAR, we achieve significant speedups (up to 7 \(\times \) ) compared to standard implementations. We discuss the key SWAR-based implementation strategies and demonstrate their efficacy through experimental results. C++ source code available at https://github.com/lorenzograssi01/swaruint4 .