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

通过强化提示促进无数据知识蒸馏

Prompting to Distill: Boosting Data-Free Knowledge Distillation via Reinforced Prompt

Zhejiang University(浙江大学);National University of Singapore(新加坡国立大学)

Xinyin Ma, Xinchao Wang, Gongfan Fang, Yongliang Shen, Weiming Lu

摘要:

无数据知识蒸馏(DFKD)通过消除原始训练数据的依赖性来进行知识蒸馏,并且最近在加速预训练的语言模型方面取得了令人印象深刻的结果。DFKD的核心是通过对未压缩模型的参数进行反演来重建合成数据集。然而,先前的DFKD方法在很大程度上依赖于用于重建的目标数据分布的手工制作的先验,这可能不可避免地有偏差并且通常不能捕获固有分布。为了解决这个问题,我们提出了一种基于语法的方法,称为DFD,它允许我们利用学习的语言先验,有效地协调合成句子的语义和语法正确。具体来说,RectDFD利用预先训练的生成模型来提供语言先验,并引入增强的主题过滤器来控制数据合成,使生成的样本在主题上相关,语义上合理,从而对下游任务友好。实验结果表明,该方法大大提高了合成质量,并实现了蒸馏性能的显著改善。在某些情况下,DFD甚至可以产生与数据驱动的知识蒸馏(通过访问原始训练数据)相同的结果。

英文摘要:

Data-free knowledge distillation (DFKD) conducts knowledge distillation via eliminating the dependence of original training data, and has recently achieved impressive results in accelerating pre-trained language models. At the heart of DFKD is to reconstruct a synthetic dataset by inverting the parameters of the uncompressed model. Prior DFKD approaches, however, have largely relied on hand-crafted priors of the target data distribution for the reconstruction, which can be inevitably biased and often incompetent to capture the intrinsic distributions. To address this problem, we propose a prompt-based method, termed as PromptDFD, that allows us to take advantage of learned language priors, which effectively harmonizes the synthetic sentences to be semantically and grammatically correct. Specifically, PromptDFD leverages a pre-trained generative model to provide language priors and introduces a reinforced topic prompter to control data synthesis, making the generated samples thematically relevant and semantically plausible, and thus friendly to downstream tasks. As shown in our experiments, the proposed method substantially improves the synthesis quality and achieves considerable improvements on distillation performance. In some cases, PromptDFD even gives rise to results on par with those from the data-driven knowledge distillation with access to the original training data.

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

↑