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

语言知识与语境表征的可转移性

Linguistic Knowledge and Transferability of Contextual Representations

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);Harvard John A. Paulson School of Engineering and Applied Sciences(哈佛大学约翰·A·保尔森工程与应用科学学院);MIT Computer Science and Artificial Intelligence Laboratory(麻省理工学院计算机科学与人工智能实验室);University of Washington(华盛顿大学)

Nelson F. Liu, Matt Gardner, Yonatan Belinkov, Matthew E. Peters, Noah A. Smith

摘要:

来自大规模神经语言模型的上下文单词表征在各种NLP任务中都是成功的,这表明它们编码了有用的和可转移的语言特征。为了揭示它们捕获的语言知识,我们研究了几个最近预训练的上下文化器(ELMo的变体,OpenAI Transformer语言模型和BERT)产生的表示,以及一套17个不同的探测任务。我们发现,在冻结的上下文表示之上训练的线性模型在许多情况下与最先进的任务特定模型竞争,但在需要细粒度语言知识的任务上失败(例如,联合识别)。为了研究上下文单词表示的可转移性,我们量化了上下文化器中各个层的可转移性差异,特别是递归神经网络(RNN)和Transformers之间的差异。例如,RNN的更高层更具有任务特定性,而Transformer层不表现出相同的单调趋势。此外,为了更好地理解是什么使上下文单词表示可转移,我们将语言模型预训练与11个监督预训练任务进行了比较。对于任何给定的任务,当预训练数据集固定时,对密切相关的任务进行预训练会产生比语言模型预训练更好的性能(平均而言更好)。然而,在更多数据上进行语言模型预训练会得到最好的结果。

英文摘要:

Contextual word representations derived from large-scale neural language models are successful across a diverse set of NLP tasks, suggesting that they encode useful and transferable features of language. To shed light on the linguistic knowledge they capture, we study the representations produced by several recent pretrained contextualizers (variants of ELMo, the OpenAI transformer language model, and BERT) with a suite of seventeen diverse probing tasks. We find that linear models trained on top of frozen contextual representations are competitive with state-of-the-art task-specific models in many cases, but fail on tasks requiring fine-grained linguistic knowledge (e.g., conjunct identification). To investigate the transferability of contextual word representations, we quantify differences in the transferability of individual layers within contextualizers, especially between recurrent neural networks (RNNs) and transformers. For instance, higher layers of RNNs are more task-specific, while transformer layers do not exhibit the same monotonic trend. In addition, to better understand what makes contextual word representations transferable, we compare language model pretraining with eleven supervised pretraining tasks. For any given task, pretraining on a closely related task yields better performance than language model pretraining (which is better on average) when the pretraining dataset is fixed. However, language model pretraining on more data gives the best results.

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

↑