Saved in:
Bibliographic Details
Main Authors: Sukumaran, Priyanka, Houghton, Conor, Kazanina, Nina
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2403.10338
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909137987698688
author Sukumaran, Priyanka
Houghton, Conor
Kazanina, Nina
author_facet Sukumaran, Priyanka
Houghton, Conor
Kazanina, Nina
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_10338
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Investigating grammatical abstraction in language models using few-shot learning of novel noun gender
Sukumaran, Priyanka
Houghton, Conor
Kazanina, Nina
Computation and Language
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.
title Investigating grammatical abstraction in language models using few-shot learning of novel noun gender
topic Computation and Language
url https://arxiv.org/abs/2403.10338