arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2203.06204cs.CL
收藏

在对语法角色进行分类时,BERT并不关心词序。除非有关系

When classifying grammatical role, BERT doesn't care about word order... except when it matters

Stanford University(斯坦福大学);University of California, Irvine(加州大学欧文分校);The University of Texas at Austin(得克萨斯大学奥斯汀分校)

Isabel Papadimitriou, Richard Futrell, Kyle Mahowald

摘要:

因为意义通常可以单独从词汇语义中推断出来,所以词序在自然语言中通常是一个多余的线索。例如,单词chopped、chef和onion更有可能用来表达“The chef chopped the onion”,而不是“The onion chopped the chef”。“最近的工作表明,大语言模型是令人惊讶的词序不变,但至关重要的是,它在很大程度上考虑了自然的原型输入,其中组合意义大多与词汇预期相匹配。为了克服这种混淆,我们探讨语法角色表示在英语BERT和GPT-2,在词汇的期望是不够的情况下,词序知识是必要的正确分类。这种非原型的例子是自然出现的英语句子,有无生命的主体或有生命的物体,或者是我们系统地交换论点来组成像“洋葱切碎了厨师”这样的句子。我们发现,虽然早期层嵌入主要是词汇,词序实际上是至关重要的,在定义后一层表示的单词在语义上的非原型的位置。我们的实验隔离了词序对语境化过程的影响,并强调了模型如何在不常见但关键的情况下使用语境。

英文摘要:

Because meaning can often be inferred from lexical semantics alone, word order is often a redundant cue in natural language. For example, the words chopped, chef, and onion are more likely used to convey "The chef chopped the onion," not "The onion chopped the chef." Recent work has shown large language models to be surprisingly word order invariant, but crucially has largely considered natural prototypical inputs, where compositional meaning mostly matches lexical expectations. To overcome this confound, we probe grammatical role representation in English BERT and GPT-2, on instances where lexical expectations are not sufficient, and word order knowledge is necessary for correct classification. Such non-prototypical instances are naturally occurring English sentences with inanimate subjects or animate objects, or sentences where we systematically swap the arguments to make sentences like "The onion chopped the chef". We find that, while early layer embeddings are largely lexical, word order is in fact crucial in defining the later-layer representations of words in semantically non-prototypical positions. Our experiments isolate the effect of word order on the contextualization process, and highlight how models use context in the uncommon, but critical, instances where it matters.

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

↑