Elamur Research

Relation Induction in Word Embeddings Revisited

Paper · 2018 · Zied Bouraoui, Shoaib Jameel and Steven Schockaert

Summary

Given a handful of capital–country pairs, can a system find other pairs that stand in the same relationship? The difficulty is that both words are unknown. A system that can complete an analogy when given the name of a capital may still rank unrelated pairs above genuine capitals and their countries when it has to judge arbitrary candidates. The paper studies this broader task, called relation induction, using word embeddings. These are numerical representations in which a word is a point and a pair of words defines a displacement. Earlier analogy methods made use of the observation that pairs sharing a relation can have similar displacements. The authors ask what additional evidence is needed to recognize a relation reliably.

Their first method learns which kinds of words tend to occur in each position and which displacements are typical of actual examples. It estimates these patterns as distributions, so a candidate can depart from the average in ways that the training examples suggest are ordinary. It also checks how much a displacement distinguishes genuine pairs from pairs assembled out of plausible source and target words. The second method learns to predict the target vector from the source vector by Bayesian linear regression. This permits relationships whose displacements vary with the source, at the cost of having more to learn from the example pairs.

The evaluation draws on the Google Analogy Test Set, BATS and DiffVec. Across the embedding and benchmark combinations, the probabilistic translation method has the highest macro-averaged F1 and mean average precision. With Google News Skip-gram embeddings on BATS, for instance, it reaches 0.682 macro F1 and 0.773 mean average precision. Regression is less reliable across relations, yet it scores 0.83 in mean average precision for DiffVec meronymy with those embeddings, compared with 0.67 for the translation method. Comparing training set sizes for that relation shows that the translation method leads when it uses under one eighth of the training data. A separate comparison shows regression overtaking it when randomly generated negative test pairs outnumber positives by more than 32:1. The overall benchmark results favor probabilistic translations, while the meronymy comparisons show how the ordering can change with the amount of training evidence and the difficulty of screening a crowded candidate list.

Deep dive: Relation Induction in Word Embeddings Revisited

Relation induction from word embeddings uses probabilistic translations and regression to find new word pairs that share a known relation. · about 35 minutes to read

The problem and its context

From completing an analogy to judging a pair

An analogy question supplies a relationship through an example and asks for a missing word. In the paper's example, France stands to wine as Germany stands to an unknown answer. The question has already established Germany as the third term. A system can search for a word that fits that term and the example relation. A relation-induction system faces an additional decision. For any proposed pair, it must work out whether the first word belongs in the source position, whether the second word belongs in the target position, and whether the words stand in the specified relationship. The order is part of the task. A city followed by its country can satisfy capital-of, while the same words in reverse order express the inverse.

This matters even when an embedding represents the relation well enough to help answer analogies. Suppose that a displacement learned from known capital–country pairs points from a given capital towards its country. That observation tells us something about how to search from a suitable starting point. In relation induction, a proposed starting point might be a verb or an animal name. The same displacement can still land near another word after it is added to that starting point. The score for the displaced vector may then be high, even though the pair has little to do with geography. A score originally used to choose among answers to a particular question is now being asked to separate relevant pairs from a far larger variety of candidates.

The paper's motivating example makes the distinction concrete. The authors average the displacements from examples of the BATS capital relation and use cosine similarity to compare each translated source with its candidate target. Cosine similarity measures how closely two vectors point in the same direction. In the resulting list, horse–horses scores 0.84 and boy–girl scores 0.79. The genuine pair madrid–spain scores 0.73. Even spain–madrid, with its roles reversed, scores 0.68. These are scores for pairs under the average-translation method on the capital relation. They show how regularities of other kinds can compete with the intended relation in the same embedding space.

The authors connect this problem to class imbalance. A vocabulary permits a very large number of ordered pairs, while a given relation can have comparatively few instances. Many random pairs may each have a small chance of receiving a misleadingly high score. Their sheer number can make such cases common near the top of a ranking. The practical question is therefore how the score behaves among the strongest false candidates. A tendency for true pairs to score well on average leaves that question open.

There is also a question about which parts of the embedding deserve attention. A cosine-based comparison treats the coordinates uniformly in the vector calculation. A particular relation may be expressed reliably along some directions and be highly variable along others. A single analogy example offers little evidence about that variability. A collection of pairs gives the learner repeated observations. It can ask which aspects of the displacement persist across the examples and which aspects can change while the relation stays the same.

What earlier work offered

The paper places its task alongside other approaches to filling gaps in a knowledge base. One approach is information extraction from text. Known instances can be used as distant supervision, supplying indirect labels for text in which the corresponding entities occur. The paper cites early work on that strategy and on handling the fact that a set of mentions can carry several possible relations. Such methods can seek fine distinctions in wording when a corpus explicitly expresses the relationship. Distant supervision for relation extraction without labeled data · Multi-instance Multi-label Learning for Relation Extraction

A second family learns from the known relationships in the knowledge base itself. The paper describes latent representations and probabilistic rules as ways of exploiting dependencies among recorded facts. Methods in this family can infer missing links without going back to a corpus for a sentence that states them. What they can infer depends on the structure and facts already available. Some of the cited work uses translations in representations learned for multi-relational data, a setting in which the recorded links help determine the representations. The present paper begins with word vectors and uses known pairs to learn how to score a particular relation within that space. Translating embeddings for multi-relational data · Embedding Entities and Relations for Learning and Inference in Knowledge Bases

