arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.00549cs.PF
收藏

PM2Lat: 高精度和通用的GPU上深度神经网络执行延迟预测框架

PM2Lat: Highly Accurate and Generalized Prediction of DNN Execution Latency on GPUs

University of Oslo(奥斯陆大学);The Arctic University of Norway(挪威北极大学)

Truong-Thanh Le, Hoang-Loc La, Amir Taherkordi, Frank Eliassen, Phuong Hoai Ha and, Peiyuan Guan

AI总结:

PM2Lat通过利用GPU的单指令多线程架构,实现了高精度和通用的DNN执行延迟预测,优于现有方法。

摘要:

我们提出了PM2Lat,一种快速且通用的框架,用于准确预测在GPU上深度神经网络模型的延迟,特别关注NVIDIA。与之前依赖深度学习模型或手工启发式方法的方法不同,PM2Lat利用GPU的单指令多线程架构来建模DNN模型的执行时间。首先,我们通过研究计算行为和内存访问模式进行细粒度GPU操作建模。在识别这些特征后,我们发现不同的GPU内核即使服务于相同的目的,也表现出显著的性能差异。因此,PM2Lat的核心思想是根据内核的配置进行区分,并相应地分析它们。这种内核感知的建模使PM2Lat能够在不同的数据类型和硬件平台上实现一致的低预测误差。此外,PM2Lat超越了标准矩阵乘法,支持复杂的GPU内核,如Triton、Flash Attention和Cutlass Attention。实验结果表明,PM2Lat在不同的数据类型和硬件平台上对Transformer模型的预测误差率始终低于10%,在FP32上优于最先进的NeuSight 10-20%,在BF16上至少高出50%。当应用于不同的内核时,误差率保持在3-8%之间。

英文摘要:

We present PM2Lat, a fast and generalized framework for accurately predicting the latency of deep neural network models on GPUs, with special focus on NVIDIA. Unlike prior methods that rely on deep learning models or handcrafted heuristics, PM2Lat leverages the Single-Instruction-Multiple-Thread architecture of GPUs to model execution time of DNN models. First, we dive into fine-grained GPU operation modeling by studying computational behavior and memory access patterns. After identifying these characteristics, we found that different GPU kernels exhibit significant performance disparities, even when serving the same purpose. Hence, the core idea of PM2Lat is to differentiate kernels based on their configurations and analyze them accordingly. This kernel-aware modeling enables PM2Lat to achieve consistently low prediction error across diverse data types and hardware platforms. In addition, PM2Lat generalizes beyond standard matrix multiplication to support complex GPU kernels such as Triton, Flash Attention, and Cutlass Attention. Experimental results show that PM2Lat consistently achieves error rates below 10% across different data types and hardware platforms on Transformer models, outperforming the state-of-the-art NeuSight by 10-20% for FP32 and by at least 50% for BF16. When applying to diverse kernels, the error rate is maintained at 3-8%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