Layer-wise Regularized Dropout for Neural Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ni, Shiwen, Yang, Min, Xu, Ruifeng, Li, Chengming, Hu, Xiping
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911784082866176
author Ni, Shiwen
Yang, Min
Xu, Ruifeng
Li, Chengming
Hu, Xiping
author_facet Ni, Shiwen
Yang, Min
Xu, Ruifeng
Li, Chengming
Hu, Xiping
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_16361
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Layer-wise Regularized Dropout for Neural Language Models
Ni, Shiwen
Yang, Min
Xu, Ruifeng
Li, Chengming
Hu, Xiping
Computation and Language
Artificial Intelligence
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.
title Layer-wise Regularized Dropout for Neural Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2402.16361