Word embeddings provide a third route. The authors are interested in the possibility that the contexts in which words occur can provide indirect evidence for commonsense relationships, including those seldom stated outright. Their starting point is earlier work on linguistic regularities in embeddings. Its analogy procedure moves from the new source by the displacement observed in the example, then looks for a vector close in angle to the result. The method is attractive because it can express a relationship through a simple operation on existing word vectors. That simplicity also makes it possible to ask exactly what changes when the same operation is used to screen candidate pairs. Linguistic Regularities in Continuous Space Word Representations · GloVe: Global Vectors for Word Representation

The authors review several kinds of evidence that directions can carry meaning. One line of work finds a direction for polarity. Another uses a direction between words such as bad and good to place other adjectives on a scale. Research on country attributes uses regression to infer quantities from word vectors. These examples motivate the use of geometry for relation induction, while leaving a separate question about what geometry suits a particular relation. An ordering along a direction, a numerical attribute inferred from a vector and a relationship between two word vectors all use information in the embedding in different ways. Deriving Adjectival Scales from Continuous Space Word Representations · Distributional Vectors Encode Referential Attributes

Research on hypernymy had already considered how to represent both words of a pair for classification. A hypernym is a more general term for a kind of thing. One cited approach joins the two word vectors and uses a support vector machine with a polynomial kernel. Another uses normalized vectors, with both coordinate differences and their squares as features. A signed difference can capture the direction of a change, while its square captures how different the coordinates are regardless of direction. The paper also discusses approaches in which a word occupies a region or is represented by a density, rather than being represented solely by a point. Entailment Above the Word Level in Distributional Semantics · Inclusive yet Selective

The closest relation-induction study cited by the authors trains a linear support vector machine on word-vector differences. One of its controlled tasks asks which relation from a given set a pair belongs to. The paper reports that adding random word pairs produced many false positives in that earlier work. Another study supplied multiple examples of a relation but still gave the system a valid source at test time. It introduced two methods that the present authors use as baselines, with an adaptation for the wider task. Together, these precedents explain the paper's emphasis on judging both positions and testing against several kinds of negative pair.

The method, step by step

What the learner sees

The training data for a relation are pairs of words that stand in that relation. The embedding supplies a vector for each word. The first member of each ordered pair is the source and the second is the target. An example of a superlative transformation supplies a source form and its superlative. An example of capital-of supplies a city in the source position and a country in the target position. The learning procedure is applied to the examples for a particular relation, so the role assigned to a word depends on the relationship being studied.

Each method gives a candidate pair a score. A collection of scores can be used to sort candidates or to decide which candidates clear a threshold. The translation method learns a distribution of displacements and estimates what kinds of words fit the separate roles. The regression method keeps a test for source suitability and estimates what target vectors are plausible given the candidate source. Both compare some of their fitted densities with broader reference densities. Those comparisons express whether an observation is especially characteristic of the relation or would be expected in a broader population as well.

Learning to score candidates for a relation

The steps in order.

Learning to score candidates for a relationStep 1: Collect known source and target pairs1. Collect known source and target pairsStep 2: Look up their word vectors2. Look up their word vectorsStep 3: Estimate densities for word roles and background3. Estimate densities for word roles and backgroundStep 4: Fit translation distributions or source-to-target regression4. Fit translation distributions or source-to-target regressionStep 5: Compare candidate evidence with the reference densities5. Compare candidate evidence with the reference densitiesStep 6: Rank candidates or apply a validation threshold6. Rank candidates or apply a validation threshold

Why a translation needs a distribution

The paper illustrates the translation assumption with a projection of the BATS superlative pairs. A principal-component projection displays directions of variation from the full embedding in a smaller space so that the points can be plotted. In the superlative example, the arrows from sources to targets look roughly parallel, but their lengths vary. A new pair with a different arrow length may still follow the relation closely. A sideways departure can be more informative when the observed arrows seldom depart in that direction.

A distribution expresses this distinction through variance. Variance describes the spread of observations. If the training displacements vary substantially along one dimension, a large deviation along that dimension can be compatible with the relation. A deviation of the same size is more surprising along a dimension where the examples are tightly grouped. The paper fits coordinate distributions separately for several parts of the scoring rule. The picture conveys the intuition about directional variability. The actual density estimation uses a diagonal covariance restriction in the embedding coordinates and hence has less flexibility in how it describes the shape of the spread.

The position of each word supplies additional information. The source words for a relation can form a recognizable group in an embedding. The same can be true of targets. For superlatives, the authors expect the source and target forms to fall in characteristic regions, as well as being connected by familiar displacements. For capitals and countries, source and target evidence can make a pair of inflected verbs unlikely even if moving from one verb to the other gives a high cosine score. The evidence is soft. A candidate receives more or less support based on where its word vectors fall, without a manually specified list of eligible words.

Separating role evidence from pair evidence

The authors begin with the idea that whenever a pair satisfies the relation, its source and target fit their respective roles. Their factorization scores role fitness for each word and then evaluates the relation among pairs whose words fit those roles.

P(θₛₜ | s, t) = P(δₛ | s) · P(δₜ | t) · P(θₛₜ | s, t, δₛ, δₜ)

Here s and t denote the source and target vectors under consideration. θₛₜ is the event that the ordered pair is an instance of the relation. δₛ is the event that the source fits the source role, and δₜ is the corresponding event for the target. P denotes probability, the vertical bar identifies the conditions under which it is evaluated, and the centered dots multiply the factors. The factorization treats the two role judgments as separable, each given its own word. The final factor represents pair evidence after conditioning on suitability for both positions.

