Elamur Research

Polylingual Tree-Based Topic Models for Translation Domain Adaptation

Paper · 2014 · Yuening Hu, Ke Zhai, Vladimir Eidelman et al.

Summary

A translation that works in a newspaper can sound wrong in a discussion forum. The intended sense of a word, the terminology around it, and the style of the document all affect which translation fits. A system trained on a mixture of texts needs a way to use that context when it chooses among translations. The authors study how to discover useful domains in a parallel corpus, where documents are available in a source language and a target language. They ask what the translated documents can reveal about those domains and whether a bilingual dictionary can help. The application is statistical machine translation.

Their method, called ptLDA, connects the languages at the document level and at the word level. Corresponding documents share a mixture of topics, so evidence from their different vocabularies contributes to the same account of what they discuss. A tree connects words that a dictionary or corpus alignment identifies as translations. Each topic learns its own probabilities over the branches of that tree. A branch leading to a bilingual concept can give words in both languages more prominence in a topic, while separate branches allow a word with several senses to participate in different concepts. The approach extends topic modeling.

The topics influence translation through an existing phrase-based system. During training, each document contributes more evidence to the translation statistics of the topics it strongly expresses. At test time, the system infers a topic mixture from the Chinese text and uses it to adjust the scores of candidate English phrases. The English side therefore helps determine what the topics capture during training, even though the text available for translation at test time is Chinese. The paper illustrates how these adjustments can favor terminology suited to a business story and how a better topic assignment can prevent a misleading preference in a passage about foreign affairs.

On the NIST Chinese–English task, the dictionary-based version that combines both connections did best among the approaches compared. The authors report gains over unadapted translation of up to 1.2 BLEU points and a change of -2.6 on translation edit rate, where lower is better. The dictionary tree also performed better than the tree built from automatic word alignments. Across the inference methods tested, Gibbs sampling produced better translation scores, while parallel variational methods finished much sooner on the training corpus. The experiments assess domain discovery by asking how much it helps the translator, with output quality measured partly by the BLEU score.

Deep dive: Polylingual Tree-Based Topic Models for Translation Domain Adaptation

Polylingual tree-based topic modeling uses aligned documents and bilingual word links to improve Chinese-to-English translation across domains. · about 37 minutes to read

The problem and its context

Why a shared translation table can miss the domain

A parallel corpus gives a statistical translation system examples of how people have rendered source text in another language. In phrase-based translation, the system uses corresponding spans of source and target text as candidates for future translations. Word correspondences inside those spans provide another kind of evidence. If the component words have plausible translations under the statistics learned from the corpus, that helps the phrase pair score well. The paper follows the lexical weighting approach in Statistical Phrase-Based Translation.

The proportions learned from a corpus depend on the texts it contains. Pooling all observations gives a general picture of what an expression has meant across that collection. A translator still has to decide which part of that general picture applies to the document at hand. The paper illustrates the problem with 潜水. In the newspaper example the expression refers to diving. In the social-media example it describes someone who follows a discussion without contributing. An estimate pooled across the two settings can represent both uses, but its relative preferences reflect the mix of evidence in the training material. A document’s domain gives the system reason to change those preferences.

Domain in this paper covers differences involving subject matter, genre, and style. A business article and a sports article differ in what they discuss. Newswire and blog posts can also differ in how their writers express an idea. Either kind of difference can matter for translation. A useful adaptation mechanism should let the system draw more heavily on training examples that resemble the document being translated. The authors use inferred topics as a practical representation of such resemblance. A document can receive support from several topics, so the representation accommodates material whose vocabulary belongs in part to business and partly to technology, for instance.

The distinction between documents and phrases matters here. A phrase table supplies possible outputs for a small span. A document supplies evidence about which of those outputs will fit into a larger passage. An ambiguous expression may carry little evidence on its own, while the rest of the text contains terms that make its intended use more likely. The paper takes this broader evidence into account by changing lexical preferences. The decoder still weighs those preferences alongside the other evidence used to assemble a translation.

From labeled collections to inferred topics

The paper describes earlier adaptation work that built separate statistical components for different domains or added features to account for domain information. It also describes an approach that combined these choices, building separate translation tables while optimizing features for genre and collection. Those approaches take the categories to be known in advance. That works when a corpus arrives with useful labels and those labels match the distinctions the translator needs. The authors point out the cost and difficulty of obtaining such labels on large collections. Their examples of earlier approaches include Mixture-Model Adaptation for SMT and Discriminative Corpus Weight Estimation for Machine Translation.

Topic discovery offers a way to build the representation from the text. A document is treated as a bag of words, which means the estimator uses the words that occur and their repetitions while setting aside their order. It learns which words are probable under each topic and which topics account for each document’s vocabulary. A topic is a distribution over possible observations. Labels such as business or foreign affairs are human descriptions of its prominent words and the examples it helps explain. The underlying approach comes from Latent Dirichlet Allocation.

Eidelman and colleagues had already used topic mixtures to adapt lexical weighting. They inferred topics from source documents and then used those mixtures to redistribute observed translation counts among topics. At test time, the source document’s mixture helped determine the contribution of each topic-specific lexical feature. The authors keep this adaptation procedure and change the information used to learn the topics. That choice makes the study a comparison of different ways to represent domains within the same translation pipeline.

The paper also describes approaches that assigned a topic to an entire sentence using hidden topic Markov methods. A document is treated as a sequence, and its sentences receive topic assignments under that structure. The authors relate work that used such assignments from the source side, as well as applications of the method to monolingual data for translation. Another approach, by Xiao and colleagues, used topic compatibility to weight grammar rules. It considered both sides of a rule and compared target-side topic information during decoding by mapping it into the source representation. That is a different use of target information from the one studied here, where the training documents in both languages help establish the domains.

