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

在较难的主谓一致实例上训练的RNN在较容易的实例上仍然表现良好吗?

Can RNNs trained on harder subject-verb agreement instances still perform well on easier ones?

Indian Institute of Technology Delhi(印度理工学院德里分校);University of Washington Seattle(华盛顿大学西雅图分校)

Hritik Bansal, Gantavya Bhatt, Sumeet Agarwal

摘要:

以前的工作表明,在自然语言语料库上训练的RNN可以很好地捕捉简单句子的数字一致性,但当句子包含一致性吸引子时表现不佳:动词和主要主语之间的中间名词,语法数字与后者相反。这表明,这些模型可能不会学习实际的语法协议,而是推断较浅的语法,如“同意最近的名词”。在这项工作中,我们研究了具有不同归纳偏差的RNN模型,这些模型是在选择性选择的“硬”协议实例上训练的,即,至少有一个协议吸引子的句子。对于这些动词的数量不能使用简单的线性启发式预测,因此它们可能有助于为模型提供层次句法的额外线索。如果RNN在训练这些困难的实例时可以学习基本的一致性规则,那么它们应该可以很好地推广到其他句子,包括更简单的句子。然而,我们观察到,几种RNN类型,包括具有软结构归纳偏差的ONLSTM,当仅在具有吸引子的句子上训练时,在没有吸引子的句子上表现不佳。我们分析了这些选择性训练的RNN如何与基线(对协议吸引子的自然分布进行训练)进行比较,这些RNN沿着不同句法结构的数字一致性准确性,代表性相似性和性能的维度。我们的研究结果表明,在我们的硬协议实例上训练的RNN仍然没有捕获协议的基本语法,而是倾向于过度拟合训练分布,导致它们在“容易”的分布外实例上表现不佳。因此,虽然RNN是一种强大的模型,可以识别非平凡的依赖模式,但在语法层面而不是表面上诱导它们这样做仍然是一个挑战。

英文摘要:

Previous work suggests that RNNs trained on natural language corpora can capture number agreement well for simple sentences but perform less well when sentences contain agreement attractors: intervening nouns between the verb and the main subject with grammatical number opposite to the latter. This suggests these models may not learn the actual syntax of agreement, but rather infer shallower heuristics such as `agree with the recent noun'. In this work, we investigate RNN models with varying inductive biases trained on selectively chosen `hard' agreement instances, i.e., sentences with at least one agreement attractor. For these the verb number cannot be predicted using a simple linear heuristic, and hence they might help provide the model additional cues for hierarchical syntax. If RNNs can learn the underlying agreement rules when trained on such hard instances, then they should generalize well to other sentences, including simpler ones. However, we observe that several RNN types, including the ONLSTM which has a soft structural inductive bias, surprisingly fail to perform well on sentences without attractors when trained solely on sentences with attractors. We analyze how these selectively trained RNNs compare to the baseline (training on a natural distribution of agreement attractors) along the dimensions of number agreement accuracy, representational similarity, and performance across different syntactic constructions. Our findings suggest that RNNs trained on our hard agreement instances still do not capture the underlying syntax of agreement, but rather tend to overfit the training distribution in a way which leads them to perform poorly on `easy' out-of-distribution instances. Thus, while RNNs are powerful models which can pick up non-trivial dependency patterns, inducing them to do so at the level of syntax rather than surface remains a challenge.

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

↑