APNN-TC: Accelerating Arbitrary Precision Neural Networks on Ampere GPU Tensor Cores

Boyuan Feng, Yuke Wang, Tong Geng, Ang Li, Yufei Ding
6/23/2021
cs.DCcs.AIcs.AR

Official code: BoyuanFeng/APNN-TC (20 stars, Cuda, last commit 2021-08-26).

Abstract

Over the years, accelerating neural networks with quantization has been widely studied. Unfortunately, prior efforts with diverse precisions (e.g., 1-bit weights and 2-bit activations) are usually restricted by limited precision support on GPUs (e.g., int1 and int4).

Show full abstract

To break such restrictions, we introduce the first Arbitrary Precision Neural Network framework (APNN-TC) to fully exploit quantization benefits on Ampere GPU Tensor Cores. Specifically, APNN-TC first incorporates a novel emulation algorithm to support arbitrary short bit-width computation with int1 compute primitives and XOR/AND Boolean operations. Second, APNN-TC integrates arbitrary precision layer designs to efficiently map our emulation algorithm to Tensor Cores with novel batching strategies and specialized memory organization. Third, APNN-TC embodies a novel arbitrary precision NN design to minimize memory access across layers and further improve performance. Extensive evaluations show that APNN-TC can achieve significant speedup over CUTLASS kernels and various NN models, such as ResNet and VGG.

View on arXivView PDF

Code Implementations(1)

BoyuanFeng/APNN-TCOfficial100%
2014Cuda, C++Dec 19, 20205 years ago

Similar Papers

Cite this paper

@article{feng2021apnntc,
  title  = {APNN-TC: Accelerating Arbitrary Precision Neural Networks on Ampere GPU Tensor Cores},
  author = {Boyuan Feng and Yuke Wang and Tong Geng and Ang Li and Yufei Ding},
  year   = {2021},
  eprint = {2106.12169},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.12169}
}

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/2106.12169.svg)](https://codeofpaper.com/paper/2106.12169)

Discussion