What the translated documents can tell the topic estimator

The paper uses 木马 to show why target-language evidence might help. A short passage containing the Chinese expression could be about a children’s hobbyhorse or a Trojan virus. The corresponding English expressions point in different directions. Reading the English document alongside the Chinese one can therefore give the topic estimator evidence that the Chinese passage alone supplies weakly. The purpose is to learn domain distinctions that can later help when only the source text is available.

The authors identify several ways earlier work connected languages. Some methods assumed that aligned words shared a topic. Other methods used comparable documents and let corresponding documents share their topic mixtures. Still others used words with similar spellings in related languages or drew links from dictionaries. Each source of evidence supports a different association. A document pair says that its two vocabularies concern overlapping subjects. A dictionary makes a much more specific claim about particular expressions. The document approach the authors build on is Polylingual Topic Models.

These associations also differ in how much coverage they demand. Documents can have corresponding subjects even when their wording and sentence boundaries differ. A dictionary can supply a direct connection for a useful word in such a pair, including when the corpus alone would provide little evidence for that connection. Its coverage is limited to the entries available and retained. The paper combines document alignment, which supplies broad evidence about subject matter, with lexical links, which give selected words a more direct relationship inside a topic. The translation experiment asks whether the combination yields more useful domain estimates than either connection on its own.

The method, step by step

What the tree adds

The method starts with a collection of documents, the information about which documents correspond across languages, and a set of links between words. It treats corresponding documents as a set whose topic mixture is shared. A document in only one language can also have its own mixture. Sharing happens at the level of topic proportions, so a source token and a particular target token do not need to be assigned together. Repeated vocabulary patterns across the document set provide the evidence from which those proportions are inferred.

The lexical links are represented by a tree. The top node, called the root, has branches leading to concepts and to words that have no supplied links. Each concept node has the expressions associated with it as children. For instance, a dictionary lookup may put 电脑 and computer under a common parent. These remain distinguishable observations, with their languages attached, even though some of the probability of generating either word comes from the same branch. A branch is a link between nodes, and a path is the sequence of branches from the root to a word at a leaf.

Each topic uses the same tree structure and has its own probabilities for the branches. Suppose that a technology topic puts substantial probability on reaching the concept that groups 电脑 with computer. Both words benefit from the probability of that shared part of the path. Their final probabilities also depend on the choices available within the concept. The tree thus encourages linked words to behave similarly at the topic level while leaving their individual probabilities free to differ. Words without a lexical link remain available to every topic through their direct branches from the root.

The same word type can appear at the end of several paths when the resource links it to several concepts. The observation records which word appeared. The topic estimator decides which of the compatible paths best accounts for that occurrence, or distributes its belief across those paths. A word can consequently occur under a technology concept in one context and under a different concept in another. The paths are candidate senses supplied through the tree, with their practical value depending on the quality of the links and the corpus evidence.

The authors build alternative trees from a bilingual dictionary and from word alignments extracted from the parallel corpus. The source of the links changes the tree, while the mechanism for assigning probability to paths stays the same. The dictionary offers links supplied outside the translation corpus. Corpus alignments offer links tied to actual training examples. Each experiment with a tree uses one of those resources for its lexical connections. Document alignment is a separate input that can be combined with either tree.

Learning bilingual topics and using them in translation

The steps in order.

Learning bilingual topics and using them in translationStep 1: Group corresponding training documents across languages1. Group corresponding training documents across languagesStep 2: Build a tree from bilingual word pairs2. Build a tree from bilingual word pairsStep 3: Infer document topics and likely word paths3. Infer document topics and likely word pathsStep 4: Reweight aligned translation counts by topic4. Reweight aligned translation counts by topicStep 5: Infer topics from the Chinese test document5. Infer topics from the Chinese test documentStep 6: Score candidate phrases with topic-conditioned lexical features6. Score candidate phrases with topic-conditioned lexical features

How the probability model generates words

The generative account describes the choices that could have produced the observed words. In training, the authors have the words and reason in the reverse direction, estimating the unobserved topic and path choices and the distributions that govern them. Separating the generative description from inference makes it easier to see which quantities belong to a topic, which belong to a document set, and which belong to an individual token.

At each internal node of the tree, a topic needs a distribution over the possible next branches. These distributions are drawn from Dirichlet priors. A Dirichlet distribution is a distribution over vectors of probabilities. Its parameters govern which probability vectors are favored before the corresponding observations are taken into account. Each internal node has a prior suited to its outgoing branches.

πₖᵢ ∼ Dir(βᵢ)

Here πₖᵢ is the distribution over branches out of node i for topic k. The symbol ∼ means that this distribution is drawn from the distribution on the right. Dir denotes the Dirichlet family, and βᵢ is the vector of prior parameters at node i. The entry βᵢ→ⱼ refers to the branch from i to child j. A shared concept affects all paths passing through it because those paths have the same probability factor at the branch leading into the concept.

The corresponding draw for a document set gives its mixture over topics.

θ_d ∼ Dir(α)

Here d identifies a document set, and θ_d is its vector of topic probabilities. The symbol ∼ again denotes a draw. Dir denotes a Dirichlet distribution, and α denotes its prior parameter or parameter vector. The entry for topic k in the vector θ_d is the probability of drawing that topic for a token in the set. The training experiments use a common setting for the topic components of the prior.

Each token first receives a topic. This choice gives the token access to the topic’s particular distribution at every internal tree node.

