Wordnet-based Evaluation of Large Distributional Models for Polish
Paper · 2018 · Maciej Piasecki, Gabriela Czachor, Arkadiusz Janz et al.
Summary
Words can appear in similar contexts for several reasons. They may have nearly the same meaning, refer to things in the same field, or describe different parts of a familiar situation. A score derived from text can capture any of these connections. Piasecki and colleagues ask how well such scores recover the specific lexical relations that matter when building a wordnet. Their experiments use Polish word embeddings, which represent vocabulary items as vectors learned from text. The reference is plWordNet, a resource that groups word senses by meaning and records relations among them.
The authors build tests that ask different questions of the same vectors. In the synonymy family, an embedding has to rank one designated answer above a set of alternatives. The answer is normally a synonym, with a broader term allowed in variants that cover senses with no synonym in their group. The hardest variant draws wrong answers from nearer parts of the wordnet, where general relatedness is a weaker clue. The cut-off rendering test starts with a different task. For each question word, it builds a reference neighborhood from wordnet links and checks how many expected words appear among the embedding’s nearest neighbors. The definitions of that neighborhood range from direct relations to wider groups of words connected through broader and narrower meanings.
The synonymy results show how much the choice of wrong answers matters. On the noun tests, the strongest reported basic synonymy accuracy is 92.71%, and the strongest accuracy on the harder test with nearby alternatives is 63.97%. Those results come from different configurations. Skip-gram gives the highest score on the harder test. Continuous bag of words, or CBOW, leads in the reported cut-off comparisons on the large Polish corpus. The comparison with independently published Polish vectors also depends on the test. The large-corpus vectors lead the Wikipedia-trained alternatives on the wordnet tests, while an embedding trained on a restricted version of the National Corpus of Polish comes close to the best result on the separate semantic analogy task.
The study produces large, openly released test sets alongside the Polish embeddings. Its comparisons show why the intended use should govern which score a reader follows. Choosing a designated answer among closely related terms and retrieving a useful range of lexical neighbors favor different configurations. The wordnet supplies a reference for both tasks, and the authors point out that its missing links can count against an otherwise useful suggestion.
Deep dive: Wordnet-based Evaluation of Large Distributional Models for Polish
Piasecki and colleagues use a Polish wordnet to test how well word embeddings distinguish close meanings and recover lexical relations. · about 34 minutes to read
The problem and its context
When words belong together for different reasons
Distributional semantics starts from the observation that the contexts in which words occur provide evidence about their meaning. The paper considers statistical methods that take those patterns in a corpus and produce a measure of semantic relatedness, abbreviated MSR. Given a pair of words, the measure indicates how strongly the two are associated according to the representation. Association has a broad scope in this setting. The words can concern the same topic, belong to the same domain, or participate in a lexical relation that a dictionary or wordnet would record.
The distinction matters because a common context can support several interpretations. The paper’s analogy example connects winter with snow and autumn with rain. Each pair has a clear association, but the words in each pair play different roles. One names a season and the other names weather associated with it. A distributional score can recognize the association without assigning either word the lexical role of the other. The authors want to know how frequently high scores go to pairs that stand in lexical relations, as opposed to the broader range of pairs that a corpus can bring together. This is the aspect of relatedness they investigate as semantic similarity.
The intended use makes the question concrete. A lexicographer working on an entry could use a ranked list of words as suggestions for relations to record. Near the top of the list, a candidate with the same meaning as an existing sense is useful for one purpose. A term that names a broader class is useful for another. A word that simply occurs in the same subject area may offer a clue about the domain, yet the lexicographer still needs evidence for a particular relation. A score trained to predict words in their local contexts can produce all of these candidates. Its training objective leaves open how well the ordering serves each editorial task.
A wordnet represents relations at the level of senses. A word can have more than one meaning, and a group of interchangeable or closely equivalent senses is called a synset. Synsets can be connected by links that express relations between the meanings they represent. A hypernym is a broader term, and a hyponym is a narrower one. plWordNet also records lexical links that can connect particular senses. This structure gives the experiment an independent way to define a desired answer or a set of eligible neighbors. The distributional vectors still come from corpus patterns. The wordnet supplies the judgment against which those patterns are evaluated.
How relatedness had been evaluated
The authors distinguish intrinsic evaluation from extrinsic evaluation. In an intrinsic test, a researcher examines properties of the relatedness measure directly, for example by comparing its scores with human judgments or a reference resource. An extrinsic test uses the measure inside a natural language processing application and observes what happens to the application. The second approach can show whether the measure helps with a particular task. The first is better suited to the authors’ immediate question about which lexical distinctions are reflected in the scores. A downstream result can be difficult to attribute to a particular property when the relatedness measure is one component of a larger system.
The paper describes a practical problem with the established intrinsic benchmarks. Many consist of small collections of word pairs. In the set of 10 datasets discussed by Faruqui and Dyer, only two contain approximately the sizes printed as ≈2000 and ≈3000 pairs. The paper argues that repeated use of small benchmarks makes it hard to reserve distinct examples for development, tuning and final testing. Size also affects the kinds of questions that can be asked. An overall comparison may be feasible on a compact list, while an analysis by word frequency or lexical domain quickly leaves fewer examples for each group.
Human experiments offer other signals. The work discussed by the authors includes a priming study that relates response times to rankings from embeddings. Such a task can help establish how strongly words prompt associations in people. The authors tie their own evaluation to the lexical decisions made during construction of a language resource. They also cite work pointing out that widely used word-pair tests do not consistently distinguish similarity from general relatedness. A resource whose relations have explicit names gives the experimenter a way to define which connections count for a particular test. Problems with evaluation of word embeddings using word similarity tasks
The paper mentions a systematic comparison of distributional representations that relied on crowdsourced judgments. It also describes evaluation work that considered similarity, analogy, sentences and individual words under different preprocessing and classification choices. In the similarity category, that work used familiar English datasets. The authors identify the cost of collecting new judgments as one reason why comparable large evaluations are harder to find for other languages, and they note Portuguese work as an exception. For Polish, plWordNet offered a substantial body of lexical judgments that had already been made. Evaluation methods for unsupervised word embeddings
A wordnet had already been used as the basis for similarity scores. The approach described in the paper computes a numerical score from a wordnet and compares the resulting ranking with the distributional ranking. That comparison depends on how the wordnet score is defined. A measure that uses sense frequencies can behave differently from one based on graph structure alone. Even measures drawn from the same graph can put different weights on its distances and relation types. The authors therefore frame much of their evaluation in terms of answers and neighbor sets. A graph score still serves a particular purpose in the hardest synonymy test. It controls which alternatives are likely to appear, while the selected lexical relation determines the accepted answer. Automatic retrieval and clustering of similar words
The method, step by step
Preparing the reference and the text
The authors need a reference that tells them which lexical connections to test and a corpus from which to learn the vectors. The experimental description identifies the reference as plWordNet 3.1. It contains ≈190,500 distinct words and ≈282,500 senses, organized into more than 217,000 synsets with more than 750,000 relation links. The tests in the study focus on nouns. The authors use the structure and labels of the resource to generate items automatically, so each item inherits lexical judgments already recorded during wordnet construction.
The training material is plWordNet Corpus 10.0, abbreviated plWNC. It contains more than 4 billion words. The sources include the IPI PAN Corpus, the National Corpus of Polish, Polish Wikipedia and electronic editions of the newspaper Rzeczpospolita. Web text supplements these sources. For that material, the constructors admitted text with a low proportion of words unknown to the Morfeusz 2.0 morphological analyzer. They also automatically removed duplicates from the combined corpus. The paper reports that the corpus was used in developing plWordNet as well as in training the new vectors. The two resources play different roles in the experiment, while sharing a connection to the same body of text.
The ordinary preprocessed version is called plWNC-lem. The authors use WCRFT2 to assign morphosyntactic tags and perform lemmatization. A lemma is the form used to group inflected forms under a common vocabulary entry. The items passed to word2vec include a grammatical class alongside the lemma. This lets the training input represent the grammatical identity of a token as well as its normalized form. The distinction is relevant in Polish because the paper identifies rich inflection as a reason to examine how different representations handle word forms.
The second version, plWNC-multi, treats recognized proper names and multiword expressions as units. Liner2 identifies and classifies proper names. For multiword expressions, plWordNet 3.1 supplies nearly 60,000 lexical units with constraints on their word forms and grammatical patterns. The constraints allow the expressions to be located in tagged text. The relevant spans are represented as single tokens in this version of the corpus, so the combined expression can receive a vector of its own. The words inside a recognized span also cease to supply individual training occurrences from that span. That matters when a component contributes a different meaning inside a fixed expression than it does in ordinary use. Constraint-based description of Polish multiword expressions
From Polish text and plWordNet to evaluation scores
The steps in order.
Training the distributional representations
The authors train word2vec embeddings with Gensim. The selected configurations combine vector sizes of 100, 300 and 1000 with Skip-gram, CBOW with negative sampling, and CBOW with hierarchical softmax. In broad terms, Skip-gram uses a word to predict words in its context, and CBOW uses the surrounding context to predict a word. The CBOW variants differ in how they handle prediction over the vocabulary. Negative sampling uses selected alternative words in training, and hierarchical softmax organizes the prediction through a hierarchy. These choices affect how the corpus evidence is turned into a vector. The test definitions are then applied to the resulting representations. Efficient estimation of word representations in vector space
For these word2vec runs, the minimum count for a training token is 8. A token can be a tagged lemma or, where the preprocessing provides one, an item representing a proper name or multiword expression. This training count governs whether an item is available to learn. The authors later impose separate, higher corpus-frequency thresholds for the evaluation vocabulary. Those thresholds allow the same broad evaluation design to be run on different selections of nouns.
The authors also train fastText representations from plWNC. In the approach they describe, the representation draws on character n-grams, which are sequences of characters within a word. This gives forms that share character sequences a way to share information during training. The paper presents this as a reason to investigate fastText for the many inflected forms of Polish. Its fastText runs use Skip-gram and vectors of size 300, with minimum frequencies of 5, 20 and 50. The study examines these choices on the two corpus preparations and also compares with a publicly available fastText embedding learned from Polish Wikipedia. Enriching word vectors with subword information
Building the synonymy questions
In the basic Wordnet-based Synonymy Test, abbreviated WBST, an item looks like a multiple-choice question. The experiment starts with a question word and selects a correct answer whose relevant sense belongs to the same synset. It adds alternatives that are ineligible as synonyms for the item. The alternatives and the location of the answer are selected randomly. Scoring consists of using the distributional measure to rank the offered answers and checking whether the designated answer is selected.
The paper writes the candidate sequence and the question–candidate pair in general terms. An item in the extended test has the same basic structure.
⟨xₗ, Dₗ⟩
The angle brackets enclose a paired item. The subscript l identifies the item, xₗ is its question word, and Dₗ is its candidate sequence.
Dₗ = ⟨d₁, …, dₙ⟩
Dₗ denotes the full sequence for item l. Each d denotes a candidate word, its subscript gives its position, and n is the sequence length. The ellipsis stands for the intervening candidates. The equality defines the sequence associated with the question. The paper uses dᵢ for the designated answer and dⱼ for another candidate, with i and j denoting their respective positions. The method description gives the construction for a general n and does not specify a numerical value for that length.
The basic test can generate a synonym question only where the synset has another word available. This matters in plWordNet because many synsets contain a single word. Their omission would change which parts of the resource the experiment represents. The Hypernymy-expanded Wordnet-based Synonymy Test, or HWBST, admits these singleton synsets by selecting an answer from a broader synset. Hypernyms admitted as answers are kept out of the distractor pool. The variant both increases coverage and broadens what the answer can express. Its score combines questions whose answers are synonyms with questions whose answers name a broader category.
Random distractors make many questions easy when they come from distant parts of the wordnet. The Extended Wordnet-based Synonymy Test, or EWBST, keeps the answer convention of HWBST and changes how the wrong alternatives are drawn. It gives nearby candidates a greater chance of selection. The distributional measure now has to distinguish the designated relation from other plausible associations. This is closer to the challenge of examining a list of candidate relations in a region of the wordnet where many words already have some semantic connection.
Defining which distractors are near
For the extended test, the authors build a graph from hypernymy and type–instance links. Hypernymy connects more specific and more general meanings. A type–instance link connects an instance with its type. The hypernymy structure in plWordNet has several roots, so the authors use the resource’s mappings to add SUMO concepts above root synsets. These added nodes give the experiment a top level for computing paths across the extended structure.
The first formula presented in the paper turns a shortest path into a wordnet-based similarity, abbreviated WSM.
WSM(w₁, w₂) = −log(path(w₁, w₂) / (2Dₘ))
The arguments w₁ and w₂ are words. The function path(w₁, w₂) gives the shortest path length between the respective synsets that contain the words for the comparison. When discussing this formula, the text uses Dₘ to denote the average depth of the extended hypernymy graph. The constant 2 multiplies that depth, and the slash denotes division. The logarithm, written log, is applied to the normalized path length. The minus sign reverses its ordering so that a shorter positive path produces a higher score. The equality defines WSM as the result of that calculation. The formula uses graph information without a term for the corpus frequency of individual senses.
The authors report that the initial normalization gives a distribution too close to uniform for the current plWordNet. They relate this to the presence of synsets far from the root. They introduce a depth quantity denoted Dₐ, which they call average depth, to give nearer synsets greater influence. The paper describes the two depth terms with similar names and does not give separate procedures for calculating them. The modified equation makes the clipping operation explicit.
WSMₐ(w₁, w₂) = max(−log(path(w₁, w₂) / (2Dₐ)), 0)
WSMₐ is the modified similarity. The words w₁ and w₂, the shortest-path function, the logarithm, the minus sign and the division have the same roles as before. Dₐ is the depth used in the modified normalization, and 2 again multiplies the depth. The function max selects the larger of its two arguments. Its second argument is 0, so negative values from the first argument become zero. At a path length of 2Dₐ, the normalized length reaches the point where the logarithmic score is zero. At greater distances the clipping keeps it there.
The clipped score is used in the choice of distractors. The authors say that distractors at a distance of 2Dₐ or farther have zero chance of being selected. Nearer ones are sampled with a probability related to their graph similarity to the question word. The formula therefore affects the difficulty of an item through the alternatives it makes available. It does not supply the embedding’s ranking of those alternatives. The wordnet selects a designated answer and helps construct the field of candidates, and the distributional measure determines how those candidates are ordered.
Reconstructing a wordnet neighborhood
The Wordnet-based Cut-off Rendering test, abbreviated WBCR, asks how much of a reference neighborhood can be recovered from an embedding’s ranked neighbors. It starts with a question word x. The notation Sₓ refers to a synset containing a sense of x. Other synsets, written Sᵢ in the paper, contribute words when their paths to Sₓ satisfy the chosen rules. The index i identifies another synset. The collected words form what the authors call a bag of words. Here the bag is a reference collection whose membership is determined by the wordnet, and its order plays no role in the comparison.
The simplest reference, Cnt, contains synonyms and words from directly linked synsets. It also includes words connected directly to a sense of the question word by a lexical relation. This distinction matters because the source of a candidate can be a link between synsets or a link involving particular senses. With Cnt, the task is to retrieve terms that could help describe the question word’s immediate lexical surroundings. The candidate list from the embedding is scored against those surroundings.
CntH starts with Cnt and extends the reference along hypernym and hyponym paths of maximal length 3. It can therefore credit a word elsewhere along a chain of more general or more specific meanings. This is relevant to building a hierarchy. A plausible term further up the hierarchy can be worth finding even when it is separated from the question sense by an intermediate node. Direct relations are still included in the reference, so overlap under CntH measures coverage of both the immediate and the added terms.
CntHC retains the CntH reference and admits cousins. A cousin can be reached by combining links toward broader meanings and links towards narrower ones, within the specified path limit. This can bring in another branch of a local hierarchy. The relation between the question word and a candidate in that branch may be useful when exploring the structure around a sense, even if the two words lack a direct lexical link. The authors express the bound with a separate use of the letter k.
k = m + n
In this expression, m counts hypernymy links, n counts hyponymy links, and their sum gives the total path length k. The equality specifies how the path length is assembled from the two kinds of links. The reported bound for this cousin construction is 3. The n in this calculation counts links, independently of the n used for the number of answer options in a synonymy item.
For each question word, the authors generate a ranking by distributional relatedness. They keep the leading entries up to a chosen cut-off, using lengths of 10 and 100. In this part of the paper, k denotes the number of retained neighbors. The retrieved words are compared with each of the reference collections. Precision measures how much of the retrieved list is credited by the reference. Recall measures how much of the reference has been retrieved. The F-measure combines those two quantities. A term that appears in the ranked list can count under CntHC even when it falls outside Cnt, since the broader definition adds eligible words.
The cut-offs represent different amounts of material to inspect. A short list tests whether useful suggestions occur early. A long list can cover more of what the wordnet records, but it also gives more room to suggestions outside the reference. Each neighborhood definition has a corresponding interpretation. Cnt tests the recovery of immediately available relations. CntH adds terms useful for examining a chain of broader or narrower meanings. CntHC tests retrieval against a larger local structure. The same retrieved list can therefore receive substantially different scores depending on what the researcher asks it to recover.
Checking semantic analogies
The authors apply a separate semantic analogy evaluation from Mykowiecka and colleagues. Its items give a relation between the words of one pair and ask for the missing member of another pair with a comparable relation. Winter and snow versus autumn and rain is the paper’s example of terms tied by typical weather in a season. Another example pairs man with woman and king with queen. An analogy item tests whether the pattern between the vector representations transfers to the second pair.
a⃗ − b⃗ = c⃗ − d⃗
The arrows indicate vectors. The letters a, b, c and d stand for the embeddings of the four words in the analogy. The minus signs denote vector subtraction. The equality expresses the analogy as a match between the displacement in the first pair and the displacement in the second pair.
(b⃗ + c⃗) − a⃗ = d⃗
The letters again refer to the same word vectors. The plus sign adds the vectors for the second and third words, the parentheses group that addition, and the minus sign subtracts the first word’s vector from the result. The equality places the target vector d⃗ on the right. In the evaluation, the expression on the left supplies the query vector for a nearest-neighbor search. The item is scored as successful if the designated word appears among the retained neighbors. The reported analogy comparison uses a cut-off of 10 and omits an analogy for a representation if any of its words are absent from that vocabulary.
This task broadens the comparison without changing the two wordnet tests. Its input is a pair of relations expressed through words, and its output is a missing word found by a vector offset. The synonymy questions ask for a choice among candidates that the test has already supplied. The cut-off test starts from an individual word and compares a retrieved set with a neighborhood. The analogy score adds evidence about which representations preserve a relation across pairs.
Experiments and results
What is compared
The noun tests were generated at corpus-frequency thresholds of 30, 200 and 1000. In the synonymy family the threshold applies to every role in an item. A question word, the designated answer and the distracting candidates all have to meet the same requirement. A higher-threshold set therefore changes both the available questions and the alternatives that can be paired with them. The cut-off tests also use noun-frequency versions at 30, 200 and 1000. The cut-off results for the large-corpus and National Corpus of Polish configurations are reported at 200 and 1000, while the Wikipedia comparison includes all three thresholds.
The sizes illustrate what the authors gain by generating questions from the wordnet. EWBST at a minimum frequency of 1000 contains 19,996 items. HWBST at a minimum of 30 contains 48,263 items. Basic WBST at a minimum of 1000 contains 9,100 items. The paper identifies that basic set as the smallest of the synonymy sets, because the underlying procedure excludes singleton synsets. The cut-off tests have fewer reference bags than the synonymy tests have question items, though the authors describe their scale as comparable. The reported frequency versions specify eligibility conditions for test construction. The paper does not label them as training, tuning and held-out parts of a common benchmark.
The first published comparison group consists of Polish Wikipedia embeddings. The paper puts the Wikipedia material at ≈ 600M words. The representations called pl-embeddings-cbow and pl-embeddings-skip are based on a version that lower-cased text, split numbers into digits and removed some non-text material. Their original settings used negative sampling and a vector size of 300. The other Wikipedia comparison, fastText.wiki.pl, uses Skip-gram and includes character information in its representation. The authors describe the released fastText vectors as having size 300.
The second published comparison group was trained on the National Corpus of Polish. It includes vectors built from lemmas or surface forms, settings with the full training vocabulary or a restriction by grammatical class, and CBOW and Skip-gram configurations. The authors select vector sizes of 100 and 300 for the study. In the restricted training text, the included categories account for 19 parts of speech out of the 34 distinguished in the corpus scheme. These categories cover nouns, adjectives, adverbs, verb forms and abbreviations. The comparison is informative because it supplies a different corpus source and a different treatment of the training vocabulary from the new plWNC vectors.
Synonymy becomes harder when the alternatives are close
Across the reported comparisons, WBST yields the highest accuracies and EWBST the lowest. HWBST lies between them. The best basic WBST accuracy in the plWNC-multi table is 92.71%, from CBOW with hierarchical softmax. In the HWBST column, 90.11% is the highest reported accuracy, shared by configurations of CBOW with hierarchical softmax and with negative sampling. Skip-gram gives the leading EWBST accuracy of 63.97%. These peaks summarize results across the settings reported for each test, so the three values are not a matched run. The same test ordering is visible within individual rows.
For instance, the plWNC-multi Skip-gram entry that records 63.97% on EWBST yields 92.43% on WBST and 89.00% on HWBST. The evaluation asks progressively different things of the same representation. The basic test deals with pure synonym answers and random distractors. The hypernymy-expanded test both admits more kinds of synsets and changes the relation for some answers. The extended test uses the broadened answer rule and makes unrelated alternatives less likely to appear. The contrast between HWBST and EWBST is especially informative because the family’s convention for choosing the correct relation is shared.
Best reported EWBST accuracy by training setup on plWordNet noun questions
The leading large-corpus Skip-gram result exceeds the published Wikipedia results with nearby distractors.
The numbers
| System or setting | accuracy % |
|---|---|
| plWNC-multi Skip-gram (this paper) | 63.97 |
| plWNC-multi CBOW with hierarchical softmax | 63.21 |
| plWNC-multi CBOW with negative sampling | 62.99 |
| fastText.wiki.pl | 52.42 |
| pl-embeddings-skip | 47.16 |
| pl-embeddings-cbow | 43.71 |
The chart takes the highest reported EWBST entry for each displayed family or published embedding. It compares peaks across the printed settings. Among the Wikipedia representations, fastText.wiki.pl has the strongest EWBST result. It also has the strongest reported Wikipedia results on WBST and HWBST, with 81.44% and 80.27% as the respective highest entries in those columns. Plain Wikipedia Skip-gram outranks the Wikipedia CBOW baseline on EWBST. The authors find that the Wikipedia systems remain behind those trained on plWNC-multi in the synonymy comparison. They also report that the plWNC-lem variants performed somewhat worse on the synonymy family than their plWNC-multi counterparts.
The architectural comparison is most clearly seen in the EWBST column. The authors describe Skip-gram as generally favorable on WBST and EWBST. The WBST maximum itself comes from CBOW, so the peak and the pattern across settings address different questions. EWBST is where the Skip-gram lead is most relevant to the authors’ objective. The difficulty comes from choosing between alternatives that already share some lexical territory, making broad topical proximity a less decisive signal.
Cut-off rendering favors a different configuration
The cut-off tables use precision, recall and F-measure, all reported as percentages. They compare short and long neighbor lists, multiple corpus-frequency thresholds, and the Cnt, CntH and CntHC reference neighborhoods. The experimental description identifies the wordnet as plWordNet 3.1, while the captions on the cut-off result tables say plWordNet 3.0. The paper leaves that difference unresolved. The scores can still be read by their stated noun frequency, neighborhood definition and list length.
Cnt F-measure for plWNC noun neighbors at minimum frequency 1000 and cut-off 10
CBOW with hierarchical softmax leads the displayed direct-neighborhood comparison.
The numbers
| System or setting | F-measure % |
|---|---|
| plWNC-multi CBOW with hierarchical softmax (this paper) | 11.67 |
| plWNC-multi CBOW with negative sampling | 11.59 |
| plWNC-multi word2vec Skip-gram | 10.57 |
| plWNC-multi fastText Skip-gram | 7.97 |
| plWNC-lem CBOW with hierarchical softmax | 10.41 |
| plWNC-lem CBOW with negative sampling | 7.91 |
| plWNC-lem word2vec Skip-gram | 9.60 |
| plWNC-lem fastText Skip-gram | 6.57 |
For nouns meeting the frequency minimum of 1000, plWNC-multi CBOW with hierarchical softmax records 13.42% precision and 10.33% recall against Cnt at the cut-off of 10. The negative-sampling CBOW variant has slightly higher precision at 13.62% and slightly lower recall at 10.09% on the same target. Their F-measures favor hierarchical softmax. The distinction is useful when reading the authors’ general account of hierarchical softmax. Its advantage is clear in these F-measures, while individual precision cells can favor negative sampling.
Changing the cut-off moves the scores in different directions. For the hierarchical-softmax CBOW configuration on plWNC-multi at minimum frequency 1000, Cnt precision is 3.31% at the cut-off of 100, while recall is 20.83%. The short list recovers a larger proportion of expected words among its own entries. The longer list reaches more of the reference. It leaves more positions for words that receive no credit from the direct-neighborhood definition. The two numbers capture the different costs of choosing a long or a short list to inspect.
Broadening the reference has a separate effect. In the same large-corpus configuration and frequency band, CntHC precision is 35.67% at the cut-off of 10, and CntHC recall is 3.42%. With the longer list at 100, CntHC precision is 17.04%, recall is 8.61%, and F-measure is 11.44%. The broader reference credits more of the returned words, but it also contains more words that may lie beyond the cut-off. At minimum frequency 200, the same architecture and preprocessing yield CntHC F-measure of 11.71% for the 100 neighbors. A favorable rank under the broad reference means that an embedding can retrieve words from the wider structure around the query, with the accepted paths defined by the test.
The external comparisons show different profiles. At minimum frequency 1000 and the cut-off of 10, the National Corpus of Polish full-lemma CBOW with negative sampling yields Cnt F-measure of 9.72%. The corresponding full-lemma Skip-gram with negative sampling scores 8.42%. At the longer cut-off of 100 and the same frequency minimum, the full-lemma CBOW with hierarchical softmax records 9.46% F-measure against CntHC, while the negative-sampling CBOW reaches 9.04%. These results let the authors compare the architecture pattern beyond their own vectors.
The Wikipedia table illustrates why its strongest system depends on the metric. At minimum frequency 1000, with the cut-off of 100 and the Cnt reference, fastText.wiki.pl attains recall of 9.52% and F-measure of 2.63%. The Wikipedia CBOW baseline has recall of 7.44% and F-measure of 2.32% for that setting. With CntHC at the same cut-off and threshold, the Wikipedia CBOW baseline reaches precision of 10.51% and F-measure of 5.08%, while fastText.wiki.pl reaches 6.04% and 4.12%, respectively. The authors report a general advantage for the larger-corpus results. The ordering among the Wikipedia systems nonetheless changes with the neighborhood and the measure chosen.
Semantic analogies give a closer comparison
The analogy evaluation applies the semantic portion of the Mykowiecka test, which contains 196 items. The score is the percentage of applicable items for which the answer appears in the leading 10 neighbors of the vector query. Because items with absent words are omitted, the count of 196 describes the test material considered. The denominator for a particular score depends on which of those items can be evaluated with that vocabulary.
Semantic analogy score on the Mykowiecka Polish test at cut-off 10
Large-corpus lemma Skip-gram leads a close comparison with restricted-corpus CBOW and subword vectors.
The numbers
| System or setting | score % |
|---|---|
| plWNC-lem word2vec Skip-gram, size 300 (this paper) | 60.20 |
| National Corpus of Polish restricted lemma CBOW with negative sampling, size 300 | 59.49 |
| plWNC-lem fastText Skip-gram, minimum count 50 | 59.28 |
| plWNC-multi word2vec Skip-gram, size 300 | 59.18 |
| National Corpus of Polish full lemma CBOW with negative sampling, size 300 | 57.95 |
| plWNC-multi CBOW with negative sampling, size 300 | 57.14 |
The word2vec Skip-gram configuration on plWNC-lem gives the highest reported semantic analogy score. It comes from the preparation without folded expressions. Its plWNC-multi counterpart, also with vector size 300, is among the strongest entries. The best National Corpus of Polish row uses restricted lemma input and CBOW with negative sampling. The authors emphasize the closeness of that result to the best plWNC score, particularly given the smaller training corpus. They point to the prevalence of general, frequent words in the analogy items as relevant to interpreting the comparison.
The table also shows how much the input vocabulary matters in this particular analogy experiment. Among the National Corpus of Polish rows, restricted lemma CBOW with negative sampling at size 300 scores 59.49%, compared with 43.64% for the corresponding restricted surface-form configuration. Under the full-corpus condition and the same vector size and CBOW variant, the lemma row scores 57.95% and the surface-form row scores 43.18%. These comparisons describe the reported semantic analogy setting and its vocabulary handling. They help explain why the paper treats preprocessing as part of the experimental question, alongside corpus size and architecture.
What the ablations show
Candidate selection and lexical discrimination
The paper offers controlled comparisons of test construction, architecture and preprocessing, with the cleanest comparisons coming from settings that share the same training text or answer rule. In the test construction, HWBST and EWBST both use synonyms and the designated hypernyms of singleton synsets. The switch to nearby distractors is the principal change. The lower EWBST accuracies across the reported systems are consistent with the proposed explanation. Distractors with a lexical connection to the question word take away an easy cue that works against randomly drawn alternatives.
WBST and HWBST make a different comparison. Their distractors are random, but the set of eligible questions and the kind of relation that can count as correct both change. A singleton can now be represented by a broader answer, and eligible hypernyms are excluded as distractors. The lower scores on HWBST describe the combined effect of those choices. They cannot identify how much comes from including a new set of nouns and how much comes from asking for broader terms on some items. The paper suggests that the stronger CBOW result on HWBST may relate to the more general meanings introduced by this design.
The maximum WBST and EWBST scores also illustrate the importance of looking at the same settings where possible. A comparison of headline maxima says which configuration leads each test. A comparison within a row shows what happens to one representation when the test changes. The latter supports the authors’ interpretation of the difficulty of nearby alternatives. It says less about which properties of those alternatives are responsible, because graph proximity can admit words connected through different parts of the hierarchy.
Architecture, vector size and the training objective
The reversal between the extended synonymy comparison and cut-off rendering is the paper’s main architectural finding. In the first task, a representation has to prefer the designated answer over particular competitors. In the second, it gets credit for including many eligible words in the returned list. Skip-gram leads EWBST. For the reported plWNC-multi cut-off rows at size 300, the CBOW alternatives consistently produce stronger F-measures than the word2vec Skip-gram rows. The authors interpret the first pattern as an advantage in distinguishing meanings and the second as an advantage in exploring a broader set of lexical relations.
The controlled portion of that comparison is strongest within the large corpus at the same vector size and preprocessing. Comparing fastText with the Wikipedia CBOW baseline also changes how words are represented and how the input text is prepared. The EWBST advantage of the Wikipedia fastText vectors is therefore evidence about that released configuration. The relative contributions of sub-word information, corpus treatment and prediction architecture remain unresolved by that comparison.
There is also a consistent contrast within CBOW in the large-corpus cut-off F-measures. Hierarchical softmax generally fares better than negative sampling in the matched settings, which is the trend the authors emphasize. Some precision values favor negative sampling, and its performance relative to hierarchical softmax can also change in the analogy tests. At vector size 300, with the full lemma version of the National Corpus of Polish, the negative-sampling CBOW analogy score is 57.95%, and the hierarchical-softmax score is 55.38%. For the restricted lemma version at that size, the scores are 59.49% and 52.82%, respectively. A training option favored for retrieving wordnet neighborhoods has a different standing when used to complete vector analogies.
The study examines vector dimensions of 100, 300 and 1000 in the word2vec synonymy comparisons. For analogies, the large-corpus Skip-gram scores let the reader compare the two reported sizes directly. On plWNC-lem, the score is 45.92% at size 100 and 60.20% at size 300. With plWNC-multi it is 48.98% at size 100 and 59.18% at size 300. The larger of the two dimensions helps in these analogy rows. The results belong to this task and these settings. The paper does not establish that increasing vector dimension would also improve the fine distinctions probed with nearby distractors.
Folding expressions and changing the training vocabulary
The plWNC-lem and plWNC-multi comparison uses the same underlying corpus with different treatment of names and expressions. The authors find that the folded version generally performs better in the wordnet tests. For Cnt at minimum frequency 1000 and the cut-off of 10, the hierarchical-softmax CBOW comparison gives precision of 12.86% and recall of 8.74% with plWNC-lem. The folded version reaches 13.42% precision and 10.33% recall in the same comparison. This is evidence for the combined preprocessing choice in a task where the reference can contain multiword lexical units.
Folding changes the usable vocabulary and the observations from which other vectors are learned. A wordnet expression may become retrievable because it receives its own token. Its components are now observed individually only outside the spans that have been folded, so their vectors also reflect different context evidence. The comparison measures both effects together. The authors connect some of the weaker cut-off performance of plWNC-lem to missing multiword representations and propose tests that exclude multiword expressions to examine the folding effect more precisely. Such a comparison would address how much the change carries over to the vocabulary that both preparations can describe.
The analogy table offers an additional control on the interpretation. The strongest large-corpus analogy result comes from plWNC-lem, while the strongest cut-off results generally involve plWNC-multi. The folding procedure can be particularly useful when the target is a wordnet neighborhood containing lexical units with several components. The analogy set, which the authors describe as emphasizing frequent and general words, places different demands on the vocabulary. The two outcomes are compatible with a preprocessing choice whose benefit depends on what the benchmark expects to retrieve.
The fastText frequency settings illustrate that relationship further. On the semantic analogy task, plWNC-multi fastText scores 50.75%, 53.30% and 50.75% at minimum counts of 5, 20 and 50, respectively. The plWNC-lem fastText scores at those counts are 50.75%, 54.23% and 59.28%. Raising the training minimum changes the vocabulary and the training evidence available to the representation. It may also alter which analogy items can be evaluated. The position of the best count differs by corpus preparation, so the results support a comparison of settings within each preparation. They do not establish a general optimum for Polish fastText embeddings.
Neighborhood breadth and corpus frequency
The nested reference neighborhoods act as a controlled change to the scoring definition. For a fixed ranked list, moving from Cnt to CntH to CntHC gives credit to candidates connected by more kinds of paths. The number of possible matches can rise while the chance of recovering every expected word falls. The reported precision and recall behave accordingly in representative rows. That is evidence about how much of the local lexical structure the top neighbors cover under different definitions. It is also a reason to specify the reference when quoting the score. A strong CntHC precision can reflect useful coverage of related branches even when there are few direct matches.
The frequency versions investigate a different choice. Raising the minimum favors vocabulary with more corpus occurrences and also changes which parts of the wordnet are represented by eligible items. The paper observes that the Wikipedia embeddings behave differently on less frequent words in the cut-off tests. With the cut-off at 10 against Cnt, fastText.wiki.pl has recall of 3.13% at minimum frequency 1000, 3.74% at 200 and 4.07% at 30. The authors find the recall behavior of the sub-word representation noteworthy and identify preprocessing and filtering as possible contributors. The comparison uses different eligible noun sets, so it cannot track an improvement for a fixed group of rare words as their frequency changes.
The large-corpus advantage likewise reflects the experimental package. The authors observe better cut-off results from the much larger training collection than from the published Wikipedia embeddings. Within plWNC, they compare preprocessing and architectural choices. Across corpora, the amount of text changes along with its sources and treatment. The semantic analogy results, where the restricted National Corpus of Polish comes close to the strongest plWNC result, give a separate example of how the demands of the test affect the apparent value of more training material.
Limitations
Limits identified by the authors
The authors stress that cut-off rendering depends on the coverage of the reference. WBCR treats a retrieved word as a match when it is in the reference bag generated under the chosen path rules. A word can legitimately be related to the question and still receive no credit if a relevant link is absent from plWordNet. The authors regard this as a downward bias in the cut-off results and propose that such disagreements could help locate poorly linked areas of the resource. A score aggregates those disagreements with genuine retrieval errors. The test itself cannot tell an editor which kind of case a particular unmatched word represents.
This is also why the authors restrict the intended application of WBCR to a comprehensive wordnet or to a resource with good coverage in the domains being tested. If many local relationships have yet to be entered, the reference neighborhoods are thin and the experiment mainly measures recovery of the links that happen to be recorded. In a well-covered area, failures to retrieve listed neighbors carry more information about the relatedness measure. Results across domains can therefore reflect differences in the lexical resource as well as differences in the corpus representations.
The authors identify preprocessing as an issue that needs further study. The version with single tokens for names and phrases changes coverage of the reference, including words or expressions the lemma preparation may never retrieve in the same form. It also changes how the constituent words occur in training. The authors propose removing multiword expressions from a test to investigate the effect more precisely. They likewise note that preprocessing and filtering could help explain the behavior of the Wikipedia representations for less frequent words.
The paper also acknowledges the scope of its noun experiments. The authors propose extending the evaluation to adjectives, verbs and adverbs and developing a contextual test. That contextual goal matters because wordnet relations are recorded for senses, while the principal tasks in this study operate on words or tagged lemmas without a disambiguating sentence. A contextual condition would give the experiment a way to specify the intended meaning through actual use.
Limits of the design and reporting
The scores establish agreement with particular relations recorded in plWordNet under particular candidate constructions. The paper motivates that agreement through the needs of wordnet development. It does not report an editorial trial measuring how many correct links lexicographers would add or how much time they would save with these ranked suggestions. Its case for practical usefulness is based on the relation between the benchmark and the work an editor would do. The measured outcomes are answer selection, lexical-neighborhood overlap and semantic analogy completion.
The corpus and the reference are connected. The paper describes plWNC as a resource used in plWordNet development and trains the new embeddings on that corpus. The reference judgments and the training signal still take different forms, and the study does not report whether particular test links were proposed or verified using passages from the training corpus. For this intended evaluation, overlap in the linguistic material can make the reference relevant to the vocabulary learned. Evidence of generalization to independently developed lexical resources or to disjoint text collections would require a different comparison.
Several results also depend on which words an embedding can score. The analogy omission rule makes that dependency explicit. Scores from representations with different vocabularies may summarize different subsets of the semantic test. The reported table does not include an item count for every row that would allow comparison of coverage alongside the score. In the synonymy and cut-off descriptions, the authors give the corpus-frequency thresholds used to construct the tests, but do not give an equally explicit account of missing entries for each comparison. This matters most when comparing corpora or preparations with different vocabularies.
There are details of test generation that the equations leave open. The WSM formulas give a graph-based affinity and state where the modified score becomes zero. They do not specify a full probability mapping for positive affinities or give handling rules for every possible path case. The paper says the difficulty can be varied through the choice of graph score and its relationship to the sampling distribution. The reported results show what happens for the implemented test settings. They do not quantify the range of scores that would result from other mappings or other choices of graph relations.
The results emphasize aggregate scores. Large item counts allow finer partitions, as the authors point out, but the result tables do not present uncertainty intervals or repeated draws of distractors. Items generated from the same synset or neighboring synsets can share lexical material and need not behave independently. This makes the pattern across tasks and settings easier to interpret than the size of a small difference between particular rows. The same caution applies to the frequency partitions, which may differ in which types of nouns and neighborhoods they contain. An aggregate change across thresholds does not by itself identify frequency as the cause.
Finally, the result captions create a version ambiguity for the cut-off tests. The main experimental description says the noun tests use plWordNet 3.1, while the captions for those tables identify plWordNet 3.0. Because the reference bags depend on the relation links available in the resource, the version could affect both the contents of the test and the interpretation of unmatched words. The paper does not resolve which label is correct for those tables. The scores can be attributed to the comparisons as printed, with the reference version left uncertain for that part of the evaluation.
What came after
The authors published the evaluation datasets and the trained Polish embeddings under open licenses. The release makes the test items and configurations available for further comparisons. No subsequent citing study is identified here, so the paper’s documented continuation consists of its release and the authors’ stated plans.
One plan was to make the tests sensitive to the meaning activated by context. The authors point to the Stanford contextual word similarity dataset as an example of the kind of evaluation they wanted to approach. The other plan was to extend coverage beyond nouns to adjectives, verbs and adverbs. These directions follow from specific limits of the original design. A contextual test could ask whether a representation captures the intended sense in an utterance. A broader set of parts of speech could examine whether the patterns observed for noun relations also appear elsewhere in the lexicon. The paper reports these as future work. Improving word representations via global context and multiple word prototypes
Cite
Cite as Maciej Piasecki, Gabriela Czachor, Arkadiusz Janz, Dominik Kaszewski and Paweł Kędzia. 2018. Wordnet-based Evaluation of Large Distributional Models for Polish. Proceedings of the 9th Global Wordnet Conference.
@inproceedings{piasecki2018wordnet,
title = {{Wordnet-based Evaluation of Large Distributional Models for Polish}},
author = {Maciej Piasecki, Gabriela Czachor, Arkadiusz Janz, Dominik Kaszewski and Paweł Kędzia},
booktitle = {Proceedings of the 9th Global Wordnet Conference},
year = {2018},
doi = {10.18653/v1/2018.gwc-1.26},
url = {https://doi.org/10.18653/v1/2018.gwc-1.26}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/piasecki-2018-wordnet-based-evaluation-large-distributional/