Elamur Research

Morphological Priors for Probabilistic Neural Word Embeddings

Paper · 2016 · Parminder Bhatia, Robert Guthrie and Jacob Eisenstein

Summary

A word can tell us something about itself before we see it in a sentence. The ending of sesquipedalianism suggests an abstract noun, even to a reader who has never encountered it. The same strategy can mislead. An automatic segmenter might split really into re and ally, linking it to words whose meaning gives little help. Bhatia, Guthrie, and Eisenstein ask how to learn from the parts of a word while giving its actual use enough influence to correct such guesses. Their question matters most when the training corpus contains few examples of a word, the situation in which nearby words offer the least guidance for learning word embeddings.

Their approach, VarEmbed, uses the pieces found by an automatic segmenter to set a prior, or starting distribution, over each word’s possible representation. The underlying representation is a vector of binary features. Each feature gets a probability based on the word’s pieces, and a separate set of probabilities is learned for words in the training vocabulary. Those learned probabilities serve as inputs to a recurrent network that predicts the next word in the corpus. Training rewards successful predictions and penalizes departures from the prior. A frequent word supplies many opportunities for its use to shape the representation. A word outside the training vocabulary can still be assigned a vector from the prior if its pieces have learned representations. Shared word structure supplies the initial estimate through morphology.

The authors compare VarEmbed with word2vec and an additive baseline, SumEmbed, that also uses segmented words and the same recurrent architecture. VarEmbed exceeds SumEmbed on both word-similarity benchmarks, on the full sets and on their in-vocabulary subsets. On the in-vocabulary subset of the Stanford rare-words benchmark, the reported rank correlations, scaled by 100, are 44.1 for VarEmbed, 37.3 for SumEmbed, and 33.6 for word2vec. On the in-vocabulary Wordsim353 set, word2vec scores 51.4 and VarEmbed scores 51.3. Giving the evaluation access to the wider vocabulary changes which systems can participate and what their scores measure.

A separate semantic-feature evaluation favors VarEmbed over SumEmbed when both systems must build the whole vector from morphemes. In Penn Treebank tagging, both approaches that use morphology significantly improve on word2vec, and the gap between them falls short of significance at the authors’ stated threshold. SumEmbed does slightly better in the rarest frequency group, while VarEmbed does best in the remaining groups. Taken together, the tests distinguish the value of using word structure at all from the more specific benefit of giving each word a representation that can move away from its morphological guess. That distinction carries through to part-of-speech tagging.

Deep dive: Morphological Priors for Probabilistic Neural Word Embeddings

How morphological priors let word embeddings draw on word structure and usage, with results on rare words, semantic features, and tagging. · about 39 minutes to read

The problem and its context

What a corpus can tell us about a rare word

An embedding is a vector associated with a word type. Each occurrence of that type contributes evidence about the same vector. If the training procedure learns that words behave alike in context, a later system can use their related representations even when it has encountered those words in different examples. The paper places its work in this tradition of learning from unlabeled text. It points to applications in language prediction, extraction, parsing, and translation, illustrating how an estimate learned from a corpus can be reused beyond the task that produced it. The underlying idea is that use provides evidence about words, a premise of distributional semantics.

The amount of evidence differs sharply from word to word. A familiar word may occur in enough settings for repeated patterns to emerge. Another may appear only a handful of times, perhaps in contexts that reveal little about its usual behavior. An absent word offers no examples of its own. Adding more text helps collect more occurrences, but the long tail leaves many items sparsely represented even in large corpora. The authors emphasize that a large vector can be hard to estimate from such a small sample. Their concern is about the number and informativeness of occurrences for the particular word, as suggested by Zipf’s law.

Inflection makes the mismatch easy to see. A language can express related grammatical choices through many distinct forms. A learner with an independent vector for each form has to estimate each one from its own occurrences, although the forms may share a stem and some of their behavior. The paper points to German and Turkish as languages where this issue is especially pressing. The reported experiments use English. The broader motivation concerns sharing evidence between related forms when that evidence is distributed unevenly across a word form.

The structure inside a word supplies another source of observations. A suffix can recur across several words whose complete forms occur infrequently. Learning an association for that suffix pools evidence from the words that carry it. A new word can then inherit some of the same information. For example, the connection between the English plural ending -s and a grammatical property can be useful even when the complete form is rare. The paper uses this kind of recurring relationship to motivate reusable sub-word representations. A useful segmentation exposes units across which the training procedure can share estimates.

There are several reasons to keep such evidence open to revision. Words that look close can behave differently, as in melon and felon. An algorithm may also discover pieces whose resemblance is accidental for the word at hand. Even a plausible segmentation can conceal how the pieces combine. The authors illustrate this with incredible and inflammable. In the former, in- contributes negation. Understanding the latter involves taking inflame together before attaching -able. A flat list of visible pieces does little to express that difference. These examples concern both errors in finding pieces and errors that can arise after finding them.

A related distinction concerns different kinds of information carried by the same form. A suffix can be a good clue to grammatical category while leaving the meaning of the stem uncertain. Familiarity with the stem might help with meaning and tell the learner less about how a particular derived word behaves. The paper uses a vector of features so that the evidence can have different effects on different coordinates. This feature-based view sits alongside the practical aim of producing a vector suitable for other applications. The paper draws this motivation from work on lexical semantics.

How earlier approaches shared information

In the paper’s account, early neural approaches usually estimated a point vector for each vocabulary item. The value was an adjustable parameter, optimized together with the rest of the prediction system. This made it possible to use learned vectors in an architecture for predicting words, while giving each vocabulary entry its own values to estimate. The authors cite early neural language prediction as an example of this use of word vectors. A Neural Probabilistic Language Model

Earlier work also built representations from smaller units. The paper discusses methods that compose vectors from morphemes, as well as methods based on individual characters. Morphemes can identify recurring stems and affixes. Characters give the system pieces directly from spelling. The architectures for combining the pieces differ, but each gives a rare word access to parameters trained across many types. The cited recursive approach is an example of using morphological composition to improve word representations. Better Word Representations with Recursive Neural Networks for Morphology

