<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="1027"/><title>Sinuhe – Statistical Machine Translation using a Globally Trained Conditional Exponential Family Translation Model</title><author surname="Kääriäinen" givenname="Matti"><org  name="University of Helsinki" country="Finland"/></author></firstpageheader><frontmatter><p><b>Sinuhe — Statistical Machine Translation using a Globally Trained Conditional Exponential Family Translation Model</b></p><p><b>Matti Kääriäinen</b></p><p>Department of Computer Science FI-00014 University of Helsinki, Finland</p><p>matti.kaariainen@cs.heIsinki.fi</p></frontmatter><abstract>We present a new phrase-based con­ditional exponential family translation model for statistical machine translation. The model operates on a feature repre­sentation in which sentence level transla­tions are represented by enumerating all the known phrase level translations that occur inside them. This makes the model a good match with the commonly used phrase extraction heuristics. The model's predictions are properly normalized prob­abilities. In addition, the model automati­cally takes into account information pro­vided by phrase overlaps, and does not suffer from reference translation reacha­bility problems. We have implemented an open source translation system Sinuhe based on the proposed translation model. Our experi­ments on Europarl and GigaFrEn corpora demonstrate that finding the unique MAP parameters for the model on large scale data is feasible with simple stochastic gra­dient methods. Sinuhe is fast and mem­ory efficient, and the BLEU scores ob­tained by it are only slightly inferior to those of Moses. </abstract></header><body><section number="1" title="Introduction"><p>In current phrase-based statistical machine transla­tion systems such as Moses<footnote anchor="1"/> (Koehn et al., 2007), the translation model is defined in terms of phrase pairs (biphrases) extracted from a bilingual cor­pus as follows. The corpus is first word-aligned using a word alignment heuristic (Och and Ney, 2003). The phrase extraction heuristic then ex­tracts all the biphrases that are compatible with the word alignment (Och et al., 1999). This way, each sentence pair may generate any number of potentially overlapping biphrases. However, when defining the phrase-based sentence level transla­tion model, phrase overlaps are explicitly disal­lowed: The source sentence is segmented into dis­joint phrases, which are translated independently using conditional phrase-level translation models that have been estimated from extracted biphrase counts.</p><footnote label="1">Throughout this paper, we refer to Moses for concrete -ness, but most of the discussion applies to other standard phrase-based statistical machine translation systems as well.</footnote><p>The disparity between the phrase extraction heuristic and the use of the extracted biphrases can be addressed in at least three ways. One approach is to simply ignore the disparity as is done, e.g., in Moses. While empirically succes-ful, this approach is hard to justify theoretically, and begs the question of whether more principled methods might lead to better translation results. The other extensively studied approach is to re­place the phrase extraction heuristic with a method that better matches the use of the extracted phrases (see, e.g., (Marcu and Wong, 2002; DeNero et al., 2008) and the references therein). While theo­retically sound, this approach is computationally challenging both in practice (DeNero et al., 2008) and in theory (DeNero and Klein, 2008), may suf­fer from reference reachability problems (DeNero et al., 2006), and in the end may lead to inferior translation quality (Koehn et al., 2003).</p><p>In this paper, we study a third alternative. We propose a new translation model that is compati­ble with the phrase extraction heuristic. The pro­posed machine learning inspired translation model takes the form of a conditional exponential family probability distribution over a feature representa­tion for word-aligned sentence pairs. The feature representation represents a word-aligned sentence pair by essentially enumerating the (multi)set of biphrases that would have been extracted from it,</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1027</doubt><p><i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, </i>pages 1027-1036, Singapore, 6-7 August 2009. ©2009 ACL and AFNLP<page local="2" global="1028"/></p><p>together with the source positions at which the biphrases occur. The model's predictions are con­ditional probabilities for such sets of biphrases given the source sentence.</p><p>The chosen feature representation has many ad­vantages. Since all word-aligned sentence pairs can be represented, reference reachability prob­lems are automatically circumvented. For exam­ple, if the translation of a sentence consisted solely of words that do not occur in the phrase table, then the feature vector for the translation would be the all zero vector. As the training data receives non­zero probability, maximum likelihood or maxi­mum a posteriori (MAP) parameters for the model can be estimated in a principled way without re­sorting to pseudo-references. The fact that the model is not restricted to using disjoint biphrases means that the information in biphrase overlaps is automatically taken into account. This may help in smoothing the model's predictions on long and rare phrases, and in enhancing fluency at places that otherwise would be phrase boundaries. Also, the model can be extended in a principled way by introducing additional features (e.g., translations from a dictionary, biphrases with gaps, biphrases over POS tags,... ).</p><p>The proposed model has one parameter per biphrase feature, so the total number of parame­ters is easily millions or more. Still, the model structure is designed so that feature expectations and related quantities can be computed efficiently by dynamic programming. It is thus feasible to compute the gradient of the MAP objective, and simple gradient ascent can be used to efficiently find the globally optimal model parameters (with respect to a suitably scaled Gaussian prior used for regularization). Exact inference is also possible by dynamic programming when translations are pre­dicted by the translation model alone. When other features like a language model are included, one needs to resort to beam search type approximate dynamic programming for decoding.</p><p>We have implemented a translation system called Sinuhe based on the proposed translation model. The system has been released under the GPLv3 open source license (Kääriäinen, 2009). Our experiments on Europarl and GigaFrEn cor­pora demonstrate that the proposed translation model scales well to large data, and offers trans­lation quality that is only slightly worse than that of the baseline system Moses. In terms of translation speed, S inuhe is already clearly better.</p><p>The rest of this paper is organized as follows. After briefly reviewing related work in Section 2, we describe the proposed translation model in Sec­tion 3. Finally, experimental results are presented in Section 4, and conclusions in Section 5.</p></section><section number="2" title="Related work"><p>The proposed translation model is strongly influ­enced by machine learning techniques for solv­ing sequence prediction tasks, most notably the work on conditional random fields (Lafferty et al., 2001). The modelling task in machine translation is, however, more complicated than sequence la­belling (not one-to-one, reorderings), so the stan­dard methods cannot be directly applied here. The model we propose is also related to standard phrase-based translation models through the use of the same phrase-level translation features. How­ever, the way we use the features is quite different.</p><p>There exists a number of discriminative ap­proaches whose model structure, training crite­ria, or both, are similar to ours. However, to our knowledge, none of the other systems operates directly on biphrase features, scales up to bilin­gual corpora with millions of sentence pairs, and achieves translation quality comparable to fully tuned standard phrase-based systems. The ap­proach most closely resembling ours is the in­dependently developed global discriminative log-linear model based on synchronous context-free grammars (Blunsom and Osborne, 2008; Blun-som et al., 2008). The version presented in (Blun­som and Osborne, 2008) operates on millions of rule count features analogous to our biphrase fea­tures, and integrates a language model into train­ing and decoding. The system can be trained on tens of thousands of short sentences yielding bet­ter translations than a baseline system Hiero on this data. The version presented in (Blunsom et al., 2008) scales to more than a hundred thousand short training sentences, but does not integrate a language model and thus has performance that im­proves upon Hiero without a language model only. Both versions deal with derivational ambi­guity by treating derivations as a latent variables that are integrated out to get conditional proba­bilities for translations<footnote anchor="2"/>.   The downside of this is that approximations are needed in computing the maximum probability translation in decoding, and also in computing model expectations in train­ing when a language model is used.<page local="3" global="1029"/> In addi­tion, since the models operate directly on transla­tions, using probabilistic training criteria for learn­ing the model parameters is possible only if all reference translations in the training data can be generated by the model. In practice, this problem can be circumvented by discarding the training sentence pairs with unreachable reference transla­tions, but this may mean a significant reduction in the amount of training data (24% in (Blunsom et al., 2008)).</p><footnote label="2">In our translation model, coping with multiple deriva­tions is not needed as there is just one derivation for each word-aligned sentence pair. However, dealing with alterna­tive word alignments might be beneficial, though as argued</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1028</doubt><p>Another closely related approach is the in­dependently developed discriminative block bi-gram prediction model presented in (Tillmann and Zhang, 2007). This work proposes a global phrase-based translation model very similar to ours, but due to computational reasons, resorts to a localized approximation thereof, and is restricted to biphrases of length at most two. In (Liang et al., 2006) a standard phrase-based model is aug­mented with more than a million features whose weights are trained discriminatively by a variant of the perceptron algorithm. Reference reachabil­ity is again a problem, and the method has not been scaled up to use biphrase features directly.</p></section><section number="3" title="The proposed translation model 3.1   Biphrase extraction"><p>The biphrases used in S inuhe are extracted from the training data with the Mo s e s phrase extraction heuristics. The sentence-aligned training corpus <i>S</i><i> </i>is first word-aligned by running Giza++ in both directions and then symmetrizing the alignments. This maps the original aligned sentence pairs <i>(x,y) </i>into word-aligned sentence pairs <i>(x,a,y), </i>where a is a many-to-many alignment between the words in <i>x </i>and <i>y. </i>Second, using a heuristic pro­posed in (Och et al., 1999), all the aligned phrase pairs <i>(x',a',yr) </i>satisfying the following criteria are extracted: <i>(1) </i><i>x'</i><i> </i>and <i>y'</i><i> </i>consist of consecutive words of <i>x </i>and <i>y, </i>and both have length at most <i>k, </i>(2) <i>a'</i><i> </i>is the alignment between words of <i>x'</i><i> </i>and <i>y'</i><i> </i>induced by <i>a, </i>(3) <i>a<footnote anchor="1"/></i><i> </i>contains at least one link, and (4) there are no links in <i>a </i>that have just one end in <i>x'</i><i> </i>or <i>y'. </i>Each aligned training sentence <i>(x, a, y) </i>thus generates a number of potentially overlapping</p><p>in (DeNero et al., 2006), the ambiguity in word alignment is less prevalent than in phrase segmentation.</p><p>aligned biphrase features <i>(x', a', y'). </i>In our exper­iments, we chose <i>k = </i>7 which is the default in Moses. Unlike in Moses, we do not map the aligned biphrases <i>(x',a',yr) </i>back to non-aligned biphrases <i>(x', y').</i></p><p>To reduce the number of extracted biphrases, for each source phrase <i>x', </i>only biphrases <i>(x', a', y') </i>whose occurrence count is among the top <i>K = </i>20 in the training data are retained (rank ties bro­ken by including all biphrases with rank equal to the limit <i>K). </i>For technical reasons related to our dynamic programming algorithms, we also drop biphrases whose source phrase begins or ends with unlinked words. Finally, we drop all biphrases that occur only once in the training data. This can be motivated by a leave-one-out argument (cf the derivation of Good-Turing estimates): Dropping the biphrases that occur only once in the train­ing data means that the feature representation for a training sentence pair (see Section 3.2) contains only biphrases that occur also in other training ex­amples. Without the leave-one-out pruning, the feature vectors for training sentence pairs would be maximally dense, whereas such feature density cannot be expected on test data. Our system can also be used without the leave-one-out pruning, but according to our preliminary experiments this has little effect on translation quality. An excep­tion seems to be morphologically rich languages with scarce training data on which pruning seems to reduce translation quality.</p><p>All the pruning steps combined reduce the phrase table size considerably, but in our experi­ments, millions of biphrases per language pair still remain (2-4 million for Europarl data and over 95 million for GigaFrEn data).</p><subsection number="3.2" title="Features"><p>Our primary feature representation is a binary fea­ture vector that indicates which aligned biphrases in the phrase table occur in an aligned sentence pair and where. More specifically, a source sen­tence <i>x </i>aligned to a target sentence <i>y </i>by an align­ment <i>a </i>is represented by a binary feature vector <i>4</i><i>&gt;(x, a, y) </i>whose component <i>&lt;fi(x, a, y</i><i>)(x&gt;&gt;a',y'),i </i>is 1 iff the aligned biphrase <i>(x',a',yr) </i>occurs at source position <i>i </i>in <i>(x,a,y), </i>and 0 otherwise. Here, <i>(x', a', y<footnote anchor="1"/>) </i>occurs in <i>(x, a, y) </i>at source posi­tion <i>i </i>iff the phrase extraction process described in Section 3.1 would have extracted it from <i>(x, a, y) </i>at source position <i>i.</i></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1029</doubt><page local="4" global="1030"/><p>The weights for the aligned biphrases are tied together by mapping the binary feature vector <b><i>&lt;fi </i></b>(indexed by pairs of an aligned biphrase and a source position) to an integral feature vector <b><i>&lt;fi </i></b>(in­dexed by aligned biphrases only) using the formula <i>&lt;p</i><i>(x'ta',y') = J2i&lt;P(x',a',y'),i- </i>The "real" fea­tures that drive the translation process are thus the lowest level binary features <i>&lt;fi, </i>whereas the higher level representation <i>(ft </i>is convenient in defining the conditional probabilities given by the translation model.</p></subsection><subsection number="3.3" title="The model"><p>Instead of modelling the conditional distribution <i>P(y\x) </i>directly, we model the conditional dis­tribution <i>P((f)(x,a,y)\x) </i>by the following condi­tional exponential model:</p><doubt alpha="31.2" length="16" tooSmall="False" monospace="0.0">P{4&gt;{x,a,y)\x) =</doubt><doubt alpha="42.9" length="21" tooSmall="False" monospace="0.0">exp(io •(f)(x, a, y))</doubt><p>Here, <i>w </i>is a parameter vector with one component for each aligned biphrase feature in the phrase ta­ble. The set $x defines the set of possible predic­tions given <i>x, </i>and includes all feature vectors <i>&lt;fi </i>satisfying the following criteria:</p><p>1. There exists a translation <i>y'</i><i> </i>and an alignment <i>a<footnote anchor="1"/></i><i> </i>such that all active features in <i>&lt;fi</i><i> </i>occur in</p><doubt alpha="27.3" length="11" tooSmall="False" monospace="0.0">(x, a', y')</doubt><p><i>2.</i><i> </i>Features corresponding to aligned biphrases that occur inside aligned biphrases whose features are active in <i>&lt;fi </i>are also active in <i>&lt;fi.</i></p><p>Thus, the set $x has a feature representation for all possible aligned sentence pairs <i>(x,a',yr) </i>that have <i>x </i>as the source side, so all reference trans­lations <i>y'</i><i> </i>word-aligned to <i>x</i><i> </i>in any way <i>a'</i><i> </i>are representable by features in $x. By condition 1, the predictions given by the model never con­tain conflicting biphrases, so given any prediction of the model, there always exists a translation <i>y'</i><i> </i>where all the predicted biphrases do occur. How­ever, since our dynamic programming algorithms can only force active super-phrases implying ac­tive sub-phrases (condition 2) but not active sub-phrases implying active super-phrases, the set $xalso contains some feature vectors in which the lat­ter type of implications are not enforced. Having such redundant representations for some transla­tions is a waste of probability mass, but we hope it has little effect in practice.</p><p>The choice of modelling <i>P(&lt;j)(x,a,y)\x) </i>in­stead of modelling <i>P(y\x) </i>directly is crucial, both from a modelling and from a computational per­spective. From the modelling perspective, the cru­cial point is that in our approach, any aligned sen­tence pair <i>(x, a, y) </i>has an associated feature vec­tor <i>(f)(x, a, y) </i>G $ai that is reachable (i.e., re­ceives non-zero probability) by the model. This means it is straightforward to use probabilistic cri­teria in learning the model parameters. In con­trast, systems modelling <i>P(y\x) </i>directly are often plagued by the reference reachability problem. To use probabilistic training criteria for such systems one needs to circumvent the reference reachability problem, e.g., by using pseudo-references or by dropping out the non-reachable portion of training data.</p><p>Working with the feature vectors <i>&lt;fi(x, a, y) </i>in­stead of working with <i>a </i>and <i>y </i>directly means that we model the ordering and choice of words in <i>y </i>only partially. This way, when computing the nor­malizing constants and feature expectations, we can partition the unbounded set of potential trans­lations <i>y </i>and alignments <i>a </i>into a smaller set of equivalence classes given by <i>&lt;fi(x,a,y). </i>Though the number of feature vectors <i>&lt;p</i><i> </i>G <i>&lt;&amp;x</i><i> </i>may be large (exponential in length of <i>x), </i>all the necessary computations can be done exactly and efficiently by dynamic programming. For more details, see Section 3.4.3.</p></subsection><subsection number="3.4" title="Learning the model parameters 3.4.1   The objective"><p>We use maximum a posteriori (MAP) estimation to estimate the model parameters <i>w. </i>To con­trol overfitting, we regularize the parameters by a suitably scaled Gaussian prior. This can be also viewed as <i>L2</i><i> </i>regularization. The prior guarantees that the MAP parameters are unique, and mod­els our belief that the observed feature occurrence counts randomly deviate from their "true" values roughly proportionally to the standard deviations of the occurrence count distributions. The prior variance <i>a^x,</i><i> a,    </i>for feature <i>(x', a', y<footnote anchor="1"/>) </i>is given by the formula <i>o\x,</i><i>^,</i><i>^ = ol</i><i>/</i><i>p^</i><i> </i><i>A&gt;ty&gt;)</i><i> </i>, where <i>a &gt; </i>0 is a free regularization parameter, and <i>pfx' </i><i>a'</i><i> y&gt;) </i>^s an empirical estimate of the variance of the occurrence count of <i>(x', a', y<footnote anchor="1"/>) </i>in the train­ing data. This is similar to (Chen and Rosenfeld, 2000), except that we use standard deviations in place of variances. As the estimate for the variance of a feature we use the occurrence count of the corresponding biphrase in the training data.<page local="5" global="1031"/> This could be justified by assuming that the oc­currence counts follow a Poisson distribution. We have also run preliminary experiments with other forms of regularization (different ways of comput­ing <b><i>(T</i></b><i>(x&gt;ya&gt;yy&gt;), </i>exponential priors corresponding to LI regularization, no regularization), and it looks like the system is not very sensitive to the chosen prior.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1030</doubt><p>Combining the prior with the model, we see that the negative log-posterior <b><i>C(w) </i></b>is given by the for­mula where the sum over <i>(x\ a', y<footnote anchor="1"/>) </i>is understood to go over all aligned biphrase features in the model. This is our criterion for learning <b><i>w.</i></b></p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">2</doubt><doubt alpha="26.7" length="30" tooSmall="False" monospace="0.0">EW(x',a',y')(x',a',y') (»',?/)</doubt><doubt alpha="40.7" length="27" tooSmall="False" monospace="0.0">-   ElogP(&lt;l)(x,a, y)\x)+C,</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">(x,a,y)dS</doubt><subsubsection number="3.4.2" title="Optimization"><p>We solve the optimization problem related to learning <b><i>w </i></b>by first order gradient ascent methods. The gradient <b><i>VC(w) </i></b>of <b><i>C(w) </i></b>with respect to <b><i>w </i></b>can be written as where E^[0|a;] denotes the conditional expecta­tion of the aligned biphrase occurrence count fea­tures given <i>x </i>with respect to model parameters <b><i>w.</i></b><b><i> </i></b>Feature expectations can be computed by combin­ing the results of a left-to-right and right-to-left dynamic programming sweep over the source sen­tence. For more details, see Section 3.4.3.</p><doubt alpha="28.0" length="25" tooSmall="False" monospace="0.0">£^p^1-£[^x,a,y)-Ew[^\x]],</doubt><doubt alpha="30.8" length="26" tooSmall="False" monospace="0.0">(x',a',y')(»'&gt;?/)(x,a,y)eS</doubt><p>Inspired by the empirical results in (Vish-wanathan et al., 2006), we use classic stochas­tic gradient ascent to solve the optimization prob­lem. At each step <i>t, </i>we sample with replacement a batch <b><i>St </i></b>of <i>b </i>examples from <b><i>S. </i></b>We start from <b><i>wo </i></b>= 0, and use the update rule where <b><i>rjt &gt; </i></b>0 is the learning rate, and <b><i>VCt(w) </i></b>is the stochastic gradient of the negative logposterior</p><doubt alpha="59.1" length="22" tooSmall="False" monospace="0.0">wt+i=wt-rjtVCt(wt),(1)</doubt><p><b><i>r </i></b><i>I</i><i> </i><i>\</i><i> </i><b>I</b>'S* <b>I </b><i>wi</i></p><doubt alpha="14.3" length="7" tooSmall="False" monospace="0.0">^) =w£^</doubt><doubt alpha="40.9" length="22" tooSmall="False" monospace="0.0">-£logP((J)(x, a, y)\x)</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">(x,a,y)eSt</doubt><p>restricted to batch <b><i>St. </i></b>The second term of the stochastic gradient involves only biphrases whose source sides match the source sentences in the batch. Though the gradient of the regularizer is non-zero for all non-zero biphrase features, the updates of features that are not active in the sec­ond term of the gradient can be postponed until they become active again. Due to feature sparsity, the number of features that are active in a small batch is small, and thus also the updates are sparse. Hence, it is possible to handle even feature vectors that do not fit into memory.</p><p>Another advantage of the stochastic gradient method is that many processes can apply updates (1) to a weight vector asynchronously in parallel. We have implemented two strategies for dealing with this. The simpler one is to store the weight vector in a database that takes care of the neces­sary concurrency control. This way, no process needs to store the entire weight vector in memory. The downside is that all training processes must be able to mmap ( ) to the common file-system due to limitations in the underlying Berkeley DB database system. We have also implemented a client-server architecture in which a server process stores <b><i>w </i></b>in memory and manages read and update requests to its components that come from train­ing clients. In this approach, the degree of paral­lelism is limited only by the number of available machines and server capacity. The server could be further distributed for managing models that do not fit into the memory of a single server.</p></subsubsection><subsubsection number="3.4.3" title="Computing gradients etc"><p>The computationally most challenging part in learning the model parameters is computing <i>V</i><i> </i><i>log</i><i> P((f)(x, a, y)\x), </i>i.e., the vector of differ­ences between the observed occurrence counts of biphrase features in <i>(x, a, y) </i>and their conditional expectations under the current model parameters.</p><p>The conditional feature expectations can be computed by a dynamic programming procedure similar to the one used in training conditional ran­dom fields. We combine the results of a left-to-right and right-to-left dynamic programming sweep over <i>x.</i><page local="6" global="1032"/><i> </i>In the left-to-right sweep, we have for each biphrase feature (V, <i>a',</i><i> y'), i </i>a state <i>s(x',a',y'),i </i>f°r translations starting from the be­ginning of <i>x </i>and ending in an occurrence of the biphrase (V, <i>a',</i><i> y') </i>at source position <i>i. </i>This state records the contribution of all partial translations whose right-most active biphrase feature on the source side is (V, <i>a',</i><i> y'),i </i>to the conditional ex­pectation of feature <i>(x',a',y'),i </i>(in log scale). The score for sempty,o = 0, and <b>Sjyyy)^ </b>is ob­tained from the recurrence</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1031</doubt><doubt alpha="54.5" length="22" tooSmall="False" monospace="0.0">score(s(x,&gt;a,ty,)ti) =</doubt><doubt alpha="45.5" length="22" tooSmall="False" monospace="0.0">£ [score (s^/zy/y/y//)</doubt><doubt alpha="34.5" length="29" tooSmall="False" monospace="0.0">(x",a",y"),i"eA((x/,a',y'),i)</doubt><doubt alpha="23.8" length="21" tooSmall="False" monospace="0.0">+ £w(x"&gt;,a'",y"'),i"'</doubt><doubt alpha="31.6" length="19" tooSmall="False" monospace="0.0">(x"',a"',y"'),i"'eB</doubt><p>Here, <i>A((x',a',y'),i) </i>is the set of prede­cessor states of <i>S(x&gt;&gt;a&gt;ty&gt;)ti </i>and includes all states <b>SfV'yy)/' </b>such that a proper suffix of <i>(x", </i><i>a",</i><i> y"), </i><i>i"</i><i> </i>(i.e., a biphrase whose source and target are proper suffices of <i>x"</i><i> </i>and <i>y"</i><i> </i>respec­tively) is equal to a prefix of <i>(x',a',y'),i. </i>As a special case, <i>A </i>includes all states <b>Sjyyy)/' </b>for which <i>(x", </i><i>a",</i><i> y"),i" </i>ends before or at posi­tion <i>i. </i>This takes care of translation paths that leave some words in <i>x </i>untranslated. Since the starting position of a proper suffix of a biphrase is always after the biphrase's original starting po­sition, going through the states in order of in­creasing <i>i </i>guarantees that the scores for biphrases in <i>A((x', a', y'), i) </i>are available when computing score (s<b>^/yy),*).</b></p><doubt alpha="65.0" length="80" tooSmall="False" monospace="0.0">The setBthat depends on((x',a',y'),i)and((x",a",y"),i")is defined by the formula</doubt><doubt alpha="33.3" length="45" tooSmall="False" monospace="0.0">B =sub((x', a', y'), i)\ sub((x",a",y"),i") ,</doubt><p>where sub <i>((x', </i><i>a',</i><i> y'), i) </i>denotes the set of sub-biphrases of <i>(x',a',y'),i </i>(including the biphrase <i>(x',a',y'),i </i>itself). Thus, summing over the weights of biphrases in <i>B </i>adds the contribution of features introduced by extending translation paths ending in <i>(x", </i><i>a",</i><i> y"),i" </i>by <i>(x', </i><i>a',</i><i> y'),i'.</i></p><p>From the right-to-left dynamic programming, we get analogously the contribution of right-to-left partial translations whose left-most active biphrase is <i>(x',a',y'),i. </i>The partition function used for normalizing the expectations can be ob­tained as a side product of either of the sweeps.</p><p>In conditional random fields, the (unnormal-ized) expectations for the feature can be ob­tained by multiplying the scores of the states corresponding to the same feature in the left-to-right and right-to-left dynamic programming memories. In our case, combining the two val­ues stored in the states for a feature <i>(x', </i><i>a',</i><i> y'),i </i>only gives the contribution of the translation paths where <i>(x',a',y'),i </i>is active but not covered by any longer biphrase that extends <i>(x', </i><i>a',</i><i> y'), i </i>both left and right. To include the contribution of the remaining translation paths, we need to go through states corresponding to super-biphrases of <i>(x', a',y'),i. </i>Special care has to be taken in order to include the contribution of all feature vectors in which such super-biphrases are active exactly once. An efficient way to do this is to process the states for super-biphrases in topological order with respect to biphrase inclusion, and to include only the contributions of states for super-biphrases that extend the previously included states both left and right.</p><p>Another complication in the dynamic program­ming is that a biphrase can extend the source side of another overlapping biphrase to the right, but the target side to the left, or visa versa. Such overlaps are not directly covered by our dynamic programming. To deal with them, we construct new virtual biphrases that correspond to the re­sults of such overlaps in a pre-processing step. The number of such virtual combinations can in theory grow exponentially, but in practice only a small number of virtual biphrases seems to suffice.</p></subsubsection></subsection><subsection number="3.5" title="Prediction with translation model alone"><p>Prediction is done in two phases. First, we find (by a dynamic programming procedure similar to the one outlined in Section 3.4.3) the highest proba­bility feature vector <i>&lt;p{x) </i>defined by</p><p><i>4</i><i>&gt;(x) = </i>arg max <i>P(&lt;fi\x).</i></p><p><i>&lt;j&gt;£&amp;x </i>: <i>x </i>covered by biphrases in <i>&lt;j&gt;</i></p><p>Note that we restrict the search to feature vec­tors that cover the whole of <i>x, </i>i.e., to feature vec­tors <i>(f)(x, a, y) </i>in which each word in <i>x </i>is covered by at least one active aligned biphrase <i>(x', a',y'). </i>This forces the system to translate all words in the source sentence even if the translation model pre­dicts that none of the translations are very likely.</p><p>To translate words that are not covered by any aligned biphrase feature in the model, we use the following strategy: If the word is found from an optional out-of-vocabulary dictionary, we use the translation from the dictionary, and otherwise re­sort to an implicit zero weight aligned biphrase that copies the input word to the output as is.<page local="7" global="1033"/> In our experiments, the out-of-vocabulary dictio­nary is constructed from the word translations that occur once in the training data, so the out-of-vocabulary dictionary only compensates for the word translations lost in phrase table pruning. If available, a real dictionary could be used as well.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1032</doubt><p>The second step in predicting a translation is solving the pre-image problem, i.e., constructing a translation <i>y </i>from the predicted feature vector <i>4</i><i>&gt;(x). </i>Since <i>&lt;p{x) </i>G <i>$x, </i>there always exists an alignment <i>a </i>and a translation <i>y </i>such that all the aligned biphrases in <i>&lt;p{x) </i>occur in <i>&lt;fi(x, a, y), </i>but the <i>a </i>and <i>y </i>may not be unique. We choose the <i>a </i>and <i>y </i>given by concatenating the target sides of the biphrases active in <i>&lt;p{x) </i>in the order induced by their positions in the source sentence. Thus, there is no phrase-level reordering, and the fluency of the target language output is induced by the phrase overlaps only.</p></subsection><subsection number="3.6" title="Predicting with an integrated LM"><p>The prediction strategy outlined in the previous section is simple and conceptually clean. How­ever, biphrase overlaps alone may not be enough to enforce fluent output, especially given that bilin­gual data is typically more scarce than monolin­gual data. Also, the lack of a reverse transla­tion model means the system is unable to iden­tify phrase extraction errors in which rarely seen source phrases are translated to common target phrases by chance.</p><p>To address these shortcomings, we augment the translation model with the following additional features that have been observed to enhance trans­lation quality in other SMT systems.</p><p>1. <b>Language model: </b>logP(y), where <i>P(y) </i>is given by a smoothed n-gram language model</p><p>2. <b>Lexical translation model (reverse direc­tion): </b>log <i>P(x\y, a) </i>given by a word-level re­verse translation model</p></subsection></section><section number="3." title="Translation length: number of words in y"><p>4. <b>Distortion: </b>number of source words in phrases with swapped translations</p><p>The final score driving the translation process is given by a linear combination of the trans­lation model score <i>log</i><i> P((f)(x, a, y)\x) </i>and these features. Besides the translation model, the lan­guage model feature is clearly the most influential, while the lexical translation feature has only a mi­nor positive effect on translation quality.</p><p>We use an approximate dynamic program­ming variant of the commonly used beam search procedure to find the highest scoring candidate translation. We compute the translation model log-probability <i>logP((f)(x, a, y)\x) </i>incrementally while building up the corresponding candidate translation <i>y </i>and word alignment <i>a </i>from left to right. We allow phrase-level distortions given by swapping the order of translations of consec­utive non-overlapping source phrases. Unlike in Moses, our beam search is structured around state transitions, not around states. This means that we apply each biphrase (state transition) simultane­ously to all applicable partial translations (states). This strategy is in our experience more efficient, does not rely on future score estimates, and is im-plementationally very similar to the dynamic pro­gramming procedures that we use in training the model parameters and in prediction with a lan­guage model alone.</p><p>The weights of the features are tuned by opti­mizing the BLEU score of development set trans­lations with amoeba search. This simplistic strat­egy is feasible given our system's fast translation speed, and extends easily to cover non-linear fea­ture combinations. The reason for using amoeba is that it is simpler to implement — we do not believe amoeba yields any better values for the parameters in the end.</p></section><section number="4" title="Experiments"><subsection number="4.1" title="Experimental setup"><p>Our experiments are on the Europarl translation tasks following the setup used in the shared trans­lation task of the ACL 2008 Third Workshop on Statistical Machine Translation (Callison-Burch et al., 2008), and on the French-to-English transla­tion task of the EACL 2009 Fourth Workshop on Statistical Machine Translation (Callison-Burch et al., 2009). The size of the Europarl training cor­pora is about 1M sentence pairs per language pair, while the larger GigaFrEn corpus contains about 22M sentence pairs. The corpora were used for biphrase extraction and translation model training. Decoder feature weights were tuned on the pro­vided development sets. In case of Europarl, lan­guage models were trained on the target sides of<page local="8" global="1034"/></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1033</doubt><p>Table 1 : Left: The translation quality of the SMT systems as measured by the BLEU score. Translations were detokenized but not recased before evaluating their quality against lowercased reference translations by the mteval-vl lb.pl script. Right: Average total translation time in seconds.</p><p>the bilingual corpora. In the GigaFrEn experi­ments we used the provided monolingual news do­main data. All data was tokenized and lowercased using the tools in the Moses distribution.</p><p>We experimented with four translation sys­tems: Sinuhetrans» S inuhe, Mo Se Strans» and</p><p>Moses. Sinuhetrans uses only the translation model in producing translations (see Section 3.5), while the full system Sinuhe uses also a lan­guage model and some additional features (see Section 3.6). As a baseline, we used the Moses translation system, which is known to be very competitive on the Europarl translation tasks as evidenced by the University of Edinburgh entries in the translation challenge (Callison-Burch et al., 2008). The other comparison point Mosestranswas obtained from Mo s e s by disabling distortions and setting setting the weights of all features ex­cept the forward translation model to 0. By com­paring Sinuhetrans andMosestrans, we hope to indirectly compare the performance of the under­lying translation models. A more direct compar­ison was not possible as it is not feasible to nor­malize the "probabilities" predicted by the Moses translation model.</p><subsubsection number="4.1.1" title="Training the models"><p>We trained Moses exactly as suggested in (Callison-Burch et al., 2008), except that we used the -unk option for SRILM in training the language models (both for Sinuhe and Moses). The translation model for Sinuhe (and Sinuhetrans) was built from the phrases extracted by Moses as described in Section 3.1. We chose <i>a = </i>1.0 and set batch size to 1. The learning rate was initially set to 0.1, and decayed proportional to <i>1/t </i>after 2M or 100M iterations of training for Europarl and GigaFrEn tasks, respectively. These choices may not be optimal as we did not experiment with other choices yet.   In case of Europarl, training was run for 70-100M iterations using the Berkeley DB based distribution strategy (4 CPU cores per language pair). This took 10 days. For GigaFrEn, we used the client-server architecture, and trained the model for 620M stochastic gradient iterations on about 200 CPUs. This took 2 days, which is a lot less than the time needed to run (parallel) Giza on this data. The number of biphrase features in S inuhe's model was 2-4 million on the Europarl tasks, and about 95 million on the GigaFrEn task.</p><p>The decoder parameters for Sinuhe were tuned on the development sets by amoeba, and for Mo s e s by MERT. As both amoeba and MERT try to solve the same optimization problem, we be­lieve the difference in optimization methods has little influence on the results.</p></subsubsection><subsubsection number="4.1.2" title="Translation results"><p><b>Europarl tasks </b>The systems were tested on the 2000 sentence Europarl domain develop­ment test sets provided for the shared translation task (Callison-Burch et al., 2008). The resulting BLEU scores and total translation times averaged over the datasets are reported in Table 1. While Moses has the highest BLEU score for all the language pairs, the BLEU score for Sinuhe is worse by only at most 1.31 BLEU points except on the de-en task, where the difference is 2.27. Sinuhetrans is clearly inferior to Sinuhe but equally clearly superior to Mosestrans-</p><p>It takes less than a minute to translate the development test set by the fastest system Sinuhetrans- The slowest system Moses needs around an hour for the same task. Memory usage follows a similar pattern. For example, Sinuhe requires roughly one tenth of the memory used by Moses. Thus, in terms of resource usage, Sinuhetrans and Sinuhe seem clearly supe­rior to Moses. The quantitative results would change if the systems' parameters were optimized for speed rather than quality, but the differences are so clear that the general pattern would proba­bly remain the same.<page local="9" global="1035"/> For example, Moses with no distortion is still clearly slower than Sinuhe.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1034</doubt><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>es-en</p></td><td class="cell"><p>en-es</p></td><td class="cell"><p>fr-en</p></td><td class="cell"><p>en-fr</p></td><td class="cell"><p>de-en</p></td><td class="cell"><p>en-de</p></td><td class="cell"><p>time</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Sinuhe</p></td><td class="cell"><p>31.38</p></td><td class="cell"><p>30.94</p></td><td class="cell"><p>31.50</p></td><td class="cell"><p>28.91</p></td><td class="cell"><p>25.03</p></td><td class="cell"><p>19.26</p></td><td class="cell"><p>338.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Moses</p></td><td class="cell"><p>32.18</p></td><td class="cell"><p>31.88</p></td><td class="cell"><p>32.63</p></td><td class="cell"><p>29.92</p></td><td class="cell"><p>27.30</p></td><td class="cell"><p>20.57</p></td><td class="cell"><p>3729.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Sinuhetrans</p></td><td class="cell"><p>29.14</p></td><td class="cell"><p>27.12</p></td><td class="cell"><p>28.74</p></td><td class="cell"><p>26.06</p></td><td class="cell"><p>22.38</p></td><td class="cell"><p>17.14</p></td><td class="cell"><p>44.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MoseStrans</p></td><td class="cell"><p>24.32</p></td><td class="cell"><p>22.75</p></td><td class="cell"><p>23.84</p></td><td class="cell"><p>21.22</p></td><td class="cell"><p>19.62</p></td><td class="cell"><p>13.59</p></td><td class="cell"><p>1321.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p><b>GigaFrEn task </b>The fr-en model was tested on the 2525 sentence news domain test data used in the preliminary evaluation of the translation chal­lenge results. The BLEU scores for Sinuhe and Moses were 26.32 and 26.98, respectively. The total translation time was 13m 50s with Sinuhe, whereas Moses needed 82m 28s. Thus, the pat­tern that was observed on Europarl tasks is re­peated here: The translation quality of Moses is slightly better, but Sinuhe is significantly faster. Surprisingly, both Sinuhe and Moses fare well in comparison to the participants of the actual challenge: According to the preliminary results on the same test data we used (Koehn, 2009), the Mo s e s baseline would have been beaten only by Google, and Sinuhe would have been sixth among the 23 participating systems with a differ­ence of only 0.57 BLEU points to the second best entry. A partial explanation for the good relative performance could be that the challenge partici­pants had only a week to train their models on the full version of GigaFrEn data, so they may not have had time to take full advantage of it. On the other hand, many of the top ranked systems relied on external resources that were not available for us.</p><p>Based on an informal human evaluation of the outputs of Sinuhe and Moses, it looks like the translations of Sinuhe are slightly more accu­rate in conveying the meaning of the original sen­tences, but especially the translations of long rare expressions (e.g., multi-word names of institu­tions) are less fluent. This hints that the parame­ters for (rare) biphrases may have been regularized too heavily — it looks like S inuhe is underfitting rather than overfitting. We will conduct more ex­periments to see how much the translation quality can be improved by a better choice of <i>a </i>or by us­ing a different prior for regularization. Of course, there is room for tuning elsewhere, too. For exam­ple, it would be a surprise if the phrase extraction pipeline that has been optimized for Mo s e s would be optimal for Sinuhe.</p></subsubsection></subsection></section><section number="5" title="Conclusions"><p>In this paper, we have shown that phrase-based SMT can be viewed as an instance of structural prediction. The word alignment and phrase extraction heuristics serve as a strategy for feature extraction, and the translation task can be mod­elled as a structural prediction problems over these features. Our methods scale to large corpora and are fast at predicting translations. While speed is not the primary goal, the faster translation times may be a key to success in applications where the amount of text that needs to be translated is large. In terms of BLEU scores, the results do not im­prove the state-of-the-art so far. However, fine-tuning the standard phrase-based approach over the years has increased its performance signifi­cantly, and we see no reason why the same would not happen with the proposed approach, especially if the model is augmented with additional features like gapped biphrases and biphrases over POS tags.</p><p>The fact that our translation model is a prop­erly normalized conditional probability distribu­tion opens up many new possibilities. For in­stance, instead of predicting translations, it is pos­sible to efficiently compute the expected num­ber of times each word would appear in them. Such output might be useful, e.g., if the transla­tions are to be post-processed by models relying on bag-of-words representation. Another research direction we are currently looking into is train­ing the proposed translation model in the reverse direction, and then predicting translations using the noisy channel approach, i.e., by maximizing <i>P{x\y)P{y). </i>The key difference to previous work here is that since <i>P(x\y) </i>is properly normalized, the noisy channel approach would not in our case suffer from the potentially negative effects caused by ignoring the normalizer that depends on <i>y. </i>Be­sides being a viable (though computationally de­manding) alternative criterion for predicting trans­lations, the noisy channel approach could easily be used for, e.g., reranking n-best lists and for system combination.</p></section><section title="Acknowledgments"><p>This work has been partially funded by the SMART EU project. We wish to thank the anony­mous reviewers for their constructive comments and especially for pointing out the related pa­per (Blunsom and Osborne, 2008) that we had missed. Special thanks to Vladimir Poroshin for all the bugs he found in beta-testing and to Esther Galbrun for her comments on a draft version of this paper.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1035</doubt><page local="10" global="1036"/></section><references><p>Phil Blunsom and Miles Osborne. 2008. Probabilistic inference for machine translation. In <i>EMNLP.</i></p><p>Phil Blunsom, Trevor Cohn, and Miles Osborne. 2008. A discriminative latent variable model for statistical machine translation. In <i>ACL.</i></p><p>Chris Callison-Burch, Philipp Koehn, Christof Monz, Josh Schroeder, and Cameron Shaw Fordyce. 2008. ACL 2008 third workshop on statistical ma­chine translation, http : / /www. statmt. org/ wmt08.</p><p>Chris Callison-Burch, Philipp Koehn, Christof Monz, and Josh Schroeder. 2009. EACL 2009 fourth workshop on statistical machine translation, http : //www.statmt.org/wmt0 9.</p><p>Stanley Chen and Ronald Rosenfeld. 2000. A survey of smoothing techniques for ME models. <i>IEEE Transactions Speech and Audio Processing, </i>8(l):37-50.</p><p>John DeNero and Dan Klein. 2008. The complexity of phrase alignment problems. In <i>ACL.</i></p><p>John DeNero, Dan Gillick, James Zhang, and Dan Klein. 2006. Why generative phrase models un-derperform surface heuristics. In <i>Workshop on SMT at NAACL.</i></p><p>John DeNero, Alex Bouchard, and Dan Klein. 2008. Sampling alignment structure under a bayesian translation model. In <i>EMNLP.</i></p><p>Matti Kääriäinen. 2009. Sinuhe source code dis­tribution (vl.2). Website, http://www.es. helsinki.fi/u/mtkaaria/sinuhe.</p><p>Philipp Koehn, Franz Josef Och, and Daniel Marcu. 2003. Statistical phrase-based translation. In <i>HLT-NAACL.</i></p><p>Philipp Koehn, Hieu Hoang, Alexandra Birch, and Chris Callison-Burch et al. 2007. Moses: Open source toolkit for statistical machine translation. In <i>ACL.</i></p><p>Philipp Koehn.  2009.  BLEU/NIST scores for sub­missions,      http ://groups.google.com/ group/WMTO 9/browse_thread/thread/ bfbce7b219648a4c.</p><p>John Lafferty, Andrew McCallum, and Fernando Pereira. 2001. Conditional random fields: Prob­abilistic models for segmenting and labeling se­quence data. In <i>ICML.</i></p><p>Percy Liang, Alexandre Bouchard-Cote, Dan Klein, and Ben Taskar. 2006. An end-to-end discrimina­tive approach to machine translation. In <i>ACL.</i></p><p>Daniel Marcu and William Wong. 2002. A phrase-based, joint probability model for statistical machine translation. In <i>EMNLP.</i></p><p>Franz Josef Och and Hermann Ney. 2003. A sys­tematic comparison of various statistical alignment models. <i>Computational Linguistics, </i>29:2003.</p><p>Franz Josef Och, Christoph Tillmann, and Hermann Ney. 1999. Improved alignment models for statisti­cal machine translation. In <i>EMNLP, </i>pages 20-28.</p><p>Cristoph Tillmann and Tong Zhang. 2007. A block bi-gram prediction model for statistical machine trans­lation. <i>ACM Transacions on Speech and Language Processing, </i>4(3).</p><p>S. V. N. Vishwanathan, Nicol N. Schraudolph, Mark W. Schmidt, and Kevin P. Murphy. 2006. Accelerated training of conditional random fields with stochastic gradient methods. In <i>ICML.</i></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1036</doubt></references></body></article>