LSTMs trained on next-word prediction can accurately perform linguistic tasks that require tracking long-distance syntactic dependencies. Notably, model accuracy approaches human performance on number agreement tasks (Gulordava et al., 2018). However, we do not have a mechanistic understanding of how LSTMs perform such linguistic tasks. Do LSTMs learn abstract grammatical rules, or do they rely on simple heuristics? Here, we test gender agreement in French which requires tracking both hierarchical syntactic structures and the inherent gender of lexical units. Our model is able to reliably predict long-distance gender agreement in two subject-predicate contexts: noun-adjective and noun-passive-verb agreement. The model showed more inaccuracies on plural noun phrases with gender attractors compared to singular cases, suggesting a reliance on clues from gendered articles for agreement. Overall, our study highlights key ways in which LSTMs deviate from human behaviour and questions whether LSTMs genuinely learn abstract syntactic rules and categories. We propose using gender agreement as a useful probe to investigate the underlying mechanisms, internal representations, and linguistic capabilities of LSTM language models.
Language Modeling Teaches You More Syntax than Translation Does: Lessons Learned Through Auxiliary Task Analysis
New York University(纽约大学);Harvard University(哈佛大学)
最近使用辅助预测任务分类器来研究LSTM表示的属性的工作已经开始阐明为什么预训练的表示,如ELMo(Peters et al.,2018)和CoVe(McCann等人,2017),对神经语言理解模型是如此有益。然而,我们仍然没有清楚地了解预训练目标的选择如何影响模型学习的语言信息类型。考虑到这一点,我们比较了四个目标-语言建模,翻译,跳跃思想,和自动编码-对他们的能力,以诱导句法和词性信息。我们通过保持训练数据的数量和类型以及LSTM架构不变来对任务进行公平的比较。我们发现,来自语言模型的表示在我们的句法辅助预测任务中始终表现最好,即使在相对少量的数据上进行训练。这些结果表明,语言建模可能是需要语法信息的迁移学习应用程序的最佳数据丰富的预训练任务。我们还发现,表示从随机初始化,冻结LSTM执行我们的语法辅助任务,但这种效果消失时,辅助任务的训练数据的量减少。
Attribution Analysis of Grammatical Dependencies in LSTMs
Yale University(耶鲁大学)
LSTM语言模型已被证明可以捕获语法敏感的语法依赖关系,例如具有高度准确性的主语-动词一致性(Linzen et al.,2016年,除其他外)。然而,问题仍然存在,他们是否使用虚假的相关性,或者他们是否真的能够匹配动词与他们的主题。本文支持后一种假设。使用逐层相关性传播(Bach等人,2015),一种量化输入特征对模型行为的贡献的技术,我们表明LSTM在数字一致性上的表现与模型区分主题和其他名词的能力直接相关。我们的研究结果表明,LSTM语言模型能够推断出语法依赖关系的鲁棒表示。
Causal Interventions Reveal Typologically Organized Syntactic Mechanisms in Multilingual Language Models
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Saarland University(萨尔大学);Leipzig University(莱比锡大学);Heidelberg Institute for Theoretical Studies(海德堡理论研究所)