Character-based composition carries the same general promise of sharing. The characters making up an unusual form may have been seen repeatedly as parts of other forms. The authors discuss character-aware sequence prediction and character representations used for tagging. In this family of approaches, the learned combination of a word’s constituents determines its contribution to the prediction network. The paper asks how much freedom should remain at the word level when those constituents provide an imperfect account of its behavior. Character-Aware Neural Language Models

The closest precedent in the paper is Botha and Blunsom’s additive composition. It assigns a vector to each morpheme and also includes a vector for each word in the vocabulary. The word-specific term is important. It means that the baseline can already register exceptions and individual behavior for known words. In effect, the authors compare different ways to combine shared and individual evidence. The additive approach incorporates both within the vector. VarEmbed incorporates morphological evidence through a prior, then lets the prediction objective influence a separate set of word-level probabilities. An outside-vocabulary word can use sub-word information in either approach.

Another line of research enriched embeddings using lexical resources. The paper describes objectives that reward prediction of related entries in a semantic resource alongside prediction of corpus neighbors. It also discusses retrofitting, which adjusts already trained word vectors to respect connections in a semantic network. A relationship in such a network links entries whose similarity is known from the resource. Morphological composition addresses a different source of information, since the pieces of the word itself are the inputs from which a representation can be estimated. An example of adding resource-based information is Improving Lexical Embeddings with Semantic Knowledge.

The paper describes a morphological version of retrofitting by Cotterell and colleagues. There, the sum of morpheme embeddings determines the center of a Gaussian distribution for a word vector. The covariance depends inversely on the word’s count in the training corpus, so the morphological center has greater influence for a sparsely observed word. The authors share that interest in varying the reliance on morphology with evidence, but train the morphemes and the sequence predictor jointly. Their own prior uses an automatic segmentation, while the retrofitting work uses gold morphological features. Those details also change which resources a learner needs.

Finally, previous work provided reasons to consider embeddings as uncertain or feature-based. The paper describes Gaussian word representations that associate a distribution with each word, as well as binary representations used in research on entailment and lexical relations. The authors’ choices bring these strands together. A binary vector supplies possible features, their probabilities give graded values, and morphology supplies the prior expectations. Independently motivated examples of binary features in the cited literature include Semantic Proto-Roles and Deriving Boolean Structures from Distributional Vectors.

The method, step by step

From a segmented word to a representation

The method begins with a segmentation for each word. In the paper’s running example, sesquipedalianism offers several clues. The ending -ism suggests an abstract noun, while the prefix sesqui- has a numerical interpretation. These are intuitions a reader can use to form a preliminary impression. The system does something more limited and more directly trainable. It gives each automatically identified piece a vector of real numbers and adds the vectors. The sum is converted into probabilities, one for each coordinate of the word’s possible binary embedding.

Consider a coordinate for which several pieces contribute positive values. Their sum raises the prior probability that the coordinate is active. A piece with a negative value can lower that probability. Pieces with opposing values can partially cancel. In the learned representation, the coordinate need not mean “abstract noun” or any other named property. The authors use such properties to explain why a feature view is plausible. The training procedure discovers whatever coordinates are useful to the likelihood and the prior together.

The next stage uses the corpus. Each word in the training vocabulary has its own adjustable vector of probabilities, distinct from the probabilities computed from its pieces. The sequence network reads those learned vectors and tries to assign high probability to the words that occur next. If a word’s morphological estimate makes prediction harder, the objective can improve by moving the word’s probabilities. The penalty for disagreeing with the prior makes this move costly unless it helps explain the data. That interaction gives context a way to qualify the evidence from the pieces.

The output used in evaluation is related to these probabilities. For a word with learned word-level probabilities, the expected binary vector consists of those probabilities. For a word outside the vocabulary, the prior provides an expected binary vector instead. The paper describes applying an inverse sigmoid to the expected embeddings for evaluation, putting the coordinates on a real-valued scale. Thus the binary representation describes the latent variables used to formulate learning. The downstream evaluations work with dense vectors derived from their expectations.

Learning word embeddings with morphological priors

The steps in order.

Learning word embeddings with morphological priorsStep 1: Segment words into recurring morphemes1. Segment words into recurring morphemesStep 2: Add learned vectors for the morphemes2. Add learned vectors for the morphemesStep 3: Convert the sums into prior feature probabilities3. Convert the sums into prior feature probabilitiesStep 4: Predict corpus words from learned feature expectations4. Predict corpus words from learned feature expectationsStep 5: Penalize disagreement with the morphological prior5. Penalize disagreement with the morphological priorStep 6: Optimize morpheme, word, and sequence parameters jointly6. Optimize morpheme, word, and sequence parameters jointlyStep 7: Infer unseen word vectors from their pieces7. Infer unseen word vectors from their pieces

The prior over binary features

The paper distinguishes the vocabulary of full words from the vocabulary of morphemes. It uses a corpus of observed word tokens, where a token is an occurrence in a sequence and a vocabulary entry is the type shared by its occurrences. A word’s latent representation belongs to the type. The same random vector therefore enters the computation each time the type appears. The morphological segmentation is observed by the learning procedure in the sense that the segmenter has already supplied it. Learning the embeddings does not require inferring a fresh segmentation at every appearance.

b_w ∈ {0, 1}ᵏ

Here w identifies a word type, b_w is its latent embedding, and k is the number of embedding coordinates. The set {0, 1}ᵏ consists of all vectors of that length whose entries are binary. An entry of 1 indicates that the feature is active in a particular possible vector, and 0 indicates that it is inactive. A probability distribution over these possibilities expresses uncertainty about the vector.

M_w = (m_w,1, m_w,2, …, m_w,M_w)

Here M_w on the left denotes the collection of pieces returned for word w. In the final subscript it denotes the count of those pieces, a double use of the notation in the paper. Each m_w,i is the morpheme at segmentation position i, and the ellipsis stands for any intervening pieces. A morpheme comes from a vocabulary of size v_m. The segmentation procedure supplies an order, although the sum that builds the prior is insensitive to that order.

b_w,i ∼ Bernoulli(σ(∑_{m ∈ M_w} u_m,i))

Here b_w,i is coordinate i of the latent vector for w. The symbol ∼ means that the coordinate follows the indicated distribution. A Bernoulli distribution assigns the supplied probability to 1 and the remaining probability to 0. The sum ∑ takes the i-th coordinate u_m,i from each morpheme embedding u_m for a piece m in M_w. The function σ is the sigmoid, which turns the resulting real number into a probability. All coordinates have the same form, with a different sum built from their corresponding morpheme coordinates.

