Elamur Research

Unifying Bayesian Inference and Vector Space Models for Improved Decipherment

Paper · 2015 · Qing Dou, Ashish Vaswani, Kevin Knight et al.

Summary

A collection of Spanish news stories and a collection of English news stories can tell us how words are used in each language. Finding translations between those words is harder when the stories have no sentence-by-sentence correspondence. This paper asks whether a system can build a bilingual dictionary from such separate collections. The question matters for languages and subject areas where translated text is scarce. A dictionary learned from monolingual text could supply word correspondences that a translation system would otherwise have little evidence for, especially in low-resource languages.

The authors bring together two kinds of evidence. The first comes from decipherment, which treats foreign text as if it were produced by substituting foreign words for English words. A proposed translation of a foreign word gains support when it fits the English words proposed for its grammatical neighbors. The second kind comes from how words are used throughout each corpus. The authors represent those patterns with vectors, then learn a transformation that helps identify which English and foreign vectors are likely to belong to translations. These representations are called word embeddings.

The transformation and the dictionary are learned together. The system first makes provisional guesses about which words translate each other. It uses those guesses to learn which pairs of vectors go together. The resulting similarities then give the next round of guesses a more informed starting bias. That bias enters as a Bayesian prior, so the evidence from the observed word pairs can strengthen or challenge it. No bilingual dictionary supplies the initial guesses, and parallel text is reserved for building the evaluation dictionary.

On the Spanish-to-English experiment with 100 million ciphertext tokens, top-5 accuracy over the most frequent 5k Spanish word types rose from 45.8% to 67.4%. A word counts as correct if at least one of its five highest-ranked candidates appears in the reference dictionary. The Malagasy-to-English experiments also favor the embedding-based method. For the largest Malagasy setting and the most frequent 5k word types, the main results table gives 5.4% for the baseline and 11.2% for the new method, although the paper gives different baseline values elsewhere. The experiments show that the learned prior improves dictionary recovery across the settings tested. They leave open how much that improvement would carry through to full-sentence machine translation.

Deep dive: Unifying Bayesian Inference and Vector Space Models for Improved Decipherment

This paper learns word translations from separate monolingual texts by combining Bayesian decipherment with a mapping between word embeddings. · about 37 minutes to read

The problem and its context

A dictionary from texts that were never translated together

Parallel text gives a translation learner a valuable constraint. Somewhere in an English sentence there is likely to be a rendering of much of the corresponding foreign sentence. Word alignment uses that constraint to propose which words or groups of words correspond. A monolingual news collection supplies abundant evidence about which words go together, but it leaves the learner without those cross-language sentence correspondences. More articles in each language can improve the evidence about usage while leaving the central question of which words match unresolved.

The paper starts from that gap. Parallel text had made it possible to learn translation rules automatically, but its availability varied across languages and domains. A system might have bilingual material for one subject and face unfamiliar vocabulary in another. In a language with little translated material, the shortage is broader. The authors take on an intermediate problem in both cases. They seek a table that gives plausible English words for a foreign word, using separate monolingual corpora to learn the table.

The table is a narrower object than a translation system. It can associate a foreign form with several English candidates and assign them different weights. It has no obligation to produce a sentence, rearrange a clause, or settle which sense of a word is appropriate in each new passage. That distinction makes the experiment interpretable. The authors can ask whether the monolingual evidence supports useful lexical candidates without attributing every difficulty of translation to the dictionary.

The paper describes two established ways of extracting that evidence. One compares the contexts in which words appear. The other searches for substitutions that make the unknown text look plausible in a known language. Both rely on regularities inside monolingual text. They differ in what they count as evidence and in how they get the first foothold across languages.

Matching words through their contexts

A context-based approach represents a word by the company it keeps. In the simplest version the paper discusses, coordinates of a vector record nearby words. A vector summarizes a pattern across many occurrences, so it can reveal similarities that a reader would miss by inspecting individual sentences. A word that tends to occur with certain kinds of actions and descriptions can end up near other words with related uses. The paper traces the application of this idea to bilingual dictionary discovery to Rapp’s Identifying Word Translations in Non-Parallel Texts.

There is an extra step when the words come from different languages. Even when the same activities or objects appear in both corpora, the raw features originate in separate vocabularies. In a representation learned independently in each language, the coordinates need a shared interpretation before a cross-language comparison is meaningful. The paper describes later research that enriched the features used for comparison or gave words learned representations. Its examples include Learning Bilingual Lexicons from Monolingual Corpora and Inducing Crosslingual Distributed Representations of Words.

One solution is to begin with a seed lexicon, a set of word pairs already known to be translations. The pairs tell a learner which points in one space should correspond to points in the other. A transformation learned from those examples can then be applied to other words. The paper's immediate precedent is a study that used a linear transformation between word-vector spaces. The precedent shows how a mapping can turn separate monolingual representations into a way of proposing translations. Its training pairs came in substantial numbers from parallel material, which puts it in a different data setting from the one the authors address in Exploiting Similarities among Languages for Machine Translation.

Spelling can sometimes provide another starting signal. The paper points to related languages in which certain translations have noticeably similar forms. That observation motivates a preference over word pairs without telling us how to construct one that transfers to languages with little orthographic resemblance. An embedding-based preference instead draws on the contexts in which words occur. The practical question is where to obtain enough provisional correspondences to learn it.

Making the foreign words fit a plausible English reading

Decipherment starts elsewhere. Suppose a pair of words in a foreign text is related as a verb and its object. Several translations of either word may seem possible in isolation. Some combinations of proposed English translations will occur in that kind of English relation more readily than others. If the same foreign words appear in other pairs, the system gets more chances to test whether its guesses hold up. The translation table links the decisions across occurrences.

The cipher analogy describes the direction of that reasoning. The system imagines that an English sequence came first and was transformed into the observed foreign words. It searches backward from those observations. A table is useful if, when read in reverse, it regularly leads to English configurations that are probable according to the English corpus. As the paper recounts, this approach had already been used to build a translation system for movie subtitles from nonparallel text in Deciphering Foreign Language.

Later decipherment work described by the authors addressed larger vocabularies and replaced or supplemented nearby word sequences with links between grammatically related words. The grammatical version matters because two words can be directly related even when other words intervene. It also permits a consistent ordering by grammatical role, which is useful when languages order the surface sentence differently. Obtaining those links requires analyzing which words depend on which others, a task known as dependency parsing.

Decipherment can start without a seed dictionary, but each local decision sees a limited piece of context. An English pair can be entirely plausible and still express the wrong idea. If similar mistakes recur, the system can accumulate counts in support of its own guesses. The context-vector approach can draw on usage across a larger collection, but needs a way to make the vectors comparable. In the paper's design, decipherment produces provisional correspondences for the transformation, and the transformed vectors influence later decipherment decisions. The prior over substitutions is where the two sources of evidence meet.

The method, step by step

The observed input to decipherment is a set of foreign dependency bigrams and their counts. A bigram here contains a head word and a dependent word selected from a grammatical relation. The ordered pair is a compact unit of analysis. For a verb and its subject, for instance, the system can record the verb first because it is the head, even when it follows the subject in the sentence. The authors use matching kinds of relations or comparable selection patterns so that the English statistics can inform candidate readings of foreign pairs. This is a grammatical use of an n-gram.

The English side contributes a probability distribution over these pairs. It is learned from English text alone. The foreign side supplies the observed pairs that need explaining. Each occurrence has an unobserved English pair behind it in the probabilistic account. The two words in that hidden pair have to fit together in English, and each has to be a plausible source of the corresponding foreign word.

The authors call the English side the plaintext and the foreign side the ciphertext. These terms refer to the roles in the inference procedure. They do not imply that anyone literally produced the foreign text by encrypting English. The analogy lets the researchers work with a defined probability for a hidden pair and a separate probability for each proposed substitution. The numbers estimated in that direction describe how English words could generate foreign ones. The dictionary ultimately used for evaluation ranks English candidates for each foreign word.

How decipherment and the embedding map are learned together

The steps in order.

How decipherment and the embedding map are learned togetherStep 1: Train word embeddings separately in each language1. Train word embeddings separately in each languageStep 2: Extract and count selected dependency bigrams2. Extract and count selected dependency bigramsStep 3: Estimate English dependency bigram probabilities3. Estimate English dependency bigram probabilitiesStep 4: Sample English readings of frequent foreign pairs4. Sample English readings of frequent foreign pairsStep 5: Fit the embedding map from sampled correspondences5. Fit the embedding map from sampled correspondencesStep 6: Use the map to update substitution priors6. Use the map to update substitution priorsStep 7: Pool runs and initialize another sampling round7. Pool runs and initialize another sampling roundStep 8: Lower the threshold to admit rarer pairs8. Lower the threshold to admit rarer pairs

What the decipherment probability describes

The starting point is a noisy-channel account. In the imagined forward process, the English probability distribution supplies a pair. The channel then substitutes a foreign word independently at each position, conditional on the English word at that position. In the reverse problem the English pair is unknown, so the probability of the observed pair sums over all possible English pairs.

P(fⁿ) = ∑ₑ₁,ₑ₂ P(e₁, e₂) ∏ᵢ₌₁² P(fᵢⁿ | eᵢ)

Here P denotes probability, fⁿ is the observed foreign bigram indexed by n, and fᵢⁿ is its word at position i. The possible English words are e₁ and e₂. The sum ranges over all choices of that ordered English pair. The first factor is the English pair probability. The product multiplies the two channel probabilities, one for each position i. The vertical bar means that a substitution probability is conditional on the English word. The product expresses conditional independence of the substitutions once the hidden words are fixed. The English pair probability still makes the choices of hidden words depend on each other.

P({fⁿ}ₙ₌₁ᴺ) = ∏ₙ₌₁ᴺ P(fⁿ)

In this corpus expression, P again denotes probability, fⁿ is the foreign bigram at occurrence n, and N is the number of cipher bigram occurrences. The braces identify the collection of observed occurrences, and the product multiplies their probabilities over n. A repeated bigram contributes repeatedly. Keeping counts makes it possible to represent those repetitions without treating the entire sentence as the unit that must be deciphered.

This likelihood suggests an estimation method. With the English bigram probabilities given, expectation-maximization, or EM, can alternate between assigning probability to hidden English readings and updating the substitution table. The paper notes that directly summing over English readings makes that approach expensive. For each observed bigram there can be a choice from the English vocabulary at both positions, and the channel table itself has an entry for each pairing of foreign and English vocabulary items.

Time: O(N · Vₑ²)

The O notation states how the computational cost grows with the quantities inside the parentheses. N is the number of cipher bigrams, and Vₑ is the English plaintext vocabulary size. The square comes from the two English positions. The centered dot means multiplication.

Space: O(V_f · Vₑ)

Here O gives the order of the storage requirement, V_f is the size of the foreign ciphertext vocabulary, and Vₑ is the English plaintext vocabulary size. Their product corresponds to the possible entries in the channel table. This is the cost discussion for the direct EM approach. The paper's later use of stochastic EM fits the embedding transformation from sampled readings and uses a different procedure for the hidden words.

How the prior and the counts contribute to a sample

The Bayesian formulation assigns a Dirichlet prior to each row of probabilities. A Dirichlet distribution describes a probability vector whose entries are non-negative and sum to a whole. Each entry has a positive parameter. The relative sizes of those parameters set the prior proportions, while their total controls how strongly those proportions influence an estimate. The paper uses Dirichlet distributions for both the substitution channel and the English transitions.

P(· | e) ∼ Dirichlet({α_f,e}f)

