APNN-TC:在安培GPU张量核上加速任意精度神经网络
APNN-TC: Accelerating Arbitrary Precision Neural Networks on Ampere GPU Tensor Cores
摘要:
多年来,利用量化加速神经网络已被广泛研究。不幸的是,具有不同精度的先前努力(例如,1-位权重和2位激活)通常受到GPU上的有限精度支持的限制(例如,int 1和int 4)。为了打破这种限制,我们引入了第一个任意精度神经网络框架(APNN-TC),以充分利用Ampere GPU张量核心的量化优势。具体来说,APNN-TC首先采用了一种新的仿真算法,以支持任意短位宽计算与int 1计算原语和XOR/AND布尔运算。第二,APNN-TC集成了任意精度的层设计,以有效地将我们的仿真算法映射到具有新颖的并行策略和专门的内存组织的张量核心。第三,APNN-TC体现了一种新的任意精度NN设计,以最大限度地减少跨层的内存访问,并进一步提高性能。广泛的评估表明,APNN-TC可以在CUTLASS内核和各种NN模型(如ResNet和VGG)上实现显着的加速。
英文摘要:
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). 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。