It is useful to give the sigmoid output a shorter name for the remaining expressions. This probability depends on the current morpheme vectors. Because those vectors are learned, the prior can change during training. At a given stage of training, however, it is a definite prediction about the feature based on the current segmentation and parameters.

p_w,i = σ(∑_{m ∈ M_w} u_m,i)

Here p_w,i denotes the prior probability that coordinate i for word w is active. The sigmoid σ acts on the sum of the morpheme coordinates u_m,i, with m ranging over the segmentation M_w. The complementary probability, 1 − p_w,i, is the prior probability that the coordinate is inactive.

The prior probability for an entire embedding assignment is obtained coordinate by coordinate. The paper expresses it on a logarithmic scale. For an active coordinate, the expression contributes the log of the prior probability of being active. For an inactive coordinate, it contributes the log of the complementary probability. The logarithm turns the product over all these probabilities into a sum.

log P(b; M, u) = ∑_{w=1}^{v_w} ∑_{i=1}^{k} [b_w,i log p_w,i + (1 − b_w,i) log(1 − p_w,i)]

In this expression, P is the prior probability mass, b is an assignment of all latent word embeddings, M collects the segmentations, and u collects the morpheme vectors. The semicolon indicates that the prior uses M and u to specify its probabilities. The outer sum covers v_w vocabulary entries indexed by w. The inner sum covers their k coordinates indexed by i. The term b_w,i selects the log probability for the active state when it equals 1, and 1 − b_w,i selects the inactive state when it equals 0. The function log denotes the logarithm.

A consequence of this construction is that the prior can be computed without looking up a word-specific parameter. It only needs embeddings for the pieces. That independence from a word lookup makes extrapolation possible. Another consequence is that words with the same morpheme contributions receive the same prior. A word in the training vocabulary can acquire a different expected representation through its own variational parameters. For an unseen word, the quality of the estimate depends directly on the segmentation and the learned contributions it retrieves.

How the corpus supplies evidence

A prior makes a representation plausible given a word’s structure. The sequence likelihood measures how well an assignment of embeddings accounts for the observed corpus. With embeddings fixed, the network starts from its current state, reads the embedding of a token, updates the state, and assigns probabilities to possible continuations. The authors use a simple recurrent update to lay out the mathematics. Their experiments use a long short-term memory network, or LSTM, whose state includes a memory cell and whose gates govern updating and reading that memory. Both versions serve the same role in the probabilistic construction.

h_t = f(b_xₜ, h_t−1)

Here t is the current token position and xₜ is the observed token at that position. The notation b_xₜ means the latent input embedding of its vocabulary entry. The vector h_t is the recurrent state after reading xₜ, and h_t−1 is the preceding state. The function f is the recurrent update. Since that earlier state in turn reflects its earlier inputs, an updated state can depend on embeddings used throughout the preceding sequence.

f(b_xₜ, h_t−1) = σ(Θh_t−1 + b_xₜ)

Here f is the simple recurrent update used to illustrate the method, and Θ is the parameter matrix applied to the previous state h_t−1. The resulting vector is added to the current embedding b_xₜ. The sigmoid σ acts coordinate by coordinate on this sum. In the experiments the LSTM implements f with a more elaborate state update, while keeping the dependence on the previous state and the input word embedding.

xₜ₊₁ ∼ Multinomial(Softmax(Vh_t))

Here xₜ₊₁ is the word at the next token position and ∼ denotes the distribution used to predict it. The matrix V contains output embeddings, one row for each candidate word. Multiplying V by the state h_t gives a score for each candidate. Softmax converts those scores into probabilities that sum to 1. The multinomial notation represents drawing the next word from these probabilities. Input embeddings tell the network what it has read. The output rows turn its state into a distribution over what it might read next.

log P(x | b) = ∑_{t=1}^{N} log P(xₜ | h_t−1, b)

Here x is the observed corpus sequence, b is a fixed assignment of input word embeddings, and N is the number of tokens in that sequence. The vertical bar reads as “given.” Each summand is the logarithm of the probability of the observed token xₜ given the state h_t−1 and the embedding assignment. The state comes from word positions before t. Adding the log probabilities gives the conditional log-likelihood of the sequence.

log P(x | b) = ∑_{t=1}^{N} log P(xₜ | x₁:ₜ₋₁, b)

Here x₁:ₜ₋₁ denotes the prefix ending immediately before position t. The other symbols are as in the preceding expression. Once b and the learned recurrent parameters are fixed, the prefix determines the previous state. The two likelihood expressions are therefore equivalent. The prefix form makes the dependence on past words easier to see, which matters when the input embeddings are uncertain.

The word whose vector is being learned contributes to prediction when it is read as input. Its effects can persist in the state and influence subsequent predictions. The output side has its own learned parameters. Seeing a target word under the softmax therefore involves a different representation of that vocabulary entry from reading the same word into the recurrence. This distinction also explains why the authors still choose a finite output vocabulary even though they can obtain input embeddings for words outside it. The ability to supply a vector for an unseen type is used in the representation evaluations.

Making inference tractable

If the latent embeddings were known, the sequence likelihood could be evaluated by running the recurrence. In the probabilistic formulation, the corpus likelihood must average over all possible binary embeddings. The number of assignments grows with both the number of types and the number of coordinates. In addition, a different assignment can produce a different hidden-state trajectory for the same sentence. The authors replace direct marginalization with a variational approximation, which introduces a simpler probability distribution that can be optimized.

log P(x) = log ∑_b P(x | b)P(b)

Here P(x) is the marginal probability of corpus x, P(x | b) is its likelihood conditional on a particular binary embedding assignment b, and P(b) is the morphological prior mass of that assignment. The sum ranges over every possible b. The logarithm log is applied after summing those joint probabilities. The dependence of the prior and likelihood on their learned parameters is implicit.

Q(b; γ) = ∏_{w=1}^{v_w} ∏_{i=1}^{k} q(b_w,i; γ_w,i)