The expression on the left is the full row of channel probabilities for English word e. The dot means that the outcome ranges over foreign words f. The tilde indicates a draw from the distribution on the right. Each α_f,e is the prior parameter for substituting f for e, and the braces collect those parameters over the foreign vocabulary.

P(· | e′) ∼ Dirichlet({α_e,e′}e)

In this expression, the row is for English successors of a given English predecessor e′. The dot ranges over possible English words e, and the tilde again indicates a draw. Each α_e,e′ is the prior parameter for e in the row conditioned on e′. The braces collect the parameters over English successors. Though both prior families use α, their indices distinguish a channel outcome from an English transition.

The likelihood of the full data includes the hidden English readings as well as the observed foreign pairs. Once a set of readings is specified, it can be summarized by counts of substitutions and English transitions. Combining the likelihood with the priors adds those counts to the corresponding Dirichlet exponents. The following expression writes the paper's joint density using θ for a channel entry and φ for an English transition entry.

P(F, E, θ, φ) =
∏ₑ [Γ(∑_f α_f,e) / ∏_f Γ(α_f,e)]
   [∏_f θ_f,e^(#(e, f) + α_f,e − 1)]
×
∏ₑ′ [Γ(∑ₑ α_e,e′) / ∏ₑ Γ(α_e,e′)]
    [∏ₑ φ_e,e′^(#(e′, e) + α_e,e′ − 1)]

P is the joint density for the data and parameters. F is the observed foreign collection, E its hidden English readings, θ the channel table, and φ the English transition table. In θ_f,e, the outcome is foreign word f and the conditioning word is English word e. In φ_e,e′, the successor is e and the predecessor is e′. The matching α entries are their Dirichlet parameters. The symbol # gives the count accumulated in the complete assignment: #(e, f) counts substitutions and #(e′, e) counts English transitions ordered predecessor first. Γ is the Gamma function. The Gamma factors normalize each prior row, the slashes indicate division, and the sums and products range over the vocabulary indexed below them. The powers combine the count for an entry with its prior exponent, which contains the subtractive constant 1. The multiplication sign joins the channel and English parts.

In sampling, the system considers a new reading of a position after leaving out the assignment currently attached to it. This prevents a word's old reading from being counted as evidence for its own replacement. The conditional channel probability then has the form of a normalized count with a prior contribution.

P(fⱼ = k | eⱼ, f₋ⱼ, e₋ⱼ) =
[#(k, eⱼ)₋ⱼ + α_k,eⱼ] / [#(eⱼ)₋ⱼ + ∑_f α_f,eⱼ]

P is the conditional channel probability. At position j, fⱼ is the foreign word and eⱼ is the proposed English counterpart. The letter k denotes the foreign vocabulary item whose probability is being evaluated. The collections f₋ⱼ and e₋ⱼ hold the foreign words and English readings at the other positions. The pair count #(k, eⱼ)₋ⱼ and the English marginal count #(eⱼ)₋ⱼ exclude position j. The numerator adds the prior parameter α_k,eⱼ for the pair. The denominator adds all the channel prior parameters α_f,eⱼ for that same English word, summing over foreign vocabulary items f. In the actual sampling update the foreign word is observed. The channel expression is evaluated at that observation for each English reading under consideration.

The English transitions have a corresponding count-plus-prior form. In the paper's notation for a single predecessor transition, the term is written as follows.

P(eⱼ = l | e₋ⱼ) =
[#(l, eⱼ₋₁)₋ⱼ + α_l,eⱼ₋₁] / [#(eⱼ₋₁)₋ⱼ + ∑ₑ α_e,eⱼ₋₁]

Here j indexes the English position under consideration, l is a candidate value for eⱼ, and e₋ⱼ denotes the other assignments. The predecessor is eⱼ₋₁. The numerator contains the count of l following that predecessor, with the current assignment omitted, plus the corresponding α entry. The denominator contains the excluded-position count for the predecessor and the sum of its prior parameters over the possible successors e. The pair-count arguments in this display follow the conditional's order, successor first. The full sampling update below also accounts for the transition to a following word.

The authors have a large amount of English text from which to estimate these transitions directly. They set the English Dirichlet parameters in proportion to the dependency-bigram probabilities and make the overall prior weight very high.

α_e,e′ = α P_LM(e | e′)

The entry α_e,e′ is the English transition prior for successor e given predecessor e′. The unindexed α is the shared concentration for an English transition row. The subscript LM labels P_LM as the dependency-bigram probability learned from the English corpus. Multiplying that probability by α gives each entry its share of the row's prior weight.

P(eⱼ = l | e₋ⱼ) ≈ P_LM(l | eⱼ₋₁)

P on the left is the single-transition conditional for candidate English word l at j given the other assignments e₋ⱼ. P_LM on the right gives the estimated English transition from predecessor eⱼ₋₁ to l. The approximation sign indicates that the high prior weight makes the independently estimated English probability dominate the transition counts from the sampled assignments.

The English part therefore supplies a relatively stable preference for plausible grammatical pairs. The channel part remains tied to the sampled candidate translations and their prior. The sampling rule puts these terms together.

P(eⱼ | e₋ⱼ, f) ∝
P_LM(eⱼ | eⱼ₋₁) P_LM(eⱼ₊₁ | eⱼ)
P(fⱼ | eⱼ, f₋ⱼ, e₋ⱼ)

The left side is the probability of a candidate English word eⱼ given the other English assignments e₋ⱼ and the observed foreign data f. The proportionality sign means that the products are normalized over the candidate English words before sampling. The first English factor describes the transition from eⱼ₋₁ to the candidate, and the second describes the transition from the candidate to eⱼ₊₁. These are the local neighboring terms in the paper's notation. The channel factor evaluates the observed foreign word fⱼ under the candidate and the assignments at the other positions. The sampler revisits positions so that a change in a reading can affect later decisions through both local context and shared counts.

A symmetric channel prior uses the same prior parameter for every foreign outcome of an English word. The earlier formulation described by the paper distributes the concentration evenly and sets it to 1. With few substitution counts for an English word, this gives almost no reason to favor one foreign word before the current samples supply evidence. The learned prior gives the same sampling rule a way to begin with a preference based on usage across the monolingual corpora.

α_f,e = α / V_f

Here α_f,e is the symmetric channel parameter for foreign word f and English word e, α is the row's total prior weight in the symmetric formulation, and V_f is the number of foreign vocabulary items. The division allocates an equal share to each item. This channel concentration is distinct from the high concentration used to anchor the English transition probabilities.

Giving each substitution a learned prior

Before decipherment, the authors train embeddings separately on the English and foreign corpora. They use word2vec, which represents words with vectors learned from monolingual usage. The embeddings remain the input features of the cross-language learning problem. The method learns a matrix connecting the spaces from sampled word pairs. The earlier work that supplies the embedding technique is Efficient Estimation of Word Representations in Vector Space.

The matrix gives the system a score for each English–foreign pair. An English vector is first expressed in the foreign vector space through the mapping. Its interaction with a candidate foreign vector produces a scalar score. The exponential turns that score into a positive prior parameter and preserves the ordering of scores.

α_f,e = exp(vₑᵀ M v_f)

The symbols vₑ and v_f are the pretrained vectors for English word e and foreign word f. The superscript T transposes the English vector into a row, M is the learned cross-language matrix, and the ordered matrix multiplications produce a scalar. The function exp takes its exponential. The resulting α_f,e is a positive affinity for the substitution. In this raw form it is a Dirichlet parameter, so it need not be bounded like an individual channel probability.

The construction adapts Dirichlet multinomial regression. The paper's precedent uses features of a document to set a prior over its topic proportions. Here the features are word vectors, and their learned interaction sets a prior over possible substitutions. The shared matrix matters because the learner can adjust a general relationship between coordinates. That adjustment changes the scores of pairs beyond the particular correspondences that supplied the training counts.

A row of raw affinities does two jobs at once. It says how much the prior prefers some words over others, and through its sum it says how strongly the prior should influence sampling. The paper found that the second quantity could become large enough to overshadow the sampled evidence when the ciphertext was small. The authors separate the normalized preference from the choice of its strength.

Aₑ = ∑_f′ exp(vₑᵀ M v_f′)

Aₑ denotes the sum of the raw affinities for English word e. The index f′ ranges over the foreign vocabulary. The vectors vₑ and v_f′ are the corresponding English and foreign embeddings, T indicates transposition, M is the learned mapping, and exp returns a positive score. The paper identifies this raw row total as the concentration implied by the exponential parameterization.

mₑ,f = exp(vₑᵀ M v_f) / Aₑ

The entry mₑ,f is the base measure's share for foreign word f given English word e. The numerator uses the two embeddings vₑ and v_f, the transpose T and the matrix M to obtain the raw affinity. The denominator Aₑ normalizes the affinities for the same English word over all foreign outcomes. The shares therefore form a distribution.

α_f,e = αₑ mₑ,f

In this form, α_f,e is the parameter actually assigned to the channel entry, αₑ is the chosen concentration of the English word's channel row, and mₑ,f is the learned share for the pair. The matrix determines the relative preferences. The concentration determines the weight of those preferences when they enter the sampling conditional alongside the observed counts. Using a smaller concentration retains the ranking of the prior's candidates while reducing its influence on the next sample.

Fitting the map from provisional translations

The map has no training dictionary of its own. It receives a dataset each time the decipherment procedure supplies a sample of English readings. Pairing these readings with the observed foreign words produces substitution counts. Those counts become the evidence for adjusting M. The updated map then changes the channel prior, which changes the distribution from which the next readings are sampled. The paper calls this alternating procedure stochastic EM.

The fitting objective integrates out the channel table. In other words, it scores the sampled correspondences by averaging their likelihood over channel probabilities allowed by the Dirichlet prior. This objective asks whether the prior supplied by the map makes the sampled pattern of substitutions probable. It can be written compactly using the raw affinities and their row totals.

P(F | E; M) =
∏ₑ [Γ(Aₑ) / Γ(Aₑ + #(e))]
   ∏_f [Γ(α_f,e + #(e, f)) / Γ(α_f,e)]

The left side is the conditional likelihood of the observed foreign data F given the sampled English readings E, with M specifying the prior. The semicolon separates the mapping parameter from the conditioning data. Each outside product term corresponds to an English word e, and each inside product term corresponds to a foreign word f. The raw affinity is α_f,e and the row total is Aₑ. The marginal #(e) counts occurrences assigned English word e, while #(e, f) counts its observed pairings with f. The Gamma function Γ appears in ratios comparing the prior parameters with the parameters after adding counts. Taking the logarithm of this likelihood gives the data term for learning the map.

ℒ(M) = log P(F | E; M) − (λ / 2) ∑ᵢ,ⱼ Mᵢ,ⱼ²

The symbol ℒ denotes the penalized objective, and log is the natural logarithm. P(F | E; M) is the integrated likelihood of F given E under the matrix M. The regularization weight is λ. The indices i and j run over the rows and columns of M, and Mᵢ,ⱼ² is the squared value of its entry at those indices. The sum of squares is an L2 penalty. Subtracting the weighted penalty discourages large entries unless they improve the data fit enough to compensate. The factor 2 in the denominator cancels the factor from differentiating a square.

∂α_f,e / ∂M = α_f,e vₑ v_fᵀ

The left side is the matrix of partial derivatives of the affinity α_f,e with respect to the entries of M. The affinity on the right is the exponential score for the same English word e and foreign word f. The vectors vₑ and v_f are their embeddings, and T now transposes the foreign vector. The product of the English column and foreign row is an outer product, a matrix describing how the interaction score depends on each entry of M.

∂ℒ / ∂M =
∑ₑ ∑_f [Ψ(Aₑ) − Ψ(Aₑ + #(e))
        + Ψ(α_f,e + #(e, f)) − Ψ(α_f,e)]
        α_f,e vₑ v_fᵀ
− λM

Here ∂ℒ / ∂M is the gradient of the penalized objective with respect to M. Each sum ranges over English words denoted by e and foreign words denoted by f. Differentiating the logarithm of Γ gives the digamma function Ψ. Aₑ is the sum of the affinities in the English word's row. The count #(e) is the row's sampled total, and #(e, f) is the sampled count for the pair. The first two Digamma terms come from the row's Gamma ratio, and the next two come from the pair's ratio. The remaining factor α_f,e vₑ v_fᵀ gives the derivative of the pair affinity. The final term, −λM, is the derivative of the penalty. The authors use stochastic gradient updates to fit M.

Gradient cost: O(Vₑ V_f)

The O expression describes how gradient computation grows with the number of vocabulary pairs. Vₑ is the number of English items, and V_f is the number of foreign items. The paper points out that the outer products can be computed in advance because the input word vectors are fixed. It also identifies graphics processors as a way to accelerate the matrix operations. The learning procedure still has to deal with the large set of possible word pairs.

Refining the samples across runs

There is an additional schedule around the updates. The authors first collect dependency-pair counts and keep the pairs whose frequencies exceed a threshold. The most frequent pairs supply the initial search space. They run decipherment independently from multiple random starting assignments. Different runs can arrive at different proposed readings because early samples influence the counts that guide later samples.

At the end of a run, the authors use its final sample to estimate English translation probabilities for foreign words. They pool the run outputs, retaining pairs that occur in more than one decipherment and averaging the estimates of their translation probabilities. Requiring agreement offers a way to carry forward correspondences that recur across runs. It also means that a pair suggested by a single run will have no place in that round's pooled table.

The pooled translation probabilities initialize another round of sampling. For each foreign dependency pair, the procedure selects the English pair with the highest product of two reverse translation probabilities and the English pair probability. This is an initialization score. The actual sampling step still uses the channel in the original direction, from proposed English words to observed foreign ones.

P(e₁ | f₁) P(e₂ | f₂) P(e₁, e₂)

The foreign words f₁ and f₂ are the observed members of a pair, and e₁ and e₂ are candidate English words in matching positions. Each P(eᵢ | fᵢ) is the pooled estimate for an English candidate given a foreign word at position i. P(e₁, e₂) is the probability of the English pair. Multiplication rewards an initialization whose members both have support in the pooled table and fit together under the English dependency statistics.

The next round initializes M with the map from the previous run that had the highest posterior probability. Pooling and resampling continue until the round converges. The count threshold is then lowered to bring in less frequent dependency pairs, and the process is repeated until the threshold reaches 1. Sampling, map fitting, pooling, and lowering the threshold have distinct roles. Sampling supplies changing word assignments, the map shares evidence across possible pairs, pooling supplies the next starting table, and the threshold determines which foreign evidence enters at each stage. The authors report making their decipherment software available for future research.

Experiments and results

Training corpora and evaluation dictionaries

The Spanish experiment uses half of Gigaword for monolingual training. The reported preprocessed training sizes are 992 million Spanish tokens and 940 million English tokens. The authors retain the most frequent 10k word types in each language and replace other types with the unknown-word symbol UNK. They also remove sentences longer than 40 tokens because those sentences slow the parser considerably. The vocabulary rule limits the dictionary search space, while the length rule makes the syntactic preprocessing more manageable.

The monolingual data serves different purposes at different scales. The full reported training collections are used to learn embeddings. The authors parse the Agence France-Presse section of Gigaword on each side to obtain the observed Spanish dependency pairs and to estimate the English pair probabilities. A result for a particular amount of ciphertext therefore refers to the material passed into the decipherment sampler. It does not by itself specify the amount of monolingual text behind the embeddings or the English probabilities.

To make the Spanish reference lexicon, the authors align Europarl parallel text with GIZA. The corpus table lists 1.1 million Spanish evaluation tokens and 1.0 million English evaluation tokens. The evaluation discussion describes the material as 1 million tokens for each language. These are the paper's two presentations of the evaluation corpus size. The aligned pairs establish which translations count as correct in the experiment and are kept apart from the monolingual evidence used for inducing the dictionary. The alignment tool is associated with A Systematic Comparison of Various Statistical Alignment Models.

The Spanish and English AFP material is analyzed with the Bohnet parser. The authors use verb–subject, verb–object, preposition–object and noun–modifier relations. This selection responds to the fact that the parsers' full sets of relations do not have complete cross-language correspondence. It also defines the kinds of local compatibility the English statistics can check. The parser the authors use is described in Top Accuracy and Fast Dependency Parsing is not a Contradiction.

The Malagasy experiment uses a different collection. Its monolingual material is news gathered from websites in Madagascar, with 16 million Malagasy training tokens in the corpus table. The reported English training size is 1, with Gigaword and web material making up the English side alongside an extra 300 million tokens from African news.2 billion tokens. For evaluation the authors use GlobalVoices, a multilingual news collection containing volunteer translations. The table gives 2.0 million Malagasy evaluation tokens and 1.8 million English evaluation tokens.

The paper describes Malagasy and English as having different common word orders, VOS and SVO respectively. It further points out that in Malagasy, determiners come before nouns, which may be followed by other modifiers and relative clauses. These differences help explain the appeal of head–dependent pairs. A pair can preserve a connection between a noun and another word even when surface order differs between languages. That choice still depends on the parser identifying the relation correctly.

The Malagasy parser does not assign dependency relation labels. The authors instead select head–child pairs using part-of-speech tags. Verb heads can be paired with nouns, proper nouns or personal pronouns, and prepositions with nouns or proper nouns. For noun heads the selected dependents include adjectives, determiners and nouns, as well as verb particles, verb nouns and cardinals. The English side of this experiment uses a Turbo parser trained on the Penn Treebank. Its underlying parser is described in Turning on the Turbo.

The systems being compared

The baseline is the dependency-bigram decipherment system with the symmetric channel prior. The authors call the method using embedding affinities DMRE, for Dirichlet multinomial regression with embeddings. They describe the two as sharing the decipherment framework and differing in how the channel base distribution is set. Both use dependency evidence, and the English probabilities for all systems are built with SRILM and modified Kneser–Ney smoothing. Smoothing adjusts estimates based on observed counts so that unfamiliar or infrequent pairs can still receive probability.

The Spanish experiment uses 10 random starts in the sampling procedure. The chosen channel concentrations are 1, 2, and 5 for ciphertext sizes of 100k, 1 million, and 10 million tokens, respectively. The results extend to a Spanish setting of 100 million ciphertext tokens, for which the method discussion gives no corresponding concentration value. The authors' stated practice is to use a small value for smaller samples and increase the weight as more ciphertext becomes available.

The Malagasy experiment uses 20 random starts. Its stated channel concentrations are 10 for 100k ciphertext tokens, 50 for 1 million ciphertext tokens, and 200 for 20 million ciphertext tokens. The largest Malagasy resource size in the sampling discussion is thus described differently from the largest Malagasy row with results in the main table, which is labeled 10 million. The comparisons below identify the tabulated result by its row label and the concentration settings by the conditions in the sampling discussion.

What counts as a recovered word

The authors rank English candidates for each foreign word by the estimated translation probability in the learned dictionary. Under top-5 accuracy, a word is counted as correct if any of its five highest-ranked pairs is in the gold lexicon. Each evaluated word type contributes a single success or failure. A word that occurs many times in ciphertext can provide more evidence for training, but it does not count as several correct words in the score.

Type accuracy = |C| / |V|

The vertical bars indicate the number of elements in a set. C is the set of evaluated foreign word types for which the candidate list contains a reference translation. V is the set of foreign word types evaluated. The division gives the fraction of evaluated types counted as correct. The result comparisons report that fraction as a percentage.

For Spanish, the paper reports 4233 reference-covered types within the most frequent 5k and 7479 within the most frequent 10k. The system deciphers the same Spanish vocabulary of 10k types into an English vocabulary of 10k types and reports both the narrower and broader frequency evaluations. This is a useful distinction when reading the scores. The broader results assess the candidate lists over a larger, less frequency-restricted set. They do not describe a different method trained with a larger search vocabulary.

A gold match can occur anywhere among the five selected candidates. A system that places a recognized translation first and one that places it fifth both receive credit on that type. Similarly, the evaluation does not award extra credit for recovering several valid alternatives. The metric is suited to testing whether a short dictionary entry contains a reference translation. It leaves differences in the ordering and completeness of those entries unresolved.

Spanish into English

In the Spanish evaluation on the most frequent 5k word types, DMRE leads from the smallest ciphertext condition. At 100k Spanish ciphertext tokens, the baseline achieves 1.9% top-5 type accuracy and DMRE achieves 12.4%. At 1 million ciphertext tokens, the values are 7.3% and 37.7%. At 10 million they reach 29.0% and 64.7%. The highest reported scores come at 100 million tokens, where the baseline reaches 45.8% and DMRE reaches 67.4%.

Spanish-to-English top-5 type accuracy on the most frequent 5k words at 100 million ciphertext tokens

The embedding-based prior produces the higher dictionary recovery score.

Spanish-to-English top-5 type accuracy on the most frequent 5k words at 100 million ciphertext tokensSymmetric-prior baseline: 45.8Symmetric-prior baseline45.8DMRE (this paper): 67.4DMRE (this paper)67.4
The numbers
System or settingaccuracy %
Symmetric-prior baseline45.8
DMRE (this paper)67.4

The broader Spanish evaluation also favors DMRE. For the most frequent 10k word types with 100k ciphertext tokens, the baseline and DMRE respectively score 1.1% and 7.1% top-5 type accuracy. At 1 million ciphertext tokens, they score 4.2% and 23.6%. With 10 million ciphertext tokens the values are 23.4% and 43.7%, and with 100 million they are 39.4% and 58.1%. The two evaluations show that the advantage persists as the evaluated vocabulary extends beyond the very most frequent words. The exact results also show how strongly both methods depend on how much evidence they can use.

The learning curves make the baseline's improvement especially important to the interpretation. A symmetric prior leaves the sampler reliant on recurring substitutions and on the English dependency statistics. When more Spanish pairs participate, those signals have more opportunity to accumulate. DMRE also benefits from the additional ciphertext, with an advantage already visible when the sampler has little direct evidence. The authors observe that the relative gains become less pronounced at larger sizes.

Malagasy into English

For Malagasy on the most frequent 5k word types, the main table gives top-5 type accuracies of 1.2% for the baseline and 2.7% for DMRE at 100k ciphertext tokens. At 1 million ciphertext tokens, it gives 2.5% and 5.8%. In the row labeled 10 million ciphertext tokens, it gives 5.4% for the baseline and 11.2% for DMRE.

Malagasy-to-English top-5 type accuracy on the most frequent 5k words in the table's 10 million ciphertext-token setting

DMRE recovers more reference translations than the symmetric-prior baseline.

Malagasy-to-English top-5 type accuracy on the most frequent 5k words in the table's 10 million ciphertext-token settingSymmetric-prior baseline: 5.4Symmetric-prior baseline5.4DMRE (this paper): 11.2DMRE (this paper)11.2
The numbers
System or settingaccuracy %
Symmetric-prior baseline5.4
DMRE (this paper)11.2

For the most frequent 10k Malagasy word types, top-5 type accuracy is 0.6% for the baseline and 1.4% for DMRE at 100k ciphertext tokens. At 1 million, the corresponding values are 1.3% and 3.2%. In the 10 million row they are 3.0% and 6.9%. The table has no Malagasy result for the 100 million condition. The improvement therefore appears across all Malagasy conditions the table reports, including the broader vocabulary evaluation, while the absolute recovery rate remains much lower than for Spanish.

The paper's Malagasy narrative contains discrepancies worth preserving. Its learning-curve discussion gives 2.4% for DMRE on the most frequent 5k types at 100k ciphertext tokens, where the main table gives 2.7%. For the final 5k comparison, the discussion gives the baseline as 5.8%, the abstract and conclusion give 5.1%, and the main table gives 5.4%. The final DMRE figure is 11.2% in all of those presentations. The chart uses the main table because it places the baseline and DMRE together under an explicit size and vocabulary condition. The direction of the comparison agrees across the paper's accounts.

What the ablations show

What changes when the prior changes

The paper has no separate component-by-component ablation series, but it offers a baseline comparison, ciphertext-size comparisons, observations about prior strength, and a visualization of the learned mapping.

The main controlled comparison changes the way the channel prior allocates weight. The baseline begins with equal prior preferences within each channel row, whereas DMRE assigns relative weights from embedding affinities learned during inference. The English dependency statistics provide the same kind of constraint in both setups. This makes the score comparison evidence for the learned-prior procedure as a whole. It does not isolate the effects of individual choices inside that procedure, such as the normalization of the affinities or the repeated alternation between fitting the map and sampling.

Changing the amount of ciphertext addresses a related question. If the prior only helped in a single narrow data regime, the advantage would be expected to disappear outside that setting. The results show gains at every ciphertext size in the main table for each language pair and both frequency ranges. In Spanish, the authors draw attention to the comparatively strong gains when the ciphertext is small. At that point the sampled counts have less information with which to distinguish candidate substitutions, so an external preference for plausible pairs can have more influence on the inference.

This interpretation concerns the amount of ciphertext exposed to the sampler. The system can still use embeddings trained on much larger monolingual collections and an English probability distribution learned from separate plaintext. The low-ciphertext result tests how much the prior helps when one source of evidence is restricted. It would take a different comparison to ask how little monolingual data is sufficient for the full pipeline.

The authors also report that the normalized prior works better in some concentration ranges than in others and that using the unadjusted affinity total can lead to poor results. This observation is consistent with the role of concentration in the channel conditional. A large prior total can make the new assignment mainly follow the vector-derived preferences, even if the few observed co-occurrences disagree. With too little prior weight, the candidate rankings from the vectors have little influence. The paper gives the values used in the experiments, but it does not show a full sweep of accuracies at different concentrations. Its results support the fitted method with the chosen strengths instead of a uniquely preferred rule for choosing them.

The authors propose that the gains arise because the embeddings carry information about a wider context. This can make a translation plausible for reasons that an isolated English dependency pair cannot express. A false assignment can fit the local pair and still disagree with the correspondence suggested by the two words' broader usage. The method allows that wider evidence to steer the sampler away from such a reading. The comparison establishes that adding the learned prior helps in the tested setups. It leaves the proposed wider-context mechanism as the authors' explanation of the improvement.

Reading the learned geometry

The Spanish visualization asks whether the learned matrix puts English words near plausible Spanish counterparts, independently of how the final list is ranked. The authors take the most frequent 5k English plaintext words and transform their vectors using a matrix learned from the Spanish bigram setting described as 10 million. They combine the transformed English vectors with the most frequent 5k Spanish ciphertext vectors. They then use t-SNE to project the combined set into a 2-dimensional view. This procedure turns a space with many coordinates into a plot in which selected neighborhoods can be inspected.

vₑ′ = vₑᵀ M

Here vₑ is the original English embedding of word e, T makes it a row vector, and M maps that row into the Spanish vector space. The result vₑ′ is the transformed English representation. The prime distinguishes the transformed vector from the original. The matrix multiplication is the same part of the affinity calculation that places an English vector in the coordinate system in which it can interact with a Spanish vector.

The figures give concrete cases. The points for English judge and Spanish jueces lie close together, as do secret and secretos. These examples show the kind of local geometry the paper was looking for. The learned representation can bring forms with related meanings into the same neighborhood, including forms whose number differs across the displayed pair.

The authors also highlight magistrado. It is absent from their evaluation set but appears near possible English translations in the plot. The example illustrates how a system trained from monolingual evidence can propose a correspondence outside the coverage of the available reference vocabulary. It gives a reason to inspect plausible candidates that the evaluation cannot credit. Establishing how frequently such candidates are valid would require evaluating a sample of those uncovered items separately.

Another figure shows English and Spanish time expressions occupying a shared neighborhood. A grouping of related terms is a broader observation than a single close pair. It suggests that the transformation captures some structure across a semantic group, while proximity within the group could allow several plausible candidates for a given word. These displays are qualitative. Their contribution is to show what the inferred mapping looks like in selected regions of the projection. They do not quantify independent translation accuracy for the mapping across the vocabulary or show how much of the combined system's gain it could achieve by itself.

Limitations

Limits identified by the authors

The authors attribute part of the difficulty in Malagasy to the quality of the syntactic input. The Malagasy parser is less accurate than the Spanish parser, in their account. A wrong head–dependent link supplies the decipherment procedure with an observation whose English counterpart may have little relation to the intended phrase. The choice to filter by part-of-speech pairs also reflects the available parser output. The authors provide no separate experiment holding the rest of the pipeline fixed while substituting better Malagasy analyses, so the size of the parser's contribution to the final score remains open.

They also identify the quality of the evaluation alignment as a problem. Because this setup makes Malagasy–English word alignment harder, the authors anticipate fewer correct pairs in the reference it produces. That can affect both coverage and the interpretation of a miss. A reference dictionary based on a word alignment is tied to the words and senses that appear in the parallel evaluation material and to whether the aligner links them successfully.

The third explanation the authors give is domain mismatch. They describe the English dependency probabilities as coming from material closer to the Spanish monolingual corpus than to the Malagasy one. Including African news on the English side supplies some related material, but the paper still treats the mismatch as a possible source of difficulty. English pair frequencies reflect the subjects and constructions in their training collection. If those differ from the observed foreign text, a plausible translation may receive little support from the English statistics.

The authors leave automatic choice of channel concentration for future work. Their own experiments establish that very large raw row totals can overwhelm evidence from small samples. The reported approach handles this through normalization and values chosen for the data conditions, so a new language pair or corpus size brings a practical choice about how much weight the learned prior should have.

Larger vocabulary sizes are another stated aim. The gradient calculation touches pairs across the two vocabularies, and the experiments restrict the vocabulary under study. The authors name noise contrastive estimation as a direction for scaling. They also propose testing the method in machine translation. The reported contribution measures bilingual dictionary recovery, with end-to-end evaluation left for later work.

Limits visible in the experimental design

The comparison covers Spanish–English and Malagasy–English, with English serving as plaintext in both. The target of the inference is therefore informed by English corpora and English dependency statistics in every reported setting. The study does not tell us how much the benefit would change if the direction were reversed or if both monolingual corpora were as small or difficult to parse as the Malagasy side. The premise of learning without parallel training data coexists with a need for monolingual text, embeddings and syntactic preprocessing.

Preprocessing narrows the scope of the reported accuracy. Replacing forms outside the retained vocabulary with UNK makes the search and the channel table tractable, but offers no recovery measure for those forms. In Spanish, dropping long sentences and selecting a subset of dependency relations also changes which evidence reaches the procedure. There is no reported comparison that isolates how any one of those choices changes the learned dictionary.

The prior fits provisional translations from the sampler. This creates a productive feedback path when the guesses are informative. It can also reinforce an erroneous correspondence if that correspondence appears repeatedly in sampled readings and gives the matrix a pattern to favor. The procedure uses independent starts and agreement across runs to obtain more stable starting tables. The experiments show the resulting system's aggregate benefit, while leaving open how much disagreement persists across runs or which types of errors tend to survive the pooling.

The evaluation measures recovery against an automatically derived dictionary. A valid but uncovered answer can go uncredited, and a reference link introduced by an alignment error can give credit to a questionable candidate. In addition, top-5 type accuracy leaves open whether the best-ranked entry is typically correct, whether multiple senses are represented, and whether a translation can be selected correctly in context. Those properties can matter differently when a lexicon is used to build a translation system.

Finally, the paper's inconsistent Malagasy figures make exact reproduction of some headline comparisons harder to interpret. The result table gives a coherent basis for comparing the entries within each row, but the prose varies in its value for the final baseline and in how it describes the largest ciphertext setting. The supported result is the consistent advantage of DMRE across the tabulated comparisons. A single definitive final-baseline number or a concentration matched unambiguously to that last table row cannot be recovered from the paper's accounts.

What came after

The papers that cite this work pursue several related questions. Some stay with word translation, some make bilingual representations the object of learning, and others move to entire translation systems. These are different ways of following the question posed by the decipherment study: how far can separate monolingual resources take a learner toward a cross-language correspondence? The citations establish the relationship. The later papers' stated subjects locate it at different levels, while leaving specific reuse of the Bayesian procedure unestablished.

Word Translation Without Parallel Data (2018) stays closest to the original evaluation task. It takes word translation itself as the goal under a constraint on parallel data. That places it alongside the decipherment paper's attempt to produce lists of English candidates from monolingual evidence. The shared question is whether reliable lexical correspondences can be found when aligned text is unavailable. The title identifies that focus in Word Translation Without Parallel Data.

Learning bilingual word embeddings with (almost) no bilingual data (2017) puts the representation at the center. In the decipherment paper the transformation between pretrained spaces is learned because it can furnish a prior for the channel. A study focused on bilingual embeddings takes the cross-language representation as its output of interest. The qualification “almost” in the title also matters: it describes a low-bilingual-data setting without specifying the same resource assumptions as the decipherment experiments. This is the focus of Learning bilingual word embeddings with (almost) no bilingual data.

Adversarial Training for Unsupervised Bilingual Lexicon Induction (2017) keeps bilingual dictionary induction as the goal and names a different training approach. That makes it especially close in task to the decipherment paper, which learns dictionary entries from hypothesized correspondences and uses a regression prior to feed the resulting vector affinities back into sampling. The later title identifies adversarial training as its route to unsupervised lexicon induction. This connects the two at the level of the problem and distinguishes the named learning approaches in Adversarial Training for Unsupervised Bilingual Lexicon Induction.

Unsupervised Statistical Machine Translation (2018) addresses the broader goal the decipherment authors propose for future work. A word dictionary supplies candidate correspondences, while an entire translation system has to turn them into a coherent output for each input. Pursuing statistical machine translation in an unsupervised setting shifts the question from whether recognizable counterparts appear in a lexicon to how translation can be learned at the system level. That is the scope of Unsupervised Statistical Machine Translation.

Unsupervised Neural Machine Translation (2017) makes the same shift in scope within neural machine translation. The 2015 paper's evidence is about the availability of bilingual lexical candidates and the value of an embedding-based prior in decipherment. The later work's stated task concerns learning a neural translation system under an unsupervised formulation. The relationship is the pursuit of translation with reduced dependence on parallel supervision, now at the level of the translation system in Unsupervised Neural Machine Translation.

Cite

Cite as Qing Dou, Ashish Vaswani, Kevin Knight and Chris Dyer. 2015. Unifying Bayesian Inference and Vector Space Models for Improved Decipherment. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/p15-1081

@inproceedings{dou2015unifying,
  title = {{Unifying Bayesian Inference and Vector Space Models for Improved Decipherment}},
  author = {Qing Dou, Ashish Vaswani, Kevin Knight and Chris Dyer},
  booktitle = {Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2015},
  doi = {10.3115/v1/p15-1081},
  url = {https://doi.org/10.3115/v1/p15-1081}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dou-2015-unifying-bayesian-inference-vector-space/