z_dn ∼ Mult(θ_d)

Here n is a token position within set d, and z_dn is the topic drawn at that position. Mult denotes a multinomial choice with the probabilities in θ_d. For an individual token, it is a single draw from those categories. The symbol ∼ again means that the left-hand variable is sampled from the right-hand distribution.

Once a topic is chosen, the process follows branches in its tree until it reaches a leaf.

p(y_dn ∣ z_dn, π) = ∏_{(i,j) ∈ y_dn} π_{z_dn,i,j}

Here y_dn is the path taken for token n in set d, and z_dn is its topic. The notation p denotes a probability, with ∣ introducing the quantities it is conditioned on. The collection π contains the branch probabilities for all topics and nodes. The product sign ∏ multiplies the probabilities π_{z_dn,i,j} for all edges from parent i to child j on the path. The membership sign ∈ specifies which edges to include. Reaching the leaf determines the word w_dn and its language l_dn. The token goes into the document in the set belonging to that language.

There are two kinds of repeated evidence in this account. Tokens within a document set share the same topic proportions, so evidence that one side of the set discusses a subject can affect how tokens on the other side are explained. Tokens assigned to the same topic anywhere in the training collection also draw on the same tree probabilities for that topic. If their paths share branches, those branches receive combined evidence. Within a concept, the choice of a particular leaf still depends on the corresponding outgoing probability.

The paper writes the joint probability of the observations and all these choices as a product. Supplying the priors and the tree makes each factor correspond to a stage of the generative account.

p(w, z, y, θ, π; α, β) =
  [∏ₖ ∏ᵢ p(πₖᵢ ∣ βᵢ)] [∏_d p(θ_d ∣ α)]
  [∏_d ∏_n p(z_dn ∣ θ_d)]
  [∏_d ∏_n p(y_dn ∣ z_dn, π) p(w_dn ∣ y_dn)]

Here w, z, and y collect the observed words, topic assignments, and path assignments. The collections θ and π hold the document mixtures and the tree transition distributions. The prior settings α and β appear after the separator because they are given parameters. The product ∏ₖ ranges over topics k, ∏ᵢ ranges over internal nodes i, ∏_d ranges over document sets d, and ∏_n ranges over token positions n within the current set. Each p with a conditioning bar is the corresponding density or probability. In particular, p(w_dn ∣ y_dn) enforces the word at the leaf reached by the path. The square brackets group factors that belong to the same part of the process.

This construction also defines useful comparisons. A flat, symmetric prior in place of the word tree yields the polylingual version, pLDA. It retains sharing at the document level. Giving the individual monolingual documents distinct topic mixtures while keeping the tree yields the tree-based version, tLDA. It retains the lexical connections. Plain LDA in the translation comparison uses the source side and provides the reference point for topic-based adaptation before adding these bilingual connections.

Estimating topics and paths

The posterior is the distribution over the unknown quantities after taking the observed words into account. Finding it exactly is intractable in the paper’s formulation. A word can have several candidate paths, each associated with several candidate topics, and a choice can affect the probabilities of other choices through shared document and tree statistics. The authors develop three approximations. These are ways of estimating the same underlying topic structure. Comparing them in translation tests whether their practical outputs differ when the translator uses the resulting topics.

In collapsed Gibbs sampling, the estimator maintains assignments of topics and paths to tokens. It takes one token out of the counts, scores its possible assignments using the current assignments of the other tokens, and samples a replacement. The word constrains the compatible paths. Among them, a possible assignment receives support from the popularity of its topic in that document set and the popularity of its constituent branches under that topic. The procedure is called collapsed because it uses these counts and the prior parameters to account for the document and branch probability vectors without sampling those vectors separately in each token update.

p(z_dn = k, y_dn = s ∣ ¬z_dn, ¬y_dn, w; α, β)
  ∝ I[Ω(s) = w_dn]
    × (N_{k∣d} + α) / [∑_{k′} (N_{k′∣d} + α)]
    × ∏_{i→j ∈ s}
        (N_{i→j∣k} + β_{i→j}) / [∑_{j′} (N_{i→j′∣k} + β_{i→j′})]

On the left, p denotes the conditional probability of assigning topic k and path s to token n in set d. The symbols ¬z_dn and ¬y_dn denote the assignments of the other tokens, w is the observed collection, and α and β are the priors. The proportionality sign ∝ means the weights on the right must be normalized across candidates. The indicator I is true for a compatible assignment and gives zero weight otherwise. Ω(s) is the word found at the end of path s, and w_dn is the observed word. The equality sign in the indicator tests whether they match.

The count N_{k∣d} records how many other tokens in set d have topic k. The sum indexed by k′ includes all candidate topics. In the product, i→j denotes an edge from parent i to child j, and ∈ restricts the product to edges on s. The count N_{i→j∣k} records use of that edge in topic k, with the current token excluded. The sum indexed by j′ covers all children of i. Adding β_{i→j} and β_{i→j′} puts the relevant edge priors into the numerator and denominator. The multiplication and division signs combine the document preference with the successive branch preferences. In implementation, the authors use sparse updates to make sampling more efficient.

Variational inference represents uncertainty with an explicitly parameterized distribution. The estimator picks a tractable family, then adjusts its parameters to approximate the posterior. The paper gives separate variational Dirichlet distributions to the document mixtures and the tree transitions. For an individual token it keeps the topic and path together in one categorical distribution. A path plausible in one topic can have little support in another because the topics assign different probabilities to its branches. A joint distribution preserves that dependence.