Here Q is the variational distribution over all latent word embeddings, and γ is the collection of its parameters. The symbol ∏ denotes a product, first over the vocabulary entries w and then over the coordinates i. The factor q is a Bernoulli distribution for the binary value b_w,i, with probability γ_w,i of activation. The quantities v_w and k give the vocabulary size and the embedding size. The assumption that these factors are independent is the fully factorized mean-field approximation.

The independence assumption gives the approximation a workable form. A word’s variational vector is stored through its feature probabilities. Other assignments may be more or less likely under the true posterior because the corpus connects words through contexts and the network combines coordinates. The approximation represents those effects indirectly through the optimized values of individual probabilities. It still keeps one set of probabilities per word type. Occurrences share that set, including repetitions within a single sequence.

E_Q[b_w,i] = γ_w,i

Here E_Q denotes an expectation under the variational distribution Q, and b_w,i is the binary coordinate for word w at position i in its embedding. The parameter γ_w,i is the probability of the active value. A Bernoulli variable’s expected value equals that probability. Applying this to each coordinate gives a dense expected vector for the word, with all coordinates in the interval [0, 1].

The bound comes from rewriting the marginal probability as an expectation with respect to the tractable distribution. Inside the expectation, the authors divide by the same variational mass used to weight the assignments. Taking the logarithm outside the expectation gives the original marginal log probability. Moving it inside gives a lower bound by concavity of the logarithm. That step separates what the inference procedure is trying to optimize from the exact quantity it started with.

log P(x) = log E_Q[P(x | b)P(b) ∕ Q(b)]

Here E_Q averages over assignments b according to Q, which is also used in the denominator to cancel that weighting. The ratio’s numerator consists of the conditional likelihood P(x | b) and the prior P(b). The outer log turns the expectation back into a marginal log probability for x. The identity uses a variational distribution with support over the contributing assignments so that the ratio is defined where it is needed.

log P(x) ≥ E_Q[log P(x | b) + log P(b) − log Q(b)]

Here ≥ marks the lower bound. The expectation E_Q operates on the sum of the corpus log-likelihood and the prior log mass, with the variational log mass subtracted. The terms P(x | b), P(b), and Q(b) have the same meanings as above. The bound gives the approximation a reason both to explain the observed corpus and to stay close to the morphology-informed prior.

Even under mean field, computing the likelihood expectation in that bound remains difficult. The conditional probability of a token depends on the state after reading its history. To average that probability’s logarithm exactly, the algorithm would have to consider the possible embedding assignments that alter the state along that history. Giving each feature an independent Bernoulli distribution simplifies the weight of an assignment. The evaluation of the recurrent computation for that assignment can still depend on many embeddings at once.

E_Q[log P(x | b)] = ∑_{t=1}^{N} E_Q[log P(xₜ | x₁:ₜ₋₁, b)]

Here the sum runs through the N token positions t, and E_Q averages the log prediction of the observed word xₜ over embedding assignments. The history x₁:ₜ₋₁ supplies the preceding inputs, and b includes their latent embeddings. The equality follows from taking the expectation of the sum of token log probabilities. The paper writes each inner average as a sum over embeddings for the word types in the sequence through that position. A type that appears repeatedly is represented by the same latent vector in that sum.

Approximating the recurrent computation

The practical approximation replaces distributions over intermediate states with local point estimates. Instead of averaging the full recurrent update across possible binary inputs and preceding states, the network uses the expected input embedding and an approximation to the expected preceding state. One forward pass can then produce the state used at each position. This is the step that makes the likelihood computation resemble ordinary training with dense input embeddings.

E_Q[h_t] ≈ f(E_Q[b_xₜ], E_Q[h_t−1])

Here E_Q[h_t] is the expected recurrent state after reading token xₜ and ≈ indicates the local approximation. The update f uses E_Q[b_xₜ], the expected input embedding of the current token, and E_Q[h_t−1], the expected preceding state as approximated by the earlier updates. The recurrence continues through the history with those point estimates. Because f is nonlinear, evaluating it at the expectations is an approximation to averaging its outputs.

E_Q[log P(xₜ | x₁:ₜ₋₁, b)] ≈ log([Softmax(V E_Q[h_t−1])]ₓₜ)

Here the left side is the expected log probability of the observed word xₜ given its prefix x₁:ₜ₋₁ and the embeddings b. On the right, E_Q[h_t−1] is the point estimate for the state before that token, V is the output matrix, and Softmax produces a probability vector over vocabulary words. The bracketed subscript ₓₜ selects the probability assigned to the actual token, and log takes its logarithm. The index follows the earlier next-word convention, in which the state at a position predicts the token after it.

There are two related simplifications here. The first substitutes expectations in the recurrence. The second evaluates the output distribution and the log probability using the resulting state. Consequently, the algorithm need not represent how uncertain input features induce a spread of possible states or how that spread changes the output probabilities. It retains a distribution for each word vector in the objective’s comparison with the prior. In the sequence computation, it works with the embedding expectations.

L = ∑_{t=1}^{N} log P(xₜ | x₁:ₜ₋₁, E_Q[b]) − D_KL(Q(b) ∥ P(b))

Here L is the objective used for training after the local likelihood approximation. The first term sums the log probabilities of the observed tokens xₜ for positions t through N, evaluated by passing the expected embeddings E_Q[b] through the recurrence. The second term is the Kullback–Leibler divergence D_KL from the variational distribution Q(b) to the prior P(b). The symbol ∥ separates the distributions in that order. Maximizing L rewards prediction and penalizes disagreement with the prior.

The fully factorized distributions make the divergence easier to evaluate than the recurrent likelihood. It decomposes into a comparison of Bernoulli probabilities for each coordinate. Each comparison weights the log ratio for the active state by the variational probability of that state, and likewise for the inactive state.

D_KL(Q(b) ∥ P(b)) = ∑_{w=1}^{v_w} ∑_{i=1}^{k} [γ_w,i log(γ_w,i ∕ p_w,i) + (1 − γ_w,i) log((1 − γ_w,i) ∕ (1 − p_w,i))]

