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

UnNatural语言推理

UnNatural Language Inference

McGill University(麦吉尔大学);Montreal Institute of Learning Algorithms (Mila)(蒙特利尔学习算法研究所);Facebook AI Research (FAIR)(脸书人工智能研究院)

Koustuv Sinha, Prasanna Parthasarathi, Joelle Pineau, Adina Williams

摘要:

最近对最先进的大规模预训练的基于transformer的自然语言理解(NLU)模型的内部工作进行的调查表明,它们似乎至少在某种程度上知道类似人类的语法。我们提供了新的证据,使这一说法复杂化:我们发现,最先进的自然语言推理(NLI)模型为置换的例子分配了与原始例子相同的标签,即它们在很大程度上对随机词序置换是不变的。这种行为明显不同于人类;我们与不合语法的句子作斗争。为了衡量这个问题的严重性,我们提出了一套指标,并调查特定的排列导致模型的词序不变的属性。例如,在MNLI数据集中,我们发现几乎所有(98.7%)的例子都包含至少一个排除黄金标签的排列。模型有时甚至能够将黄金标签分配给它们最初未能正确预测的排列。我们对这种现象进行了全面的实证评估,并进一步表明,这个问题存在于Transformers和基于transformer前RNN / ConvNet的编码器中,以及跨多种语言(英语和汉语普通话)。我们的代码和数据可在https://github.com/facebookresearch/unlu上获得。

英文摘要:

Recent investigations into the inner-workings of state-of-the-art large-scale pre-trained Transformer-based Natural Language Understanding (NLU) models indicate that they appear to know humanlike syntax, at least to some extent. We provide novel evidence that complicates this claim: we find that state-of-the-art Natural Language Inference (NLI) models assign the same labels to permuted examples as they do to the original, i.e. they are largely invariant to random word-order permutations. This behavior notably differs from that of humans; we struggle with ungrammatical sentences. To measure the severity of this issue, we propose a suite of metrics and investigate which properties of particular permutations lead models to be word-order invariant. In the MNLI dataset, for example, we find almost all (98.7%) examples contain at least one permutation which elicits the gold label. Models are sometimes even able to assign gold labels to permutations that they originally failed to predict correctly. We provide a comprehensive empirical evaluation of this phenomenon, and further show that this issue exists for both Transformers and pre-Transformer RNN / ConvNet based encoders, as well as across multiple languages (English and Mandarin Chinese). Our code and data are available at https://github.com/facebookresearch/unlu.

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

↑