---
title: "Evaluating the Consistency of Word Embeddings from Small Data"
description: "How word embeddings from small philosophical corpora can be tested for consistency, and what agreement across samples says about their quality."
canonical: "https://research.elamur.ai/free/en/papers/bloem-2019-evaluating-consistency-word-embeddings-small/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bloem-2019-evaluating-consistency-word-embeddings-small/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Evaluating the Consistency of Word Embeddings from Small Data

# Evaluating the Consistency of Word Embeddings from Small Data

Paper · 2019 · Jelke Bloem, Antske Fokkens and Aurélie Herbelot

**Authors:** [Jelke Bloem](https://md.research.elamur.ai/free/en/authors/jelke-bloem/), [Antske Fokkens](https://md.research.elamur.ai/free/en/authors/antske-fokkens/) and [Aurélie Herbelot](https://md.research.elamur.ai/free/en/authors/aurelie-herbelot/) · **Year:** 2019 · **Venue:** Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Cited by **10** papers in our library of more than 163,000 papers whose bibliographies we read · Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/R19-1016/)
- [PDF](https://aclanthology.org/R19-1016.pdf)
- [DOI 10.26615/978-954-452-056-4_016](https://doi.org/10.26615/978-954-452-056-4_016)

## Summary

A philosopher can use an ordinary word in a technical sense, and the passages that show how it is used may fit within a single book. A researcher building [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), which represent words as numerical vectors, has to learn from those passages and then judge whether the resulting representations are any good. General-purpose tests are of limited help when the meaning of interest is specific to a writer or work. Bloem and colleagues study whether an embedding can be recovered consistently from separate passages and what that agreement can tell us when judgments from domain experts are unavailable.

The authors distinguish consistency in the text from consistency in the learned representations. To assess the text, they represent each occurrence of a term through the words around it, using vectors learned beforehand from Wikipedia. They add those context vectors separately for each sample and compare the sums. The comparison shows how much agreement is already visible in the contexts available to a learning procedure. To assess the learned representations, they train separately on those samples and compare the resulting vectors. In both cases, the authors ask how closely the vectors point in the same direction and, where reported, how well they identify each other among the other words in the background vocabulary.

The study uses works by Willard Van Orman Quine, with particular attention to *A System of Logistic* and *Word & Object*. The authors compare samples drawn from across each book with samples taken from its successive halves. The simple context sums agree strongly. On the test terms from the halves of *Word & Object*, they have a mean cosine similarity of 0.938. Nonce2Vec, which starts from the sums and updates the target vectors, reaches 0.686 on the same comparison, with a mean nearest-neighbor rank of 1.21. A count-based approach produces lower agreement than Nonce2Vec on the randomly sampled datasets. Random Wikipedia samples also yield weaker agreement than the pooled Quine samples, even though more of the Wikipedia terms have enough occurrences to fill every sample.

Agreement depends on how much text goes into each vector, how the passages are selected, and how frequent the terms are in the specialized and general collections. It also leaves a question about meaning unresolved. The embeddings of *talking* from the halves of *Word & Object* identify each other as their closest neighbors, yet the nearby background words offer little apparent insight into the term. Vectors for *verbs* do the same and sit among recognizable linguistic terms. The paper thus establishes a way to measure whether a representation recurs and shows why judging what it represents takes additional evidence.

## Deep dive: Evaluating the Consistency of Word Embeddings from Small Data

How word embeddings from small philosophical corpora can be tested for consistency, and what agreement across samples says about their quality. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### When a familiar word is a technical term

The paper takes a problem from the study of philosophical writing. Suppose a researcher wants a computational representation of a particular term as Quine uses it. A large general text collection may contain the same spelling many times, but its passages may use the word differently. The paper illustrates this with *proposition*. In ordinary settings, the word can mean an offer or proposal. In philosophy, it can refer to something that can be true or false. A vector learned primarily from ordinary usage may therefore be informative about the familiar word while giving an incomplete account of the term that matters to the researcher.

[Distributional semantics](https://md.research.elamur.ai/free/en/concepts/distributional-semantics/) represents aspects of meaning through patterns in the contexts where words appear. Under this approach, the passages around a term provide evidence about how the writer uses it. Philosophical prose offers a reason to expect useful evidence even in a small collection. Writers may discuss their terminology explicitly, and a term may appear repeatedly in the course of a sustained argument. At the same time, a later book by the same writer may use the term differently. Taking a single book seriously as the unit of study consequently makes the evidence scarce for a substantive reason. Pooling more texts would change the question from how the word is used in that book to how it is used across the larger collection. The authors situate this approach in earlier work on meaning representations derived from word distributions. [From Frequency to Meaning](https://md.research.elamur.ai/free/en/papers/turney-2010-frequency-meaning-vector-space-models/)

The paper distinguishes *tiny data* from the kind of *small data* it studies. The tiny-data setting described in earlier work gives a learning procedure a single, unusually informative sentence that defines a word. Quine’s terms can appear in several sentences, some of which simply use the term in an argument. The extra sentences offer more evidence, but their value varies with what they say. A procedure that makes a large update as soon as it encounters a definition may behave differently when the evidence arrives over a series of ordinary uses. Nonce2Vec had been developed for the tiny-data setting, and the authors wanted to see how well such an approach would adapt.

Earlier work also gave the authors reasons to compare different ways of constructing a vector. They describe rare-word learning as a longstanding difficulty and cite work on using [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) to improve representations. They also report earlier comparisons in which Word2Vec performed less well with small collections and a method based on singular value decomposition surpassed it on a 1 million word dataset. Those findings motivate a count-based comparison in this study. The earlier predictive approach underlying Nonce2Vec is Word2Vec’s skip-gram, which learns from the relationship between a word and the words nearby. [Better Word Representations with Recursive Neural Networks for Morphology](https://md.research.elamur.ai/free/en/papers/luong-2013-better-word-representations-recursive-neural/) · [Efficient Estimation of Word Representations](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/)

#### Why the usual tests are hard to apply

A standard test of [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/) asks whether a system agrees with human judgments about word pairs. SimLex-999 is the paper’s example. To answer the question about Quine, such a resource would need to contain the words of interest and judge them in the relevant philosophical senses. Having the right spelling in the benchmark solves only the first problem. A rating based on general usage may favor a representation precisely for retaining features that a specialist would want to distinguish from Quine’s usage. Building a benchmark for the book would mean asking experts to judge suitably chosen pairs under clearly specified instructions. [SimLex-999](https://md.research.elamur.ai/free/en/papers/hill-2015-simlex-999-evaluating-semantic-models/)

Other evaluation methods move the work around. Analogy questions need examples of relationships that matter in the domain. Coherence measures rely on expectations about which words should be close. Asking people to judge an embedding’s output directly lets researchers focus on the target terms, but it still requires the right judges and instructions that elicit the intended relationship. A specialist may see a strong association between words that occur in the same argument while judging their meanings to be quite different. An evaluation based on human responses has to specify which judgment it seeks. [Distributed Representations of Words and Phrases](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/) · [Evaluation Methods for Unsupervised Word Embeddings](https://md.research.elamur.ai/free/en/papers/schnabel-2015-evaluation-methods-unsupervised-word-embeddings/)

The paper discusses evaluating embeddings through a downstream task, such as retrieval, as another option. That requires a task whose performance can be measured. It answers a question about the use of the embeddings in that setting, whereas the authors want to inspect the representations directly. They also consider QVEC, which aligns dimensions of a vector space with linguistic features. The unit of evaluation differs from the task here. The authors want to assess selected term vectors against a background that is already in place. QVEC also depends on language-specific resources. A glossary-based evaluation of specialized embeddings described in earlier work offers another route, using queries built from recorded synonyms, antonyms and alternative forms. The authors point out that comparably structured glossaries are generally scarce for individual philosophers. [Evaluation by Subspace Alignment](https://md.research.elamur.ai/free/en/papers/tsvetkov-2015-evaluation-word-vector-representations-subspace/)

One precedent comes especially close to their question. In earlier research on historical [English](https://md.research.elamur.ai/free/en/topics/english/) and German, Hellrich and Hahn repeatedly trained Word2Vec with the same settings and compared the sets of nearby words. They used a modified Jaccard coefficient, a measure based on overlap between sets, to assess the reliability of the results. That design addresses variation across runs of the same training procedure. Bloem and colleagues make the choice of passages central to the experiment. They ask what happens when the same procedure receives different passages that should provide evidence about the same term. A study of repeated runs holds the textual evidence fixed. A study across passages makes differences in that evidence part of what must be explained.

#### What the consistency test assumes

Consistency starts with an expectation about the input. A term used in comparable ways in different passages should yield comparable representations when each passage is handled independently. The expectation can be stronger for dispersed samples from a single technical book than for successive parts of a work in which an argument develops. The paper turns that distinction into two ways of choosing text, one that distributes passages randomly and one that preserves their order.

The design makes room for a result that is easy to miss in an ordinary benchmark. If two sets of passages offer different information about a term, independent representations may reasonably differ. A score for agreement between learned vectors therefore needs some account of what agreement the text itself supports. The authors use the same general-language vocabulary to construct a simple summary of each set of contexts. That summary gives them a reference point for judging how much stability a more involved training procedure recovers.

### The method, step by step

#### Choose the terms and the passages

The authors start with a collection of 228 works by Quine, comprising books, articles and bundles, with 1.7 million tokens in all. They focus on *A System of Logistic*, which the paper describes as formal and formula-heavy, and *Word & Object*, which develops its arguments mostly in prose. Domain experts advised that Quine’s outlook was unusually stable and judged *Word & Object* conceptually consistent. These judgments motivated the corpus choice. Agreement between the passages was then measured in the experiments.

The authors used NLTK to find sentence boundaries and perform [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), which divides the text into units the procedure can count and process. They manually replaced formulas with special tokens in *A System of Logistic*, which contains 80,279 tokens after formula replacement and tokenization. *Word & Object* contains 133,240 tokens after tokenization. The authors also removed one-character tokens. A logic text contains individual letters that serve as variables and symbols that have unusual distributions in ordinary writing. Leaving these in could give the context representations a strong cue about formal notation and affect where the target vectors landed in the background space.

The books’ indexes supply the target terms, including terms of more than one word. The index is an existing selection of words and phrases that matter to the book. It also gives each book its own vocabulary for the experiment. The authors assign the index terms to training and test subsets in a 70%/30% split. They report 157 / 67 for *A System of Logistic* and 184 / 79 for *Word & Object*. Those figures describe the division of target lists. Passage selection then imposes its own frequency requirements. Keeping the term split distinct from the passage split matters because the former is used to tune and assess the procedure, while the latter supplies separate evidence from which to construct a vector for the same target.

Under random sampling, a term has to meet a frequency cutoff of 10. The researchers draw five non-overlapping samples of sentences containing it. A sample contains up to 10 sentences. When fewer than 50 sentences contain the term, each sample gets as close as possible to an equal share of the available sentences. The cuts are made for each term, so a sample represents a set of contexts for that term. The resulting book-level collections are Quine-WordObject-rnd and Quine-Logistic-rnd. The authors also sample from the full Quine collection to create Quine-all-rnd, using the *Word & Object* target list because they regard the book as covering a broad range of Quine’s work.

Under the equal split, they divide each book at a chapter boundary near its middle and keep the first and second portions in their original order. For an index term to qualify, it must meet the cutoff of 2 in each half. The authors use all the sentences containing the qualifying term within each half. These are the Quine-WordObject and Quine-Logistic datasets. A vector from an early half and a vector from a late half can reflect different stages of an argument. The random split instead gives each sample a chance to contain passages from different points in the book. Comparing the conditions changes both the ordering of the evidence and the way the amount of evidence is chosen.

For the general-domain comparison, the paper uses a preprocessed Wikipedia sample of 140M words. Its target list consists of 300 randomly selected Wikipedia page titles, each a single word. The authors apply the same random sentence-sampling procedure to these targets and call the result Wiki-rnd. Wikipedia also supplies the general-language background used elsewhere in the study, but the 140M word collection and the collection used to train the pretrained vectors have distinct roles. The latter is a Wikipedia snapshot of 1.6B words. The paper reports that copyright prevents the authors from distributing the Quine datasets and that they make replication instructions, term lists and code available.

From passages to consistency scores The steps in order.

#### Represent the evidence in each sample

To estimate data consistency, the authors make a vector for the context of a term in each sample. The general-language background consists of 259,376 word vectors, each with 100 dimensions. It was trained on the larger Wikipedia snapshot using Gensim’s Word2Vec implementation with its default settings. The coordinates of these vectors stay fixed across the additive comparisons. Consequently, vectors from separate passages can be compared directly in the same coordinate system.

The authors collect neighboring words within a window of size 15 around the target. The window stays inside the sentence. Context words then undergo sub-sampling, which randomly drops more of the high-frequency words. Words retained from the context contribute their pretrained vectors to a sum. If neighboring words recur in the passages and survive sub-sampling, their vectors can contribute repeatedly. A target that appears as a multiword term in the index is treated as the term whose surrounding words supply the evidence.

```
s(t, S) = ∑ [v(w) for w in C(t, S)]
```

Here, `t` is the target term and `S` is the sample of sentences or the book half. `C(t, S)` denotes the retained context-word occurrences for that term and sample, and `w` denotes one of those occurrences. `v(w)` is the fixed background vector for the word at that occurrence. The summation sign `∑` means to add the vectors coordinate by coordinate, and `s(t, S)` is the resulting context sum.

Consider the role of this construction for a term such as *proposition*. The background vector for *proposition* may chiefly reflect general usage. The additive representation instead gets its evidence from the surrounding words in the chosen philosophical passages. Where the early and late passages surround the term with similar kinds of words, the sums can point in similar directions. They can also agree when the particular words differ but have similar background vectors. The construction thus compares contexts as represented in the background space. That dependence is useful because it brings general-language information to a small specialized collection, and it places a condition on the interpretation of the score.

The additive result has a dual role. It is a measurement of the available context evidence, and it is itself a usable vector representation whose consistency can be compared with the outputs of other procedures. It also becomes the starting vector for Nonce2Vec. These roles explain why the additive comparison matters even when the ultimate aim is to evaluate a learned vector. If the summed evidence already provides a stable representation, any subsequent change can be assessed against that starting point.

#### Learn from the samples in two ways

Nonce2Vec adapts skip-gram to learning about a target from very few examples. The paper describes its inspiration as fast mapping, the ability of a person to acquire information about a new word from sparse exposure by drawing on existing knowledge. The existing knowledge in this setup is the pretrained Wikipedia space. Each target starts at the sum for its own sample. The procedure then processes the sentences for that sample and updates the target vector while keeping the other parameters fixed. A target vector learned from another sample starts with the sum for that other sample and is updated separately.

The procedure initially learns quickly, then changes its settings as evidence accumulates. Its learning rate governs the size of the updates. The rate and the size of the context window decay as the target is encountered, and the sub-sampling rate changes after each sentence. The authors keep the shared background fixed so that a change in the angle or position of a target vector can be interpreted in the same coordinate system used for its counterpart. They adapt the implementation to accept multiple sets of sentences for each target and to calculate consistency across the resulting vectors.

Negative sampling is one of the settings they tune. In the skip-gram procedure, negative samples supply comparison words during training. Increasing or decreasing their number changes the training update alongside the learning rate and the decay settings. The authors tune on the training terms drawn from the full Quine data. The test terms are then used to assess whether the chosen configuration can recover consistent vectors from independent sets of passages. This is important because agreement on the same terms used to select the settings would give a less informative account of what transfers to other terms.

The count-based approach builds the shared space in a different way. It combines a Quine sample with the 140M word Wikipedia collection and counts occurrences of words near one another. Spike-like differences in raw frequency can make counts hard to compare, so the approach uses positive pointwise mutual information, or PPMI, to weight the co-occurrences. PPMI gives weight to associations that occur more frequently than would be expected from the individual frequencies and sets negative associations to zero. Singular value decomposition, or SVD, then represents the resulting matrix in a smaller space. The authors use a window size of 5 and reduce the vectors to 100 dimensions, matching the dimensionality of the pretrained vectors used in the other comparisons. The implementation is Hyperwords, with the remaining hyper-parameters at their defaults. [Improving Distributional Similarity](https://md.research.elamur.ai/free/en/papers/levy-2015-improving-distributional-similarity-lessons-learned/)

Marking target occurrences is essential to this design. If all occurrences of the same spelling shared an identifier, the count procedure could pool the evidence from Wikipedia and the various Quine samples into a single vector. There would then be only one vector to inspect. The authors give the target term a different identifier in each sample, while the surrounding vocabulary supplies the common coordinates. This produces separate vectors within the same factorized space. The comparison can then ask whether separately marked targets end up near one another even though their co-occurrence counts came from different passages.

#### Compare directions and neighbors

Cosine similarity measures the alignment of two vectors. The paper uses it to compare the context sums and to compare vectors produced by training. It distinguishes a shared direction from the raw magnitude of a sum. Adding more context words can still change the direction, by providing more evidence for some components or by canceling contributions that vary across passages.

```
cos(a₁, a₂) = (a₁ · a₂) / (‖a₁‖ × ‖a₂‖)
```

Here, `a₁` and `a₂` are the two non-zero vectors being compared, and `cos(a₁, a₂)` is their cosine similarity. The dot `·` denotes the dot product, the sum of products of corresponding coordinates. The double bars in `‖a₁‖` and `‖a₂‖` denote vector lengths. The multiplication sign `×` joins those lengths, and the slash `/` denotes division by their product. Dividing by the lengths gives a comparison based on direction.

Nearest-neighbor rank asks where the counterpart lands in an actual search of the space. Starting from `a₁`, the authors order the background vectors and `a₂` by cosine similarity to the query. The position of `a₂` in that order gives its rank. A smaller numerical rank is better. A rank of 1 means the matching vector is first in the ordering. The background vocabulary gives the comparison its difficulty. If other representations come very close to `a₁`, the counterpart may need a particularly high cosine similarity to finish first.

A cosine score describes the pair on its own. Rank tells how that pair fares among competitors. The paper illustrates the distinction with a cosine of 0.8. The same value can place a counterpart first in one neighborhood and farther down the list in another. A counterpart can also rank first at a relatively modest cosine if the other vectors are farther away. Reporting both scores helps the reader see whether the pair agrees in direction and whether the agreement makes the matching vector easy to recover from the surrounding vocabulary.

For each randomly sampled term, the procedure makes a vector from each of its five samples and compares every distinct pair of vectors. In the book-half condition, there is a single pair per qualifying term. The paper summarizes the comparisons over the target terms in each collection. A separate analysis groups targets by relative frequency so the authors can compare their behavior across corpora of very different sizes.

```
RF = F / C
```

`RF` denotes relative frequency, `F` is the frequency of the term, and `C` is the size of the corpus in which it is counted. The slash `/` denotes division. The authors use corpus-specific thresholds on this quantity to define high- and low-frequency groups for their cross-domain comparison.

### Experiments and results

#### The context sums give the reference scores

The experiments first ask whether the additive procedure finds comparable contexts and then whether the training approaches recover equally stable representations. The additive method is the reference for both questions. The comparison uses average cosine similarity and, where reported, average nearest-neighbor rank. Because the target inventory, eligibility rule and passage-selection procedure determine which vectors enter each average, a score belongs to its particular dataset and sampling condition.

The paper reports that on the training data, the vectors added up from the halves of a book typically give each other first place in the nearest-neighbor search. The test terms exhibit the same broad pattern. Among the reported test results, Quine-all-rnd has the highest average cosine for the additive method. The comparison also shows that changing from random samples to book halves has different effects in the two books.

Additive context cosine similarity on Quine and Wikipedia test data Samples from the full Quine corpus give the strongest agreement, and the book split changes the scores in different directions for the two books.

**The numbers**

| System or setting | cosine similarity |
| --- | --- |
| Word & Object book halves | 0.938 |
| A System of Logistic book halves | 0.907 |
| Word & Object random samples | 0.919 |
| A System of Logistic random samples | 0.935 |
| Full Quine corpus random samples (this paper) | 0.953 |
| Wikipedia random samples | 0.927 |

The contrast within *A System of Logistic* is relevant to the study’s interest in development across a book. Its halves show less agreement than dispersed samples, which is compatible with a difference between early and late uses. In *Word & Object*, the ordering is reversed. Taking all the eligible passages in each half can yield more evidence per vector than drawing small random samples. The scores therefore show why the two conditions serve different purposes. A book-half score measures repeatability across the text in its original order, with the amount of evidence that order supplies.

Nearest-neighbor rank brings out distinctions that are less obvious from the cosine scores. The additive vectors for Quine-Logistic have a reported mean rank of 22.4 on the test terms. The corresponding rank for Quine-WordObject is 1. A high average cosine can coexist with a difficult neighbor search if other words in the space are aligned with the query as well. In the other direction, the random Wikipedia vectors have a mean counterpart rank of 1.001, despite a lower cosine than the pooled Quine samples. The additive representation can therefore place the matching vector first or very near first even when the strength of agreement differs by corpus.

The pooled Quine result also has to be read in light of sample coverage. In Quine-all-rnd, 68.6% of terms reach the maximum sample size. In Quine-WordObject-rnd, 32.1% do. The full collection gives the target list drawn from *Word & Object* more opportunities to supply complete samples. The authors also report that 90.9% of terms in Wiki-rnd reach the maximum size. The Wikipedia contexts agree less by cosine than the pooled Quine contexts despite this greater coverage. That comparison is compatible with the authors’ account of Wikipedia as a more varied source. Sentence availability alone cannot account for the ordering of those two datasets.

#### Nonce2Vec recovers many counterparts

The initial experiments with default Nonce2Vec settings yield low consistency. The method was designed for learning from a single sentence per target. The authors suggest that in their setting, with multiple sentences, the default updates may be too large and the decay may happen too quickly. They tune the settings with the training terms on the full Quine dataset, then report the results from the tuned procedure on the test data.

The chosen configuration uses a learning rate of 0. The settings are 1, five negative samples, 30 for learning-rate decay, and 2 for the sub-sampling decay factor.5. On the test terms for the halves of *Word & Object*, the tuned procedure yields an average cosine of 0.686. The corresponding score on the halves of *A System of Logistic* is 0.748. The cosine ordering of the two books reverses relative to their additive sums. That makes the case that a corpus score from the additive method and a score from training answer different questions. The available contexts may be highly similar when summarized one way, while the effects of training depend on how the procedure processes those contexts.

Nonce2Vec counterpart rank on Quine and Wikipedia test data Quine counterparts are generally near the top of the background search, with the strongest result on random passages from the logic book.

**The numbers**

| System or setting | mean nearest-neighbor rank |
| --- | --- |
| Word & Object book halves | 1.21 |
| A System of Logistic book halves | 1.48 |
| Word & Object random samples | 2.11 |
| A System of Logistic random samples (this paper) | 1 |
| Full Quine corpus random samples | 1.59 |
| Wikipedia random samples | 507.8 |

The book-half ranks explain why the authors regard the trained Quine vectors as fairly consistent even with lower cosines than the sums. The counterparts typically remain close to the top of the vocabulary search. On the random datasets, the test-set cosines are 0.695 for Quine-WordObject-rnd, 0.743 for Quine-Logistic-rnd and 0.717 for Quine-all-rnd. Across these datasets the cosine scores remain below the corresponding additive scores. Strong identification of the counterpart thus survives some of the directional change introduced by training.

Wiki-rnd reaches 0.589 cosine with Nonce2Vec, the lowest score in the reported comparison, and its reported mean rank is much poorer than any of the Quine results. This is striking because the fixed background for Nonce2Vec comes from Wikipedia. Matching the source of the contexts to the source of the background does not guarantee that independently chosen contexts for a title word will produce similar vectors. The random sample of a term can still reflect varied uses, and the resulting vectors also have to compete with other words in the background to achieve a strong rank. The paper treats the generality of Wikipedia as an important part of that result.

#### The count-based comparison has lower agreement

The count-based method is evaluated on the random samples. Its test-set mean cosine is 0.352 on Quine-WordObject-rnd, 0.436 on Quine-Logistic-rnd, 0.440 on Quine-all-rnd and 0.321 on Wiki-rnd. These are comparisons of the different sample-specific identifiers for the same target within the shared count-based space. Each score is below the corresponding Nonce2Vec cosine on the same dataset. The result holds for the pooled Quine collection as well as for the individual books and the general-domain sample.

The comparison is especially informative in light of the high additive scores. The contexts contain recurring distributional evidence under the fixed-background summary, yet the separate target identifiers in the count-based method land farther apart. These identifiers have relatively few occurrence contexts of their own within the combined collection. Some of the authors’ follow-up analyses ask whether that difficulty comes from the gap between specialized and general usage. The count comparison establishes the performance of this particular configuration with respect to cosine consistency. The paper reports the ranking results for the additive and Nonce2Vec experiments and the cosine results for the count-based comparison.

#### Two neighborhoods show what the scores leave open

The authors inspect examples from the Nonce2Vec comparison of the two halves of *Word & Object*. The vectors for *talking* are each other’s closest neighbors and have a cosine similarity of 0.751. Their surrounding background vocabulary includes words such as *wrongfulness*, *axiomatically*, *particularized* and *impredicative*. The connection of these words to *talking* is difficult to explain from the neighborhood. In the paper’s judgment, the strong agreement between the two vectors gives an unconvincing representation in this case.

The vectors for *verbs* also retrieve each other first. Their cosine is 0.625, lower than the cosine for *talking*, but their neighborhoods include *deverbal*, *adpositions*, *resumptive* and *adverbials*. The authors find these recognizably relevant because they belong to the vocabulary of linguistic description. The two examples give the rank metric a concrete interpretation. Both pairs are easy to match, and the higher cosine belongs to the pair whose neighbors are harder to reconcile with the term. Qualitative inspection therefore answers a question left open by both quantitative measures.

### What the ablations show

The paper offers a sample-size intervention and several controlled comparisons in place of a component-by-component ablation. The sample-size intervention asks how the additive score changes as more sentence contexts contribute to each vector. The other analyses vary the choice of passages, tune the way Nonce2Vec learns from them, and examine where the outputs land relative to general-domain representations. Those comparisons narrow some explanations while leaving other factors coupled.

#### Sentence count can change the answer

For *analytical hypotheses* in *Word & Object*, the authors recalculate the additive vectors using different numbers of sentences per sample. The same target and additive procedure are used throughout the comparison. Changing how much context contributes to the sums lets them examine the effect of evidence quantity without comparing different target lists.

Additive cosine for analytical hypotheses in Word & Object by sample size The two context sums agree more closely as each incorporates more sentences.

**The numbers**

| System or setting | cosine similarity |
| --- | --- |
| 1 sentence per sample | 0.794 |
| 2 sentences per sample | 0.837 |
| 3 sentences per sample | 0.905 |
| 4 sentences per sample | 0.923 |
| 8 sentences per sample | 0.956 |
| All available sentences (this paper) | 0.987 |

The rise shows that consistency can change even when the target stays the same. A larger sample can supply a better picture of recurring usage, because the influence of the expressions in any individual sentence is combined with evidence from other sentences. The paper also considers a property of vector addition itself. Earlier work had noted that sums can become close to each other. As more context vectors are added, the shared directions in those sums may become more prominent. Both processes can produce greater agreement, so the authors argue that data consistency is most informative when compared at a specified data size.

The dataset comparisons add another constraint. More Quine targets supply full samples when the researchers draw from the pooled corpus, which gives an evidence-quantity explanation for some of its advantage over *Word & Object* alone. Wikipedia has more targets at full sample size than either of those collections, yet scores lower by cosine than pooled Quine. The combined evidence suggests that sample size matters and that the content and distribution of those sentences matter too. A sentence cap makes the comparison more interpretable while leaving variation in sentence length and the number of words retained after sub-sampling.

#### Tuning changes how training uses the evidence

The Nonce2Vec grid search covers learning rates of 0.1, 0.5, 1 and 1.5, and negative-sample counts of 1, 3 and 5. It tests subsampling-rate settings of 100, 3000, 5000, 10,000 and 20,000, alongside learning-rate decay settings of 30, 70, 100 and 180. The settings considered for sub-sampling decay are 1.0, 1.3, 1.9 and 2.5. The window decay settings are 1, 3 and 5, with a window size of 15 in the search. The authors report the strongest combination for the parameters highlighted in the results rather than a breakdown of the contribution of each setting.

The outcome shows that the default procedure for a single exposure is a poor fit for these repeated exposures and that a tuned version can give much better counterpart recovery. The selected initial learning rate, 0.1, is the lowest of the values searched, which fits the authors’ explanation that overly aggressive early updates can hurt stability. A grid search selects settings jointly. It therefore supports the suitability of the selected configuration for these data while leaving the size of the learning rate’s individual effect unresolved. The same holds for the amount of negative sampling and the changes to sub-sampling as a term is encountered.

There is a separate comparison between the additive starting point and the vectors after training. The direction of the summed vectors agrees more strongly across samples, while the training procedure often preserves a good rank for the counterpart. This suggests that the updates can change the geometry of the pair without eliminating the term’s identity in the neighbor search. In an evaluation centered on consistency, the distinction matters. A trained vector can be quite easy to identify and still give up some of the agreement present in the original context sum.

#### Frequency conditions the distance between domains

To examine the gap between Quine and Wikipedia, the authors select 35 target terms and take all the Quine sentences containing them. They combine those sentences with the 140M word Wikipedia collection and build a count-based space with separate identifiers for the Quine term and its Wikipedia counterpart. For each spelling, they then compare the two domain-specific vectors. This is a different comparison from consistency across independent samples of Quine. It measures the separation between two uses of a term drawn from different domains.

The groups use relative frequency in the Quine book for which a term was selected and relative frequency in Wikipedia. For Quine, the low group is below 0.0005 and the high group is above 0.001. For Wikipedia, the low group is below 0.000025 and the high group is above 0.00005. The paper uses different thresholds because the collections differ in size. The thresholds classify the terms for this analysis and let the authors see whether words common in one domain have similar vectors in the other.

The largest mean cross-domain cosine, 0.735, belongs to terms that are frequent in Quine and infrequent in Wikipedia. Terms infrequent in both have a mean of 0.417. Terms infrequent in Quine and frequent in Wikipedia have a mean of 0.109. Terms frequent in both have a mean of 0.078. The paper also reports mean cross-domain cosines of 0.323 for the group selected from *A System of Logistic* and 0.366 for the group selected from *Word & Object*. These figures describe the relationship between Quine and Wikipedia vectors in the joint count-based space. They have a different interpretation from the cosines between separate samples within a dataset.

The authors mention *stimulus* as a case where a word with a dominant philosophical sense can have relatively similar representations across domains even though it is sparse in both. The broader comparison suggests that a term’s familiarity in Wikipedia can be a poor guide to whether its Wikipedia representation helps with the philosophical sense. A frequent ordinary word can accrue evidence about uses different from those in the specialized corpus. A word concentrated in philosophical contexts may furnish more comparable evidence across domains even when its general-domain occurrences are sparse. The grouping shows an association between frequency and similarity. Interpreting the role of sense requires examining the terms within those groups.

#### The learned vectors move away from the pretrained counterparts

A complementary analysis compares Nonce2Vec’s outputs with the pretrained Word2Vec vector for the same term. The authors are checking whether good consistency comes from staying near an already available general-language representation. This comparison uses the pretrained vector of the term itself as the counterpart, whereas the main consistency test asks whether the representation from another sample can be recovered.

For Quine-WordObject-rnd, the comparison to the pretrained counterpart gives a mean cosine of 0.352 and a mean rank of 22,947. For Quine-Logistic-rnd, those measures are 0.353 and 24,513. For Quine-all-rnd, they are 0.382 and 17,262. For Wiki-rnd, they are 0.475 and 2,902. The learned Wikipedia vectors stay closer to their pretrained counterparts by both measures than the learned Quine vectors do. That is consistent with the background and the sampled contexts drawing on the same domain.

The important comparison for the treatment of Quine is between those ranks and the ranks of the separately learned in-domain counterparts. Two representations of a term can find each other near the head of the neighbor search while the pretrained representation for that term finishes much farther down. The results support the claim that in-domain repeatability is compatible with considerable departure from the ordinary-language vector. The score leaves open whether the departure captures the specialized sense. The neighbors of *talking* and *verbs* illustrate why that question still merits a judgment about the content of the representation.

### Limitations

#### Limits identified by the authors

The authors give consistency a specific role within evaluation. It assesses repeatability under a choice of passages. Accuracy about a philosopher’s use of a term remains a separate property. A pair of vectors can agree because both land in a neighborhood that makes little semantic sense to a reader. Conversely, the comparison involving *verbs* shows how a credible neighborhood can accompany a lower cosine than a less convincing example. The paper’s qualitative inspection illustrates this boundary with selected examples. It gives no estimate of how often a high consistency score is accompanied by a convincing account of the target’s meaning.

The authors also say that they leave data size only partly controlled. Limiting sentence count is straightforward, but equal numbers of sentences can contain different numbers of words. Sub-sampling adds another source of variation in how many context vectors contribute to each sum. A more tightly controlled study could use artificial data to fix those properties. The authors choose to concentrate on the available philosophical corpora and demonstrate the sample-size effect for a single target. The consequence is that differences between corpus averages can reflect variation in both what the passages say and how much usable context each vector receives.

A useful background space is another stated requirement. The method relies on that space to represent the surrounding words and to decide which representations are nearby. A background trained on out-of-domain writing can still support the assessment, as the Quine experiments demonstrate. Its coverage and geometry nevertheless affect what the metric registers. The authors also point to a risk if consistency were used as a training signal with an invariant initialization. A system could be rewarded for staying close to a shared starting representation. They examine the pretrained counterparts in their own experiment to see whether that explanation fits their results.

The additive approach earns the strongest overall consistency scores in these comparisons, but the authors leave its usefulness for downstream work open. A system for philosophical retrieval, for instance, would have to find relevant passages or concepts in a way that can be evaluated for that task. The experiment here evaluates agreement between embeddings. The authors describe structured expert evaluation as a possible next stage, while acknowledging the effort that obtaining such judgments would require. They also identify testing other embedding approaches and domains as future work.

#### Limits that follow from the design

The experiment makes a deliberate choice of material where agreement is plausible. The authors select Quine with advice about the stability of his outlook and use books that specialists regard as appropriate for a consistency test. That decision makes it easier to investigate what an embedding procedure does when the text should give relatively stable evidence. The resulting scope is specialized. In a work that changes how a term is used over time, good representations might preserve the change, and separate embeddings could reasonably diverge. The test depends on deciding which variation the inputs should produce.

The index supplies targets that are salient within each book, and the frequency cutoffs favor terms with sufficient evidence to appear in several samples or both book halves. As a consequence, the findings apply most directly to the qualifying index terms. Rare concepts and material absent from the index may be harder to assess in the same way. There is also a dependency between the selection procedure and the general-language comparison. The Quine lists may contain multiword terms, whereas the Wikipedia list comes from random single-word page titles. The Wiki-rnd scores are a useful comparison across domains under the same sampling procedure. They combine differences in source material with differences in how target words were selected.

Reading the book-half results as evidence of conceptual development requires further controls. Random samples and ordered halves vary in the number of sentences available, and the eligible target sets can also vary with the cutoff rules. The front and back of a book can differ in the topics discussed, the amount of formal notation or the kinds of argument surrounding a term. Any of those changes could shift the context sum. The lower cosine for the halves of *A System of Logistic* makes it reasonable to look for differences across the book. Identifying a change in the term’s meaning would require examining those passages and showing which difference accounts for the score.

The additive procedure gives data consistency an operational meaning. It measures agreement after applying a particular vocabulary, window, sub-sampling procedure and vector sum. If a specialized distinction depends on how words relate to one another in a sentence, summing the context vectors can suppress that distinction. Identical or similar sums can therefore come from passages that differ in ways the authors’ representation does not preserve. The strong scores show that a stable context summary is attainable in this setup. They do not set a general ceiling on the consistency attainable by other representations of the same text.

The comparison between Nonce2Vec and the count-based approach also changes several things together. One starts with pretrained context sums, uses a context window of 15 and updates each target while keeping the background fixed. The other uses a context window of 5, builds its representations from a joint collection and factorizes the weighted counts. They share a dimensionality and a goal, but the difference in their scores cannot be assigned to any single design choice. It establishes how the implemented procedures compare under the reported conditions. A comparison focused on the effect of the learning algorithm itself would require closer alignment of the other choices.

Finally, the averages compress variation across terms. A mean rank can be affected by targets whose counterparts land far down the list, and a mean cosine cannot tell a researcher which terms depart from the general pattern. The neighborhood examples give a reason to inspect individual targets when the intended application centers on a small vocabulary of philosophical concepts. The paper’s experiment supports conclusions about the repeatability of the procedures across sets of terms, with examples of how to interpret particular cases. For an individual concept, the relevant evidence still includes the passages used to build its representation and the words the resulting vector brings into its neighborhood.

### What came after

The paper discusses computational retrieval in the history of philosophy as a possible use of specialized embeddings. It illustrates the value of distributional methods for analyzing philosophical texts by citing work by Ginammi and colleagues that examines the traditional theory of concepts in relation to Bolzano and Kant. It presents that study as motivation for the research setting. The connection concerns the use of representations to investigate philosophical writing, with no documented evaluation there of the consistency procedure introduced by Bloem and colleagues.

The authors’ planned extensions follow directly from the experimental limits. Applying the metric to other embedding procedures would test whether the high agreement of additive sums and the strong counterpart ranks of Nonce2Vec recur under different training choices. Applying it in other domains would test the dependence on a corpus where terminology is expected to be stable. Structured judgments from domain experts would connect repeatability to whether the vectors represent the intended concepts. These are research directions set out in the paper. No subsequent study using the paper’s consistency test is documented.

## Cite

Cite as Jelke Bloem, Antske Fokkens and Aurélie Herbelot. 2019. Evaluating the Consistency of Word Embeddings from Small Data. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.26615/978-954-452-056-4_016](https://doi.org/10.26615/978-954-452-056-4_016)

```bibtex
@inproceedings{bloem2019evaluating,
  title = {{Evaluating the Consistency of Word Embeddings from Small Data}},
  author = {Jelke Bloem, Antske Fokkens and Aurélie Herbelot},
  booktitle = {Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019)},
  year = {2019},
  doi = {10.26615/978-954-452-056-4\_016},
  url = {https://doi.org/10.26615/978-954-452-056-4_016}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