Here D_KL is the divergence subtracted in the objective, and the sums include each word w and coordinate i in the vocabulary and embedding of sizes v_w and k. The variational activation probability is γ_w,i, and the morphological prior activation probability is p_w,i. The corresponding inactive probabilities are 1 − γ_w,i and 1 − p_w,i. The log terms compare the probabilities of the same state under the two distributions. At the endpoints, the usual limiting convention applies to a term weighted by a zero probability. The paper’s expanded line for this term has the opposite sign from the named divergence. The ratio form above follows its lower-bound derivation and the subtraction in the objective.

The objective explains how count enters the reasoning. The prior comparison is built over word types and their coordinates. The likelihood is built over token positions. When a type recurs, changing its embedding can alter many of the likelihood terms through the recurrent state. This gives frequently used words more opportunities for corpus evidence to justify movement away from the prior. The system has no separate rule that assigns a fixed weight to morphology at a given count. Influence follows from the two parts of the objective, the contexts in which the word appears, and the other parameters learned with it.

Data, optimization, and the vectors used at evaluation

The authors train on 22 million tokens from North American News Text. They begin with a vocabulary of the 50,000 most common words and use a special unknown token for words outside it. They lower-case tokens and convert numeric tokens to a special numeric token. The preprocessing discussion gives 48,986 as the resulting vocabulary size. The parameter-count discussion instead gives 48, 896 for the main experiments. The paper leaves those figures unreconciled. Both the word-level variational parameters and the output embeddings require a defined vocabulary size.

The authors segment words with Morfessor, allowing up to sixteen morphemes in each word. They report 14,000 morphemes, including stems for words analyzed as a single piece. Since the segmenter is unsupervised, the representations learn from automatically recovered units without labeled morphological analyses. The prior takes the segmentation as fixed. This keeps the word-vector estimation separate from the procedure that discovers recurring pieces. The paper cites the segmenter’s underlying work, Unsupervised Discovery of Morphemes.

The learned quantities include the morpheme vectors, the word-level variational probabilities, the output embeddings, and the recurrent parameters. The authors implement VarEmbed and SumEmbed in Blocks and update the parameters with RMSProp. They initialize the LSTM parameters uniformly in the interval [−0.08, 0.08] and initialize word embeddings from pretrained word2vec embeddings. The experiment uses embeddings of size 128 and a recurrent state size of 128. The paper reports roughly 12.8 million parameters for VarEmbed and the same total for SumEmbed. The largest contributions come from the input and output word representations.

Training runs for 15 epochs with minibatches of size 25, an initial learning rate of 0.01, and a decay of 0.97 per epoch. The authors clip the gradient norm at 1 after normalizing by minibatch size. They also check the objective on the development set after each iteration and halve the learning rate if improvement fails to reach a small threshold. These settings draw on earlier recurrent-network work. The paper reports roughly one hour per iteration on an NVIDIA 670 GTX, close to the time for its SumEmbed reimplementation, and makes its implementation available under the repository name MorphologicalPriorsForWordEmbeddings. Recurrent Neural Network Regularization

SumEmbed shares the LSTM architecture with VarEmbed, and its word embeddings are also initialized with pretrained word2vec. Its input vectors follow the additive construction of Botha and Blunsom. The example of greenhouse shows where it can share information with another compound and where it can learn the full word’s individual behavior.

e_greenhouse = a_greenhouse + u_green + u_house

Here e_greenhouse is the resulting SumEmbed vector for greenhouse. The learned term a_greenhouse belongs to the full word, while u_green and u_house are learned vectors for its constituent morphemes. Each + is vector addition. In the morphemes-only setting the authors use the constituent terms alone. The full-word contribution in this baseline is a useful control because it gives known words some independence from their pieces.

VarEmbed takes the expected embedding from the variational distribution for a word with a fitted entry. The paper describes passing that expectation through the inverse of the sigmoid for evaluation. For a word outside the vocabulary, the corresponding expectation comes from the morphology-conditioned prior. The distinction is between a representation that can use word-specific evidence from the corpus and a representation obtained using shared pieces. The same distinction motivates a controlled evaluation in which the authors deliberately use the prior even when the word has a fitted entry.

Experiments and results

How the comparisons are set up

The evaluation asks three questions of the trained representations. Do they reflect people’s similarity judgments? Do their coordinates align with a lexical-semantic feature inventory? And how well can a tagger use them to assign parts of speech? Each question uses a different measure. Word similarity asks about relationships between pairs. QVEC compares the representation space with a lexical annotation resource. Tagging measures the success of a trained classifier on words in context. A result on one test provides evidence about that use of the vectors.

The distributional baseline is word2vec, trained with the continuous bag-of-words method, or CBOW, in gensim. It supplies a conventional corpus-based vector for a word with an entry. SumEmbed supplies the comparison with morphology and with the same recurrent architecture as VarEmbed. The authors adapted the additive method from its original log-bilinear setting to make the recurrent comparison closer. Running both segmented-word approaches against the same sequence architecture gives more context for interpreting their differences than comparing either with word2vec alone. Distributed Representations of Words and Phrases and their Compositionality

Vocabulary coverage matters throughout the intrinsic evaluation. Restricting an evaluation to in-vocabulary items allows a direct comparison with word2vec. Including the full dataset lets the morphology-based methods also use the vectors they can obtain from pieces for otherwise unavailable words. The full and restricted evaluations therefore have different inputs. A method can post a lower score on the full set while adding coverage to words the restricted set leaves out. The paper reports the conditions separately so readers can distinguish performance within the lookup vocabulary from performance when fallback vectors are used.

Ranking words by similarity

The word-similarity experiments use Wordsim353 and the Stanford rare-words dataset. They compare the ranking of similarities derived from embeddings with the ranking of human judgments. The statistic is Spearman’s rank correlation, reported as ρ × 100. A higher score means the ranking follows the human judgments more closely. The statistic concerns order, so improvements are about where pairs fall relative to one another in the assessment.

The full Wordsim353 evaluation is labeled 353, and the in-vocabulary subset is labeled 348. On the full set, SumEmbed scores 42.9 and VarEmbed scores 48.8. On the in-vocabulary set, SumEmbed scores 45.9, VarEmbed scores 51.3, and word2vec scores 51.4. VarEmbed leads the controlled comparison with SumEmbed on both sets. Word2vec has the highest reported score on the common in-vocabulary subset, and its lack of entries for the remaining words leaves the full-set comparison between the morphology-based systems.

