Evaluating Word Embeddings for Language Acquisition (2020)

Abstract: Continuous vector word representations (or word embeddings) have shown success in capturing semantic relations between words, as evidenced with evaluation against behavioral data of adult performance on semantic tasks (Pereira et al. 2016). Adult semantic knowledge is the endpoint of a language acquisition process; thus, a relevant question is whether these models can also capture emerging word representations of young language learners. However, the data of semantic knowledge of children is scarce or non-existent for some age groups. In this paper, we propose to bridge this gap by using Age of Acquisition norms to evaluate word embeddings learnt from child-directed input. We present two methods that evaluate word embeddings in terms of (a) the semantic neighbourhood density of learnt words, and (b) the convergence to adult word associations. We apply our methods to bag-of-words models, and we find that (1) children acquire words with fewer semantic neighbours earlier, and (2) young learners only attend to very local context. These findings provide converging evidence for validity of our methods in understanding the prerequisite features for a distributional model of word learning.

## introduction word embeddings have a long tradition in computational linguistics. there exist a range of methods to derive word embeddings based on the distributional paradigm, such that words with similar embeddings are semantically related. these embeddings are often evaluated either extrinsically, on how well they boost performance on a certain task, or intrinsically, by comparing representations against behavioral data from tests of semantic sim-ilarity, synonymity, analogy or word association @xcite . adult semantic knowledge is the culmination of a language acquisition process; therefore, a relevant question is whether these models can also capture emerging word representations of language learners. a capacity for distributional analysis is a basic assumption of all theories of language acquisition: children are capable of performing distributional analyses over their input from a young age @xcite , motivating the use of word embeddings for modelling language acquisition. however, the evaluation of emergent word representations is far from straightforward, as there is no availability of the kind of semantic judgements that we have for adults. this paper presents two methods for evaluating word embeddings for language acquisition. we apply our methods to two bag-of-words models, and evaluate them on the acquisition of nouns in english-speaking children foot_0 . ## models bag-of-words models offer a good starting point to evaluate word representations in the context of language acquisition, given their minimal assumptions on knowledge of word order: once the context of a word is determined, the order in which words appear in this context is ignored by these type of models. we explore a range of hyperparameter configurations of two models: a 'contextcounting' model involving a ppmi matrix compressed with singular value decomposition (svd), and the skipgram with negative sampling (sgns) version of word2vec @xcite . note that, although these models have been found to implicitly optimize the same shifted-ppmi matrix @xcite , they are unlikely to obtain the same results without careful parameter alignment. our goal by selecting these two approaches is to increase the variability of model performance within the bag-of-words paradigm. the hyperparameters we explore include: window size @xcite @xcite @xcite @xcite , minimum frequency threshold @xcite @xcite , dynamic window (for sgns), negative sampling in sgns [0,15] (and its equivalents as shifted-ppmi), eigenvalue in svd [0,0.5,1]. we restrict our analyses to vectors of size 100. we use the hyperwords package from @xcite . ## data we trained the models on transcriptions of childdirected speech, i.e. samples of naturalistic productions in the linguistic environment of a child. we extracted the child-directed speech data from the childes database @xcite , for all the varieties of english, for ages ranging from 0 to 60 months. we used the childesr library to extract the child-directed utterances @xcite foot_1 . word tokens were coded at the lemma level. the resulting dataset contains a total number of 3,135,822 sentences, 34,961 word types, and 12,975,520 word tokens. to evaluate the models, we used data collected with the macarthur-bates communicative development inventory forms (cdi). these are forms, given to parents of young children, that contain checklists of common early acquired words. parents complete the forms according to whether their child understands or produces each of those words. these forms are collected at different ages, and thus can be used to estimate the age of acquisition (aoa) of words. we used all the variants of english 'words & sentences' cdis from the wordbank database @xcite , with the exception of those involving twins (as significant differences have been observed in the language development of twins and singletons, @xcite . we estimated the aoa of a word by considering that a word is acquired at the age at which at least 50% of the children in the sample produced a given word. we propose a variant evaluation method that takes token co-occurrences into account. because of the binarization of the co-occurrence matrix, the cd index is an indicator of type co-occurrences, and is therefore agnostic to co-occurrence frequency. the models we work with, on the contrary, are sensitive to co-occurrence frequencies, providing a more fine-grained characterization of the semantic space. our method works as follows. first, we derived the semantic networks based on the cosine distance between representations. this required us to set a minimum cosine similarity threshold θ to determine if two words are connected, which we treat as a hyperparameter (with values [.6, .7, .8, .9]). second, given this network, we counted the number of neighbours of each word as the number of other words connected to it. we refer to this index as neighbourhood density (nd). third, we computed the pearson's r correlation between this index and the aoa norms. figure 1 shows the distribution of the computed metric. note that these correlations cannot be expected to be of the same order as those found when evaluating against adult ratings, since age of acquisition is predicted by a variety of factors, of which distributional information is only one, and it is subject to greater individual differences than adult semantic knowledge. therefore, moderate but significant correlations are generally considered meaningful. as a reference, the cd index, has a correlation of @xmath0.32 in our dataset foot_2 . as can be seen, the sgns model is more likely to provide a semantic space that correlates with aoa, and some configurations yield an effect size comparable (even larger) than the cd metric. this indicates that the sgns model builds word representations in a way that reflects the relative difficulty of each word, and thus offers a good starting point for understanding how children use distributional context for vocabulary acquisition. the fact that the correlation is positive prompts the prediction that, when co-occurrence frequency is incorporated in the model, words inhabiting less dense neighbourhoods are acquired earlier. this finding suggests that semantic neighbours may act as competitors in the process of word learning. among the hyperparameters of these models, one that is particularly relevant to language acquisition is the window size, as this reveals the amount of context that children most likely attend to in the analyzed ages. to investigate this, we took the best model of our previous analyses (sgns with window size 1, negative sampling 15, frequency threshold 10), and varied only the window size. results are in figure 2 . as can be seen, smaller window sizes have better correlation with the data, indicating that the exploited context at this age is very local. such a result makes intuitive sense in the context of children's immature verbal memory spans, which only improve as they acquire more language. figure 2: pearson's r correlation depending on window size, for the best-performing sgns model. ## method 2: word associates our first evaluation method above focused on the structure of the semantic spaces provided by the learnt word embeddings. now we turn our attention to the specific lexical items and their position in the semantic space. children tend to under-and overextend word meaning in the first stages of acquisition, and over time they become more precise on capturing the semantics of words. a logical assumption then, is that words learnt earlier also converge earlier to adult-like semantic representations (assuming that early and late words take, on average, approximately the same amount of time to converge). we incorporated this idea in our second method by relating the aoa of words with adult free word association norms. note that this method can be applied to other semantic tasks, but we focus on word association because it does not impose the specific type of semantic relation that words need to have (i.e. there is no distinction between similarity, analogy or others). the dataset of free word association that we used is known as small world of worlds (swow, de deyne et al., 2019), and it is the largest dataset of word associations in english, containing responses to over 12,000 cue words. we filtered the preprocessed version of the dataset to include only words that have been acquired before 60 months old. this results in 613 cue words, and 1839 responses (word associates) to these cues. we then performed a similar cue-response experiment, with the best model from the previous section: for each cue, we retrieved the closest n neighbours. as in @xcite , we used @xmath1, and then computed how many of these neighbours overlap with the word associates (responses) provided by human adults. however, unlike that work, our evaluation is not based directly on the number of overlaps. instead, we computed the spearman rank correlation between the number of overlaps and the aoa norms, in order to quantify whether word embeddings corresponding to words learned earlier by children are also those that are converging faster to adult semantic knowledge. figure 3 shows the result of this procedure. as can be seen, there is a statistically significant rank correlation (ρ = -0.378, @xmath2.001). the negative direction confirms that words acquired earlier have a network of word associates that is more similar to those of adults, suggesting that convergence to adult semantic knowledge is at a more advanced state. one limitation of this procedure is that it requires a choice on the number of neighbours to be retrieved. in order to see how much the metric is affected by this parameter, we report the rank correlations of the previous model for several values of n. as can be seen in figure 4 , this number stabilizes after @xmath3. the figure also shows whether this metric favours a model that did not perform well in our previous evaluation metric (svd with window size 4, shift 15, frequency threshold 10). the graph shows that this model is consistently worse on our second evaluation method as well. ## conclusion we proposed two methods to evaluate word embeddings for language acquisition. the main feature of these methods is the use of aoa norms for assessing whether the semantic organization of the word embeddings support the developmental trajectory of word learning. the use of these metrics already prompted the discovery that (1) words with fewer neighbours are easier to acquire, suggesting competition of neighbouring words, and (2) at young age, infants only attend to very local context. the application of these methods to distributional models that incorporate additional assumptions (e.g. knowledge of word order) holds promise for further understanding of the role of distributional information in word learning.