With the translation assumption and Bayes' rule, the authors express the score using densities. A density describes how concentrated observations are near a point in a continuous space. The ratios compare how strongly the same vector is supported under different assumptions.

P(θₛₜ | s, t) ∝ [f(s | δₛ) / f(s)] · [f(t | δₜ) / f(t)] · [f(t − s | θₛₜ) / f(t − s | δₛ, δₜ)]

The symbol ∝ means proportional to. P, s, t, θₛₜ, δₛ and δₜ have the meanings just given. f denotes a density, and a slash divides one density value by another. The first ratio compares the density of s among eligible sources with its density in the vocabulary. The second makes the equivalent comparison for t as a target. The vector t − s is the displacement from source to target. Its density among genuine instances is the numerator of the last ratio. Its density among pairs whose words fit the respective roles is the denominator of that ratio.

The vocabulary comparisons matter because a word can lie in a densely populated part of the embedding for general reasons. A high source density becomes more informative when the same location is less typical of words in general. The displacement comparison addresses the same issue at the pair level. Take a source from the appropriate category and a target from the appropriate category, but choose them independently. They may already be separated by something close to the average displacement of a genuine pair. The last ratio asks whether correct pairings have a tighter or otherwise more characteristic pattern than these recombined candidates.

This gives the method a way to respond to relations that fit the translation assumption weakly. If the observed displacements from true pairs have much the same spread as those from the recombined pairs, the density ratio is expected to be near 1. In that case the displacement adds little to the role evidence. When genuine pairings show a more concentrated displacement pattern, locations within that concentration can receive substantial support from the last ratio. The comparison depends on what the positive pairs and the recombined pairs actually look like for the relation at hand.

Estimating the densities from examples

The Gaussian distribution is the paper's starting point for the source, target and displacement densities. A Gaussian describes a population around a mean, with covariance governing how widely it spreads and how dimensions vary together. With few relation examples and many embedding coordinates, estimating a separate covariance for every pair of dimensions is difficult. The authors restrict the role and displacement densities to diagonal covariance matrices. Under that restriction, each coordinate contributes its own density and the total is their product.

f(s | δₛ) = ∏ᵢ₌₁ᵐ f(xᵢˢ | δₛ)

Here f(s | δₛ) is the density of the whole source vector given source eligibility. xᵢˢ is coordinate i of s. The index i runs from 1 through m, where m is the number of embedding coordinates. The product symbol ∏ means to multiply all the indicated coordinate densities. f(xᵢˢ | δₛ) is the density for one such coordinate among eligible sources. The target density is estimated with the same procedure using the corresponding target coordinates.

A Gaussian fitted just at its estimated mean and variance would use those estimates as if they were certain. For a relation with few examples, even the spread of one coordinate can be poorly determined. The authors use Bayesian estimation to carry that uncertainty into the density of a new value. The mean and variance are allowed to vary according to a distribution over their plausible values. The density for the candidate coordinate is averaged over those values.

f(xᵢˢ | δₛ) = ∫ G(xᵢˢ; μ, σ²) NIχ²(μ, σ² | μ₀, κ₀, ν₀, σ₀²) dμ dσ

The left side is the coordinate density for an eligible source. G(xᵢˢ; μ, σ²) is the Gaussian density at the candidate coordinate xᵢˢ, with mean μ and variance σ². The paper writes the averaging integral ∫ with dμ dσ, indicating integration over the mean and scale. NIχ² denotes the normal–inverse-chi-squared family for the mean and variance. Its parameters are μ₀, a location for the mean, κ₀, a weight governing the concentration of the mean conditional on variance, ν₀, a degrees-of-freedom parameter, and σ₀², a variance scale. The authors explain that the standard setting offers no relation-specific prior information about the mean and variance. They use the flat-prior case for the predictive calculation.

For each source coordinate, the data entering that calculation are the values of the coordinate across the training sources. The center of the predictive distribution is the sample mean.

x̄ᵢ = (1 / n) ∑ⱼ₌₁ⁿ xᵢˢʲ

x̄ᵢ is the mean of coordinate i across the n training sources. j indexes those sources, sⱼ is the source in training pair j, and xᵢˢʲ is its coordinate i. The sum ∑ adds up the observations from j = 1 through j = n. Multiplication by 1 / n gives their average.

The paper gives the resulting distribution as a Student t density. Its scale reflects both the observed scatter and the uncertainty arising from estimating it from a finite sample.

f(xᵢˢ | δₛ) = tₙ₋₁(xᵢˢ; x̄ᵢ, [(n + 1) ∑ⱼ₌₁ⁿ (xᵢˢʲ − x̄ᵢ)²] / [n(n − 1)])

tₙ₋₁ is the Student t density with n − 1 degrees of freedom. It is evaluated at xᵢˢ with location x̄ᵢ. The last argument gives the squared scale in the paper's parameterization. Each squared term measures the departure of training source j from that location in coordinate i. The sum collects those squared departures, and the factors involving n account for the sample size. f and δₛ again refer to the density for the source coordinate given eligibility. The Student t calculation places more weight in the tails than a Gaussian used with fixed estimated parameters, allowing greater uncertainty about values away from the sample center.

The target role uses the same calculation with observations from the target side of the training pairs. The densities over words generally, f(s) and f(t), are estimated differently. The authors fit a Gaussian to the word vectors in the vocabulary using the sample mean and covariance. They regard the vocabulary as large enough to estimate these parameters directly. The diagonal restriction addresses the limited data available for a particular relation, whereas the general word density draws on the much larger collection of embedding vectors.

