arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13441cs.LGcs.AR
收藏

PaCKD:用于压缩内存访问预测模型的模式聚类知识蒸馏

PaCKD: Pattern-Clustered Knowledge Distillation for Compressing Memory Access Prediction Models

University of Southern California(南加州大学);DEVCOM Army Research Lab(DEVCOM陆军研究实验室)

Neelesh Gupta, Pengmiao Zhang, Rajgopal Kannan, Viktor Prasanna

AI总结:

本文提出PaCKD方法,通过模式聚类和知识蒸馏压缩内存访问预测模型,在保持预测性能的同时实现552倍模型压缩,并显著优于标准知识蒸馏训练的学生模型。

摘要:

深度神经网络(DNNs)已被证明是用于精确内存访问预测(MAP)的有效模型,而MAP是通过数据预取缓解内存延迟的一项关键任务。然而,现有的基于DNN的MAP模型面临显著物理存储空间大和推理延迟差等挑战,主要原因是其参数量巨大。这些限制使得它们在实际场景中难以部署。在本文中,我们提出PaCKD,一种模式聚类知识蒸馏方法,用于在保持预测性能的同时压缩MAP模型。PaCKD方法包含三个步骤:将内存访问序列聚类为包含相似模式的不同分区,为每个分区训练大型的模式特定教师模型用于内存访问预测,以及通过从训练好的模式特定教师中蒸馏知识来训练一个单一的轻量级学生模型。我们在LSTM、MLP-Mixer和ResNet模型上评估了我们的方法,因为这些模型具有多样的结构,并且广泛用于图像分类任务,以测试它们在四个广泛使用的图应用中的有效性。与具有5.406M参数和F1分数为0.4626的教师模型相比,我们的学生模型实现了552倍的模型尺寸压缩,同时保持F1分数为0.4538(性能下降1.92%)。与使用标准知识蒸馏训练的学生模型相比,我们的方法取得了高出8.70%的结果;与不使用任何形式知识蒸馏训练的学生模型相比,取得了高出8.88%的结果。

英文摘要:

Deep neural networks (DNNs) have proven to be effective models for accurate Memory Access Prediction (MAP), a critical task in mitigating memory latency through data prefetching. However, existing DNN-based MAP models suffer from the challenges such as significant physical storage space and poor inference latency, primarily due to their large number of parameters. These limitations render them impractical for deployment in real-world scenarios. In this paper, we propose PaCKD, a Pattern-Clustered Knowledge Distillation approach to compress MAP models while maintaining the prediction performance. The PaCKD approach encompasses three steps: clustering memory access sequences into distinct partitions involving similar patterns, training large pattern-specific teacher models for memory access prediction for each partition, and training a single lightweight student model by distilling the knowledge from the trained pattern-specific teachers. We evaluate our approach on LSTM, MLP-Mixer, and ResNet models, as they exhibit diverse structures and are widely used for image classification tasks in order to test their effectiveness in four widely used graph applications. Compared to the teacher models with 5.406M parameters and an F1-score of 0.4626, our student models achieve a 552$\times$ model size compression while maintaining an F1-score of 0.4538 (with a 1.92% performance drop). Our approach yields an 8.70% higher result compared to student models trained with standard knowledge distillation and an 8.88% higher result compared to student models trained without any form of knowledge distillation.

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

↑