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

使用新名词性别的少样本学习探究语言模型中的语法抽象

Investigating grammatical abstraction in language models using few-shot learning of novel noun gender

Faculty of Engineering, University of Bristol(布里斯托大学工程学院);Department of Basic Neurosciences, University of Geneva(日内瓦大学基础神经科学系)

Priyanka Sukumaran, Conor Houghton, Nina Kazanina

AI总结:

通过少样本学习新名词性别实验,探究LSTM和仅解码器Transformer能否像人类一样抽象语法性别,发现模型能从少量示例泛化性别并跨上下文应用,但存在阳性偏好。

摘要:

人类可以从极少的示例中学习一个新单词并推断其语法属性。他们对语言属性(如语法性别和一致规则)具有抽象概念,这些概念可以应用于新的句法环境和单词。受心理语言学的启发,我们进行了一项名词学习实验,以评估LSTM和仅解码器Transformer能否在法语中实现类似人类的语法性别抽象。语言模型的任务是从一个语法一致上下文中的几个示例中学习新名词嵌入的性别,并在另一个未见过的上下文中预测一致性。我们发现,这两种语言模型都能有效地从一个到两个学习示例中泛化新名词的性别,并将学到的性别应用于一致上下文,尽管存在对阳性性别类别的偏好。重要的是,少样本更新仅应用于嵌入层,这表明模型在词嵌入空间内编码了足够的性别信息。虽然模型的泛化行为表明它们像人类一样将语法性别表示为抽象类别,但仍需进一步研究以探索其具体实现方式的细节。为了与人类行为进行比较,我们进行了一项类似的单样本新名词性别学习实验,结果显示以法语为母语的人与语言模型一样,也表现出阳性性别偏好,并且也不是出色的单样本学习者。

英文摘要:

Humans can learn a new word and infer its grammatical properties from very few examples. They have an abstract notion of linguistic properties like grammatical gender and agreement rules that can be applied to novel syntactic contexts and words. Drawing inspiration from psycholinguistics, we conduct a noun learning experiment to assess whether an LSTM and a decoder-only transformer can achieve human-like abstraction of grammatical gender in French. Language models were tasked with learning the gender of a novel noun embedding from a few examples in one grammatical agreement context and predicting agreement in another, unseen context. We find that both language models effectively generalise novel noun gender from one to two learning examples and apply the learnt gender across agreement contexts, albeit with a bias for the masculine gender category. Importantly, the few-shot updates were only applied to the embedding layers, demonstrating that models encode sufficient gender information within the word embedding space. While the generalisation behaviour of models suggests that they represent grammatical gender as an abstract category, like humans, further work is needed to explore the details of how exactly this is implemented. For a comparative perspective with human behaviour, we conducted an analogous one-shot novel noun gender learning experiment, which revealed that native French speakers, like language models, also exhibited a masculine gender bias and are not excellent one-shot learners either.

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

↑