使用选择性掩蔽作为预训练和微调之间的桥梁
Using Selective Masking as a Bridge between Pre-training and Fine-tuning
摘要:
预训练语言模型,然后针对下游任务对其进行微调,已经为各种NLP任务展示了最先进的结果。预训练通常独立于下游任务,以前的工作表明,这种预训练本身可能不足以捕捉特定于任务的细微差别。我们提出了一种方法来定制一个预先训练的BERT模型的下游任务,通过特定于任务的掩蔽之前,标准的监督微调。为此,首先收集特定于任务的单词列表。例如,如果任务是情感分类,我们收集一小部分代表积极和消极情感的单词样本。接下来,使用单词列表测量单词对任务的重要性,称为单词的任务得分。然后,根据每个单词的任务得分,为每个单词分配一个掩蔽概率。我们用不同的掩蔽函数进行实验,这些函数根据单词的任务得分分配掩蔽概率。BERT模型在MLM目标上进一步训练,其中使用上述策略进行掩蔽。按照这个标准,对不同的下游任务进行监督微调。这些任务的结果表明,选择性掩蔽策略优于随机掩蔽,表明其有效性。
英文摘要:
Pre-training a language model and then fine-tuning it for downstream tasks has demonstrated state-of-the-art results for various NLP tasks. Pre-training is usually independent of the downstream task, and previous works have shown that this pre-training alone might not be sufficient to capture the task-specific nuances. We propose a way to tailor a pre-trained BERT model for the downstream task via task-specific masking before the standard supervised fine-tuning. For this, a word list is first collected specific to the task. For example, if the task is sentiment classification, we collect a small sample of words representing both positive and negative sentiments. Next, a word's importance for the task, called the word's task score, is measured using the word list. Each word is then assigned a probability of masking based on its task score. We experiment with different masking functions that assign the probability of masking based on the word's task score. The BERT model is further trained on MLM objective, where masking is done using the above strategy. Following this standard supervised fine-tuning is done for different downstream tasks. Results on these tasks show that the selective masking strategy outperforms random masking, indicating its effectiveness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。