The displacement densities use coordinate-wise Student t estimates as well. The paper writes the overall displacement as target minus source and expresses the coordinate calculations with source minus target. Either orientation gives the same density comparison if it is applied to the training displacements and the candidate consistently. The following product uses the coordinate order of the paper's estimation procedure.

f(t − s | θₛₜ) = ∏ᵢ₌₁ᵐ f(xᵢˢ − xᵢᵗ | θₛₜ)

Here t − s labels the candidate displacement in the overall score. xᵢˢ and xᵢᵗ are coordinate i of its source and target, and the right side evaluates the reflected coordinate differences. m is the embedding dimension and θₛₜ specifies that the pair is a genuine relation instance. Each factor is fitted from the corresponding signed coordinate differences of the known matched pairs. The product combines that evidence across the embedding.

The reference displacement density uses re-paired sources and targets.

f(t − s | δₛ, δₜ) = ∏ᵢ₌₁ᵐ f(xᵢˢ − xᵢᵗ | δₛ, δₜ)

The symbols for the displacement, coordinate differences and product have the same meanings. δₛ and δₜ now condition on the suitability of the words for their roles. For the reference variance, the authors draw n pairs by sampling sources and targets from their respective training lists. They use the same mean for the reference density as for the matched-pair density. In effect, the reference retains the average separation of the two role populations and estimates how differences spread when the correspondence between source and target is relaxed.

Learning a linear relationship

A translation applies the same change to the source regardless of where it lies. The authors' second illustration, using the DiffVec meronymy relation, shows why this can be restrictive. Meronymy concerns a part and a whole. In the plotted projection, the arrows between related words do not trace a common move as clearly as in the superlative example. The authors therefore consider a more flexible relationship in which different source coordinates can contribute in different ways to predicting a target coordinate.

The resulting method uses Bayesian linear regression. A regression for a target coordinate predicts it from a weighted combination of source coordinates and a bias term. Fitting the regression estimates the weights that explain the training targets. The Bayesian calculation also reflects uncertainty about the weights and about the residual variation, meaning the variation left over around the fitted predictions. At test time the method evaluates whether the actual target vector fits the predictions for that particular source.

The scoring derivation initially gives the target an explicit role factor, just as in the translation method. In the comparison term, the authors treat the reference target density among eligible words as depending on target eligibility alone. This makes the conditional reference density equal to the role density for the target, so that those terms cancel.

P(θₛₜ | s, t) ∝ [f(s | δₛ) / f(s)] · [f(t | δₜ) / f(t)] · [f(t | s, θₛₜ) / f(t | s, δₛ, δₜ)] = [f(s | δₛ) / f(s)] · [f(t | s, θₛₜ) / f(t)]

P(θₛₜ | s, t) is the probability of the relation for the candidate source and target vectors. ∝ again denotes proportionality. f(s | δₛ) and f(t | δₜ) are the densities among suitable sources and targets, and f(s) and f(t) are the vocabulary densities. f(t | s, θₛₜ) is the target density given the source under the assumption that the pair is a genuine instance. f(t | s, δₛ, δₜ) is the reference target density given the source and the role events. The equality between products uses the assumption that this last density equals f(t | δₜ). The simplified score still evaluates the target. Its evidence comes from the source-conditioned prediction relative to the general density of that target vector.

Reducing the source space before fitting

A full source vector may have too many coordinates to estimate all its regression coefficients from the available pairs. The authors require at most n − 2 source coordinates for the predictive regression, where n is the training sample size. They therefore compress the source vectors with a singular value decomposition. This procedure identifies directions that summarize the matrix of observed sources and makes it possible to represent each source by its projections onto a smaller set of directions.

A = U Σ Vᵀ

A is the matrix whose rows are the training source vectors, with one column for each embedding coordinate. U contains the left singular vectors, which describe directions in the space of the rows. Σ contains the singular values, which give the strength of the corresponding components. V contains the right singular vectors, which are directions in the original embedding coordinates. The superscript ᵀ transposes the matrix, exchanging rows and columns. Multiplying the matrices recovers A.

The learner keeps the leading right singular directions. A candidate vector is compressed by taking its dot product with each retained direction.

pˢ = (p · v₁, …, p · vₖ)

p is any vector in the original embedding, and pˢ is its representation in the reduced source space. v₁ through vₖ are the retained directions, regarded as vectors in the embedding. The centered dot takes a dot product, giving the projection coordinate along a direction. The ellipsis denotes the intervening coordinates in the same order. For the training sources, these coordinates are the first k columns of UΣ.

The authors describe the dimension choice as a compromise. Keeping more directions can preserve useful details about the source, while leaving fewer observations with which to characterize the uncertainty of the fitted regression. Keeping fewer directions makes estimation easier and can discard distinctions that matter for the target. They use the following setting in the experiments.

k = (n − 1) / 2

k is the number of retained directions and n the number of training pairs. The paper gives the rule in this form. It leaves the rounding convention implicit when the expression gives a noninteger. The target remains in the original embedding space. The method reduces the input to each regression and fits a separate prediction for each original target coordinate.

Turning coordinate predictions into a pair score

The target density is built as a product of the predictive densities for those coordinates.

f(t | s, θₛₜ) = ∏ᵢ₌₁ᵐ f(xᵢᵗ | s, θₛₜ)

