DAdEE:早退出预训练语言模型中的无监督领域自适应
DAdEE: Unsupervised Domain Adaptation in Early Exit PLMs
AI总结:
针对早退出预训练语言模型的退出分类器对领域变化敏感、泛化性差的问题,提出结合知识蒸馏与逐层GAN对抗自适应的DADEE框架,既加速推理又提升领域自适应效果,在多任务领域偏移场景下性能优于现有方法。
摘要:
预训练语言模型(PLMs)通过自监督在各类任务上展现出良好的准确率和泛化能力,但其庞大的规模会导致较高的推理延迟。早退出(Early Exit,EE)策略通过允许样本从连接在中间层的分类器处退出以解决该问题,但这类策略泛化性不佳,因为退出分类器可能对领域变化较为敏感。为解决这一问题,我们提出了早退出框架下的无监督领域自适应方法DADEE,该方法利用知识蒸馏实现多层级自适应。DADEE在每一层采用基于GAN的对抗式自适应以获得领域不变表示,缩小源域与目标域在所有层之间的领域差距。附加的退出模块不仅加快了推理速度,还通过减少灾难性遗忘和模式崩塌增强了领域自适应效果,使其更适用于现实场景。在情感分析、蕴涵分类和自然语言推理等任务上的实验表明,在领域偏移场景下,DADEE的性能始终优于各类早退出方法以及多种领域自适应方法。匿名源代码可在https://github.com/Div290/DAdEE获取。
英文摘要:
Pre-trained Language Models (PLMs) exhibit good accuracy and generalization ability across various tasks using self-supervision, but their large size results in high inference latency. Early Exit (EE) strategies handle the issue by allowing the samples to exit from classifiers attached to the intermediary layers, but they do not generalize well, as exit classifiers can be sensitive to domain changes. To address this, we propose Unsupervised Domain Adaptation in EE framework (DADEE) that employs multi-level adaptation using knowledge distillation. DADEE utilizes GAN-based adversarial adaptation at each layer to achieve domain-invariant representations, reducing the domain gap between the source and target domain across all layers. The attached exits not only speed up inference but also enhance domain adaptation by reducing catastrophic forgetting and mode collapse, making it more suitable for real-world scenarios. Experiments on tasks such as sentiment analysis, entailment classification, and natural language inference demonstrate that DADEE consistently outperforms not only early exit methods but also various domain adaptation methods under domain shift scenarios. The anonymized source code is available at https://github.com/Div290/DAdEE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。