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

面向神经语言模型的分层正则化 Dropout

Layer-wise Regularized Dropout for Neural Language Models

Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Shenzhen MSU-BIT University(深圳北理莫斯科大学)

Shiwen Ni, Min Yang, Ruifeng Xu, Chengming Li, Xiping Hu

AI总结:

本文提出分层正则化 Dropout(LR-Drop),通过一致性训练对 Transformer 各层的隐藏状态、注意力矩阵和输出分布进行正则化,形成自蒸馏框架,并在 15 个数据集上取得最先进性能。

摘要:

在当今流行的各种预训练神经语言模型中,Dropout 已经是一种不可或缺的正则化技术。为了解决 Dropout 的随机性导致的训练与推理不一致问题,一些研究使用一致性训练在输出层对 Dropout 进行正则化。本文提出了一种新颖的分层正则化 Dropout(LR-Drop),专门为基于 Transformer 的语言模型设计。具体来说,LR-Drop 使用一致性训练策略对每个 Transformer 层进行分层正则化。每个训练样本经过由 Dropout 采样的两个孪生子模型,然后 LR-Drop 强制这两个孪生子模型的隐藏状态、多头注意力矩阵和输出分布保持一致。所提出的 LR-Drop 可以被视为一种“自蒸馏”框架,其中由 Dropout 生成的每个子模型都是另一个子模型的“教师”模型和“学生”模型。通过在 8 个自然语言理解数据集、6 个神经机器翻译数据集和 1 个抽象式摘要数据集(共 15 个数据集)上进行的大量实验,我们表明 LR-Drop 取得了优越的性能,包括最先进的结果。

英文摘要:

Among the various pre-trained neural language models that are popular today, dropout is already an indispensable regularization technique. To solve the inconsistency between training and inference caused by the randomness of dropout, some studies use consistency training to regularize dropout at the output layer. In this paper, we propose a novel Layer-wise Regularized Dropout (LR-Drop), which is specially designed for Transformer-based Language models. Specifically, LR-Drop layer-wise regularizes each Transformer layer using the consistency training strategy. Each training sample passes through the two siamese sub-models sampled by dropout, and then LR-Drop forces the hidden states, multi-head attention matrices, and output distribution of the two siamese sub-models to be consistent. The proposed LR-Drop can be regarded as a "self-distillation" framework, in which each sub-model generated by dropout is the other's "teacher" model and "student" model. Through extensive experiments on 8 natural language understanding datasets, 6 neural machine translation datasets, and 1 abstractive summarization dataset (a total of 15 datasets), we show that LR-Drop achieves superior performances, including state-of-the-art results.

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

↑