IBM alignment models
The IBM alignment models are a sequence of increasingly complex models used in statistical machine translation to train a translation model and an alignment model, starting with lexical translation probabilities and moving to reordering and word duplication. They underpinned the majority of statistical machine translation systems for almost twenty years starting in the early 1990s, until neural machine translation began to dominate. These models offer principled probabilistic formulation and (mostly) tractable inference. The IBM alignment models were published in parts in 1988 and 1990, and the entire series is published in 1993. Every author of the 1993 paper subsequently went to the hedge... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
The IBM alignment models are a sequence of increasingly complex models used in statistical machine translation to train a translation model and an alignment model, starting with lexical translation probabilities and moving to reordering and word duplication. They underpinned the majority of statistical machine translation systems for almost twenty years starting in the early 1990s, until neural machine translation began to dominate. These models offer principled probabilistic formulation and (mostly) tractable inference. The IBM alignment models were published in parts in 1988 and 1990, and the entire series is published in 1993. Every author of the 1993 paper subsequently went to the hedge fund Renaissance Technologies. The original work on statistical machine translation at IBM proposed five models, and a model 6 was proposed later. The sequence of the six models can be summarized as: Model 1: lexical translation Model 2: additional absolute alignment model Model 3: extra fertility model Model 4: added relative alignment model Model 5: fixed deficiency problem. Model 6: Model 4 combined with a HMM alignment model in a log linear way Together, we have the probability p(e, a|f) = \frac{1/N}{(1+l_f)^{l_e}}\prod_{i=1}^{l_e} t(e_i | f_{a(i)}) IBM Model 1 uses very simplistic assumptions on the statistical model, in order to allow the following algorithm to have closed-form solution. In this form, this is exactly the kind of problem solved by expectation–maximization algorithm. Due to the simplistic assumptions, the algorithm has a closed-form, efficiently computable solution, which is the solution to the following equations: \begin{cases} \max_{t'} \sum_k \sum_i \sum_{a^{(k)}} t(a^{(k)} | e^{(k)}, f^{(k)}) \ln t(e_i^{(k)} | f_{a^{(k)}(i)}^{(k)}) \\ \sum_x t'(e_x | f_y) = 1 \quad \forall y \end{cases} This can be solved by Lagrangian multipliers, then simplified. For a detailed derivation of the algorithm, see chapter 4 and. In short, the EM algorithm goes as follows: INPUT. a corpus of English-foreign sentence pairs \{(e^{(k)}, f^{(k)})\}_k INITIALIZE. matrix of translations probabilities t(e_x | f_y) . This could either be uniform or random. It is only required that every entry is positive, and for each y , the probability sums to one: \sum_x t(e_x|f_y) = 1 . LOOP. until t(e_x | f_y) converges: t(e_x | f_y) \leftarrow \frac{t(e_x|f_y)}{\lambda_y} \sum_{k, i, j}\frac{\delta(e_x, e_i^{(k)})\delta(f_y, f_{j}^{(k)})}{\sum_{j'}t(e_i^{(k)}|f_{j'}^{(k)})} where each \lambda_y is a normalization constant that makes sure each \sum_x t(e_x|f_y) = 1 . RETURN. t(e_x | f_y) . In the above formula, \delta is the Dirac delta function -- it equals 1 if the two entries are equal, and 0 otherwise. The index notation is as follows: k ranges over English-foreign sentence pairs in corpus; i ranges over words in English sentences; j ranges over words in foreign language sentences; x ranges over the entire vocabulary of English words in the corpus; y ranges over the entire vocabulary of foreign words in the corpus. No fluency: Given any sentence pair (e, f) , any permutation of the English sentence is equally likely: p(e|f) = p(e'|f) for any permutation of the English sentence e into e' . No length preference: The probability of each length of translation is equal: \sum_{e\text{ has length }l}p(e|f) = \frac 1N for any l \in \{1, 2, ..., N\} . Does not explicitly model fertility: some foreign words tend to produce a fixed number of English words. For example, for German-to-English translation, ja is usually omitted, and zum is usually translated to one of to the, for the, to a, for a. The rest of Model 1 is unchanged. With that, we have p(e, a|f) = {1/N}\prod_{i=1}^{l_e} t(e_i | f_{a(i)})p_a(a(i)|i, l_e, l_f) The EM algorithm can still be solved in closed-form, giving the following algorithm: t(e_x | f_y) \leftarrow \frac{1}{\lambda_y} \sum_{k, i, j}\frac{t(e_{i}^{(k)}| f_{j}^{(k)})p_a(j | i, l_e, l_f) \delta(e_x, e_i^{(k)})\delta(f_y, f_{j}^{(k)})}{\sum_{j'}t(e_i^{(k)}|f_{j'}^{(k)})p_a(j' | i, l_e, l_f)} p_a(j|i, l_e, l_f) \leftarrow \frac{1}{\lambda_{i, l_e, l_f}} \sum_{k}\frac{t(e_{i}^{(k)}| f_{j}^{(k)})p_a(j | i, l_e, l_f) \delta(e_x, e_i^{(k)})\delta(f_y, f_{j}^{(k)})\delta(l_e, l_e^{(k)})\delta(l_f, l_f^{(k)})}{\sum_{j'}t(e_i^{(k)}|f_{j'}^{(k)})p_a(j' | i, l_e, l_f)} where \lambda are still normalization factors. See section 4.4.1 of for a derivation and an algorithm. For each foreign word j , such distribution indicates to how many output words \phi it usually translates. This model deals with dropping input words because it allows \phi=0 . But there is still an issue when adding words. For example, the English word do is often inserted when negating. This issue generates a special NULL token that can also have its fertility modeled using a conditional distribution defined as: n(\varnothing \lor NULL) The number of inserted words depends on sentence length. This is why the NULL token insertion is modeled as an additional step: the fertility step. It increases the IBM Model 3 translation process to four steps: The last step is called distortion instead of alignment because it is possible to produce the same translation with the same alignment in different ways. For example, in the above example, we have another way to get the same alignment: ja NULL nie pôjde tak do do domu I do not go the to house I do not go to the house IBM Model 3 can be mathematically expressed as: P(S\mid E,A)=\prod_{i=1}^{I} \Phi_i!n(\Phi \mid e_j)*\prod_{j=1}^{J}t(f_j \mid e_{a_j})*\prod_{j:a(j)\neq 0}^{J}d(j | a_j, I, J)\binom{J-\Phi_0}{\Phi_0} p_0^{\Phi_0}p_1^J where \Phi_i represents the fertility of e_i , each source word s is assigned a fertility distribution n , and I and J refer to the absolute lengths of the target and source sentences, respectively. See section 4.4.2 of for a derivation and an algorithm. p_6(f,a\lor e)= \frac{p_4(f,a\lor e)^\alpha*p_{HMM}(f,a\lor e)}{\sum_{a',f'} p_4(f',a'\lor e)^\alpha*p_{HMM}(f',a'\lor e)} where the interpolation parameter \alpha is used in order to count the weight of Model 4 relatively to the hidden Markov model. A log-linear combination of several models can be defined as p_k (f, a \mid e) with k=1,2,\dotsc,K as: p_6(f,a\lor e)=\frac{\prod_{k=1}^{K}p_k(f,a\lor e)^{\alpha_{k}}}{\sum_{a',f'}\prod_{k=1}^{K}p_k(f',a'\mid e)^{\alpha_{k}}} The log-linear combination is used instead of linear combination because the P_r (f, a \mid e) values are typically different in terms of their orders of magnitude for HMM and IBM Model 4.
Cite this
"IBM alignment models". 1786880926. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1369683082 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy