---
title: "Interpretable Word Embeddings via Informative Priors (2019)"
description: "Informative priors give word embeddings readable axes for gender and sentiment while allowing words to retain their other associations."
canonical: "https://research.elamur.ai/free/en/papers/bodell-2019-interpretable-word-embeddings-informative-priors/"
---
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/bodell-2019-interpretable-word-embeddings-informative-priors/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Interpretable Word Embeddings via Informative Priors

# Interpretable Word Embeddings via Informative Priors

Paper · 2019 · Miriam Hurtado Bodell, Martin Arvidsson and Måns Magnusson

**Authors:** Miriam Hurtado Bodell, Martin Arvidsson and Måns Magnusson · **Year:** 2019 · **Venue:** Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · **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 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/D19-1661/)
- [PDF](https://aclanthology.org/D19-1661.pdf)
- [DOI 10.18653/v1/d19-1661](https://doi.org/10.18653/v1/d19-1661)

## Summary

[Word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) represent words as lists of numbers learned from the company they keep in a text. The full lists can help a researcher find related words, but their individual coordinates typically have no ready explanation. Two words may be close for reasons that are difficult to separate. For researchers in computational social science and digital humanities, the question frequently concerns a particular relationship, such as whether an occupation appears in contexts associated with men or women. A representation that puts this relationship on a named axis would let researchers examine it directly.

The authors build that axis into the learning procedure. They select anchor words expected to fall toward opposite ends of a dimension and use informative priors, which express preferences for where those words should sit before the evidence from the corpus is taken into account. The corpus still determines how other words are positioned. The paper compares priors that keep anchors near specified values with a prior that specifies only their side of the axis. It also tests an optional group of neutral anchors whose scores are encouraged to stay near zero. A central design choice is how freely the opposing anchors can vary in the other dimensions. Words can provide the same evidence about gender while differing in meanings that matter elsewhere in the representation.

The experiments use books from Project Gutenberg, a Twitter sample, and U.S. congressional speeches. They test whether words held out from the opposing anchor sets land on the expected side of a gender or [sentiment](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) axis. Using more anchors generally helps, especially when those anchors retain room to differ outside the designated coordinate. Overall accuracy is about the same for the Truncated Prior and the weak Standard Basis Prior. The proposed approach generally matches or surpasses a comparison that constructs the axis after training. An exception is congressional gender, where ambiguous names account for the poorer result. The full vectors classify those names correctly, suggesting that the designated coordinate captures only part of the relevant information.

The authors also let the embedding coordinates vary over time in the congressional corpus. They examine changes in the sentiment associated with September and Oklahoma and plot gender associations for nurse and lawyer. These examples show how a readable coordinate can support comparisons across years. The sentiment trajectories also show a consequence of the method: when adjacent years are deliberately tied together, a change associated with an event can appear before the event in the fitted trajectory.

## Deep dive: Interpretable Word Embeddings via Informative Priors

Informative priors give word embeddings readable axes for gender and sentiment while allowing words to retain their other associations. · about 34 minutes to read

**In this deep dive**

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

### The problem and its context

#### When proximity leaves the research question open

A researcher might use a word embedding to find which words are close to *nurse* in a body of speeches. That search is useful for discovering associations, but the researcher may have started with a more specific question. How is the occupation associated with gender in those speeches? A list of nearby words can reflect several properties at once. Some neighbors may be occupational terms, while others may be connected through a gender association. Overall proximity gives each of those relationships a chance to affect the result. A named coordinate would give the researcher a way to examine the association of interest even when it accounts for only part of the similarity between words.

That distinction explains why the paper treats [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) as a practical concern. The numerical representation can work well for a language task even when a person has difficulty explaining an individual coordinate. For research about how a concept appears in a corpus, a coordinate with a stable interpretation has a different use. A reader can ask why a particular word has a given score, compare words that share few other properties, or examine how a score changes across time. Those questions call for a representation whose coordinate has a specified meaning across the comparisons being made.

The authors connect this concern to the growing availability of large digitized collections. Computational social science and digital humanities already use textual evidence to ask substantive questions. The work cited in the paper includes studies of policy positions, political agendas, themes in literature, and framing. Word embeddings offer a way to organize evidence about word usage across such collections. The authors point to a difficulty in bringing that representation into a research design. The researcher may know which concept the analysis should track, while ordinary embedding estimation has no designated place for that concept to enter.

The paper therefore identifies two related problems. The first is explaining why words appear similar in a dense representation. The second is expressing a research question when the representation is learned. A researcher could look through the coordinates of an ordinary embedding and try to interpret some of them after the fact. That search starts from whatever organization the fit happens to produce. Here the question comes first. The researcher specifies a distinction that matters to the study and supplies a small portion of the vocabulary as evidence for its orientation.

This is a use of [distributional semantics](https://md.research.elamur.ai/free/en/concepts/distributional-semantics/), where evidence about a word comes from its surrounding language. The anchor words add an explicit assumption to that evidence. An anchor signals that the researcher expects a word to be associated with a particular pole of the concept. The scores of other words can then be investigated through their patterns of use. The assumption and the observation have separate roles. Calling an anchor gendered expresses a starting judgment about that word. Finding where an unanchored occupation sits is an outcome of fitting the representation to the corpus under that starting judgment.

#### How earlier work made embeddings easier to read

One line of earlier work sought more interpretable coordinates through sparsity. A sparse representation gives many coordinates no contribution for a given word, which can make it easier to inspect the coordinates that remain active. The paper groups several efforts under this approach. Their starting point differs from the question here: sparsity shapes how information is distributed across the representation, whereas an anchor prior assigns a substantive role to a particular coordinate. The paper cites [Sparse Overcomplete Word Vector Representations](https://md.research.elamur.ai/free/en/papers/faruqui-2015-sparse-overcomplete-word-vector-representations/) as an example.

The authors also mention rotation techniques. The intuition is that the same collection of points can be viewed relative to different axes. A set of directions that is hard to read in the original coordinates may be easier to interpret after the representation is reoriented. The issue is which direction the researcher can associate with the concept of interest. Rotation addresses that issue by changing the directions used to describe the space. With informative priors, the intended coordinate has a role in learning the space itself.

Dimension-specific constraints were already familiar in work on gender bias. The authors cite a method that gives gender information a designated location as part of learning gender-neutral representations. Better readability of the individual dimensions is a consequence of that design. The paper under discussion makes the substantive interpretation of a coordinate its direct objective and studies both gender and sentiment. The earlier example appears in [Learning Gender-Neutral Word Embeddings](https://md.research.elamur.ai/free/en/papers/zhao-2018-learning-gender-neutral-word-embeddings/).

In computational social science, an especially relevant approach starts with an embedding that has already been trained. Researchers take words from opposing sides of a distinction and look at the directions connecting them. If the direction from the vector for *woman* to the vector for *man* helps define an axis, another word’s relationship to that axis can be examined with vector geometry. Combining directions from several pairs is a way of pooling their evidence. This approach gives a researcher a readable direction even though the original coordinates were fitted without it. The paper cites this strategy in work by Kozlowski and colleagues and in [Word embeddings quantify 100 years of gender and ethnic stereotypes](https://md.research.elamur.ai/free/en/papers/garg-2018-word-embeddings-quantify-100-years/).

The paper also discusses ideal-point anchoring with opposing word pairs. Such an approach gives anchor words prescribed positions that help give an axis its interpretation. The important question for the new method is how much those positions should dictate about the rest of an anchor’s vector. A word can identify a pole of a contrast while also expressing properties that the opposing word or another anchor on the same side does not share. That distinction motivates the paper’s comparison between tightly constrained anchors and anchors that keep their freedom in other dimensions.

#### Why probability gives the researcher a place to express the concept

The paper builds on work that formulates embeddings probabilistically. That makes it possible to state a prior about a parameter and combine it with evidence from the observed text. An ordinary prior may express a general preference for values near zero. An informative prior can encode a more specific preference, such as a tendency for a particular word’s sentiment coordinate to be positive. The same fitting procedure can take account of both the general word usage and the special information about anchors. [Bayesian Neural Word Embedding](https://md.research.elamur.ai/free/en/papers/barkan-2017-bayesian-neural-word-embedding/) is among the probabilistic approaches the authors cite.

The role of the prior is easiest to see by imagining words whose association with the intended concept is already familiar. If selected anchors are encouraged to occupy opposite sides of a coordinate, the signs of that coordinate have an interpretation from the start. A word outside the anchor sets still has to find its place through the contextual evidence. The prior supplies structure to the question being asked. It also makes that structure visible, since a reader can identify which words the researcher supplied and which placements the analysis inferred.

This distinction matters when anchors are chosen for different purposes. A pair that is familiar in a gender contrast can define polarity, but a set that also includes terms for occupations or family relations raises a separate issue. Each additional word introduces its own pattern of contexts. A prior that leaves room for those differences can enlist several anchors without expecting that they will play the same role everywhere in the corpus. The authors examine this possibility by varying where an anchor can sit both on the named coordinate and off it.

The probabilistic formulation also accommodates time. A static representation gives a word a common embedding across the corpus. If the research question concerns changing associations, the fit can instead give that word a sequence of embeddings and express a prior preference for continuity across time. The substantive anchor priors and the temporal prior address different aspects of the representation. The former gives the coordinate its intended interpretation. The latter links estimates from nearby time slices so that each slice need not establish its position in isolation.

### The method, step by step

#### From a research question to a set of anchors

The researcher begins by choosing a contrast and deciding which coordinate will represent it. The paper uses the final coordinate. In the running gender example, *man* is a positive anchor and *woman* is a negative anchor. These labels establish an orientation. Their purpose is to tell the fit which direction belongs to each pole. In the sentiment experiments, the authors draw polarity anchors from the AFINN dictionary. The gender anchors follow the earlier work used for comparison.

A researcher can also designate neutral words. Neutrality here concerns the chosen coordinate. A word can carry useful contextual information and still be expected to sit near zero on the research axis. The neutral group lets the researcher express that expectation directly. Words outside the designated anchor groups keep the general prior, so their placement on the named coordinate comes from the contextual estimation under the fitted representation.

The fit uses two kinds of vectors for each word type. One represents the word when it is the target being predicted. The other represents its contribution when it appears in the target’s context. This distinction lets the representation express how a word is characterized by its surroundings as well as how that word helps characterize its neighbors. The anchor priors apply to the designated coordinate in both kinds of vectors.

Learning a word embedding with a designated semantic axis The steps in order.

#### How the corpus enters the fit

A word type is a vocabulary entry, while a token is an occurrence at a particular position in the corpus. If one word appears repeatedly, its tokens provide several contexts for estimating the parameters associated with that type. Every token is represented by a one-hot vector. This is an array with a single active entry indicating the type at that position. The representation gives the learning procedure an explicit record of which type occurred at the target and which occurred at each neighboring position.

The vocabulary size is denoted by V. The paper also uses vocabulary notation to describe sets of word types, so the meaning depends on whether the notation refers to a vector length or a group of entries. Positions are indexed by i, and v identifies a type in the vocabulary. For a given position and type, xᵢᵥ is the entry of the observed token vector. Its value is 1 for the observed type and 0 for the remaining vocabulary entries.

The authors follow Rudolph and colleagues in treating each entry as a Bernoulli outcome conditional on the surrounding tokens. A Bernoulli distribution describes an outcome with two possibilities. Here they correspond to an entry being active or inactive. The probability of the active outcome depends on how the target word’s embedding interacts with the context vectors of the words around it.

```
xᵢᵥ ∣ x꜀ᵢ ∼ Bernoulli(ηᵢᵥ)
```

The symbol xᵢᵥ denotes the entry for type v at position i. The expression x꜀ᵢ denotes the observed tokens at the context positions cᵢ for that target. The vertical bar means that the distribution is conditional on those observations, and ∼ means “is distributed as.” Bernoulli names the distribution, and ηᵢᵥ specifies the probability that the entry is 1.

```
ηᵢᵥ = logit⁻¹[ρᵥᵀ (Σⱼ∈꜀ᵢ Σᵥ′ αᵥ′ xⱼᵥ′)]
```

Here ηᵢᵥ is the probability just defined, and logit⁻¹ maps a real-valued score to a probability. The vector ρᵥ is the target embedding for type v, and the superscript T denotes its transpose so it can be used in a dot product. The outer sum ranges over positions j in the context cᵢ, while the inner sum ranges over vocabulary types v′. The vector αᵥ′ is the context vector for type v′, and xⱼᵥ′ indicates whether that type occurs at position j. The prime on v′ distinguishes a type being considered in the context from v, the type being predicted. Both ρ and α have K coordinates, where K is the width of the representation.

The inner sum is straightforward because each observed context token has a single active entry. At any position j, that entry selects the context vector for the word that actually occurred there. The outer sum adds the selected vectors. The dot product compares the resulting context with the target embedding, and the inverse logit converts the score to a probability. A coordinate can affect the score when both the target embedding and the summed context have contributions along that coordinate.

This last property explains how the anchor design affects learning. In a context containing an anchor, the anchor’s context vector contributes to the sum. Its designated coordinate can thus affect the evidence for targets estimated in such surroundings. In the other direction, when an anchor is the target, its target embedding influences which surrounding words help yield a high score. Giving both vector roles the same orientation makes the relevant coordinate available whichever role the word plays.

#### The default prior and the Standard Basis Prior

The ordinary fit gives target and context vectors a zero-centered Gaussian prior. In this setting a Gaussian prior makes values near its center more plausible than values far away, with the variance determining the strength of that preference. The general prior supplies regularization across the vocabulary. The anchoring method changes the prior where the researcher has more specific information.

```
θᵥ ∼ N(0, σ)
```

The symbol θᵥ denotes the pair of parameter vectors for type v, its embedding ρᵥ and its context vector αᵥ. The symbol ∼ denotes a distribution, and N denotes a Gaussian prior. Its center is 0 and its variance parameter is σ in the paper’s notation. This is the ordinary prior used across the coordinates of unanchored word types in the static specification.

For the Standard Basis Prior, the authors form two sets of opposing anchors. V⁺ is the positive set, V⁻ is the negative set, and V± is their union. The final coordinate K has a prior centered on a value determined by the group. The other coordinates of both groups share a zero-centered prior. This produces separate controls for how far an anchor may depart from its assigned position on the chosen axis and how much it can express elsewhere.

```
θᴷ(V⁺) ∼ N(1, γ)
```

The notation θᴷ(V⁺) refers to the K coordinate of the embedding and context vectors for each word type in V⁺. K is the designated coordinate and V⁺ is the positive anchor set. The symbol ∼ means “is distributed as,” and N is a Gaussian distribution centered at 1 with variance γ.

```
θᴷ(V⁻) ∼ N(−1, γ)
```

Here θᴷ(V⁻) denotes the same coordinate in both vectors for types in V⁻, the negative anchor set. The Gaussian N is centered at −1, and γ is again the variance. A smaller γ keeps the fitted value closer to this group’s prescribed center.

```
θ¹:ᴷ⁻¹(V±) ∼ N(0, ω)
```

Here θ¹:ᴷ⁻¹(V±) denotes the coordinates from 1 through K − 1 in both vectors for every type in V±, the union of the positive and negative anchor sets. N is a Gaussian distribution, 0 is its center, and ω is its variance. The ordinary coordinates of opposing anchors thus have the same prior regardless of which pole the anchors represent.

```
θ¹:ᴷ((V±)ᶜ) ∼ N(0, σ)
```

The notation θ¹:ᴷ((V±)ᶜ) denotes all coordinates from 1 through K in both vectors for vocabulary types outside the opposing anchor sets. The superscript c denotes the complement within the vocabulary. The Gaussian N is centered at 0, and σ is the variance from the ordinary prior. The optional neutral specification changes how a selected part of this complement is treated.

As γ and ω approach 0, a polar anchor comes to resemble a signed standard basis vector. Its coordinates away from K approach zero, and its coordinate at K approaches the value for its group. Consider a dot product with such an anchor. The coordinates away from K contribute vanishingly little, so the resulting score is governed by the chosen axis. The prior makes the intended channel of influence very clear.

The cost is that anchors on the same side approach the same vector. The paper considers *brother* and *king*. Both can orient a gender dimension in the same direction, yet they have different patterns of use. A near-basis-vector prior leaves those patterns little room to distinguish the words. Allowing them different coordinates away from K preserves the intended polarity while giving the fit a place to represent their other associations.

The authors call the Standard Basis Prior with ω = 10⁻⁶ strict. The variant with ω = 1 is weak. In the strict-versus-weak comparison, both use γ = 10⁻⁶ on the designated coordinate. As a result, the names refer to the restraint applied outside the chosen axis in that comparison. Both configurations strongly favor the group-specific position on the chosen axis. The weak setting gives the ordinary coordinates room to respond to the corpus.

#### The Truncated Prior and the neutral anchors

The Truncated Prior addresses a different assumption. A researcher may know the direction in which a word should anchor the coordinate while having little basis for specifying its exact distance from zero. Several anchors can all indicate the same pole with different strengths. The truncated specification retains the side of the axis associated with each group and leaves the magnitude to be estimated with the help of the corpus.

```
θᴷ(V⁺) ∼ N⁺(0, γ)
```

The notation θᴷ(V⁺) again selects coordinate K of both parameter vectors for types in the positive set V⁺. The distribution N⁺ is the positive part of a Gaussian with underlying center 0 and variance parameter γ, truncated at 0. Its support puts the positive anchors on the positive side of the designated coordinate.

```
θᴷ(V⁻) ∼ N⁻(0, γ)
```

Here θᴷ(V⁻) selects the same coordinate for types in the negative set V⁻. The distribution N⁻ is the negative part of the corresponding Gaussian truncated at 0. The underlying Gaussian is centered at 0 and has variance parameter γ. The minus sign on N identifies the retained side, while the 0 inside the parentheses describes the underlying center.

The other coordinates of the opposing anchors continue to use the zero-centered prior with variance ω. Unanchored words keep the ordinary prior unless they fall in the optional neutral group. In the reported comparison, the truncated setting uses γ = 1000. This value belongs to the underlying truncated distribution. The Standard Basis Prior uses the same symbol for the variance around a group-specific center, so the numbers describe different restrictions in those prior families. The truncated variant still identifies a pole even though it allows variable distance from the origin.

The extra anchor group, V∗, represents words expected to have little association with either pole. The authors suggest stop words as possible examples. The ordinary coordinates of these words use the baseline variance. Only the coordinate reserved for the concept receives the special neutral prior.

```
θ¹:ᴷ⁻¹(V∗) ∼ N(0, σ)
```

Here θ¹:ᴷ⁻¹(V∗) denotes coordinates 1 through K − 1 of the embedding and context vectors for types in V∗, the neutral anchor set. N is a Gaussian distribution centered at 0. The variance σ is the ordinary setting used for these coordinates.

```
θᴷ(V∗) ∼ N(0, ψ)
```

Here θᴷ(V∗) denotes the designated coordinate K for those same neutral types. N is again a Gaussian with center 0, and ψ is the variance that controls how closely neutral anchors are held to zero. The experiments use ψ = 0.01 for the neutral constraint.

The reasoning behind this addition is easiest to see in the context sum. A neutral anchor whose K coordinate is near zero contributes little along that axis when it appears beside a target. Other context words can then account for more of the fit along the designated dimension. The neutral anchor can still contribute through its other coordinates. The intended effect is therefore local to the question the researcher is asking, even if the neutral words appear in many useful contexts.

This setup also distinguishes neutrality from uncertainty. The neutral prior encodes a substantive expectation that the chosen words should have a low score in this dimension. An unanchored word receives the ordinary zero-centered prior, whose looser constraint allows the evidence to move its score away from the center. Calling a word neutral is an additional decision about the research axis, over and above giving it the same default prior as the rest of the vocabulary.

#### Connecting the estimates across years

A static embedding uses the same target vector for a type everywhere in the corpus. For temporal questions, the authors follow Rudolph and Blei and associate each token with a time slice. The target embedding for a word can vary across slices. The context vector is shared, so a context word can contribute through the same vector when estimating targets from different slices.

```
θᵥ⁽ᵗ⁾ = {ρᵥ⁽ᵗ⁾, αᵥ}
```

The symbol θᵥ⁽ᵗ⁾ denotes the parameters for type v at time slice t. The braces group the target embedding ρᵥ⁽ᵗ⁾ at that time and the shared context vector αᵥ. The time index applies to ρ but is absent from α. Both vectors use the same K-coordinate representation as in the static formulation.

```
ρᵥ⁽ᵗ⁾ ∼ N(ρᵥ⁽ᵗ⁻¹⁾, σ_d I)
```

The vector ρᵥ⁽ᵗ⁾ is the target embedding of type v in slice t, and ∼ indicates that it follows the Gaussian distribution N. The center is ρᵥ⁽ᵗ⁻¹⁾, the embedding for the preceding slice. The parameter σ_d sets the scale of allowed variation across consecutive slices. I is the identity matrix over the K coordinates, so σ_d I is the covariance in the transition prior.

```
σ_d = σ / 100
```

In the general dynamic formulation, σ_d is the transition variance parameter, σ is the ordinary prior variance, and 100 is the divisor in the specification the authors follow. For the congressional case study they give a separate value, σ_d = 0.05, chosen to make abrupt changes easier to identify.

This prior is a Gaussian random walk. An earlier value supplies the center for the next one, while the corpus supplies evidence about how far the next value should move. A stronger preference for continuity makes adjacent estimates more alike. That can keep an individual slice from moving sharply on limited evidence. It also means the estimated timing of a change depends on the observations from adjacent slices and on the strength of the temporal connection. The resulting sequence describes changing associations in a smoothed representation.

#### Fitting the vectors and constructing the comparison axis

The authors estimate parameter values by maximum a posteriori estimation. In practical terms, the fit looks for a high point of the combined support from the observed contexts and the priors. The corpus rewards parameter settings that help predict the observed entries, while the priors favor certain placements for anchors and regularize the rest of the representation. The final vectors are point estimates from that combined objective.

The implementation uses TensorFlow and the Adam optimizer. The authors also use negative sampling, which selects a sample of absent word types for training rather than treating every inactive vocabulary entry as a separate training case each time. The paper reports a context window size of 8, an embedding width of K = 100, and σ = 1 throughout the experiments. The official implementation is named InterpretableWordEmbeddings. The optimizer is described in [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/).

For the comparison, the authors first fit the ordinary probabilistic embedding with its default prior. They then build the interpretable direction from pairs of opposing words. Each pair supplies a vector difference after normalization, and the differences are added. The paper illustrates the procedure with gender.

```
ρ_gender = (ρ_man − ρ_woman) + (ρ_he − ρ_she)
```

Here ρ_gender denotes the combined direction for the gender contrast. The vectors ρ_man, ρ_woman, ρ_he, and ρ_she are the normalized embeddings for the words identified by the subscripts. Each minus sign defines a direction from the second word in the pair toward the first. The plus sign pools the two directions in the example. The sign of a held-out word’s cosine similarity to the combined vector determines its predicted side. In the informative-prior approach, the corresponding sign comes directly from the designated coordinate.

The comparison preserves the same basic way of learning word vectors from contexts. It changes the point at which the researcher’s knowledge enters. With the post-training axis, the anchor terms determine a direction in a space that is already fitted. With the informative priors, their special status can influence the fitted parameters from the beginning. Thus the test compares two ways to turn contextual evidence into a score on an axis specified by the researcher.

### Experiments and results

#### Corpora, anchors, and evaluation words

The authors evaluate gender and sentiment on English-language material from three sources. The literary collection comes from Project Gutenberg’s top 100 list of books. The social media collection is a Twitter sample, and the political dataset is U.S. Congress Speeches 1981-2016. The paper calls the congressional material the Senate corpus in the results. The processed collections range from 1.8M to 40M tokens. These sources give the authors settings with different kinds of language and amounts of text in which to examine the same procedure.

The distinction between a token and a type matters here. The corpus sizes refer to token occurrences used for contextual evidence. The anchors and evaluation words are sets of types. A frequent anchor may be observed in many places, while an evaluation word gets one decision about which side of the axis it occupies. The study varies the number of types supplying prior knowledge. Across corpora and dimensions, the experimental anchor lists range from 2 to 276 words.

Gender anchors follow the prior work against which the authors compare their approach. Along with gendered terms, the gender evaluation uses the Social Security Administration’s 200 most common names from the last century. For sentiment, AFINN supplies anchor words and a sample of evaluation words. Which evaluation words actually appear differs by corpus, leaving between 213 and 275 held-out types. The planned evaluation vocabulary and the evaluated vocabulary are therefore distinct: a word has to occur in the corpus for a fitted representation to be available for the test.

The evaluation addresses whether a type’s occurrence patterns give it the expected direction on the axis even though it was left out of the opposing anchor groups. The word still appears in the training text. Holding it out concerns the information used to set its prior, while the learning procedure still gets to observe its contexts. This design matches the task the authors care about. The researcher knows a set of examples that define a distinction and wants to see how the rest of the observed vocabulary relates to it.

#### What the accuracy counts

For the prior-based approach, the test looks at which side of zero a held-out word occupies on the designated coordinate. The paper describes the evaluation for the embedding and context vectors. Correct decisions are counted as a fraction of the held-out types. A word far from the center and a word just across it each count as a correct decision if their signs agree with the expected label. The test asks whether the coordinate has recovered the direction of association, while the magnitudes used in substantive analyses are a separate matter.

The post-training comparison makes the same kind of decision from the sign of cosine similarity. A positive cosine places the word in the direction defined by the anchor differences, and a negative cosine puts it on the opposite side. The two procedures attach their signs to different quantities. One reads a coordinate learned under informative priors, and the other compares a vector with an axis constructed after the fit. The evaluation makes them comparable by asking the same polarity question.

The paper uses binomial confidence intervals calculated with a normal approximation to describe uncertainty in the accuracy estimates. The test counts types, and the number of held-out types is small enough that the authors emphasize the difficulty of distinguishing close settings. Their account of the comparison therefore turns on both the general ordering across settings and the more limited evidence for a detectable improvement in particular cases.

One numerical comparison the paper specifies is how much the prior concentrates the designated coordinate for the neutral group. The following chart shows that experimental setting. A smaller variance gives a stronger preference for coordinates near zero.

Neutral-word settings in the Senate experiments by prior variance on the designated coordinate The neutral-word specification concentrates the prior more tightly around zero for designated neutral words.

**The numbers**

| System or setting | Prior variance |
| --- | --- |
| Ordinary prior | 1 |
| Informative neutral prior (this paper) | 0.01 |

The chart compares the strength of the neutral constraint, whose intended effect is greater concentration. Accuracy in the experiments is assessed separately on the held-out words. A tighter concentration can express the proposed notion of neutrality more strongly while having different consequences for prediction across corpora and axes.

#### Static results across gender and sentiment

The authors start with the strict and weak Standard Basis Priors. The two variants put the same tight constraint on the anchor position at K and differ in the freedom allowed in the other coordinates. They vary the number of anchor words and examine the resulting held-out accuracy. The general pattern is that adding anchors improves accuracy. The improvement with additional anchors is much greater under the weak prior. This places the benefit of larger anchor sets in a specific setting: more lexical evidence is especially effective when the different anchors can still occupy different parts of the rest of the space.

Accuracy is higher on average in the Senate corpus than in the other corpora. The authors follow up through sub-sampling and attribute the stronger average performance to corpus size. That comparison matters because the Senate material differs in subject matter as well as size. Simply observing its higher accuracy would leave both explanations open. The authors use the smaller samples to investigate whether the quantity of observations gives a better account of the performance difference.

Next they compare the alternatives that loosen the fixed anchor locations or add a special prior for neutral words. Both changes show gains that vary with the configuration. The paper identifies Senate sentiment as the case in which the improvement is large enough for a significant difference in this part of the analysis. The authors conclude from the experiments taken together that the weak Standard Basis Prior achieves roughly the same accuracy as the Truncated Prior. The fixed-location version with freedom in the ordinary coordinates already captures much of what the sign-based evaluation can credit.

Against the method that constructs an axis after training, informative priors generally perform at least as well. In the Senate corpus, the gender dimension is the exception. A set of ambiguous names accounts for the gap in the authors’ follow-up. *Madison* can be used in reference to a founding father, and *Jordan* can be used for a country. Their estimated representations consequently draw on contexts that can serve purposes different from the name labels in the test. The authors report that the full vectors correctly classify the relevant names, which leaves open where in the space the useful information resides.

The variation across axes is an important part of the experimental outcome. An arrangement that works for sentiment in a given corpus cannot be presumed to handle a gender test on the same material equally well. Both dimensions are estimated using contextual evidence, but the relation between that evidence and the evaluation labels differs. For a sentiment-bearing term, a dictionary entry supplies an expected pole. For a name, corpus occurrences may refer to people, places, or other uses that complicate the intended interpretation of a single polarity label.

#### Changes in the congressional speeches over time

The dynamic case study uses the Truncated Prior with neutral words in the Senate corpus. The transition variance is σ_d = 0.05 for this analysis. The authors use this specification to inspect how words move on the sentiment and gender dimensions across time. Here the coordinate’s magnitude and trajectory are part of what a reader examines, even though the static comparison chiefly scores direction.

For sentiment, the paper highlights large changes across consecutive years for *September* between 1999 and 2001 and for *Oklahoma* between 1993 and 1995. The authors link these trajectories to the 1995 Oklahoma City bombing and the September 11, 2001 attacks on the World Trade Center. The fitted sentiment begins to change before the associated events. The authors explain this timing through the smoothing induced by the temporal prior. In the ensuing years, the words move back toward their earlier sentiment positions, which the paper interprets as a weakening of their association with the events.

The occupation examples use the gender coordinate. The paper plots trajectories for *nurse* and *lawyer*, connecting them with the high proportions of women and men, respectively, described in the earlier occupation work. The authors report support for the earlier result that an occupation’s gender position over time correlates with the gender composition of the field. In the case study these examples illustrate how a researcher can ask the same substantive question about a word at multiple points in the corpus.

The two kinds of trajectory address different questions. The sentiment examples concern sharp changes and a later return toward an earlier position. The occupation examples connect an estimated association to an external characteristic discussed by prior work. The dynamic construction makes it possible to read both from a coordinate with a prescribed interpretation. The smoothing behavior in the sentiment plots shows why that convenience still requires attention to how the coordinate was estimated.

### What the ablations show

#### Giving opposing anchors room to retain their differences

The strict and weak Standard Basis Priors give the clearest controlled comparison in the paper. The authors keep γ = 10⁻⁶ for the designated coordinate and vary the restraint on the other coordinates through ω. The contrast therefore addresses how much the fit gains when anchors can express properties beyond their role on the research axis. Since the experiment also varies the number of anchors, it shows how that freedom affects the value of adding more domain knowledge.

The weak setting benefits much more from extra anchors. This is consistent with the authors’ account of how the strict prior behaves. When every positive anchor has nearly the same vector and every negative anchor has nearly the same vector, adding a word introduces more occurrences but gives the fit limited means to represent what is distinctive about that word’s contexts. A larger anchor set may thus broaden the textual evidence while simultaneously imposing more instances of the same restrictive assumption.

The *brother* and *king* example clarifies what the weak setting changes. Both can inform the same pole, so the coordinate reserved for gender can express their common contribution to that contrast. Other coordinates can still distinguish kinship from royalty to the extent that the corpus supplies such evidence. The experiment supports preserving those additional distinctions when adding anchors. It speaks most directly to the comparison under the paper’s prior settings and held-out polarity test.

There are two kinds of evidence in the result. The general improvement as the number of anchors rises suggests that additional examples can help identify the axis. The larger improvement under the weak prior shows that the way the fit represents those examples matters. Counting anchor types alone would miss that interaction. A stricter fit and a weaker fit can receive an anchor list of the same size while making materially different use of it.

#### Relaxing precise anchor locations and adding neutrality

The Truncated Prior probes whether anchors need fixed locations along the research axis. In the Standard Basis Prior, the centers are −1 and 1. In the truncated version, anchors keep their assigned side and have more freedom in their distances from zero. This comparison separates a commitment about direction from a commitment about magnitude. It is relevant when the researcher can defend the polarity of an anchor with more confidence than its exact position.

The Truncated Prior achieves approximately the same overall accuracy as the weak Standard Basis Prior. That outcome puts the choice in perspective. Giving anchor words room outside the named coordinate makes a clear difference in the comparison between strict and weak priors. Allowing more variation in their position on the named coordinate provides less consistent gains in the reported sign test. The two changes alter different assumptions, and the experiments provide stronger evidence for the first as a route to higher held-out accuracy.

The neutral-word specification asks whether selected words benefit from being kept close to zero on the chosen axis. It gives the fit extra information about the center while retaining the ordinary coordinates for those words. The reported gains vary. The authors cite the size of the held-out sets when discussing why large improvements are needed to distinguish settings and single out sentiment in the Senate corpus as the case where that threshold is met in the comparison of prior variants.

A sign metric is particularly relevant when interpreting these results. Truncation may change how far an anchor or an inferred word sits from the center, while the score registers a gain only if a held-out word moves to the expected side. A neutral prior may change which contextual terms contribute along K, and a held-out word can retain its original sign despite that change. Similar sign accuracy therefore gives direct evidence about polarity recovery. The comparison provides less information about the equivalence of the resulting coordinate magnitudes.

#### Subsampling and the ambiguous-name follow-up

The sub-sampling analysis addresses a confound in the cross-corpus results. The Senate corpus has higher average accuracy, and it differs from the other collections in several ways. Reducing the available text within a corpus gives a means of varying data quantity while retaining the source. The authors report that this analysis points to corpus size as the reason for the stronger average performance. They give this finding as an explanation of the pattern rather than specifying a common improvement for each additional amount of data.

The post-training baseline reveals a different issue. In the Senate gender comparison, the accuracy gap is traced to a cluster of ambiguous names. The authors look beyond the designated coordinate and find that the full vectors classify these names correctly. That follow-up locates the difficulty more precisely than the overall score does. There is relevant information in the representation, and a decision based on its named coordinate alone can still fail.

The names also illustrate a difference between concept isolation and a readily readable score. A coordinate can be interpretable enough to support comparisons across many held-out types while some of the relevant evidence remains distributed through the vector. If a word’s occurrences serve several functions, compressing that evidence into a single signed value adds a further difficulty. The authors cite [Lipstick on a Pig](https://md.research.elamur.ai/free/en/papers/gonen-2019-lipstick-pig-debiasing-methods-cover/) for a related discussion of concept isolation in embeddings.

These follow-ups explain different parts of the evidence. Sub-sampling concerns how much text supports the estimates. Inspection of the names concerns where the evidence resides and how a task label corresponds to a type in use. Together they give more specific accounts of the results than an ordering of priors alone could provide. A configuration can have ample contextual evidence and still face a mismatch between a word type’s varied uses and a single expected label.

### Limitations

#### Limits identified by the authors

The authors emphasize the number of available held-out words when interpreting differences among prior specifications. The evaluation sets are drawn from words with expected gender or sentiment polarity and are then reduced to the terms observed in each corpus. With 213 to 275 evaluated types, the accuracy comparisons have limited resolution. The authors report varying gains from truncation and neutral information, with congressional sentiment standing out in their significance discussion. Their stronger general conclusion concerns the benefit of adding anchors while leaving room for variation outside the named axis.

Incomplete isolation is another stated limitation. The authors treat the Senate gender errors as evidence that one coordinate leaves some gender information elsewhere in the representation. The full-vector result makes that explanation plausible. Their conclusion points toward using informative priors on multiple dimensions to capture more complex concepts and towards moving beyond dimensions defined by opposing word pairs. Those possibilities concern a broader specification than the one used to produce the reported results.

The choices behind the Truncated Prior also expose assumptions of the Standard Basis Prior. A fixed center encodes the researcher’s expectations about both direction and location. With a sufficiently tight variance, it treats same-pole anchors as providing comparable contributions on the chosen axis. Truncation relaxes the location assumption, although the decision about which pole applies remains. Similarly, a neutral prior still presumes that the researcher can identify words whose designated coordinate should be near zero.

The authors call attention to the temporal prior when interpreting the changes in *September* and *Oklahoma*. Apparent onset can precede the event associated with a change. The paper attributes that behavior to smoothness in the fit. This limits the precision with which a reader can interpret the first visible movement on the curve. The authors use the trajectories to illustrate changing association over time, and the reported timing illustrates how the transition prior affects the result.

#### Limits of the experimental setup

Correct polarity is a narrower test than the uses the authors envisage for a named dimension. The accuracy measure treats all correct sides alike. It gives the same credit to a word close to the origin and one far from it if their signs match the expected label. A researcher who wishes to interpret distances, ranks within a pole, or changes of a given magnitude needs something beyond this sign test. The paper offers case studies using trajectories, which show the form such an analysis can take. The static benchmark does not validate those magnitudes against a common external scale.

The evaluation also inherits the assumptions of its word lists. Sentiment labels come from AFINN, and the gender test includes names and other gendered words assigned expected polarities. A word in a corpus can appear with meanings or referents that differ from the use assumed by the label. The follow-up on *Madison* and *Jordan* makes this problem visible. The underlying representation is for a word type. Its coordinate combines evidence from the contexts in which that type occurs. A result can therefore reflect the distribution of uses in a corpus as well as how successfully the method captures the intended distinction.

The narrowness of the comparison affects what conclusions follow about embeddings generally. The article studies the introduction of priors into a particular probabilistic formulation and compares it with an axis derived after fitting that same ordinary representation. This is a focused comparison for estimating where the benefit of anchoring enters. It provides evidence about the chosen baseline and test conditions. The reported results cannot establish the same ordering for every other approach to sparse, rotated, or otherwise interpretable representations mentioned in the introduction.

The datasets provide different forms of English text and different sizes. That variation helps show how the method behaves under several corpus conditions. The study still investigates two concepts using designated anchor sets and an English vocabulary. More complex concepts could require several coordinates, different kinds of anchors, or a substantially different evaluation. The authors suggest some of these extensions. The results establish the behavior of the method for the contrasts actually investigated.

A further distinction concerns what a score represents in substantive research. The coordinate reflects how words are used in an observed collection under an axis oriented by the anchors. A correlation between occupation trajectories and the gender composition of those occupations gives one kind of supporting evidence. Using those trajectories as estimates of workforce composition would require a scale and validation designed for that purpose. Similarly, associating a sentiment change with a historical event connects the curve to the corpus context. The event’s causal effect and the exact date on which language use changed are separate questions.

Finally, the estimate describes the corpus the researchers chose and processed. Different sources can offer different patterns of association, even when the definitions of the poles are held constant. The Senate performance, the difference found through sub-sampling, and the errors involving ambiguous names all make the corpus part of the interpretation. The anchor prior gives the comparison a readable direction. The words’ locations still depend on the observations that are available and on the distinctions that a single type-level coordinate can express.

### What came after

The paper ends with two directions for extending the approach: putting informative priors on several coordinates to represent more complex concepts, and defining research dimensions using richer information than opposing word pairs. These are proposals from the authors. Subsequent work building on the method is undocumented here.

## Cite

Cite as Miriam Hurtado Bodell, Martin Arvidsson and Måns Magnusson. 2019. Interpretable Word Embeddings via Informative Priors. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).

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

```bibtex
@inproceedings{bodell2019interpretable,
  title = {{Interpretable Word Embeddings via Informative Priors}},
  author = {Miriam Hurtado Bodell, Martin Arvidsson and Måns Magnusson},
  booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
  year = {2019},
  doi = {10.18653/v1/d19-1661},
  url = {https://doi.org/10.18653/v1/d19-1661}
}
```

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