arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.03537cs.CL
收藏

基于人工数据集的预训练语言模型的可移植性研究

On the Transferability of Pre-trained Language Models: A Study from Artificial Datasets

National Taiwan University(台湾大学)

Cheng-Han Chiang, Hung-yi Lee

摘要:

在大规模未标记文本数据上预训练语言模型(LM),使模型比直接在下游任务上训练的模型更容易实现出色的下游性能。在这项工作中,我们研究了除了语义之外,预训练数据中的哪些特定特征使得预训练的LM优于从头开始训练的下游任务。我们建议使用人工构造的数据集作为预训练数据,以排除语义的影响,并进一步控制预训练语料具有什么样的特征。通过在GLUE基准测试上微调预训练的模型,我们可以了解从在具有该特定特征的数据集上训练的模型中转移知识的好处。我们定义并讨论了人工数据集中的三个不同特征:1)在预训练和下游微调之间匹配令牌的uni-gram或bi-gram分布,2)序列中令牌之间显式依赖关系的存在,3)序列中令牌之间隐式依赖关系的长度。我们的实验表明,显式的依赖关系的序列中的前训练数据的下游性能是至关重要的。我们的研究结果还表明,当在具有更大范围隐式依赖关系的数据集上进行预训练时,模型可以实现更好的下游性能。根据我们的分析,我们发现用人工数据集预训练的模型很容易在下游任务中学习虚假的相关性。我们的工作表明,即使LM没有在自然语言上进行预训练,一旦LM学会对序列中的令牌依赖性进行建模,它们仍然可以在某些人类语言下游任务上获得可转移性。这一结果有助于我们理解预训练LM的特殊可移植性。

英文摘要:

Pre-training language models (LMs) on large-scale unlabeled text data makes the model much easier to achieve exceptional downstream performance than their counterparts directly trained on the downstream tasks. In this work, we study what specific traits in the pre-training data, other than the semantics, make a pre-trained LM superior to their counterparts trained from scratch on downstream tasks. We propose to use artificially constructed datasets as the pre-training data to exclude the effect of semantics, and further control what characteristics the pre-training corpora have. By fine-tuning the pre-trained models on GLUE benchmark, we can learn how beneficial it is to transfer the knowledge from the model trained on the dataset possessing that specific trait. We define and discuss three different characteristics in the artificial dataset: 1) matching the token's uni-gram or bi-gram distribution between pre-training and downstream fine-tuning, 2) the presence of the explicit dependencies among the tokens in a sequence, 3) the length of the implicit dependencies among the tokens in a sequence. Our experiments show that the explicit dependencies in the sequences of the pre-training data are critical to the downstream performance. Our results also reveal that models achieve better downstream performance when pre-trained on a dataset with a longer range of implicit dependencies. Based on our analysis, we find that models pre-trained with artificial datasets are prone to learn spurious correlation in downstream tasks. Our work reveals that even if the LMs are not pre-trained on natural language, they still gain transferability on certain human language downstream tasks once the LMs learn to model the token dependencies in the sequences. This result helps us understand the exceptional transferability of pre-trained LMs.

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

↑