Optimizing Teacher-Student Partitioning for Scalable Knowledge Distillation on HPC Systems
This paper proposes an HPC-aware methodology for Knowledge Distillation (KD) that decouples teacher and student partitioning efficiently, achieving up to 67% higher samples-per-second than the widely adopted TRL library.
Introduces an HPC-aware methodology for Knowledge Distillation, improving efficiency through efficient teacher-student partitioning.
Before reading this…
Applications
- →Machine Learning Model Compression
- →Deep Learning Training
To understand this paper, make sure you know these concepts first:
- Understanding of Knowledge Distillationfind papers →
- High-Performance Computing Conceptsfind papers →
Abstract
More Like ThisKnowledge Distillation (KD) enables training smaller student models under the guidance of larger teacher models, and the widely adopted TRL library implements it. Yet, TRL treats both models symmetrically, missing opportunities to exploit their pronounced asymmetry in memory footprint, and communication requirements. This paper presents an HPC-aware methodology for KD that decouples teacher and student partitioning efficiently. Our approach achieves up to 67% higher samples-per-second than TRL by avoiding unnecessary teacher-model data structures and selecting the best split strategy. We combine vertical and horizontal partitioning of models, deriving an analytical expression that identifies the existence of inflection points between splitting regimes. These results showed that exploiting teacher--student asymmetry through topology-aware parallelism notably accelerated GKD training on production HPC clusters at our company