The full Stanford rare-words evaluation is labeled 2034, and the in-vocabulary subset is labeled 715. On the full set, SumEmbed scores 23.0 and VarEmbed scores 24.0. On the in-vocabulary subset, the gap between those methods is more pronounced. Word2vec also scores below both morphology-based alternatives on that subset. A rare-word benchmark can consequently reveal a benefit of sharing pieces even when all of the items being compared have entries. Coverage and quality for sparse but known types are separate benefits.

Spearman rank correlation on the Stanford rare-words in-vocabulary subset

VarEmbed agrees most closely with the human similarity rankings on the shared vocabulary.

Spearman rank correlation on the Stanford rare-words in-vocabulary subsetword2vec: 33.6word2vec33.6SumEmbed: 37.3SumEmbed37.3VarEmbed (this paper): 44.1VarEmbed (this paper)44.1
The numbers
System or settingSpearman ρ × 100
word2vec33.6
SumEmbed37.3
VarEmbed (this paper)44.1

The ordering of the compared methods depends on the benchmark. For Wordsim353 within the training vocabulary, a representation learned by word2vec is highly competitive. For the Stanford rare-words subset, both ways of sharing morphological information improve the measured ranking, and VarEmbed gives the strongest result. The full rare-words scores put the size of the advantage in perspective. Both ways of extrapolating can supply a vector, while matching human similarity judgments remains difficult on that evaluation.

Aligning embeddings with lexical features

The authors also evaluate the vectors with QVEC. They introduce it in response to a concern raised in earlier work about whether similarity benchmark gains reliably predict success in downstream tasks. QVEC supplies another intrinsic comparison. It measures alignment with dimensions from a lexical semantic resource. Here the authors use the SemCor resource for noun and verb supersenses, which groups word senses by semantic category. The highest possible QVEC score is 100. The concern about judging vectors through similarity alone is discussed in Problems With Evaluation of Word Embeddings Using Word Similarity Tasks.

The paper reports a full lexicon of 4199 and an in-vocabulary set of 3997 for QVEC. With the full embedding, SumEmbed scores 32.8 and VarEmbed scores 33.6 on the full lexicon. On the in-vocabulary set, SumEmbed scores 33.5, VarEmbed 34.7, and word2vec 34.8. Thus the strongest differences between the two segmented-word approaches do not occur when they can use all their word-level information. Within the common vocabulary, VarEmbed and word2vec receive very similar scores.

The authors then restrict both morphology-based systems to representations made from morphemes. On the full lexicon, QVEC scores are 24.7 for SumEmbed and 30.2 for VarEmbed. On the in-vocabulary set, they are 25.1 and 31.0, respectively. The latter comparison is especially informative about the learned pieces. Even for words whose full representations can use their corpus evidence, VarEmbed’s prior produces a higher-scoring representation when the word-level estimate is set aside.

QVEC alignment on the in-vocabulary lexicon using only morphemes

VarEmbed retains stronger alignment with lexical features when both systems rely on word pieces.

QVEC alignment on the in-vocabulary lexicon using only morphemesSumEmbed: 25.1SumEmbed25.1VarEmbed (this paper): 31.0VarEmbed (this paper)31.0
The numbers
System or settingQVEC
SumEmbed25.1
VarEmbed (this paper)31.0

QVEC measures alignment with the chosen inventory of lexical features. The morphemes-only comparison says that more of that signal is recoverable from VarEmbed’s morphological representation under this evaluation. The authors relate this to where the systems place information. SumEmbed can use the word-specific term in its regular representation. VarEmbed trains the prior to remain close to the estimates that help explain the corpus. These routes can yield similar full scores while producing visibly different vectors when only the pieces are available.

What the tagger can use

For the downstream experiment, the authors build a feedforward tagger on the Penn Treebank. At a target position it reads the embeddings of the token to be tagged, the two tokens to its left, and the two to its right. Concatenation preserves the position of each vector in the input. With 128-dimensional embeddings, the resulting input size is 640. The authors use RMSProp to train a classifier with two 625-unit hidden layers and a softmax over the tags.

This task differs from the sequence prediction used for learning the embeddings. The tagger can use words following the target, and its explicit input is a short neighborhood. It is a controlled way to ask whether the learned vectors make grammatical information available to the same classification architecture. The authors evaluate the share of tags assigned correctly and report a development result and a test result for each embedding source.

On the development set, word2vec reaches 92.42, SumEmbed reaches 93.26, and VarEmbed reaches 93.05. On the test set, word2vec reaches 92.40, SumEmbed reaches 93.26, and VarEmbed reaches 93.09. The aggregate tagging scores favor SumEmbed among the compared systems. The authors report that each morphology-informed method improves significantly on word2vec at p < .01 in a two-tailed binomial test. The difference between SumEmbed and VarEmbed falls short of significance at p < .05.

Part-of-speech tagging accuracy on the Penn Treebank test set

SumEmbed and VarEmbed both improve on word2vec in the shared tagger.

Part-of-speech tagging accuracy on the Penn Treebank test setword2vec: 92.40word2vec92.40SumEmbed: 93.26SumEmbed93.26VarEmbed (this paper): 93.09VarEmbed (this paper)93.09
The numbers
System or settingaccuracy %
word2vec92.40
SumEmbed93.26
VarEmbed (this paper)93.09

The paper also breaks tagging errors down by word frequency. Word2vec performs poorly for rare words. SumEmbed has a slight advantage in the 0 − 100 group, which the authors say accounts for approximately 10% of all tokens. VarEmbed has the lowest error in the other frequency groups shown. The grouped analysis and the aggregate totals describe different views of the outcome. Aggregate accuracy pools tokens, while the plotted comparisons describe performance within groups that differ in frequency and in the amount of evidence available when learning their representations.

What the ablations show

What changes when composition becomes a prior

The comparison with SumEmbed controls for several elements that could otherwise explain a gain. Both approaches benefit from an automatic segmentation, word2vec initialization, the LSTM sequence architecture, and similar overall parameter counts. Both can estimate a vector from pieces for a word outside the training vocabulary. Both also have a word-specific component for in-vocabulary items. The main comparison concerns the way the two sources of information are combined and trained. SumEmbed constructs a vector by addition, while VarEmbed estimates a separate vector of probabilities subject to a divergence penalty.