t is the target vector, s is the source vector, and θₛₜ denotes that the relation holds. xᵢᵗ is target coordinate i, and m is the full embedding dimension. f(xᵢᵗ | s, θₛₜ) is the predictive density from the regression for that coordinate, evaluated at the observed candidate target value. The product assumes the target coordinates can be evaluated independently once the source and relation are given.

For a particular target coordinate, the regression design matrix contains the reduced source coordinates and an added column of ones for the bias. The vector of responses contains that coordinate of each paired training target. The candidate source is projected using the same directions as the training sources, then given the same bias coordinate. The predictive density integrates over uncertainty in the regression coefficients and residual variance.

f(xᵢᵗ | s, θₛₜ) = ∫ G(xᵢᵗ; s*β, σ²) · G(β; (XᵀX)⁻¹Xᵀbᵢ, (XᵀX)⁻¹σ²) · NIχ²(σ² | ν₀, σ₀²) dβ dσ

X is the design matrix with the reduced training sources and bias column. bᵢ is the vector of observed values for target coordinate i in those same training pairs. s* is the candidate's reduced source vector with a 1 appended to account for the intercept. β is the coefficient vector, and the product s*β is the prediction for the candidate source at those coefficients. σ² is the residual variance. The first G is a Gaussian density for the target value about that prediction. The second is a Gaussian density for β, centered at the least-squares coefficients, with covariance scaled by σ². Transposition is denoted by ᵀ and matrix inversion by ⁻¹. NIχ² denotes the inverse-chi-squared variance term, with degrees of freedom ν₀ and variance scale σ₀². The integral averages over coefficients and scale, written as dβ dσ in the paper.

The residual degrees of freedom are the number of training pairs after accounting for the retained source directions and the bias term.

ν₀ = n − k − 1

ν₀ is the degrees-of-freedom parameter, n is the sample size and k is the number of retained input coordinates. The final 1 accounts for the bias coefficient. The flat prior on residual variance gives the paper's estimate of the variance scale from the fitted residuals.

σ₀² = [(bᵢ − Xβ̂)ᵀ(bᵢ − Xβ̂)] / (n − k − 1)

σ₀² is the residual variance scale for target coordinate i. β̂ is the least-squares estimate of the coefficients, Xβ̂ is the vector of predictions for the training sources, and bᵢ − Xβ̂ is the vector of residuals. Multiplying that residual vector by its transpose in the displayed order sums its squared components. Dividing by n − k − 1 uses the residual degrees of freedom. A candidate's target coordinate receives support according to its agreement with the prediction and the uncertainty of that prediction. The final score combines those coordinate densities with the source evidence and the vocabulary reference density for the target.

Experiments and results

Benchmarks, embeddings and test pairs

The evaluation repurposes analogy benchmarks as sources of known relation instances. The Google Analogy Test Set contains 14 relation types with varying numbers of examples. BATS, the Bigger Analogy Test Set, has 40 relations with 50 examples per relation. The DiffVec Test Set, abbreviated DV in the results, contains 36 relations whose sizes vary. All three mix syntactic and semantic relationships. Their different compositions matter because the results average over the relations represented in each benchmark. Analogy-based Detection of Morphological and Semantic Relations with Word Embeddings

The authors compare two Skip-gram embeddings and two GloVe embeddings. SG-Wiki and GloVe-Wiki come from the English Wikipedia dump dated 2 November 2015. SG-GN is the Skip-gram embedding from a 100B words Google News corpus, and GloVe-CC is from a 840B words Common Crawl corpus. The Wikipedia settings give the comparison a common corpus for the two embedding approaches. The other settings bring in embeddings trained on different collections. Any comparison between SG-GN and GloVe-CC therefore involves both the embedding procedure and the corpus. Efficient Estimation of Word Representations in Vector Space

For a relation with at least 10 examples, the authors use 10-fold cross-validation. Each fold serves in turn as held-out data, with examples from the other folds available for fitting and validation. For relations with fewer than 10 examples, they use leave-one-out evaluation, holding out an example at a time. These splits ask whether examples of a relation can support predictions about held-out pairs for that same relation.

The original benchmarks supply positive pairs. The authors create negative test candidates from several sources so that the evaluation includes mistakes of different kinds.

  • They reverse each test pair, testing whether a method distinguishes the two roles.
  • For each source in a test fold, they sample two targets from the same fold when there are enough pairs, skipping matches recorded with that source. This yields candidates whose words may fit the expected categories while making the wrong pairing.
  • For each positive pair, they draw a pair from another relation, testing whether evidence of some other relationship can produce a high score.
  • For each positive pair, they generate a random pair from the words in the dataset, bringing in candidates with a wider range of associations.

The distinctions between the negative sources are important for interpreting the test. A reversed example contains exactly the same two words as a positive. A recombined example can contain an eligible source and an eligible target. A pair from another relation has been recorded as related in some way. A random pair can receive a high score by chance or because the embedding encodes a different association. An overall score combines performance on this mixture. The relative contribution of each difficulty depends on how the test candidates were constructed and sampled.

What the baselines test

The first baseline, 3CosAvg or 3CA, learns the mean displacement from the training pairs. It adds that displacement to the candidate source and compares the resulting vector with the candidate target. This is the same underlying approach used in the paper's opening capital example.

score₃CA(t, s) = cos(s + [∑ᵢ (tᵢ − sᵢ)] / n, t)

