Hybrid Knowledge Distillation for Prefix Compression in Pre-trained Language Models
Abstract
Prompt-based learning has emerged as an effective paradigm for the parameter-efficient adaptation of pre-trained language models. However, existing methods typically rely on long continuous prefixes, which not only occupy the limited context window but also reduce effective input capacity. Furthermore, aggressively compressing prompt length introduces a severe capacity gap, leading to significant performance degradation. To address this challenge, we propose LR-HKD, a low-rank hybrid knowledge distillation framework for prompt compression. This framework adopts an alternating layer strategy, leveraging low-rank structural alignment to capture mini-batch-level inter-sample relationships, while employing intermediate representation matching to model fine-grained point-wise features. Extensive evaluations on multiple benchmark tasks demonstrate that LR-HKD can achieve substantial prompt compression while maintaining strong downstream task performance. Notably, the distilled student model not only outperforms existing baselines but, on certain tasks, even surpasses the uncompressed teacher model. These results highlight the effectiveness of combining feature-level and structure-level distillation for achieving robust knowledge transfer under extreme representational constraints.