On the similarity tests, the experiment favors the prior formulation over the additive one. That holds on the full Wordsim353 and rare-words evaluations and on their restricted sets. The restricted comparison is valuable because the test items are already inside the lookup vocabulary. Both systems can draw on their fitted word-level values. VarEmbed’s advantage over SumEmbed there shows that the experimental difference extends beyond the availability of a fallback for unseen words.

The size and direction of the other results matter for interpreting this comparison. In QVEC, the full representations show a smaller separation than the morphemes-only representations. In tagging, the aggregate values slightly favor SumEmbed and the reported comparison lacks significance at the stated threshold. The two forms of training can therefore change properties of the representation that appear clearly in one assessment and only weakly in another. Within the paper’s tests, the most direct evidence for the prior concerns performance on the similarity evaluations and the signal carried by the learned pieces.

The controlled comparison moves a whole set of design choices together. The objective now has a prior divergence, the input word values are Bernoulli expectations, and sub-word contributions affect the sequence predictor through their relationship to those expectations. The experiment supports a comparison of the complete VarEmbed formulation with additive composition under a shared recurrent architecture. It leaves the separate contribution of the binary feature assumption, the choice of divergence, and the point-estimate likelihood approximation unresolved.

What the morphemes can do on their own

The clearest removal experiment is the morphemes-only QVEC comparison. For SumEmbed the authors remove the full-word vector from the sum, leaving the learned vectors of the constituent morphemes. For VarEmbed they discard the variational expectation at evaluation and use the morphological prior’s expectation. The existing representations were learned in the usual full systems. The test asks what information their shared pieces acquired in those settings.

The all-words QVEC results show a larger separation between the systems in this condition than with their full representations. The in-vocabulary results show the same pattern. This is useful because it rules out vocabulary coverage as a complete explanation of the gap. Even where each system could normally access a word-specific estimate, the vectors assembled entirely from VarEmbed’s prior yield stronger alignment. Removing each system’s word-level contribution reduces its own score relative to its full representation.

For SumEmbed, a useful whole-word vector can be learned even when much of its useful information resides in the word-specific term. If a correction is needed for a particular known word, learning can put that correction in the entry for the whole word, where it will affect that word alone. The morpheme terms must work across the words that contain them. Evaluating the sum without the individual term reveals how much semantic alignment those shared terms provide independently of the adjustment for each known word.

For VarEmbed, the morphology vectors face an explicit cost whenever their prior probabilities disagree with the fitted word probabilities. Updating a piece can improve that comparison for several words at once. A suffix or a stem that occurs repeatedly can thereby accumulate evidence about the feature probabilities typical of its words. This gives a reason to expect the learned prior to be useful in its own right. The QVEC comparison is consistent with that explanation. It measures the output of the prior using the chosen semantic inventory, giving a narrower result than a claim that every morpheme vector has acquired a human-interpretable meaning.

The test also isolates a situation important to the intended application. When the corpus has supplied a dedicated word vector, a weak sub-word representation can be masked by the fitted entry. When a word is new, the pieces must carry all available information of that kind. Evaluating trained pieces separately therefore tests their capacity even for known words, where a fair comparison can be made using the same items. This is why the in-vocabulary morphemes-only result complements the results on full sets that include outside-vocabulary items.

What changes across frequency groups

The frequency breakdown examines tagging errors under the same training and evaluation arrangements. The paper uses the breakdown to connect the experiments to the motivation for morphological sharing. A distributional embedding has few observations for a rare type, and the word2vec tagger’s weak performance on rare words fits that account. The fact that the tagger uses a context window also matters. The reported errors reflect a classifier’s use of representations for a target and its neighbors together.

For the rarest group, SumEmbed slightly outperforms VarEmbed. The authors interpret this as a setting in which sparse distributional evidence offers too little extra help, and the simpler additive construction does well. That interpretation has a concrete consequence for reading the paper. The empirical benefit of a morphology-conditioned prior depends on the evaluation and the amount of evidence. The technique proposed for sparse words does not automatically give the strongest result in the sparsest tagging bucket.

VarEmbed’s advantage in the other frequency groups is consistent with a useful role for letting observed contexts shape a word beyond its prior. A word with more examples offers more opportunities for its embedding to affect the recurrent likelihood. At the same time, shared pieces can supply information that remains useful. The grouped errors trace the performance of the finished representations. Establishing how much the prior moves each word would require measurements of the prior and fitted probabilities themselves.

The full-vocabulary and in-vocabulary evaluations are another controlled view, though they change the included items. The full tests make a morphology-based fallback relevant. The restricted tests give all three methods a word entry for each included item, revealing differences that are present even without needing extrapolation. Reading these alongside the frequency breakdown separates several questions the term “rare word” can blur. A type may be present yet sparsely observed, absent from the chosen vocabulary, or simply part of a benchmark designed to stress uncommon words. The experiments address those conditions through different comparisons.

Limitations

Limitations the authors identify

The authors explicitly qualify the treatment of uncertainty in the recurrent sequence computation. Their formal setup associates distributions with latent embeddings. During the forward pass, the algorithm uses local point estimates, so uncertainty about a hidden state is not propagated through the recurrence or through the output likelihood. This keeps training tractable and makes the implementation close to ordinary recurrent learning. The authors identify neural variational approaches and sequential Monte Carlo as possible directions for a more principled approximation. The results in the paper come from the local approximation.

The distinction matters for interpreting the lower bound. The variational expression with the exact expected corpus log-likelihood is a lower bound derived using the probability distributions. The training criterion then substitutes a likelihood computed at approximate expected states. That substitution is made for tractability. The paper’s derivation provides the motivation for the two terms, while the local expectation approximation determines how one of those terms is evaluated. Claims about the properties of the exact variational bound need to be kept tied to that derivation.

The authors also identify limits of the prior’s structure. Summing morpheme vectors gives every piece a direct contribution and leaves their order out of the result. It cannot express the nested structure illustrated by inflammable or use the same pieces differently based on how they attach to each other. The paper proposes recurrent, recursive, and convolutional ways of making the prior sensitive to richer combinations. Those possibilities would change what information the prior can express, especially when a word’s composition involves more than the presence of a set of pieces.

