基于GPU的延迟感知DNN优化方法
Towards Latency-aware DNN Optimization with GPU Runtime Analysis and Tail Effect Elimination
摘要:
尽管最先进的(SOTA)DNN具有出色的性能,但不断增加的计算成本使得它们在满足实时延迟和准确性要求方面非常具有挑战性。尽管DNN运行时延迟由模型属性(例如,体系结构,操作),硬件属性(例如,利用率、吞吐量)以及更重要的是这两者之间的有效映射,许多现有方法仅关注优化模型属性(诸如FLOPS减少)而忽略DNN模型与硬件属性之间的失配。在这项工作中,我们证明了不同DNN计算工作负载和GPU容量之间的不匹配可能导致空闲GPU尾部效应,导致GPU利用率不足和吞吐量低。因此,FLOP减少不能带来有效的延迟减少,这导致次优的准确性与延迟权衡。受此启发,我们提出了一种GPU运行时感知的DNN优化方法,以自适应地消除GPU平台上的GPU尾部效应。我们的方法可以应用于现有的SOTA DNN优化方法之上,以实现更好的延迟和准确性权衡。实验结果表明,与SOTA DNN剪枝和NAS方法相比,延迟减少了11%-27%,准确率提高了2.5%-4.0
英文摘要:
Despite the superb performance of State-Of-The-Art (SOTA) DNNs, the increasing computational cost makes them very challenging to meet real-time latency and accuracy requirements. Although DNN runtime latency is dictated by model property (e.g., architecture, operations), hardware property (e.g., utilization, throughput), and more importantly, the effective mapping between these two, many existing approaches focus only on optimizing model property such as FLOPS reduction and overlook the mismatch between DNN model and hardware properties. In this work, we show that the mismatch between the varied DNN computation workloads and GPU capacity can cause the idle GPU tail effect, leading to GPU under-utilization and low throughput. As a result, the FLOPs reduction cannot bring effective latency reduction, which causes sub-optimal accuracy versus latency trade-offs. Motivated by this, we propose a GPU runtime-aware DNN optimization methodology to eliminate such GPU tail effect adaptively on GPU platforms. Our methodology can be applied on top of existing SOTA DNN optimization approaches to achieve better latency and accuracy trade-offs. Experiments show 11%-27% latency reduction and 2.5%-4.0% accuracy improvement over several SOTA DNN pruning and NAS methods, respectively
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。