---
title: "Enhancing Word Embeddings with Knowledge Extracted from"
description: "How WGAN-postspec uses synonyms and antonyms to reshape word embeddings, and how the changes affect word similarity and dialogue…"
canonical: "https://research.elamur.ai/free/en/papers/biesialska-2020-enhancing-word-embeddings-knowledge-extracted/"
---
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/biesialska-2020-enhancing-word-embeddings-knowledge-extracted/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Enhancing Word Embeddings with Knowledge Extracted from Lexical Resources

# Enhancing Word Embeddings with Knowledge Extracted from Lexical Resources

Paper · 2020 · Magdalena Biesialska, Bardia Rafieian and Marta R. Costa-jussà

**Authors:** [Magdalena Biesialska](https://md.research.elamur.ai/free/en/authors/magdalena-biesialska/), [Bardia Rafieian](https://md.research.elamur.ai/free/en/authors/bardia-rafieian/) and [Marta R. Costa-jussà](https://md.research.elamur.ai/free/en/authors/marta-r-costa-jussa/) · **Year:** 2020 · **Venue:** Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.acl-srw.36/)
- [PDF](https://aclanthology.org/2020.acl-srw.36.pdf)
- [DOI 10.18653/v1/2020.acl-srw.36](https://doi.org/10.18653/v1/2020.acl-srw.36)

## Summary

Words with opposite meanings often fit into the same sentence. A room can be warm or cold, and a ticket can be cheap or expensive. Because the words occur in similar contexts, a system learning from these patterns may position them near each other. That proximity is useful for recognizing what the words are about, but it can blur distinctions that matter when interpreting what someone said. Biesialska, Rafieian and Costa-jussà study how to sharpen those distinctions in an existing set of [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/).

Their approach first uses a lexical resource to identify words that should move closer together or farther apart. The authors compile synonym and antonym pairs for English, German and Italian using BabelNet and compare them with constraints drawn from earlier resources. They apply Attract-Repel to adjust the vectors of words that occur in those pairs. Then they use each adjusted vector and its original counterpart as an example for a neural network. The network learns a transformation that can also be applied to words for which the lexical resources supply no direct instructions. The authors call their approach WGAN-postspec. It combines a loss for matching each individual target vector with feedback about whether the outputs as a group resemble the adjusted vectors. The adversarial feedback uses a Wasserstein objective, with a gradient penalty in one variant.

The paper tests whether the resulting vectors agree with human judgments of [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/). On English SimLex-999, with GloVe vectors, evaluation words excluded from the constraints and both constraint sources combined, WGAN reaches a Spearman rank correlation of 0.663. The original vectors score 0.407, and the earlier adversarial method AuxGAN reaches 0.659 in the same comparison. The strongest scores depend on the benchmark, the starting embeddings and the constraints. The gradient-penalty variant sometimes leads and sometimes trails the simpler Wasserstein variant. The BabelNet pairs also have different effects across languages and settings.

A downstream experiment asks whether the vectors help an English dialogue system track what a user wants. On the Wizard-of-Oz dataset, joint goal accuracy rises from 0.797 with the original GloVe vectors to 0.817 after Attract-Repel and 0.838 with WGAN-postspec. AuxGAN reaches 0.836. Taken together, the experiments show that lexical adjustments can carry over to words left out of the constraints and can help a dialogue tracker. The advantage of the Wasserstein approach over other ways to extend those adjustments varies across the comparisons.

## Deep dive: Enhancing Word Embeddings with Knowledge Extracted from Lexical Resources

How WGAN-postspec uses synonyms and antonyms to reshape word embeddings, and how the changes affect word similarity and dialogue state tracking. · about 32 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

#### What context tells us about a word

An embedding gives each word a vector, a list of numerical coordinates in a shared space. A system can compare words by comparing where their vectors lie. The starting vectors in this paper are distributional. Their training draws on the contexts in which words occur in large collections of text. A vector can therefore reflect patterns that nobody had to record by hand, including some information about how a word behaves grammatically and what it tends to mean. This way of learning from usage is part of [distributional semantics](https://md.research.elamur.ai/free/en/concepts/distributional-semantics/).

There is a gap between learning that words occur in comparable contexts and learning how their meanings are related. Someone might call the same restaurant cheap on one occasion and expensive on another. Both words describe price, apply to the same kinds of things and can occupy the same position in a sentence. They nonetheless point in opposite directions on a scale that a user may care about. In a space learned from context, the evidence for shared subject matter and the evidence for interchangeability can both affect proximity. A short distance between vectors leaves the kind of connection open.

A lexical resource can make that connection explicit. A synonym pair supplies a reason to give its members similar representations. An antonym pair supplies a reason to separate them in spite of their shared contexts. In this paper, a lexical constraint is such a pair marked with the direction in which it should influence the vectors. The constraints are useful because the information they supply differs from the regularities already captured in the coordinates. The task is to change the space enough to make these distinctions clearer while preserving useful information learned from text.

The dialogue experiment gives that distinction a practical motivation. A tracker has to infer what the user currently wants from the language used in a conversation. Different expressions can indicate the same preference, and closely related expressions can indicate incompatible preferences. An embedding that makes such distinctions easier to recover can help the tracker use its word comparisons. A benchmark based on human judgments addresses a narrower question about the geometry itself. The paper uses both kinds of evaluation because agreement with a rating and usefulness in a dialogue are separate outcomes.

#### Where lexical knowledge enters the process

The authors describe several points at which lexical information can enter an embedding system. Joint methods use the information while the distributional vectors are first being learned. Their design ties the lexical supervision to the particular way the underlying embeddings are trained. The paper names Word2Vec and GloVe as examples of starting representations to which such training procedures can be tied. Its discussion favors a later intervention, which makes it possible to begin with embeddings that are already available. [Word2Vec](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/) and [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/).

Retrofitting is a post-processing approach. It takes a set of learned vectors and a lexicon and adjusts the vectors in light of the relationships recorded there. In the retrofitting work discussed by the authors, the lexical information brings semantically similar words closer. Counter-fitting adds a way to handle both similarity and antonymy. Attract-Repel, the starting point for the new experiments, also uses both kinds of supervision and makes each adjustment relative to other vectors in the training batch. A change can therefore depend on which alternatives are close to a word as well as on the relation specified for the pair. [Attract-Repel](https://md.research.elamur.ai/free/en/papers/mrksic-2017-semantic-specialization-distributional-word-vector/).

These methods address the words for which lexical supervision is available. The paper calls this initial or local specialization. A word belongs to the covered part of the vocabulary when it occurs in a usable constraint, even if it participates in just a small portion of the full collection of relations. An embedding vocabulary can include many other words. For those words, local specialization has no pair from which to derive a direct update. Simply enlarging a lexicon can extend coverage, but the same question remains for any word that falls outside the enlarged collection.

Post-specialization treats the local changes as examples from which to learn a reusable operation. The paper describes explicit retrofitting as an early effort to train such a mapping with synonym and antonym supervision. It describes DFFN as a subsequent approach to extending the information from the covered part of the space to the full vocabulary. AuxGAN adds adversarial training. Its mapping learns from feedback about the resemblance of generated vectors to vectors specialized by the initial procedure. The present paper follows that line of work and changes the objective used for the adversarial feedback.

#### Why coverage changes the scientific question

A result can have different meanings depending on which words the evaluation contains. If a tested word occurs in the lexical constraints, the initial procedure can adjust its vector directly. Good agreement with human judgments in that setting may reflect successful application of the constraints. When all the benchmark words are left out of the constraints, any benefit for them has to come through the learned transformation of their original vectors. The word can still have a perfectly good starting vector. It is unseen in the supervision used to specialize the space, which is the distinction the experiments are designed to probe.

This matters when interpreting the role of a large resource. More pairs can supply more examples of the desired geometry, but a pair count describes relations, while coverage describes distinct words. Many pairs may reuse the same word. A collection can also have many more examples of one relation than of another. The study therefore changes both the source of the pairs and the rules about which words those pairs can contain. The resulting comparisons ask how well the method uses direct supervision when available and how much of the change it can extend beyond that supervision.

### The method, step by step

#### From corpus vectors to lexical constraints

The input to the procedure is a vocabulary with a vector for each word. The paper uses readily available 300-dimensional embeddings. For English Word2Vec, the starting vectors were trained on cleaned, tokenized Polyglot Wikipedia with skip-gram and negative sampling. Skip-gram uses a word to predict information about its context. The training objective also uses sampled alternatives. German and Italian Word2Vec start from vectors trained on WacKy corpora with CBOW and negative sampling. CBOW takes information from the surrounding context to predict a word. English also has a GloVe condition, with vectors trained on Common Crawl. These choices mean that a change of embedding condition can change the training corpus as well as the way the coordinates were learned. [Polyglot](https://md.research.elamur.ai/free/en/papers/rfou-2013-polyglot-distributed-word-representations-multilingual/) and [GloVe](https://md.research.elamur.ai/free/en/papers/pennington-2014-glove-global-vectors-word-representation/).

The other input is a collection of word pairs. One collection, labeled external, comes from resources used in prior work. The paper describes the WordNet and Roget’s Thesaurus collection as containing 1,023,082 synonym pairs and 380,873 antonym pairs. It also uses an external German collection from Scheible and Schulte im Walde. That work sampled pairs with GermaNet and its API and used human evaluation in compiling the collection. An Italian dataset from Sucameli and Lenci supplies additional pairs. Its creators elicited relations from native Italian speakers and covered nouns, adjectives and verbs. Though that dataset also contains hypernyms, the specialization described here uses synonym and antonym pairs.

The new collection begins with NASARI, which supplies lexical information associated with BabelNet entries. The authors take a word together with its BabelNet identifier and query BabelNet for synonyms and antonyms. The identifier points to a sense, which matters when the same written word can participate in different relations depending on its meaning. The resulting training examples are nevertheless word pairs, and the procedure ultimately modifies the starting vectors associated with words. The sense identifier helps retrieve the relation. The output remains an embedding space of the same kind as the input.

For the English overlap inventory, the paper gives 3,522,434 synonym pairs and 1,024 antonym pairs for the BabelNet constraints. In the combined English overlap inventory, it gives 4,545,045 synonym pairs and 381,777 antonym pairs. The disparity is relevant to what a source comparison can establish. Switching from the BabelNet inventory to the combined inventory changes the examples available for pulling vectors together and for pushing them apart. It also changes which words can be adjusted before training the global mapping. The authors compare the inventories as assembled, so source, coverage and composition move together.

The authors prepare the constraints in overlap and disjoint settings. In overlap, benchmark words may remain in the constraint lists. In disjoint, the authors remove a pair if it contains a word from the applicable benchmark vocabulary. Removing a pair can also affect the supervision for its other member, which might have remained eligible by itself. The constraint inventories distinguish the filtering for the SimLex and SimVerb evaluations from the filtering for WordSim. The dialogue trial uses overlap. The paper also names the accompanying code and resources by their repository name, `mbiesialska/wgan-postspec`.

From lexical relations to a specialized vocabulary The steps in order.

#### Adjusting the words in the constraints

Attract-Repel works with batches of synonym and antonym pairs. The members of the pairs come into the procedure with their original coordinates. During optimization the vectors can move, and their updated positions become the positions used in subsequent comparisons. A synonym pair provides a reason to increase the similarity of its members. An antonym pair provides a reason to decrease it. In both cases the algorithm compares the pair with alternative vectors selected from the same batch.

The paper calls these alternatives negative examples. The term refers to their role in a comparison, regardless of whether the listed pair consists of synonyms or antonyms. For a pair of synonyms, the objective calls for each word to be closer to its partner than it is to its selected alternative. For a pair of antonyms, it calls for each word to be closer to its alternative than it is to the antonym. A separate comparison for each word lets the objective respond when the relation is already well expressed from one side of the pair but the alternatives still create a problem on the other side.

Let A denote the set of attract pairs and R the set of repel pairs. Let Vₛ be the vocabulary seen in those constraints. A pair contains the left word vₗ and right word vᵣ, represented by the corresponding vectors xₗ and xᵣ. The algorithm takes a synonym batch Bₐ of size k₁ and an antonym batch Bᵣ of size k₂. It selects negative examples for these batches, denoted by the collections Tₐ(Bₐ) and Tᵣ(Bᵣ), from the vectors for the words in the batches taken together. Here the letters for left and right identify positions in a pair. They carry no additional information about the meaning of the words.

The synonym term is written as follows.

```
A(Bₐ) = ∑ᵢ₌₁ᵏ¹ [τ(δₐₜₜ + xᵢₗ · tᵢₗ − xᵢₗ · xᵢᵣ) + τ(δₐₜₜ + xᵢᵣ · tᵢᵣ − xᵢₗ · xᵢᵣ)]
```

A(Bₐ) is the attract cost for the synonym batch Bₐ. The summation runs over pair index i, beginning at 1 and ending at k₁, the batch size. The vectors xᵢₗ and xᵢᵣ represent the left and right words of that pair. Their negatives are tᵢₗ and tᵢᵣ. The dot marks the vector inner product used in the comparison. The margin δₐₜₜ specifies the required advantage of the synonym pair over each comparison with an alternative. The rectifier τ keeps a positive argument and gives zero for an argument at or below zero. The two terms in brackets add the margin violations for the opposite ends of the same pair.

Consider the left-hand comparison. The partner similarity is subtracted from the similarity to the alternative. If the partner similarity exceeds the alternative similarity by the required margin, the term contributes zero. If the margin is missed, increasing the partner similarity or reducing similarity to the alternative can lower the cost. The right-hand comparison reuses the pair similarity but refers to the other word’s alternative. This formulation asks for a local ordering of similarities. It gives the same pair room to have different relationships to the other words in its surroundings.

For antonyms, the order of the compared scores is reversed.

```
R(Bᵣ) = ∑ᵢ₌₁ᵏ² [τ(δᵣₑₚ + xᵢₗ · xᵢᵣ − xᵢₗ · tᵢₗ) + τ(δᵣₑₚ + xᵢₗ · xᵢᵣ − xᵢᵣ · tᵢᵣ)]
```

R(Bᵣ) is the repel cost for antonym batch Bᵣ. The index i now runs from 1 to k₂, the number of pairs in that batch. The vectors xᵢₗ and xᵢᵣ represent the left and right antonyms. The names tᵢₗ and tᵢᵣ refer to their selected negatives. The same inner product, written with a dot, supplies each similarity score, and τ is again the rectifier. The repel margin δᵣₑₚ specifies the required advantage of each alternative similarity over the similarity of the antonym pair. The sum accumulates the two comparisons for every pair in the batch.

In the left-hand term, making the opposite words more similar increases the argument to the rectifier, other things being equal. Making the left word more similar to its alternative reduces that argument. So long as the desired ordering holds by the required margin, the cost stays at zero for that comparison. Where synonym supervision rewards a pair for standing out as close, antonym supervision asks its members to have closer alternatives. The margin always applies to the difference between the compared scores.

The paper gives the attract and repel margins in its experimental settings under the names δₛᵢₘ and δₐₙₜ. Their values are 0.6 for similarity and 0.0 for antonymy. The synonym setting thus asks for a positive advantage over the negative example. The antonym setting asks for the alternative to match or exceed the antonym similarity in the corresponding comparison. The synonym and antonym batch sizes k₁ and k₂ are each 50.

#### Preserving information from the starting space

Following lexical constraints without an anchor could allow changes that do well on the batch while giving up other useful properties of the original vectors. Attract-Repel adds a penalty for moving a vector away from its starting point. The penalty uses the L₂ norm of the displacement and is applied to the words involved in the current batches.

```
Reg(Bₐ, Bᵣ) = λᵣₑ𝓰 ∑ₓᵢ ∈ V(Bₐ ∪ Bᵣ) ‖x̂ᵢ − xᵢ‖₂
```

Reg(Bₐ, Bᵣ) is the regularization cost for the current synonym batch Bₐ and antonym batch Bᵣ. The union sign ∪ joins the batches, and V applied to that union selects the vectors for words occurring in them. The summation has one term for each vector xᵢ in that set. Its starting version is x̂ᵢ, so the difference inside the norm is the displacement of the current vector from the original position, with its sign reversed. The subscript ₂ on the norm specifies Euclidean length, which depends on the size of the displacement. The coefficient λᵣₑ𝓰 weights the penalty. In the experiments its value is 10⁻⁹.

The full local cost adds the three contributions.

```
C(Bₐ, Bᵣ) = A(Bₐ) + R(Bᵣ) + Reg(Bₐ, Bᵣ)
```

C(Bₐ, Bᵣ) is the cost optimized on the two batches. A(Bₐ) is the synonym cost, R(Bᵣ) is the antonym cost, and Reg(Bₐ, Bᵣ) is the penalty for displacement from the original vectors. The plus signs express how the costs enter the objective. A move that helps one comparison can affect other comparisons involving the same word, as well as its displacement term. The procedure balances those effects across its updates.

The anchor is important to the next stage as well. The locally adjusted vectors will be treated as examples of what specialization should produce. The targets therefore embody both the lexical relations and the compromise with the original geometry. The global mapper is trained to reproduce that kind of adjustment. Its supervision carries forward the choices made by Attract-Repel about which words to move, which relationships to honor and how strongly to preserve the original positions.

#### Learning one transformation for the full vocabulary

The paper distinguishes several sets of vectors. Xᵈ is the original distributional space. Xₛ contains original vectors for words seen in the constraints, and Xᵤ contains original vectors for words unseen there. X′ₛ contains the adjusted vectors for the seen words. For each covered word, its input xᵢ comes from Xₛ, and its target x′ᵢ comes from X′ₛ. Both vectors refer to the same word. This pairing lets the authors teach a network what changed without supplying a separate symbolic instruction for every input.

The generator G is a multilayer feed-forward network. It accepts an existing word vector, applies a learned sequence of transformations and predicts a specialized vector. Its learned parameters are written θᴳ. A standard L₂ loss rewards correspondence with the particular target for the input word. This part of training uses the fact that the examples are paired. A predicted vector belongs to an individual word, and the target says where the initial procedure placed that word.

The second network, D, compares generated vectors with examples of the initially specialized vectors. In the ordinary adversarial formulation, it assigns probabilities to the two origins. In the Wasserstein formulation, its outputs are scores. The term adversarial describes the opposing roles of the two networks. The comparison network learns to tell apart the two sources, and the generator learns to make its outputs resemble the reference vectors according to that learned comparison. The idea of training a generator against such feedback comes from [Generative Adversarial Nets](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/).

The losses address different aspects of the transformation. The paired loss makes a particular output accountable to a particular target. The adversarial comparison supplies information about the collection of outputs, since D can compare generated examples with adjusted examples sampled from the reference set. The authors’ motivation is that combining the two kinds of feedback should yield outputs with the characteristics of initially specialized vectors, including when the learned function is applied to words outside the constraints. For an unseen word, its original vector is still available as an input. The mapping uses the numerical information in that vector to produce the new representation.

#### From classification probabilities to Wasserstein scores

The paper first gives the ordinary adversarial losses to explain the change in objective. In the generator equation, generated vectors are scored under the label for initially specialized examples. The equation also contains a term involving only initially specialized vectors and the comparison network.

```
Lᴳ = −∑ᵢ₌₁ⁿ log P(spec = 1 | G(xᵢ; θᴳ); θᴰ) − ∑ᵢ₌₁ᵐ log P(spec = 0 | x′ᵢ; θᴰ)
```

Lᴳ denotes the generator’s adversarial loss in this formulation. The index i runs over n generated examples in the first sum and m initially specialized examples in the second. The original input is xᵢ and its generated output is G(xᵢ; θᴳ), where θᴳ denotes the generator parameters. The symbol x′ᵢ denotes an initially specialized vector. P is the probability assigned by D with parameters θᴰ. The vertical bar introduces the vector on which that probability is conditioned, and the semicolon marks the parameters used by the corresponding network. The label spec denotes the vector’s origin, with 1 for an initially specialized example and 0 for a generated example in the discriminator’s classification task. The function log is the logarithm, and the minus signs turn the log probabilities into the quantities included in the loss.

For fixed discriminator parameters, only the first sum depends on the generator. It gives the generator an incentive to produce outputs that D scores as initially specialized. The second sum is constant with respect to θᴳ. Keeping that term visible makes clear what the equation contains and which part can actually change when updating G. The paired L₂ loss described separately supplies the incentive to match the output to the input word’s own adjusted vector.

The paper gives the discriminator loss with the two labels assigned according to the examples’ actual origins.

```
Lᴰ = −∑ᵢ₌₁ⁿ log P(spec = 0 | G(xᵢ; θᴳ); θᴰ) − ∑ᵢ₌₁ᵐ log P(spec = 1 | x′ᵢ; θᴰ)
```

Lᴰ is the discriminator’s adversarial loss. In its first summation, i indexes n generated vectors G(xᵢ; θᴳ), formed from original inputs xᵢ by the generator with parameters θᴳ. In its second summation, i indexes m initially specialized vectors x′ᵢ. P is the probability under the discriminator with parameters θᴰ, and log takes its logarithm. The label spec is set to 0 for generated vectors and 1 for initially specialized vectors. The vertical bar again separates the label from the vector being classified, and the semicolon identifies a network’s parameters. The leading minus signs mean that assigning higher probability to the observed origins reduces the loss.

WGAN-postspec keeps the competing roles but changes how the comparison is made. D gives a numerical score to a vector, and the objectives use averages of these scores in place of the logarithms of origin probabilities. In this role D is frequently described as a critic. What matters is the separation between the scores for initially adjusted vectors and those for generated ones. The paper motivates the Wasserstein version by citing the stability of this form of training and its ability to give the generator a useful gradient when an ordinary classifier could give weak feedback.

The generator’s Wasserstein term takes the negative average score of generated vectors.

```
Lᴳ = −(1/n) ∑ᵢ₌₁ⁿ D(G(xᵢ; θᴳ); θᴰ)
```

Lᴳ is now the Wasserstein generator loss. The index i covers n generated examples, and 1/n turns their sum into a mean. The vector xᵢ is an original input, and G(xᵢ; θᴳ) is its generated specialization under parameters θᴳ. D evaluates that output using its own parameters θᴰ. The semicolons identify parameter arguments. The minus sign makes a higher critic score correspond to a lower generator loss.

The paper writes the critic expression as the mean for initially specialized vectors minus the mean for generated vectors.

```
Lᴰ = (1/m) ∑ᵢ₌₁ᵐ D(x′ᵢ; θᴰ) − (1/n) ∑ᵢ₌₁ⁿ D(G(xᵢ; θᴳ); θᴰ)
```

Lᴰ denotes the Wasserstein critic expression. The index i ranges over m initially specialized examples x′ᵢ in the first sum and n generated examples in the second. The factors 1/m and 1/n produce the two means. The symbol D is the scoring network with parameters θᴰ. The output G(xᵢ; θᴳ) is the specialization of original vector xᵢ predicted by the generator with parameters θᴳ. The semicolons mark the parameter arguments. The subtraction gives the separation with the initially specialized group first. In the adversarial comparison, the critic seeks to distinguish the groups, while the generator is rewarded for raising the scores of its own outputs.

The gradient-penalty variant adds a term to the critic objective with a coefficient denoted λ. This λ belongs to the Wasserstein stage and is distinct from the coefficient that anchors the initial word vectors. The penalty regularizes how the critic’s scores change with its input. Since those changes guide the generator’s updates, altering the critic’s gradients can change the supervision that the mapper receives. The paper describes this addition without specifying a separate penalty formula or a numerical value for its coefficient.

The authors report different optimization algorithms across the adversarial conditions. AuxGAN uses standard stochastic gradient descent, WGAN uses RMSProp, and WGAN-GP uses [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/). All of these choices concern how the trainable parameters are updated from the objective. The reported comparison of WGAN with WGAN-GP therefore includes both a change to the critic objective and a change to the optimizer. Once the mapping is trained, it can transform any word vector in the original vocabulary. Its usefulness for words withheld from direct supervision is an empirical question addressed by the disjoint experiments.

### Experiments and results

#### What the word-pair benchmarks measure

The intrinsic experiments compare similarities from the embeddings with human judgments about word pairs. For English, German and Italian, the authors use both SimLex-999 and WordSim-353. They add SimVerb-3500 for English, which allows them to examine similarity specifically among verbs. These benchmarks give the paper several tests of the space. Improving one set of human rankings need not improve another because the words and judgments against which the representations are tested differ. [SimLex-999](https://md.research.elamur.ai/free/en/papers/hill-2015-simlex-999-evaluating-semantic-models/) and [SimVerb-3500](https://md.research.elamur.ai/free/en/papers/gerz-2016-simverb-3500-large-scale-evaluation/).

The reported metric is Spearman’s rank correlation, written ρ. It measures how well the ranking inferred from the vectors agrees with the ranking implied by the human ratings. If a representation puts the pairs people judge most similar ahead of those they judge less similar, the correlation reflects that agreement. A higher value indicates closer agreement in rank. The score does not measure whether the numerical similarities reproduce the rating scale or identify the individual word pairs responsible for a change.

The original vectors provide the starting point for each embedding family. Attract-Repel shows what the initial adjustment alone achieves. DFFN tests a learned post-specialization mapping, and AuxGAN gives a comparison with an earlier adversarial method. WGAN and WGAN-GP are reported separately in the English word-pair results. In the German and Italian results, the paper lists a WGAN row without a separate WGAN-GP row. Each specialized approach can also be compared across the external, BabelNet and combined pair collections.

Overlap and disjoint describe how the lexical supervision was prepared. They are separate from the choice of word-pair benchmark, embedding or constraint source. The original vectors give the same score in both conditions for a fixed benchmark and embedding because they precede constraint processing. For specialized vectors, a score should be read together with the constraint source and the overlap or disjoint condition. Otherwise a difference that accompanies access to benchmark words could be mistaken for an improvement in the ability to generalize to withheld words.

#### English with GloVe

English SimLex-999 shows a favorable case for the Wasserstein methods. With GloVe and the external constraints in overlap, the original vectors score 0.407, Attract-Repel scores 0.781 and DFFN scores 0.785. AuxGAN reaches 0.789. WGAN scores 0.809, while WGAN-GP reaches 0.810. These are Spearman correlations on the same benchmark. The comparison shows that the adversarial mapping can improve on vectors that have already received direct adjustment in a setting where benchmark words may be in the constraints.

Switching to the combined constraints in GloVe overlap changes the ordering of the Wasserstein variants on SimLex-999. AuxGAN scores 0.796, WGAN scores 0.808 and WGAN-GP scores 0.798. Both variants lead AuxGAN there, with WGAN giving the higher correlation of the two. For the combined-constraint disjoint condition, only the general mapping can carry the specialization to the benchmark words. Here WGAN again leads the comparison, and both Wasserstein variants score above the original vectors and the direct adjustment.

English SimLex-999 rank correlation with GloVe, combined constraints and disjoint evaluation The Wasserstein mapping gives the highest agreement with human rankings when benchmark words are withheld from the constraints.

**The numbers**

| System or setting | Spearman ρ |
| --- | --- |
| Original GloVe | 0.407 |
| Attract-Repel | 0.407 |
| DFFN | 0.646 |
| AuxGAN | 0.659 |
| WGAN (this paper) | 0.663 |
| WGAN-GP | 0.660 |

SimVerb-3500 gives a different view of the same GloVe mappings. With external constraints in overlap, the original vectors score 0.280 and Attract-Repel reaches 0.761. WGAN reaches 0.767, ahead of AuxGAN at 0.764, while WGAN-GP scores 0.751. With the combined constraints in disjoint, DFFN scores 0.535, AuxGAN 0.560, WGAN 0.549 and WGAN-GP 0.551. The best of these disjoint results belongs to AuxGAN. The comparison narrows the conclusion one can draw from the SimLex-999 example. A mapping that improves one set of rankings with the same embedding family and constraint sources need not lead on verbs.

WordSim-353 supplies a further contrast. With GloVe, combined constraints and overlap, WGAN-GP reaches 0.715, while WGAN scores 0.653 and AuxGAN 0.639. The original vectors score 0.655. Holding the benchmark, embeddings and constraint combination fixed while switching to disjoint gives DFFN a score of 0.684. AuxGAN scores 0.669, WGAN 0.665 and WGAN-GP 0.672. In this comparison the gradient-penalty variant leads the overlap setting, while the feed-forward baseline leads the disjoint setting. The paper’s most consistent English GloVe advantage for the Wasserstein approaches is on SimLex-999, rather than across all three benchmark families.

#### English with Word2Vec

The English Word2Vec results test the same specialization approaches on a different input space. In disjoint SimLex-999 with combined constraints, the original vectors and Attract-Repel both score 0.414. DFFN reaches 0.538 and AuxGAN reaches 0.583. WGAN scores 0.586 and WGAN-GP scores 0.585. Both Wasserstein variants are ahead of those baselines in this setting. The fact that the local score equals the original score makes the source of the observed change easier to locate. It appears when a mapping is applied to vectors for which local specialization had no direct pairs.

In the corresponding overlap comparison on English SimLex-999, the original Word2Vec score is also 0.414. With combined constraints Attract-Repel reaches 0.776, DFFN reaches 0.777 and AuxGAN reaches 0.782. WGAN scores 0.771 and WGAN-GP scores 0.775. In this condition the earlier adversarial mapping leads the comparison, and both Wasserstein variants fall below the initial adjustment. This matters because the global mapping aims to extend the lexical information across the vocabulary. Its performance on a set where direct specialization can already move many of the relevant vectors can differ from its performance where direct updates are unavailable.

English Word2Vec with combined constraints in disjoint SimVerb-3500 gives WGAN-GP a correlation of 0.463. WGAN scores 0.440 and AuxGAN scores 0.438, compared with 0.272 for the original vectors. For WordSim-353 with the same embedding, constraint source and disjoint setting, WGAN reaches 0.611, WGAN-GP reaches 0.609 and AuxGAN reaches 0.603. The original score is 0.593. The gradient penalty thus accompanies the higher Wasserstein score on one of these benchmarks, while WGAN is ahead on the other. Both comparisons hold the initial embedding family and the constraint source fixed.

#### German and Italian

The German and Italian experiments begin with Word2Vec and evaluate SimLex-999 and WordSim-353. They test the same general procedure with language-specific starting spaces and lexical collections. The authors also compare the original vectors and the initial adjustment with the post-specialization methods. This is useful where Attract-Repel has little effect on a tested ranking. A subsequent change can still arise when the learned mapping acts on the benchmark words.

German WordSim-353 in overlap illustrates both a benefit from adversarial post-specialization and a reversal in which variant leads. With combined constraints, the original vectors and Attract-Repel each score 0.538, and DFFN scores 0.541. AuxGAN reaches 0.564 and WGAN reaches 0.559. With BabelNet constraints alone, the AuxGAN score is 0.552 and the WGAN score is 0.558. WGAN leads AuxGAN when the BabelNet collection is the only source, while AuxGAN leads when the collections are combined. In German disjoint WordSim-353 with combined constraints, WGAN reaches 0.560, compared with 0.556 for AuxGAN and 0.538 for the original vectors.

German SimLex-999 has a similar dependence on constraint source. With the combined collection in overlap, WGAN scores 0.371, AuxGAN scores 0.369 and the original vectors score 0.358. With only external constraints in overlap, both WGAN and AuxGAN score 0.331. DFFN gives a correlation of 0.366 in that external-only condition. The change from the external collection to the combined collection gives a different picture of how well the adversarial methods work. An account of the German result therefore needs to specify the collection as well as the system.

On Italian SimLex-999 in disjoint, with combined constraints, the original Word2Vec vectors score 0.356. Attract-Repel scores 0.367, DFFN 0.369 and AuxGAN 0.368. WGAN reaches 0.370 in that condition. The overlap results on the same benchmark give a useful counterexample. With the external constraints, DFFN reaches 0.381, the initial adjustment reaches 0.376 and WGAN scores 0.361, against the original 0.356. These are changes in the same correlation metric, and their ordering depends on which setting and collection the paper uses.

Italian WordSim-353 shows a case where the original space remains competitive. In overlap with external constraints, the original vectors score 0.563 and Attract-Repel scores 0.568. DFFN reaches 0.512, AuxGAN 0.561 and WGAN 0.558. With combined constraints in overlap, WGAN reaches 0.567. In disjoint with combined constraints, WGAN scores 0.562, while AuxGAN and the original vectors each score 0.563. The Italian results demonstrate how a method can improve rankings on one benchmark or with one source while lagging a simple baseline on another.

#### Dialogue state tracking

The downstream evaluation asks whether the vector changes help with [dialogue state tracking](https://md.research.elamur.ai/free/en/topics/dialogue-systems/). A tracker estimates the state of a conversation from what the user has expressed so far. In a task-oriented dialogue, that state describes the user’s goal, including the preferences that the system needs to recognize together. A vector comparison contributes evidence about what the words in an utterance mean in relation to those preferences. The tracker in the paper computes probabilities from the pretrained embeddings, making it possible to compare how it behaves with the original and specialized representations.

The authors evaluate on the English Wizard-of-Oz dataset, WOZ v.2.0. It contains 600 training dialogues, 200 development dialogues and 400 test dialogues. The tracker's experimental metric is joint goal accuracy, or JGA. The word joint means that the goal components are assessed together. A correct judgment about one preference does not compensate for an incorrect judgment about another component of the same goal. This makes the metric distinct from rank correlation on isolated word pairs. [Wizard-of-Oz dialogue system](https://md.research.elamur.ai/free/en/papers/wen-2017-network-based-end-end-trainable/).

The comparison uses GloVe and the overlap constraint setting. The paper reports a single WGAN-postspec entry for this experiment. Its score is 0.838, compared with 0.836 for AuxGAN and 0.829 for DFFN. Attract-Repel by itself scores 0.817, and the original embeddings score 0.797. The ordering shows a benefit from direct adjustment in this configuration and higher reported accuracy for each of the post-specialization methods. The leading two scores are close, and the table gives one score per method.

English WOZ v.2.0 joint goal accuracy with GloVe in the overlap setting Each specialization method improves on the original vectors, and WGAN-postspec has the highest reported accuracy.

**The numbers**

| System or setting | Joint goal accuracy |
| --- | --- |
| Original GloVe | 0.797 |
| Attract-Repel | 0.817 |
| DFFN | 0.829 |
| AuxGAN | 0.836 |
| WGAN-postspec (this paper) | 0.838 |

The dialogue result puts the intrinsic findings in a practical setting. The benchmark correlations ask whether the vector geometry ranks pairs as people do. The tracker asks whether the geometry supplies useful evidence when it has to recover a goal from a conversation. The two evaluations can support one another without measuring the same property. The tracker result establishes usefulness for the reported English GloVe configuration. The word-pair results give the broader comparison across languages, starting spaces and constraint inventories.

### What the ablations show

#### Direct lexical adjustment and generalization

The paper compares stages and training conditions through its baseline and results tables. The most direct comparison of the stages holds the benchmark, starting embeddings and disjoint condition fixed and looks at the original vectors, Attract-Repel and the mappings. On English SimLex-999 with GloVe and combined constraints, Attract-Repel retains the original score of 0.407. DFFN, AuxGAN and both Wasserstein variants produce higher correlations. This is evidence that a transformation learned on covered words can improve the ranking of pairs made up of benchmark words removed from the constraints. It also shows that this form of generalization is shared by several post-specialization methods.

The overlap condition helps locate a different source of improvement. On GloVe SimLex-999 with the external constraints, Attract-Repel moves from the original 0.407 to 0.781. The Wasserstein variants give higher scores again, but the large shift in the ranking is already visible after direct adjustment. Read alongside the disjoint condition, this comparison explains why the local method can look highly effective on one evaluation and leave the score at its starting value in another. The constraint filter determines whether the initial stage has any lexical pairs from which to adjust the tested words.

The disjoint tables are also worth reading at the level of the whole benchmark. For Italian SimLex-999, the disjoint Attract-Repel entries differ from the original score. The reported filtering rule removes pairs containing benchmark words, so an exact match would be the simple expectation for any tested representations that remained entirely untouched. The paper does not analyze that discrepancy. The strongest evidence for the distinction between local adjustment and generalization comes from comparisons such as the English GloVe one, where the reported local score and the original score coincide and the mapping produces the change.

#### Changing the source of the constraints

The inventory comparison provides an empirical test of what adding BabelNet can do. Its effects are especially clear where the external collection gives weak results. On German WordSim-353 in overlap, WGAN gives 0.528 with the external constraints, 0.558 with BabelNet and 0.559 with the combined collection. The original vectors give 0.538. On the same language and benchmark with the disjoint filter, WGAN scores 0.531 with the external collection, 0.559 with BabelNet and 0.560 with both. The ordering recurs whether the benchmark vocabulary is eligible for direct supervision or withheld.

The English comparisons give several reasons to distinguish having more pairs from obtaining a better result. For GloVe on disjoint SimLex-999, WGAN gives 0.661 with external constraints, 0.452 with BabelNet and 0.663 with both. The external examples are important to the stronger reported results in that case. On GloVe WordSim-353 in disjoint, the same method gives 0.642 with external constraints, 0.671 with BabelNet and 0.665 with both. Here the BabelNet condition is strongest for WGAN. Both comparisons use Spearman correlation and keep the embedding family and disjoint setting fixed, yet they give different orderings of the resources.

These comparisons establish that the composition of the pair collection matters. They leave the cause of a particular resource advantage open. Changing sources changes the words seen in initial specialization, the number and balance of synonym and antonym pairs, and the resulting adjusted targets. All of those differences reach the mapping stage. The experiments therefore compare the resources as used by the full procedure. There is no matched comparison that keeps word coverage and relation balance fixed while varying only the origin of the constraints.

#### Changing the adversarial objective and adding a penalty

AuxGAN provides a baseline that already uses adversarial feedback. Its comparison with WGAN-postspec addresses the effect of adopting the Wasserstein training setup in a method that also works from initially adjusted embeddings. The English GloVe SimLex-999 results generally favor the Wasserstein variants in the conditions discussed above. Other comparisons favor AuxGAN or DFFN. The dialogue evaluation places WGAN-postspec at 0.838 and AuxGAN at 0.836. Those findings indicate where the complete proposed setup ranks, without isolating the change attributable to its distance measure.

The comparison between WGAN and WGAN-GP asks whether the gradient-penalty setup helps. English GloVe overlap WordSim-353 with combined constraints favors WGAN-GP, which scores 0.715 against 0.653 for WGAN. English GloVe overlap SimVerb-3500 with the same constraints favors WGAN, at 0.765 against 0.732 for WGAN-GP. Both use the same type of initial lexical adjustment. The direction of the comparison changes with the test, and the reported optimizers also differ. The paper’s results therefore support a conditional account of the penalty variant. Its effect is best described in terms of the full training configuration and the benchmark on which it was tested.

The scores also provide only indirect evidence about the authors’ motivation for the adversarial term. Better agreement with human rankings or better dialogue accuracy shows that certain outputs are more useful by those criteria. To trace that benefit to the distribution of generated vectors, a comparison would have to measure the distributional change itself or isolate the adversarial term in an otherwise fixed mapping. The paper instead reports comparisons among complete methods. Those comparisons establish the relative performance of the implemented procedures under the tested conditions.

### Limitations

#### Limits identified by the authors

The authors describe the English results from combining external and BabelNet constraints as inconclusive. Their tables contain settings in which the combined inventory helps, settings in which the external resource already gives a stronger result than BabelNet, and settings in which adding the external resource to BabelNet does not improve the correlation. They report more generally favorable effects from adding constraints in German and Italian. The individual scores still depend on the benchmark and the mapping, so these observations describe tendencies across their experiments.

The authors also limit their downstream evidence through the scope of the experiment. They expect specialization to help in other settings and identify experiments with other languages and embeddings as necessary to test that expectation. The reported dialogue scores come from English WOZ v.2.0 with GloVe in overlap. The German and Italian experiments measure agreement with human word-pair ratings. Extending the dialogue claim to either language would require a downstream evaluation there.

Their proposed extensions also indicate the scope of the lexical relations studied. Synonym and antonym constraints ask for attraction or repulsion between the members of a pair. The authors propose extending the approach to asymmetric relations, where the relation can have different meanings depending on which word comes first. They also propose adapting the method for multilingual use in [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). The experiments on separate monolingual embedding spaces leave the behavior of such an adaptation open.

#### Limits visible in the experimental setup

The disjoint setting tests generalization within an existing embedding vocabulary. A withheld benchmark word still has a vector learned from text, and that vector is the input from which the mapper predicts its specialized representation. The test therefore concerns transfer to words absent from the lexical specialization constraints. It supplies no result for a word that lacks a starting vector. The same distinction applies to a previously unrepresented sense of a word. BabelNet identifiers are used to collect constraints, but the evaluations concern word vectors rather than predictions about each occurrence in a particular sentence.

The multilingual evidence is broader in coverage than a single English experiment, but the starting embeddings and lexical resources differ across the languages. The English Word2Vec vectors come from Polyglot Wikipedia with skip-gram, while the German and Italian Word2Vec spaces use CBOW and WacKy corpora. English has a GloVe condition as well. The resource construction also draws on different supplementary collections. A contrast between languages consequently includes several differences in data and representation. It cannot isolate the effect of language on post-specialization.

The constraints are also uneven in their coverage of synonyms and antonyms. In the English overlap inventory, the BabelNet and combined conditions have very different antonym counts, alongside their differences in synonym count. A comparison between those inventories cannot reveal whether an observed gain came from covering more words, supplying additional contrasts between opposite meanings or improving the fit of the target geometry to a particular benchmark. The rank correlations summarize the pairs as a group. The paper gives no breakdown that links changes in the rankings to individual types of constraint.

The optimizer changes alongside the adversarial objective. AuxGAN, WGAN and WGAN-GP are each trained with a different reported optimizer, so the scores compare training setups in which more than the loss varies. The paper motivates Wasserstein training partly in terms of stable feedback, but its results concern final task scores. It gives no direct comparison of stability across training runs. The objective description supplies the paired and adversarial components and explains where the gradient penalty enters. It leaves details such as the numerical penalty coefficient unspecified.

Finally, the reported tables give point estimates. They do not give uncertainty intervals around the rank correlations or joint goal accuracies. That matters when judging differences such as the dialogue scores of 0.838 for WGAN-postspec and 0.836 for AuxGAN. The paper establishes their ordering in the reported evaluation, while the reliability of that ordering across repeated training or alternative samples remains unmeasured. The larger movement from the original GloVe vectors to the specialized representations addresses a different comparison from the separation between the two adversarial methods.

### What came after

No later study is identified here as extending or testing WGAN-postspec. The paper itself leaves open whether the method can preserve the direction of asymmetric lexical relations and whether a multilingual adaptation would help translation. Those are directions the authors proposed, with no subsequent result established for either.

## Cite

Cite as Magdalena Biesialska, Bardia Rafieian and Marta R. Costa-jussà. 2020. Enhancing Word Embeddings with Knowledge Extracted from Lexical Resources. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2020.acl-srw.36](https://doi.org/10.18653/v1/2020.acl-srw.36)

```bibtex
@inproceedings{biesialska2020enhancing,
  title = {{Enhancing Word Embeddings with Knowledge Extracted from Lexical Resources}},
  author = {Magdalena Biesialska, Bardia Rafieian and Marta R. Costa-jussà},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop},
  year = {2020},
  doi = {10.18653/v1/2020.acl-srw.36},
  url = {https://doi.org/10.18653/v1/2020.acl-srw.36}
}
```

> 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)
