arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.01689cs.CLcs.AI
收藏

基于文本到文本迁移的语言模型无数据蒸馏

Data-Free Distillation of Language Model by Text-to-Text Transfer

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Zheyuan Bai, Xinduo Liu, Hailin Hu, Tianyu Guo, Qinghua Zhang, Yunhe Wang

AI总结:

针对现有NLP无数据知识蒸馏多聚焦仅编码器分类任务、未利用生成式模型进展的问题,提出DFKD-T³框架,用预训练生成模型可控生成适配压缩的任务数据,在多下游任务中提升蒸馏性能且优于SOTA方法。

摘要:

无数据知识蒸馏(DFKD)在原始训练数据不可用的模型压缩场景中发挥着关键作用。现有自然语言处理领域的DFKD研究主要聚焦于在分类任务上蒸馏BERT这类仅编码器结构的模型,忽略了生成式语言建模领域的显著进展。本文提出了一种全新的DFKD框架DFKD-T³,该框架可将预训练生成式语言模型同时用作模型压缩的可控数据生成器。DFKD-T³构建了一个端到端可学习的文本到文本框架,能够将通用领域语料转化为适配压缩任务的数据,旨在同时提升数据的特异性与多样性。大量实验表明,该方法可在情感分析、语言可接受性判断、信息抽取等多种下游任务中提升蒸馏性能。此外,生成的文本可直接用于蒸馏其他语言模型,且性能优于现有SOTA方法,使其在通用DFKD场景中更具实用性。代码已开源至https://gitee.com/mindspore/models/tree/master/research/nlp/DFKD_T3。

英文摘要:

Data-Free Knowledge Distillation (DFKD) plays a vital role in compressing the model when original training data is unavailable. Previous works for DFKD in NLP mainly focus on distilling encoder-only structures like BERT on classification tasks, which overlook the notable progress of generative language modeling. In this work, we propose a novel DFKD framework, namely DFKD-T$^{3}$, where the pretrained generative language model can also serve as a controllable data generator for model compression. This novel framework DFKD-T$^{3}$ leads to an end-to-end learnable text-to-text framework to transform the general domain corpus to compression-friendly task data, targeting to improve both the \textit{specificity} and \textit{diversity}. Extensive experiments show that our method can boost the distillation performance in various downstream tasks such as sentiment analysis, linguistic acceptability, and information extraction. Furthermore, we show that the generated texts can be directly used for distilling other language models and outperform the SOTA methods, making our method more appealing in a general DFKD setting. Our code is available at https://gitee.com/mindspore/models/tree/master/research/nlp/DFKD\_T3.

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

↑