Table of Contents
Fetching ...

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

Neelesh Gupta, Pengmiao Zhang, Rajgopal Kannan, Viktor Prasanna

TL;DR

Memory access prediction models are effective but large, hindering deployment in latency-sensitive settings. PaCKD tackles this by clustering memory access traces into pattern-specific partitions, training large pattern-specific teachers, and distilling their knowledge into a single lightweight student via ensemble multi-label KD. The approach achieves an average of $552\times$ model-size compression with only a $1.92\%$ drop in F1-score on GAP Benchmark across LSTM, MLP-Mixer, and ResNet, outperforming standard KD and non-KD baselines by notable margins. This work advances practical ML-based MAP by enabling offline training of compact predictors that retain high predictive accuracy, with plans to explore graph representations, parallel implementations, and heterogeneous memory systems.

Abstract

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.

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

TL;DR

Memory access prediction models are effective but large, hindering deployment in latency-sensitive settings. PaCKD tackles this by clustering memory access traces into pattern-specific partitions, training large pattern-specific teachers, and distilling their knowledge into a single lightweight student via ensemble multi-label KD. The approach achieves an average of model-size compression with only a drop in F1-score on GAP Benchmark across LSTM, MLP-Mixer, and ResNet, outperforming standard KD and non-KD baselines by notable margins. This work advances practical ML-based MAP by enabling offline training of compact predictors that retain high predictive accuracy, with plans to explore graph representations, parallel implementations, and heterogeneous memory systems.

Abstract

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 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.
Paper Structure (25 sections, 13 equations, 2 figures, 5 tables)

This paper contains 25 sections, 13 equations, 2 figures, 5 tables.

Figures (2)

  • Figure 1: The Pattern-Clustered Knowledge Distillation (PaCKD) framework for compressing memory access prediction models.
  • Figure 2: Clustering results for applications in GAP benchmark under various input features.