There is a separate question about which pieces to use. Automatic morphemes can capture reusable word structure and can also reflect segmentation errors. The authors point out that characters might offer better coverage for items such as names and abbreviations. Characters remove the need for a morphological segmenter and require a smaller inventory of sub-word embeddings. Morphemes may make linguistically informative regularities easier to learn. The paper identifies a combination of characters and morphemes as another possibility and leaves the tradeoff for future work.

The experiments also leave open what would happen with richer morphological resources and in languages where morphology creates more numerous forms. The authors propose investigating whether their approach works better for languages whose morphology is richer than English’s, as they expect. They also suggest using gold morphological analysis. The reported setup learns from English news text and automatic segmentation. German and Turkish motivate the problem, while the measured effects are from the English evaluations.

Finally, the authors discuss partial supervision of the latent coordinates. A semantic feature inventory could be used during training to associate selected dimensions with known properties. Their present experiments use a semantic inventory for evaluation. The binary formulation supports an interpretation in terms of possible features, but it does not attach feature names to the learned coordinates. The proposed supervision would be an additional experiment about whether some of those dimensions can be made to correspond to specified properties.

Limits of the evidence in the reported setup

The intrinsic scores summarize performance under specific judgments and inventories. A better similarity score means that a system’s ordering agrees more closely with the human ordering on that benchmark and subset. A better QVEC score means greater alignment with the selected noun and verb supersenses. These outcomes can diverge because they query different properties of the vectors. The similarity results favor VarEmbed over SumEmbed throughout, whereas the aggregate tagging results slightly favor SumEmbed. Resulting claims about practical usefulness depend on which task the system will serve.

The outside-vocabulary comparisons also combine extrapolation with a change in the tested items. The in-vocabulary and full scores have different denominators and may differ in difficulty. A full-set score cannot establish how a system performs on unseen items alone, since it also includes items that have learned entries. The study shows that the morphology-based methods can participate in the wider evaluations and that VarEmbed leads SumEmbed there. It also provides a direct diagnostic of the pieces through the morphemes-only QVEC test. These are different kinds of evidence about extrapolation.

Producing an unseen word’s prior representation requires reusable evidence in the pieces returned for it. The study does not include a separate breakdown for novel pieces, bad segmentations, or forms with different morphological structures. Consequently, the observed performance does not say how reliable an estimate will be for an arbitrary unseen string. There is also a distinction between providing an input vector and expanding the next-word predictor’s vocabulary. The output probabilities are computed over a defined inventory with an unknown token. The evaluations support inference of representations beyond the lookup vocabulary, within that fixed-vocabulary training setup.

The tagger is deliberately simple. Its fixed neighborhood and shared classifier architecture let the authors compare how much syntactic information is available in the supplied embeddings. Whether the same ordering would hold in a stronger tagging system or another downstream task remains open. The comparison supports a morphology benefit over word2vec in the reported tagger. Within the morphology-based pair, the paper reports insufficient evidence for a statistically significant aggregate difference at its stated threshold. The frequency groups add detail without establishing significance for each group.

The comparison with word2vec also changes more than the use of morphology. CBOW and an LSTM predictor learn from different operations on context. A difference between VarEmbed and word2vec therefore reflects a broader system comparison. SumEmbed is the stronger control for the question of how to combine internal structure with corpus evidence because it shares the recurrent architecture and also uses morphology. Even that comparison evaluates the latent-variable formulation as a whole. The experiments offer no isolated estimate for changing only the binary representation or only the inference approximation.

Finally, the discussion of frequency is a mechanism proposed by the objective and examined indirectly through outcomes. The recurrence can draw strong evidence from some contexts and weaker evidence from others. Frequency creates more opportunities for evidence, while the usefulness of those opportunities depends on the observed contexts and the training objective. The paper reports error by frequency and uses it to interpret the balance of morphology and usage. It does not report direct measurements of prior divergence by frequency or of how confidently each learned probability describes a feature. The test results support an account of representation usefulness more directly than an account of uncertainty calibration.

What came after

The later citing works place the paper in several settings where the construction and reuse of word representations matter. One is an overview of embeddings across languages. Another concerns extending a sub-word embedding space through characters. A third concerns a joint extraction task. The citation connection establishes that these works refer to the paper. Their titles identify the scope of the connection more clearly than they identify a particular mechanism inherited from VarEmbed.

Ruder’s survey concerns embeddings across languages. Its scope broadens the representation question from sharing evidence among forms in one training vocabulary to the study of representations in a cross-lingual setting. The morphological-prior paper contributes an example of how the structure of a word can supply information when its corpus evidence is sparse. Its English experiments explain that particular source of information. The citing survey’s scope concerns multilingual and cross-lingual NLP. A Survey of Cross-lingual Word Embedding Models

Aguilar and colleagues’ Char2Subword concerns extending a sub-word embedding space using characters. Character information was one of the possible directions the morphological-prior paper raised. The earlier work obtains a representation for a word from the learned vectors of its segmented morphemes when a word-specific estimate is unavailable. The later title places the extension at the level of a sub-word embedding space and identifies characters as the source of the extension. The connection concerns what smaller units can contribute when the available embedding inventory has a gap. The citation alone leaves the details of any shared training objective open. Char2Subword

The later paper by Bhatia and colleagues names joint entity extraction and assertion detection as its task. That places the citation in an applied setting, where useful representations are judged in relation to decisions about text. The earlier paper gives such a downstream comparison through tagging, alongside its intrinsic tests. Entity extraction and assertion detection supply a different task setting. The citation documents the connection, while the task title alone leaves open which representations the later system used and whether it implemented the morphology-conditioned prior. Joint Entity Extraction and Assertion Detection

Cite

Cite as Parminder Bhatia, Robert Guthrie and Jacob Eisenstein. 2016. Morphological Priors for Probabilistic Neural Word Embeddings. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d16-1047

@inproceedings{bhatia2016morphological,
  title = {{Morphological Priors for Probabilistic Neural Word Embeddings}},
  author = {Parminder Bhatia, Robert Guthrie and Jacob Eisenstein},
  booktitle = {Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1047},
  url = {https://doi.org/10.18653/v1/d16-1047}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bhatia-2016-morphological-priors-probabilistic-neural-word/