q(θ, π, z, y ∣ γ, λ, φ) =
  [∏_d q(θ_d ∣ γ_d)] [∏ₖ ∏ᵢ q(πₖᵢ ∣ λₖᵢ)]
  [∏_d ∏_n q(z_dn, y_dn ∣ φ_dn)]

Here q is the approximate posterior. Its arguments θ, π, z, and y are the document mixtures, tree transitions, topic assignments, and path assignments. The bar introduces its variational parameters γ, λ, and φ. The parameter γ_d governs the estimate for document set d, and λₖᵢ governs the estimate at internal node i of topic k. The vector φ_dn describes the distribution over topic–path combinations for token n in set d. The product signs range over the document sets, topics, nodes, and token positions indicated by their subscripts. For a token with K possible topics and S compatible paths, φ_dn has an entry for each pairing of a topic with a path. K denotes the topic count, and S denotes the number of paths leading to that token’s word.

The objective balances how well the approximate distribution explains the words under the generative process with how concentrated the approximation is. The authors use the evidence lower bound, a quantity whose optimization reduces the Kullback–Leibler divergence between the variational distribution and the posterior. The divergence measures discrepancy between the distributions. The bound can be evaluated using the joint distribution and the tractable approximation.

L = E_q[log p(w, z, y, θ, π)] − E_q[log q(θ, π, z, y)]

Here L is the evidence lower bound and E_q denotes expectation under q. The function log takes the logarithm. The probability or density p in the first term is the generative joint evaluated with the prior settings held fixed. Its arguments are the observed words w, the assignments z and y, and the probability vectors θ and π. The function q in the second term is the variational distribution of the same latent quantities. The minus sign means that the second term, an expected log density under q itself, contributes the entropy of that distribution to the bound.

The paper also expands the bound to show which quantities contribute to the updates.

L = ∑ₖ ∑ᵢ E_q[log p(πₖᵢ ∣ βᵢ)]
    + ∑_d E_q[log p(θ_d ∣ α)]
    + ∑_d ∑_n E_q[log(p(z_dn, y_dn ∣ θ_d, π) p(w_dn ∣ y_dn))]
    + H[q(θ)] + H[q(π)] + H[q(z, y)]

Here the sum signs ∑ add contributions over topics k, internal nodes i, document sets d, and positions n as indicated. The first two terms use the prior density p of a transition vector πₖᵢ given βᵢ and of a document topic vector θ_d given α. The next term uses the probability of the topic z_dn and path y_dn given the document mixture and all tree transitions, together with the word probability for w_dn at the end of the path. The plus signs collect the log-probability contributions and the entropies, denoted by H. The entropy terms apply to the document mixtures, the tree transitions, and the joint topic and path assignments under q. The expectations E_q and the logarithm log have the same meaning as in the compact expression.

Each set of variational parameters is updated using the others. For a token, the update adds the expected log preference for a topic in its document set to the expected log preferences for the branches of a candidate path. Exponentiation turns this sum into a weight that can be normalized across compatible candidates. The digamma function appears because the update needs the expectation of the logarithm of a component of a Dirichlet probability vector.

φ_dnks ∝ exp{
  Ψ(γ_dk) − Ψ(∑_{k′} γ_dk′)
  + ∑_{i→j ∈ s} [Ψ(λ_{k,i→j}) − Ψ(∑_{j′} λ_{k,i→j′})]
}

Here φ_dnks is the weight for topic k and compatible path s at token n of set d. The proportionality sign ∝ leaves normalization implicit, and exp is the exponential function. The function Ψ is digamma. The parameter γ_dk belongs to topic k in the variational Dirichlet for set d, and the sum over k′ includes all topics for that set. The parameter λ_{k,i→j} belongs to the edge from i to j in topic k. The sum over j′ covers all its sibling choices at node i, including j itself. The edge sum adds the branch contributions along s. Subtraction gives the expected log of the appropriate normalized component in each Dirichlet vector. The plus sign adds the document and path evidence.

After computing the token weights, the update for a document’s mixture adds the expected use of each topic to its prior parameter. It counts all paths through which a token could have used that topic.

γ_dk = αₖ + ∑_n ∑_{s ∈ Ω⁻¹(w_dn)} φ_dnks

Here γ_dk is the updated parameter for topic k in document set d, and αₖ is the prior component for that topic. The first sum ranges over positions n in the set. The notation Ω⁻¹(w_dn) means all paths whose leaf is the observed word w_dn. The second sum runs over paths s in that set. The value φ_dnks supplies the current probability for topic k and path s. Adding these probabilities to αₖ gives the variational parameter for the document’s use of k.

An analogous update pools expected edge use across document sets. A token contributes only to the edges included in each candidate path, with the contribution weighted by the probability of that path and topic.

λ_{k,i→j} = β_{i→j}
  + ∑_d ∑_n ∑_{s ∈ Ω⁻¹(w_dn)} φ_dnks I[i→j ∈ s]

Here λ_{k,i→j} is the updated parameter for the transition from i to j under topic k. The prior contribution for that edge is β_{i→j}. The sums range over document sets d, positions n in each set, and paths s ending at the word w_dn. The quantity φ_dnks weights the candidate topic–path assignment. The indicator I[i→j ∈ s] includes that weight only when the edge belongs to the path. Thus γ gathers expected topic use within a set, while λ gathers expected edge use across the corpus.

Combining document sampling with variational tree estimates

The hybrid procedure treats the corpus-wide transition distributions variationally. Within a document set, it samples topic and path assignments. This division puts the quantities shared across the corpus into a form suitable for parallel variational updates. The local quantities are handled by a sampler that can maintain sparse assignments. The document mixture makes a topic more or less attractive through the counts of other token assignments in the set. The sampled path also depends on the current variational estimate for the tree.

q(z_dn = k, y_dn = s ∣ ¬z_dn, ¬y_dn; w)
  ∝ (α + ∑_{m ≠ n} I[z_dm = k])
    × exp{E_q[log(p(y_dn ∣ z_dn, π) p(w_dn ∣ y_dn))]}

Here q is the sampling distribution used for the local update. The token at position n in set d is being considered for topic k and path s. The symbols ¬z_dn and ¬y_dn denote the other local assignments relevant to the conditional, and w denotes the observed words. The prior contribution is α. The sum ranges over positions m other than n, as indicated by ≠, and the indicator adds to the count when z_dm, the topic of token m in the set, equals k. The second factor uses exp to turn the expected log path and word probability into a weight. Its expectation E_q uses the variational distribution of the transition probabilities π. The notation p denotes the probability of the path given its topic and transitions, and of the word w_dn given the path. The proportionality sign requires normalization across possible assignments.

Compatibility still determines which paths can participate in this update. For an eligible path, the log of its probability is the sum of the log transition probabilities on its edges. The paper displays the expected path term using edge-indexed notation. With π denoting the actual transition vectors and λ denoting their variational parameters, the expectation entering the weight can be written for an eligible path as follows.

E_q[log(p(y_dn ∣ z_dn, π) p(w_dn ∣ y_dn))]
  = ∑_{i→j ∈ y_dn} E_q[log π_{z_dn,i,j}]

Here y_dn is a candidate path that terminates at the observed word w_dn in position n of set d. The topic is z_dn, and π contains the random transition vectors. The factor p(w_dn ∣ y_dn) contributes the probability of the observed word at that leaf. The sum runs over edges from parent i to child j on y_dn, and π_{z_dn,i,j} is the transition probability for each edge under the chosen topic. The expectation E_q uses the variational Dirichlet for this vector. Its value for an edge is the difference of digamma terms seen in the variational update. A candidate with a different terminal word has zero sampling weight.

The sampler sweeps over the tokens in a document set repeatedly. The first B sweeps serve as burn-in, meaning their assignments are discarded before collecting the samples used in the update. The authors set B = 5 for those discarded sweeps and M = 5 for the samples retained. The retained assignments contribute an average count for every edge and topic. Making the average explicit gives the global parameter update below.

λ_{k,i→j} = β_{i→j}
  + (1 / M) ∑_r ∑_d ∑_n ∑_{s ∈ Ω⁻¹(w_dn)}
      I[i→j ∈ s] I[z_dn^(r) = k, y_dn^(r) = s]

Here λ_{k,i→j} is the variational parameter for edge i→j under topic k, and β_{i→j} is its prior. M is the number of retained samples, ∑_r runs over them, and the factor 1 / M takes their average. The other sums cover document sets d, token positions n, and paths s that end at the observed word w_dn, as identified by Ω⁻¹. The first indicator requires the edge to occur in the path. The second indicator requires sample r to assign the token to topic k and path s. Adding the resulting average to the prior plays the same role as adding expected edge counts in the fully variational procedure.

The three approaches therefore attach different meanings to the evidence accumulated during training. Gibbs sampling maintains counts from concrete assignments and repeatedly refreshes those assignments. Variational inference uses the probabilities of possible assignments as fractional evidence. Hybrid inference uses sampled assignments locally and turns their average into evidence for global variational parameters. Each procedure supports the same downstream operation of representing a document with a distribution over topics.

Turning document topics into translation preferences

The translation system begins with word alignments in its parallel training corpus. A lexical count records how often a source word and a target word have been linked. Dividing the count for a pair by the counts for all translations of the same source word gives the relative frequency of that translation. At phrase level, the underlying system uses aligned word translation probabilities to construct a normalized lexical score for a candidate phrase pair. These scores describe how the phrase’s word correspondences are supported by the training data.

The adaptation mechanism creates topic-specific versions of these statistics. Every training document contributes its aligned word counts to each topic in proportion to its inferred mixture. Occurrence counts from a document strongly associated with a topic carry more weight there. The quantity being estimated is an expected count from the document weighting, so fractional values have the same role as whole counts in the later normalization.

ĉₖ(e, f) = ∑_d p(k ∣ d) c_d(e, f)

Here ĉₖ(e, f) is the weighted count for target word e and source word f in topic k. The sum ranges over training documents or aligned document sets d. The term p(k ∣ d) is the inferred proportion of topic k in d. The count c_d(e, f) is the number of occurrences of the aligned word pair within d. Multiplying the document’s topic proportion by its observed count determines how much evidence goes to the topic.

The system then turns these expected counts into a conditional translation probability for each topic.

p_w(e ∣ f; k) = ĉₖ(e, f) / ∑_{e′} ĉₖ(e′, f)

Here p_w is a lexical translation probability. The left side gives the probability of target word e given source word f in topic k. The subscript w identifies the lexical weighting quantity. The numerator ĉₖ(e, f) is that pair’s topic-weighted count. The sum in the denominator runs over possible target words e′ for the same f and topic. The division expresses the share of the source word’s expected translation count assigned to e.

Every document has positive topic proportions in the paper’s account. Thus every observed word translation contributes some evidence to each set of topic-specific counts. The degree may be small when that topic is weakly represented. This distributes the observed evidence across the topics and is the reason the authors give for dispensing with a separate smoothing step for these estimates. The procedure uses the corpus’s observed translation pairs as its basis.

