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

面向文本分布外检测的多层级知识蒸馏

Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Text

Microsoft(微软);Tsinghua University(清华大学)

Qianhui Wu, Huiqiang Jiang, Haonan Yin, Börje F. Karlsson, Chin-Yew Lin

AI总结:

针对文本OoD检测,本文提出融合预测层与中间相似度蒸馏的多层级知识蒸馏方法,在五个基准上达到最先进水平,并在ChatGPT生成文本鉴别中超过人类评估者。

摘要:

自监督表示学习已被证明是仅利用分布内(ID)样本文本进行分布外(OoD)检测的重要组成部分。这类方法要么从头训练语言模型,要么使用ID样本微调预训练语言模型,随后将语言模型输出的困惑度作为OoD分数。本文分析了上述两种OoD检测方法的互补特性,并提出一种多层级知识蒸馏方法,在融合二者优势的同时缓解其局限。具体而言,我们将微调后的模型作为教师模型,在ID样本上指导一个随机初始化的学生模型。除预测层蒸馏外,我们还提出一种基于相似度的中间层蒸馏方法,以充分探索教师模型的表示空间。这样一来,学习到的学生模型能够更好地表示ID数据流形,同时凭借从预训练继承的正则化,获得更强的将OoD样本映射到ID数据流形之外的能力。此外,学生模型在参数学习期间只接触ID样本,进一步促使其形成更具区分度的OoD检测特征。我们在多个基准数据集(即CLINC150、SST、ROSTD、20 NewsGroups和AG News)上开展了大量实验,结果表明所提方法取得了新的最先进性能。我们还探索了其作为AIGC检测器的应用,用于区分ChatGPT生成的答案与人类专家答案。可以观察到,在Human ChatGPT Comparison Corpus上的成对专家任务中,我们的模型表现超过了人类评估者。

英文摘要:

Self-supervised representation learning has proved to be a valuable component for out-of-distribution (OoD) detection with only the texts of in-distribution (ID) examples. These approaches either train a language model from scratch or fine-tune a pre-trained language model using ID examples, and then take the perplexity output by the language model as OoD scores. In this paper, we analyze the complementary characteristics of both OoD detection methods and propose a multi-level knowledge distillation approach that integrates their strengths while mitigating their limitations. Specifically, we use a fine-tuned model as the teacher to teach a randomly initialized student model on the ID examples. Besides the prediction layer distillation, we present a similarity-based intermediate layer distillation method to thoroughly explore the representation space of the teacher model. In this way, the learned student can better represent the ID data manifold while gaining a stronger ability to map OoD examples outside the ID data manifold with the regularization inherited from pre-training. Besides, the student model sees only ID examples during parameter learning, further promoting more distinguishable features for OoD detection. We conduct extensive experiments over multiple benchmark datasets, i.e., CLINC150, SST, ROSTD, 20 NewsGroups, and AG News; showing that the proposed method yields new state-of-the-art performance. We also explore its application as an AIGC detector to distinguish between answers generated by ChatGPT and human experts. It is observed that our model exceeds human evaluators in the pair-expert task on the Human ChatGPT Comparison Corpus.

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

↑