arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.04883cs.CLcs.AI
收藏

对抗式自监督无数据蒸馏文本分类

Adversarial Self-Supervised Data-Free Distillation for Text Classification

Zhejiang University(浙江大学)

Xinyin Ma, Yongliang Shen, Gongfan Fang, Chen Chen, Chenghao Jia, Weiming Lu

摘要:

大型预训练的基于transformer的语言模型在广泛的NLP任务上取得了令人印象深刻的结果。在过去的几年里,知识蒸馏(KD)已经成为一个流行的范式,压缩计算昂贵的模型,资源有效的轻量级模型。然而,大多数KD算法,特别是在NLP中,依赖于原始训练数据集的可访问性,由于隐私问题,这些数据集可能不可用。为了解决这个问题,我们提出了一种新的两阶段无数据蒸馏方法,称为对抗性自监督无数据蒸馏(AS-DFD),它被设计用于压缩大规模基于变换的模型(例如,BERT)。为了避免在离散空间中生成文本,我们引入了一种即插即用的嵌入猜测方法来从教师的隐藏知识中制作伪嵌入。同时,通过一个自我监督模块来量化学生的能力,我们以对抗训练的方式适应伪嵌入的难度。据我们所知,我们的框架是第一个为NLP任务设计的无数据蒸馏框架。我们在几个文本分类数据集上验证了该方法的有效性。

英文摘要:

Large pre-trained transformer-based language models have achieved impressive results on a wide range of NLP tasks. In the past few years, Knowledge Distillation(KD) has become a popular paradigm to compress a computationally expensive model to a resource-efficient lightweight model. However, most KD algorithms, especially in NLP, rely on the accessibility of the original training dataset, which may be unavailable due to privacy issues. To tackle this problem, we propose a novel two-stage data-free distillation method, named Adversarial self-Supervised Data-Free Distillation (AS-DFD), which is designed for compressing large-scale transformer-based models (e.g., BERT). To avoid text generation in discrete space, we introduce a Plug & Play Embedding Guessing method to craft pseudo embeddings from the teacher's hidden knowledge. Meanwhile, with a self-supervised module to quantify the student's ability, we adapt the difficulty of pseudo embeddings in an adversarial training manner. To the best of our knowledge, our framework is the first data-free distillation framework designed for NLP tasks. We verify the effectiveness of our method on several text classification datasets.

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

↑