The corresponding phrase-level probability is built from the lexical probabilities of the aligned words, following the same normalization as the underlying phrase-based system. The test document supplies a separate quantity: how much the feature associated with each topic should matter. The feature combines its topic’s negative log lexical weight with the inferred topic proportion.

fₖ(ē ∣ f̄) = [−log p_w(ē ∣ f̄; k)] · p(k ∣ d)

Here fₖ is the feature for topic k, evaluated for candidate target phrase ē and source phrase f̄. The bar in the function arguments separates the candidate translation from the source phrase. The quantity p_w(ē ∣ f̄; k) is the topic-specific phrase lexical probability derived from aligned word probabilities. The function log takes its logarithm, the minus sign gives a negative log weight, and the multiplication dot scales it by the probability p(k ∣ d) of topic k for the test document d. The brackets identify the lexical quantity being scaled.

The feature enters a linear combination with the translation system’s other features. A trained coefficient controls its role in the combined decoder score. The authors use the Margin Infused Relaxed Algorithm, or MIRA, to train those coefficients. The document’s topic proportions change the feature values from text to text, while the coefficients are learned on the tuning set. This separates the evidence for the current text’s subject matter from the general question of how much translation decisions should rely on the topical features.

In this setup the test-time inference uses Chinese text with topics already learned from the training data. Candidate English phrases are scored once that context is available. The reference translation serves the evaluation. The target side used for domain discovery is the English in the training corpus. This separation is central to what the experiment tests: the information gained from a translated training document must become useful through a representation that can be inferred from a source document on its own.

Experiments and results

The corpus and the translation pipeline

The authors test Chinese-to-English translation on the NIST MT parallel corpus. They describe the training selection in terms of the UN and Hong Kong Hansards material and the exclusion of the other portions. The resulting corpus contains 1.6M aligned sentence pairs. Its Chinese side contains 40.4M tokens, and its English side contains 44.4M tokens. A token is an occurrence of a word after preprocessing, so repeated words contribute repeatedly to those totals. The paper starts the pipeline by segmenting the Chinese text into words.

The authors then align words and combine alignments from the two directions through symmetrization. These correspondences provide the word-pair counts used for phrase translation. For the alignment-based tree, correspondences also supply candidate lexical links. That gives alignment two distinct jobs: providing evidence of how often words translate one another and proposing which words should share a concept in the topic estimator. The alignment method is described in A Systematic Comparison of Various Statistical Alignment Models.

The translator also includes an English language model. Its job is to score local word sequences in candidate translations. This component is a modified Kneser–Ney trigram, which estimates sequences through short word histories and uses smoothing to share evidence across histories. It is trained on the English data. The experiment adapts the lexical translation features through topics while keeping this target-language component in the common translation setup. The smoothing work the authors cite is An Empirical Study of Smoothing Techniques for Language Modeling.

Decoding uses cdec, and feature training uses MIRA. The tuning split is NIST MT 06, which contains 1664 sentences. The test splits are MT 02 with 878 sentences, MT 03 with 919 sentences, and MT 05 with 1082 sentences. Tuning determines the weight of the decoder features. Testing compares the resulting translations with references on the held-out splits. The authors keep that distinction across the topic comparisons. The decoder is described in cdec.

Baselines and tree resources

The primary translation baseline uses the same general pipeline without topic-based domain adaptation. It is the reference for asking whether topic-conditioned lexical features help at all. Plain LDA supplies a second point of comparison because it adds topic information based on Chinese alone. The polylingual pLDA comparison adds shared document mixtures across languages. Tree-based tLDA incorporates the word correlations without sharing the topic mixtures of corresponding documents. The proposed ptLDA uses both connections. Across these settings, the authors fix the topic count at 10 and the per-document Dirichlet parameter at α = 0.01.

To build the dictionary tree, the authors take a Chinese–English bilingual dictionary and filter entries against the NIST vocabulary. They keep entries that connect a single Chinese word to a single English word. This leaves about 1000 word pairs for the dictionary resource, called dict. The tree can represent vocabulary outside those pairs because an unlinked word has a direct branch from the root. The dictionary therefore adds selective cross-language connections within a vocabulary that is also learned from the corpus.

For the alignment tree, the authors extract bidirectional correspondences with GIZA++. They remove pairs whose counts exceed 50K and pairs whose counts fall below 500. The retained set supplies about 2500 word pairs for the resource called align. These cutoffs concern occurrences of aligned pairs in training. They are distinct from the number of pairs retained to build the tree. The resource gives a larger set of links than the dictionary tree in this experiment, with the links produced by automatic alignment.

The authors apply the resources to the tree-based and combined approaches. They report that both alignment-based versions do worse than their dictionary counterparts and omit tLDA-align from the displayed results. The combined alignment-based version remains part of the comparison. For Gibbs sampling in the earlier topic setups, the authors use an existing tree-based implementation for tLDA and Mallet for plain LDA and pLDA. The paper also tests fully variational and hybrid inference for the combined method.

Translation quality and runtime

BLEU compares the translated output with reference translations through matching word sequences, with higher scores preferred. Translation edit rate, abbreviated TER, characterizes how much editing is needed to match a reference, with lower scores preferred. These metrics judge the translated text. The paper reports scores averaged over five runs, so the main comparison describes the behavior of the translation setup across random runs. The paper uses the evaluation method described in Bleu: a Method for Automatic Evaluation of Machine Translation.