score₃CA(t, s) is the baseline score for a proposed target t and source s. sᵢ and tᵢ are the source and target vectors of training pair i. The sum ∑ᵢ runs over the n training pairs. Each tᵢ − sᵢ is a training displacement, and division by n computes their mean. Adding it to s produces the baseline's predicted target vector. cos is the cosine similarity between that prediction and t.

The second baseline, LRCos or LRC, comes from an analogy method that uses the similarity of source and target together with a test of target eligibility. In its earlier setting, logistic regression gave the eligibility score. The authors adapt it to test both roles because the candidate source may itself be unsuitable. For comparability with their translation method, they use the same density estimates for role evidence.

scoreLRC(t, s) = [f(s | δₛ) / f(s)] · [f(t | δₜ) / f(t)] · cos(s, t)

scoreLRC(t, s) is the adapted baseline score. s and t are the two candidate vectors. f(s | δₛ) and f(t | δₜ) are their densities among eligible sources and targets, and f(s) and f(t) are their general vocabulary densities. cos(s, t) is the cosine similarity between the candidate words' vectors themselves. This version shares the role terms with the probabilistic translation score and uses a different final factor. It therefore supplies a closer comparison for the value of the displacement ratio than a comparison involving 3CA alone.

The final baseline uses a linear support vector machine, abbreviated SVM, trained on vector differences. It learns a linear decision rule from positives and constructed training negatives. The negative training pairs include reversed positives, recombinations obtained by replacing a target with the target from another training pair, and n random pairs for n positive training examples. The procedure excludes recombinations that are recorded among the training positives. The weight assigned to negative examples is the number of positive examples divided by the number of negative examples. The penalty parameter C, which controls the cost of classification errors during fitting, is tuned separately for each relation, taking candidate values from 0.01, 0.1, 1, 10 and 100.

Ranking and classification

For ranking, the question is how early the correct pairs appear when candidates are sorted by score. Average precision rewards rankings that retrieve positives near the top, taking into account the precision at the points where positives are retrieved. The paper reports mean average precision, or MAP, as its aggregate ranking metric. MAP lets the authors compare scores as ordering rules without choosing an acceptance threshold.

For classification, each scoring method needs a decision threshold. For the 10-fold procedure, the paper says it was selected by using a randomly sampled 10% of the data from the nine training folds for validation. The SVM's penalty is tuned on the same validation data. Precision is the share of accepted pairs that are correct, and recall is the share of correct pairs recovered. F1 combines precision and recall through their harmonic mean. The headline table gives macro-averages, so the entries summarize performance across relations. The macro F1 entry summarizes relation-level F1 scores and should be read directly from the reported results.

Performance across benchmarks

The probabilistic translation method, labeled Trans in the paper, achieves the highest macro F1 and MAP across the benchmark and embedding combinations. The BATS results with Google News Skip-gram vectors show the ordering clearly. The margin in these results comes from both aspects of the evaluation. The method ranks positives ahead of negatives and also gives the best combined precision and recall under the threshold procedure used in the study.

Relation induction methods on BATS with SG-GN by macro F1

The probabilistic translation score leads on thresholded pair classification.

Relation induction methods on BATS with SG-GN by macro F13CosAvg: 0.4693CosAvg0.469Adapted LRCos: 0.555Adapted LRCos0.555Linear SVM: 0.455Linear SVM0.455Bayesian regression: 0.462Bayesian regression0.462Probabilistic translation (this paper): 0.682Probabilistic translation (this paper)0.682
The numbers
System or settingF1
3CosAvg0.469
Adapted LRCos0.555
Linear SVM0.455
Bayesian regression0.462
Probabilistic translation (this paper)0.682

On the same BATS and SG-GN evaluation, translation reaches 0.773 MAP. Regression reaches 0.639 MAP, ahead of the adapted LRCos baseline at 0.614. The classification comparison tells a different story for regression. Its macro F1 is 0.462, below adapted LRCos at 0.555 and 3CA at 0.469. This shows why the paper reports both classes of metric. Regression can give a useful order to the candidates while accepting a less favorable set under the validation threshold. The test measures those outcomes separately.

The strength of translation extends beyond BATS. On the Google benchmark with SG-Wiki, it obtains 0.906 MAP and 0.714 macro F1. The regression method reaches 0.834 MAP and 0.634 macro F1 in that setting. On DiffVec with GloVe-Wiki the scores are lower. Translation obtains 0.387 MAP and 0.347 macro F1, while regression obtains 0.381 MAP and 0.321 macro F1. The highest baseline MAP in that DiffVec setting is 0.376 for the SVM. These results belong to distinct benchmark and embedding combinations. Their levels show the importance of stating both when reporting a result.

Relation induction methods on DiffVec with SG-GN by MAP

Both probabilistic methods put correct pairs ahead of negatives more effectively than the baselines.

Relation induction methods on DiffVec with SG-GN by MAP3CosAvg: 0.2733CosAvg0.273Adapted LRCos: 0.545Adapted LRCos0.545Linear SVM: 0.366Linear SVM0.366Bayesian regression: 0.621Bayesian regression0.621Probabilistic translation (this paper): 0.635Probabilistic translation (this paper)0.635
The numbers
System or settingMAP
3CosAvg0.273
Adapted LRCos0.545
Linear SVM0.366
Bayesian regression0.621
Probabilistic translation (this paper)0.635

