TDC:通过硬件感知的Tucker分解实现GPU上的极高效CNN
TDC: Towards Extremely Efficient CNNs on GPUs via Hardware-Aware Tucker Decomposition
摘要:
Tucker分解是SOTA CNN模型压缩技术之一。然而,与FLOPs减少不同,我们观察到使用现有GPU软件(如cuDNN)的Tucker压缩模型的推理时间减少非常有限。为此,我们提出了一个高效的端到端框架,可以通过Tucker分解和GPU上的优化推理代码生成高度准确和紧凑的CNN模型。具体来说,我们提出了一个基于ADMM的训练算法,可以实现高度准确的塔克格式的模型。我们还开发了一个高性能的内核塔克格式卷积和分析性能模型,以指导执行参数的选择。我们进一步提出了一个协同设计框架,以确定适当的塔克排名驱动的实际推理时间(而不是FLOPs)。我们对A100的五个现代CNN的评估表明,我们的压缩模型与我们优化的代码相比,实现了cuDNN的2.21倍加速,TVM的1.12倍加速,以及使用cuDNN的原始模型的3.27倍加速,最多损失0.05%的准确度。
英文摘要:
Tucker decomposition is one of the SOTA CNN model compression techniques. However, unlike the FLOPs reduction, we observe very limited inference time reduction with Tucker-compressed models using existing GPU software such as cuDNN. To this end, we propose an efficient end-to-end framework that can generate highly accurate and compact CNN models via Tucker decomposition and optimized inference code on GPUs. Specifically, we propose an ADMM-based training algorithm that can achieve highly accurate Tucker-format models. We also develop a high-performance kernel for Tucker-format convolutions and analytical performance models to guide the selection of execution parameters. We further propose a co-design framework to determine the proper Tucker ranks driven by practical inference time (rather than FLOPs). Our evaluation on five modern CNNs with A100 demonstrates that our compressed models with our optimized code achieve up to 2.21X speedup over cuDNN, 1.12X speedup over TVM, and 3.27X over the original models using cuDNN with at most 0.05% accuracy loss.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。