Plain LDA yields a marginal improvement, described as less than half a BLEU point. The polylingual system and the dictionary-based tree system both outperform plain LDA consistently in the authors’ account. The dictionary-based ptLDA system, which uses shared topic mixtures and bilingual tree links, does best among these approaches. The reported gain reaches 1.2 BLEU points over unadapted translation, and the reported TER change reaches -2.6. These are peak improvements in the reported evaluation across the NIST test sets, with MT 06 serving only as the tuning split. The chart uses the unadapted system as the zero point of the BLEU change scale and displays the reported peak for the adapted system.

BLEU change from unadapted translation on the NIST Chinese–English tests

The dictionary-based system achieves a positive peak gain against the unadapted reference.

BLEU change from unadapted translation on the NIST Chinese–English testsUnadapted SMT reference: 0Unadapted SMT reference0Dictionary-based ptLDA, reported peak (this paper): 1.2Dictionary-based ptLDA, reported peak(this paper)1.2
The numbers
System or settingBLEU points
Unadapted SMT reference0
Dictionary-based ptLDA, reported peak (this paper)1.2

The paper reports significance at p = 0.01 for the dictionary-based system’s BLEU improvements, with exceptions on MT 03 for variational and variational-hybrid inference. The run used for a significance comparison is the one whose BLEU score is closest to the average for that setting. The reported score averages and the significance procedure therefore summarize the runs in different ways. The significance test follows Statistical Significance Tests for Machine Translation Evaluation.

The alignment-based combined system does better than the unadapted system and plain LDA, while the dictionary-based system leads it. This result matters for interpreting the peak gain. Adding bilingual word connections from an automatic source can be helpful, and the source of the links can affect how helpful those connections are. The word-pair count alone gives a poor account of the observed ranking: the alignment-based tree has more retained pairs, while the dictionary version gets the better translation scores.

The inference methods offer a separate comparison of translation quality and computational cost. Gibbs sampling yields better translation scores in the reported experiments. On the corpus of 1. Running 1,000 iterations on 6 million training sentence pairs takes almost a week. The parallel implementations of variational and variational-hybrid inference, built with MapReduce, take less than a day to converge in the reported setup. The timing statements use different endpoints: a stated iteration budget for Gibbs sampling and convergence for the parallel implementations. They describe the practical training burden in this experiment, with the parallel methods providing a faster route to usable topic estimates.

What the ablations show

Contributions of the document and word connections

The main comparison varies the source of bilingual evidence while keeping the same method for converting topic proportions into translation features. Plain LDA uses the Chinese vocabulary to discover domains. pLDA gives corresponding documents the same topic mixture and gains access to both vocabularies through that sharing. tLDA-dict gives topics lexical connections through the word tree, while individual documents have their own mixtures. The combined ptLDA-dict setting supplies both kinds of evidence. These comparisons show how each configuration behaves in the translation task under the common topic count, prior setting, and feature framework.

The paper reports that each route to bilingual information improves on the plain LDA setting and that their combination performs best. Document sharing and tree sharing therefore have complementary value in this experiment. One interpretation follows directly from what the connections encode. Document sharing provides evidence across all the vocabulary in a corresponding text, including words absent from the dictionary. The tree gives particular words an explicit reason to receive related treatment even when many other words in the document are variable. The relative scores show the practical value of combining them for these data. The experiment does not isolate a numerical share of the gain for every branch or every document pair.

The tree-resource comparison holds the combined architecture in place and changes the entries that define its concepts. Automatic alignments produce a useful version, and the dictionary produces the higher-scoring one. The authors suggest that errors in the alignments make the alignment tree less effective. The experiment establishes the ranking of the tested resources. Their explanation remains a hypothesis because the resources differ in how they were obtained, how many pairs they contain, and which pairs survive filtering. A word pair can be a sensible alignment in a particular sentence without providing a consistently helpful connection between topic vocabularies.

The inference comparison changes a different part of the procedure. Given the same kind of probabilistic structure, Gibbs, variational, and hybrid estimation can produce document proportions that lead to different expected translation counts. This makes downstream performance a separate question from whether an approximation fits the topic estimation objective. In the reported setup, Gibbs leads on translation scores, and the parallel methods have shorter training times. The MT 03 significance exceptions also show that the evidence for improvement varies with the test split and the inference method.

When adaptation reinforces a good interpretation

The paper examines a sentence about sales of a device and games that work with it. The unadapted system uses set for 套件 and gives 相容 a rendering with with. The resulting sentence conveys the association with games less clearly than the reference does. Both plain LDA and ptLDA associate the sentence with a business topic. Under that topic, the lexical weights move towards kit for the device and compatible for the relationship with the games. The weights for the alternatives used by the baseline decline.

The example shows that source-side topics can already be useful when the source vocabulary gives a serviceable domain cue. The business interpretation supplies evidence relevant to product terminology. Because the statistics are reweighted by topic, the system can favor the choices supported by comparable business documents. Both adapted systems recover important distinctions in the passage. Their shared improvement illustrates the role of the adaptation framework itself, beyond the question of which bilingual connections are available.

The analysis follows the shift in lexical preferences as well as the output words. That makes it possible to connect a phrase choice to the feature the paper changes. The feature gives the decoder stronger evidence for kit and compatible. The decoder then uses that evidence alongside the rest of its translation score. The example supports an explanation of the change in those phrases. The figures present selected decisions in the sentence, so their evidential role is to show how the mechanism can operate in a particular case.

When adaptation can favor the wrong translation

The second example is a passage about foreign affairs. The unadapted translator uses affect for 影响, in agreement with the reference. Plain LDA associates the text with economic development. Its topic-conditioned statistics then shift the choice towards impact. The combined bilingual approach assigns the passage to a foreign-affairs topic, and its output better matches the reference’s wording. Here the decision that benefits from bilingual training evidence is the inference of the relevant domain, followed by the effect of that domain on lexical scores.