Regression places ahead of all baselines in aggregate MAP in each reported setting. Its F1 advantages over the baselines are concentrated in the Google and DiffVec benchmarks. One exception is Google with GloVe-CC, where 3CA reaches 0.653 macro F1 and regression reaches 0.629. Baseline strengths also vary by benchmark. The authors observe that average translations are generally more competitive on Google, while the adapted LRCos score is generally a stronger baseline on DiffVec. The DiffVec chart shows how far those two baselines can diverge under the same embedding and ranking metric.

Performance on individual relations

The paper gives relation-level MAP for selected BATS and DiffVec relations using SG-GN. These results show what the aggregate comparisons conceal. Some grammatical transformations are scored well by both the average and probabilistic translation methods. On BATS superlative degree, 3CA and regression each have 0.87 MAP, and probabilistic translation has 0.93. On BATS capitals, translation reaches 0.75 MAP, regression 0.74 and adapted LRCos 0.68. The low 3CA result of 0.25 MAP for BATS capitals is consistent with the paper's motivating example, in which plausible-looking displacements also arise in pairs from other categories.

Several relations favor regression. For DiffVec Event, regression achieves 0.94 MAP and translation 0.74. For DiffVec Hyper, the corresponding values are 0.91 and 0.75. For DiffVec Mero, they are 0.83 and 0.67. The paper reports 3583 instances for Event, 1173 for Hyper and 2825 for Mero. These are total relation counts, and the scores are relation-level results using SG-GN. Together they motivate a closer look at how the amount of training data influences the relative performance of the methods.

There are also relations for which regression performs poorly. On BATS animal hypernyms, it gets 0.28 MAP while translation gets 0.85. On BATS substance meronyms, regression gets 0.27 and translation gets 0.61. Thus a regression advantage for the DiffVec meronymy category provides limited guidance for a separate part–whole category with its own examples, scope and sample size. The paper describes translation as beating the baselines across BATS relations. The displayed Animals sounds row gives a narrow exception to that description, with 0.77 MAP for adapted LRCos, 0.76 for translation and 0.79 for regression. The macro result on BATS still favors translation.

What the ablations show

How much the score gains from displacement evidence

The baseline comparisons provide a partial test of what changes between scoring rules. In particular, the adapted LRCos method uses the same estimated source and target role densities as probabilistic translation. It then uses the cosine between the candidate word vectors, where the translation method uses the relative density of the displacement. Translation's better aggregate results support the value of that displacement comparison over raw source–target similarity when the role terms are already present.

The comparison with average translation answers a broader question. Probabilistic translation introduces role evidence, a distribution of displacements and a reference formed from eligible sources and targets. These changes arrive together in the comparison with 3CA. The observed performance advantage therefore belongs to the combined scoring rule. The authors present no separate experiment that removes each role term or substitutes a fixed variance while holding the other terms constant. The adapted LRCos result is the closest comparison that keeps the role terms fixed, and it changes the remaining factor as a whole.

The figures of superlative degree and meronymy give a geometric explanation for why the two scoring approaches might behave differently across relations. The superlative arrows show a degree of common direction in spite of varying lengths. The meronymy arrows show a less coherent translation pattern. These are visual diagnostics of particular relations and embeddings. The training-size and negative-ratio experiments that follow test performance directly under a controlled change to the evaluation.

How training size changes the comparison

The authors vary how much training data the methods receive for the DiffVec Mero relation with SG-GN vectors. With all the training data used, regression ranks pairs most successfully. As the available training set shrinks, the advantage reverses. Translation becomes more effective than regression when the learner uses less than 1/8th of the training data. The figure reports MAP as a function of the fraction retained.

Changing the amount of training data for the same relation makes this comparison more informative than simply observing that large DiffVec relations sometimes favor regression. The relation and embedding stay fixed. For translation, even a small set of matched pairs contributes direct observations of the relation's typical displacement. Regression has to estimate how different source features affect the target coordinates. Under the dimension rule tied to the training sample, a smaller sample also means fewer directions are available to represent the source. The experiment captures the combined effect of those changes. It leaves their separate contributions open.

The authors emphasize that a single pair can specify a translation. That observation concerns the displacement itself. The full probabilistic translation score also needs estimates of spread and of reference densities. Its empirical advantage with less data for Mero concerns the fitted scoring methods used in the experiment. The comparison supports a choice between methods under the observed training conditions and relation geometry. It gives a relation-specific crossover, since the authors run this controlled experiment on Mero.

How an expanding negative pool changes the ranking

The authors also vary the number of negative test candidates for DiffVec Mero with SG-GN. This time all the negatives are random word pairs. The experiment ranges from 1 times the positive count to 512 times that count. As the pool grows, the scores of occasional high-ranking negatives become consequential. MAP falls for each method, with the baseline methods losing performance more quickly.

Regression holds up better than translation in this experiment and starts to outperform it when the ratio of negative to positive test examples exceeds 32:1. This is a separate finding from the cross-benchmark comparison. It concerns a change in the composition of the test set for a single relation. Translation is stronger in the main aggregate ranking results, and regression is stronger at the more extreme end of this particular random-negative test.

Adding negatives tests the tail of the scoring distribution. A method can order most random pairs below genuine instances and still produce a few false candidates with exceptionally high scores. The more opportunities such candidates have to appear, the more those cases can push positives down in the ranking. The Mero experiment shows that relative robustness depends on how many such candidates the evaluation introduces. Its result applies to a pool of randomly selected pairs. Harder negatives assembled from plausible part and whole terms can pose a different ranking problem.

Limitations

Limits the authors identify