The same passage also contains 承诺. Both the unadapted system and the plain LDA version produce a rendering built around the commitment of. The bilingual topic assignment gives greater support to the verbal expression promised to. The paper traces the change in the corresponding translation probabilities in both directions. They rise under the foreign-affairs interpretation and fall under the economic interpretation. This is a different route to improvement within the same example: the adaptation corrects a choice that the unadapted system also made poorly, rather than preserving a choice the baseline already handled well.

Together, the examples show why an adaptation feature can be helpful or harmful depending on the inferred document context. A topic mixture redistributes influence towards some training translations and away from others. When the estimated topic is appropriate, the redistribution can favor terminology that fits. When the estimated topic is misleading, it can give the decoder additional reason to move away from a suitable general translation. The examples provide a mechanism-level explanation for the aggregate comparison. The frequency of each kind of correction across the test corpus remains unmeasured by this qualitative analysis.

Limitations

Limits identified by the authors

The authors identify scalability as a constraint on the inference procedure with the best translation scores. Gibbs sampling is costly at the reported corpus size. Parallel variational and hybrid inference make training faster in their implementation, with lower translation scores in the reported comparison. This creates a practical dependency between the algorithm selected for domain discovery and the computing resources available to train it. The paper’s timings describe those implementations and that corpus. Training behavior at other scales remains an open question.

The authors also discuss the quality and coverage of lexical resources. A dictionary can connect selected word types across languages while leaving much of the vocabulary outside its mapped entries. Automatic word alignment can extend the source of links but can introduce errors. The authors name such errors as a possible explanation for the weaker alignment tree. Their own dictionary tree groups concepts directly under the root. They point to richer hierarchical resources as a possible basis for more elaborate trees. The evaluation establishes what the tested trees do.

A further limit concerns the stage of translation that receives domain information. The authors use document themes to adapt lexical translation scores. The English language model supplies local contextual preferences in the shared pipeline. The paper identifies domain adaptation of that component, and closer integration of topic information into decoding, as avenues for further work. It also discusses the prospect of learning both broad document themes and more local contextual patterns. The reported scores concern the lexical adaptation experiment.

The authors see weak document alignment as a way to learn topics from larger sources, with Wikipedia as an example. They also identify a difficulty: a collection can contain many topics mostly irrelevant to the newswire material used in translation evaluation. More data could then supply additional evidence about domains the translator rarely needs. The paper suggests using a hierarchical topic approach to handle that mismatch. This is where it points to Hierarchical Dirichlet Processes.

Limits of the evidence

The translation evidence is restricted to Chinese-to-English output from a particular statistical pipeline and a particular selection of NIST training and test material. Training on bilingual documents and inferring context from Chinese at test time worked in that direction under the reported conditions. The experiments leave performance in the reverse direction, with other language pairs, or with different translation architectures undetermined. They also do not establish how the method behaves when corresponding training documents share a subject only loosely. The probabilistic construction permits coarse document pairing, while the translation experiment uses a parallel corpus.

The fixed topic count and common prior support comparison across the selected configurations. They leave sensitivity to other topic counts and priors open. An induced topic can be useful for lexical weighting even if it covers several subjects or is difficult to name. The paper’s quantitative evidence is about translation output, and its descriptions of business and foreign affairs come from selected interpretations of topics and examples. A broad assessment of whether the inferred topics match coherent human domain labels would require evidence beyond those examples.

The lexical resource comparison also limits what can be inferred about coverage. The dictionary is restricted to entries pairing single words in the corpus vocabulary. Its higher translation scores show the value of that selection in this setup. Those scores do not predict the value of multiword entries, alternative alignment filters, or a larger dictionary. The comparison likewise gives no error rate for either source of lexical links. The explanation in terms of alignment errors is plausible in light of how links are generated, but the experiment does not count the noisy links or measure the effect of removing them selectively.

Finally, the maximum gain summarizes the strongest reported outcome across the evaluation, rather than the size of the improvement every time a document is translated. The significance exceptions on MT 03 show why the split and inference procedure matter when interpreting the claim. BLEU and TER measure agreement with reference translations at the output level. The examples demonstrate how individual lexical choices can account for part of that improvement. The broader distribution of changes in meaning, terminology, and fluency is outside what those aggregate scores and selected passages can establish.

What came after

Later work that cites the paper includes Efficient Methods for Incorporating Knowledge into Topic Models. Its stated focus is the efficiency of incorporating knowledge into topic estimation, a theme that also arises here when bilingual links are represented in a tree and their use has to be inferred across a large corpus. The citation establishes a connection to that broader methodological problem. Whether the later work reuses ptLDA’s joint treatment of documents and word links, modifies its inference, or evaluates the resulting topics through translation remains unspecified. Efficient Methods for Incorporating Knowledge into Topic Models

Cite

Cite as Yuening Hu, Ke Zhai, Vladimir Eidelman and Jordan Boyd-Graber. 2014. Polylingual Tree-Based Topic Models for Translation Domain Adaptation. Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

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

@inproceedings{hu2014polylingual,
  title = {{Polylingual Tree-Based Topic Models for Translation Domain Adaptation}},
  author = {Yuening Hu, Ke Zhai, Vladimir Eidelman and Jordan Boyd-Graber},
  booktitle = {Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2014},
  doi = {10.3115/v1/p14-1110},
  url = {https://doi.org/10.3115/v1/p14-1110}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/hu-2014-polylingual-tree-based-topic-models/