The authors treat limited supervision as a central constraint. Estimating a covariance matrix for a relation with few examples is difficult in a high-dimensional embedding. Their diagonal density estimates make the problem tractable by restricting the dependence they can represent. Such a density can learn a different amount of variability for each coordinate. It has no parameter for joint variation between coordinates. If two coordinates vary together in a way that distinguishes actual pairs, separate coordinate densities provide an incomplete description.

Regression has a related data requirement. A general linear relationship needs more evidence than a single displacement. Projecting the source vectors into a smaller space allows the regression to be estimated with fewer observations, with some loss of source information. The leading singular directions summarize the training sources according to the structure of that source matrix. A direction that matters for predicting the target can be lost when it contributes little to that summary. The dimension setting used in the paper fixes one compromise between retaining detail and estimating predictive uncertainty. Its suitability can depend on the relation and the available sample.

The authors also describe the effect of the negative pool as a practical difficulty. The general evaluation and the random-negative experiment use finite candidate sets. The paper's opening argument concerns a far larger set of possible pairs. The measured sensitivity even to random candidates explains why a favorable ranking on a benchmark can be sensitive to the conditions under which a system is deployed. The authors describe the extreme-imbalance result for regression as evidence from their experiments. Its relation, embedding and type of negative example are part of the finding.

Two suggestions in the conclusions address weaknesses of the density and data assumptions. The authors consider representing an entire pair by concatenating its source and target vectors. A diagonal covariance on that representation would omit interactions between the two words, so they suggest reducing the pair representation first and estimating full covariance in the reduced space. They also suggest learning a prior from a broad relation with more examples and using it for a narrower relation. A generic causal relation, for example, might inform estimation for one of the more specific causal relations in DiffVec. These are directions the authors propose. The experiments evaluate the translation and regression scores described above.

Scope evident from the setup

The evaluation measures recovery of labeled pairs in benchmark-derived candidate sets. A negative candidate is counted as negative because of the sampling procedure. For example, a recombined source and target are used when the pair is absent from the known examples consulted for the test. Absence from that list is the available evidence. The setup offers no independent verification of every negative label. This matters when extending the interpretation to broad semantic categories, where a pair drawn by recombination or from another relation may have a plausible reading outside the benchmark's intended grouping.

Cross-validation tests held-out pairs within the same relation. The split is described at the pair level. That design supports conclusions about generalizing to withheld pairings, while a test of generalization to entirely unseen source or target vocabularies would need separate word-disjoint splits. The distinction matters because a role density can benefit from recurring kinds of words and closely related forms. A system that is useful for ranking pairs within a familiar vocabulary could behave differently when asked to assess a new population of words.

The paper compares classification thresholds chosen on validation data. That establishes a way to make binary decisions in the reported setting. The score formulas are proportional quantities, and the experiments assess ranking and thresholded decisions. They offer no calibration analysis showing that a score can be read as a portable probability of correctness under a different balance of candidates. A threshold selected for the benchmark mixture may have a different precision–recall tradeoff when applied to a much larger candidate pool or a pool filled with plausible but incorrect pairs.

The dependence of the results on the embedding also shapes what the paper establishes. The geometric examples describe particular relations in particular representations. The tabulated outcomes show that the same relation-induction method can have different success across embeddings. Since the spaces come from both different training approaches and, in some cases, different corpora, the reported comparisons leave open which properties of a space make a relation amenable to translation or regression. Similarly, the strong regression results for some large relations establish feasibility in those spaces and samples. Relation size, source geometry and the coherence of the relation all remain relevant to the interpretation.

Finally, the aggregate measures weight relations as units of evaluation. This is appropriate for asking how broadly a method works across the benchmark's relation inventory. A user seeking a particular relation might care more about that relation's own score and about the kinds of false positives that matter in its application. The paper reports selected relation-level rankings and focused tests on Mero. Its evidence is strongest for choosing between these methods under the reported conditions, with broader knowledge-base completion left to an evaluation designed around the candidate population and evidence available there.

What came after

SeVeN: Augmenting Word Embeddings with Unsupervised Relation Vectors (2018) cites the paper and places relation vectors alongside word embeddings as an additional representation learned without supervision. The connection is at the level of what the vectors represent. Bouraoui and colleagues start with word vectors and estimate a scoring rule from known instances of a particular relation. SeVeN's stated focus is on augmenting word embeddings with vectors for relations themselves. The citation and title establish that point of contact. The specific role of the probabilistic translation or regression procedure in SeVeN is unspecified.

Inducing Relational Knowledge from BERT (2019) also cites the paper and takes up relation induction using BERT. The continuity is the question of what relational information can be obtained from a learned representation. The earlier paper answers that question through the geometry of fixed word embeddings and comparison of candidates against known examples. The later title identifies BERT as the source for inducing relational knowledge. The citation and title leave open which aspects of the earlier scoring procedures, if any, carry over to that setting.

Cite

Cite as Zied Bouraoui, Shoaib Jameel and Steven Schockaert. 2018. Relation Induction in Word Embeddings Revisited. Proceedings of the 27th International Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{bouraoui2018relation,
  title = {{Relation Induction in Word Embeddings Revisited}},
  author = {Zied Bouraoui, Shoaib Jameel and Steven Schockaert},
  booktitle = {Proceedings of the 27th International Conference on Computational Linguistics},
  year = {2018},
  url = {https://aclanthology.org/C18-1138/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bouraoui-2018-relation-induction-word-embeddings-revisited/