<?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="26"/><title>Exact Decoding of Phrase-Based Translation Models through Lagrangian Relaxation</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 26-37, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Chang" givenname="Yin-Wen"><org  name="MIT CSAIL Cambridge" country="USA"/></author><author surname="Collins" givenname="Michael"><org  name="MIT CSAIL Cambridge" country="USA"/></author></firstpageheader><frontmatter><p><b>Exact Decoding of Phrase-Based Translation Models through Lagrangian Relaxation</b></p><p><b>Yin-Wen Chang</b></p><p>MIT CSAIL Cambridge, MA 02139, USA</p><p>yinwen@csail.mit.edu</p></frontmatter><abstract>This paper describes an algorithm for exact decoding of phrase-based translation models, based on Lagrangian relaxation. The method recovers exact solutions, with certificates of optimality, on over 99% of test examples. The method is much more efficient than ap­proaches based on linear programming (LP) or integer linear programming (ILP) solvers: these methods are not feasible for anything other than short sentences. We compare our method to MOSES (Koehn et al., 2007), and give precise estimates of the number and mag­nitude of search errors that MOSES makes. </abstract></header><body><section number="1" title="Introduction"><p>Phrase-based models (Och et al., 1999; Koehn et al., 2003; Koehn et al., 2007) are a widely-used approach for statistical machine translation. The decoding problem for phrase-based models is NP-hard<footnote anchor="1"/>; because of this, previous work has generally focused on approximate search methods, for exam­ple variants of beam search, for decoding.</p><p>This paper describes an algorithm for exact decoding of phrase-based models, based on La-grangian relaxation (Lemaréchal, 2001). The core of the algorithm is a dynamic program for phrase-based translation which is efficient, but which allows some ill-formed translations. More specifically, the dynamic program searches over the space of transla­tions where exactly N words are translated (N is the number of words in the source-language sen­tence), but where some source-language words may be translated zero times, or some source-language words may be translated more than once. La-grangian relaxation is used to enforce the constraint</p><footnote label="1">We refer here to the phrase-based models of (Koehn et al., 2003; Koehn et al., 2007), considered in this paper. Other vari­ants of phrase-based models, which allow polynomial time de­coding, have been proposed, see the related work section.</footnote><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">26</doubt><p><b>Michael Collins</b></p><p>Department of Computer Science, Columbia University, New York, NY 10027, USA</p><footnote>mcollins@cs.columbia.edu</footnote><p>that each source-language word should be translated exactly once. A subgradient algorithm is used to op­timize the dual problem arising from the relaxation.</p><p>The first technical contribution of this paper is the basic Lagrangian relaxation algorithm. By the usual guarantees for Lagrangian relaxation, if this algo­rithm converges to a solution where all constraints are satisfied (i.e., where each word is translated ex­actly once), then the solution is guaranteed to be optimal. For some source-language sentences how­ever, the underlying relaxation is loose, and the algo­rithm will not converge. The second technical con­tribution of this paper is a method that incrementally adds constraints to the underlying dynamic program, thereby tightening the relaxation until an exact solu­tion is recovered.</p><p>We describe experiments on translation from Ger­man to English, using phrase-based models trained recovers exact solutions, with certificates of opti-mality, on over 99% of test examples. On over 78% of examples, the method converges with zero added constraints (i.e., using the basic algorithm); 99.67% of all examples converge with 9 or fewer constraints. We compare to a linear programming (LP)/integer linear programming (ILP) based de­coder. Our method is much more efficient: LP or ILP decoding is not feasible for anything other than short sentences,<footnote anchor="2"/> whereas the average decoding time for our method (for sentences of length 1-50 words) is 121 seconds per sentence. We also compare our method to MOSES, and give precise estimates ofthe number and magnitude of search errors that MOSES makes. Even with large beam sizes, MOSES makes a significant number of search errors. As far as we are aware, previous work has not successfully recovered exact solutions for the type of phrase-based models used in MOSES.<page local="2" global="27"/></p><doubt alpha="61.0" length="41" tooSmall="False" monospace="0.0">by MOSES (Koehn et al., 2007). The method</doubt><footnote label="2">For example ILP decoding for sentences of lengths 11-15 words takes on average 2707.8 seconds.</footnote></section><section number="2" title="Related Work"><p>Lagrangian relaxation is a classical technique for solving combinatorial optimization problems (Korte and Vygen, 2008; Lemaréchal, 2001). Dual decom­position, a special case of Lagrangian relaxation, has been applied to inference problems in NLP (Koo et al., 2010; Rush et al., 2010), and also to Markov ran­dom fields (Wainwright et al., 2005; Komodakis et al., 2007; Sontag et al., 2008). Earlier work on be­lief propagation (Smith and Eisner, 2008) is closely related to dual decomposition. Recently, Rush and Collins (2011) describe a Lagrangian relaxation al­gorithm for decoding for syntactic translation; the algorithmic construction described in the current pa­per is, however, very different in nature to this work.</p><p>Beam search stack decoders (Koehn et al., 2003) are the most commonly used decoding algorithm for phrase-based models. Dynamic-programming-based beam search algorithms are discussed for both word-based and phrase-based models by Tillmann and Ney (2003) and Tillmann (2006).</p><p>Several works attempt exact decoding, but effi­ciency remains an issue. Exact decoding via integer linear programming (ILP) for IBM model 4 (Brown et al., 1993) has been studied by Germann et al. (2001), with experiments using a bigram language model for sentences up to eight words in length. Riedel and Clarke (2009) have improved the effi­ciency of this work by using a cutting-plane algo­rithm, and experimented with sentence lengths up to 30 words (again with a bigram LM). Zaslavskiy et al. (2009) formulate the phrase-based decoding problem as a traveling salesman problem (TSP), and take advantage of existing exact and approximate approaches designed for TSP. Their translation ex­periment uses a bigram language model and applies an approximate algorithm for TSP. Och et al. (2001) propose an A* search algorithm for IBM model 4, and test on sentence lengths up to 14 words. Other work (Kumar and Byrne, 2005; Blackwood et al., 2009) has considered variants of phrase-based mod­els with restrictions on reordering that allow exact, polynomial time decoding, using finite-state trans­ducers.</p><p>The idea of incrementally adding constraints to tighten a relaxation until it is exact is a core idea in combinatorial optimization. Previous work on this topic in NLP or machine learning includes work on inference in Markov random fields (Sontag et al., 2008); work that encodes constraints using finite-state machines (Tromble and Eisner, 2006); and work on non-projective dependency parsing (Riedel and Clarke, 2006).</p></section><section number="3" title="The Phrase-based Translation Model"><p>This section establishes notation for phrase-based translation models, and gives a definition of the de­coding problem. The phrase-based model we use is the same as that described by Koehn et al. (2003), as implemented in MOSES (Koehn et al., 2007).</p><p>The input to a phrase-based translation sys­tem is a source-language sentence with <i>N </i>words, <i>x1x2 </i>... xN. A <i>phrase table </i>is used to define the set of possible <i>phrases </i>for the sentence: each phrase is a tuple <i>p</i><i> </i><i>= </i><i>(s,</i><i> </i>t, e), where (s, t) are indices rep­resenting a contiguous span in the source-language sentence (we have s &lt; t), and e is a target-language string consisting of a sequence of target-language words. For example, the phrase p = (2, 5, the <i>dog) </i>would specify that words x2 ... x5 have a translation in the phrase table as "the dog". Each phrase p has a score g(p) = g(s,t,e): this score will typically be calculated as a log-linear combination of features (e.g., see Koehn et al. (2003)).</p><p>We use s(p), t(p) and e(p) to refer to the three components (s, t, e) of a phrase p.</p><p>The output from a phrase-based model is a sequence of phrases <i>y</i><i> </i><i>= </i><i>(p1p2</i><i> </i><i>...pL).</i><i> </i>We will often refer to an output y as a <i>derivation. </i>The derivation y defines a target-language transla­tion e(y), which is formed by concatenating the strings e(p1), e(p2),..., e(pL). For two consecutive phrases pk = (s, t, e) and <i>pk+1 </i>= <i>(s',</i><i> </i><i>t',</i><i> </i>e'), the <i>dis­tortion distance </i>is defined as <i>ö(t,s'')</i><i> </i><i>= </i>|t + 1 — s'|. The score for a translation is then defined as where n S R is often referred to as the distortion penalty, and typically takes a negative value. The function <i>h(e(y)</i><i> </i><i>) </i>is the score of the string e(y) under<page local="3" global="28"/></p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">L L-1</doubt><doubt alpha="53.7" length="41" tooSmall="False" monospace="0.0">f(y)=h(e(y))+Ylg(pk)+Ylvxô(t(pk),s(pk+i))</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">k=1 k=1</doubt><p>a language model.<footnote anchor="3"/>The decoding problem is to find where Y is the set of valid derivations. The set Y can be defined as follows. First, for any derivation <i>y = </i>(p<b>i</b>P<b>2 </b>• • <i>- Vl), </i>define <i>y(i)</i><i> </i>to be the number of times that the source-language word Xj has been translated in y: that is, y(i) = £<b>L=i</b>[[s(Vfc) &lt; i &lt; <i>t(V</i><i>k</i>)]], where [[n]] = 1 if n is true, and 0 otherwise. Then Y is defined as the set of finite length sequences (p1p2 <i>• </i><i>••Vl) </i>such that:</p><doubt alpha="61.5" length="13" tooSmall="False" monospace="0.0">arg max f (y)</doubt><p>1. Each word in the input is translated exactly once: that is, y(i) = 1 for i = 1... N.</p><p>2. For each pair of consecutive phrases Vk,Vk+1 for <i>k</i><i> </i>= 1 <i>...L</i><i> </i><i>—</i><i> </i>1, we have <i>ö(t(p</i><i>k</i>),s(Vk+1)) &lt; <i>d,</i><i> </i>where <i>d</i><i> </i>is the <i>distortion limit.</i></p><p>An exact dynamic programming algorithm for this problem uses states <i>(w1,w2</i><i> </i><i>,b,r),</i><i> </i>where <i>(w1,w2)</i><i> </i>is a target-language bigram that the par­tial translation ended with, <i>b </i>is a bit-string denoting which source-language words have been translated, and <i>r </i>is the end position ofthe previous phrase (e.g., see Koehn et al. (2003)). The bigram (w1;w2) is needed for calculation of trigram language model scores; <i>r </i>is needed to enforce the distortion limit, and to calculate distortion costs. The bit-string <i>b </i>is needed to ensure that each word is translated ex­actly once. Since the number of possible bit-strings is exponential in the length of sentence, exhaustive dynamic programming is in general intractable. In­stead, people commonly use heuristic search meth­ods such as beam search for decoding. However, these methods have no guarantee of returning the highest scoring translation.</p></section><section number="4" title="A Decoding Algorithm based on Lagrangian Relaxation"><p>We now describe a decoding algorithm for phrase-based translation, based on Lagrangian relaxation.</p><footnote label="3">The language model score usually includes a word inser­tion score that controls the length of translations. The relative weights of the g(p) and h(e(y)) terms, and the value for n, are typically chosen using MERT training (Och, 2003).</footnote><p>We first describe a dynamic program for decoding which is efficient, but which relaxes the y(i) = 1 constraints described in the previous section. We then describe the Lagrangian relaxation algorithm, which introduces Lagrange multipliers for each con­straint of the form <i>y(i)</i><i> </i>= 1, and uses a subgradient algorithm to minimize the dual arising from the re­laxation. We conclude with theorems describing for­mal properties of the algorithm, and with an example run of the algorithm.</p><subsection number="4.1" title="An Efficient Dynamic Program"><p>As described in the previous section, our goal is to find the optimal translation y* = arg <i>maxyey </i><i>f </i>(y). We will approach this problem by defining a set <i>Y' </i>such that Y C Yand such that arg max <i>f(y)</i> can be found efficiently using dynamic program­ming. The set Y' omits some constraints— specifically, the constraints that each source-language word is translated once, i.e., that <i>y(i)</i><i> </i>= 1 for i = 1... N—that are enforced for members of Y. In the next section we describe how to re-introduce these constraints using Lagrangian relax­ation. The set Y' does, however, include a looser constraint, namely that ^N<b>=1 </b>y(i) = N, which re­quires that exactly N words are translated.</p><p>We now give the dynamic program that defines Y'. The main idea will be to replace bit-strings (as described in the previous section) by a much smaller number of dynamic programming states. Specifi­cally, the states of the new dynamic program will be tuples <i>(w1,w2,n,l,m,r).</i><i> </i>The pair (w1;w2) is again a target-language bigram corresponding to the last two words in the partial translation, and the inte­ger <i>r </i>is again the end position ofthe previous phrase. The integer <i>n </i>is the number of words that have been translated thus far in the dynamic programming al­gorithm. The integers <i>l </i>and <i>m </i>specify a contiguous span <i>x\... xm </i>in the source-language sentence; this span is the last contiguous span of words that have been translated thus far.</p><p>The dynamic program can be viewed as a shortest-path problem in a directed graph, with nodes in the graph corresponding to states <i>(w1,w2,n,l,m,r).</i><i> </i>The  transitions  in the graph are defined as follows.<page local="4" global="29"/> For each state <i>(w1,w2,n,l,m,r),</i><i> </i>we consider any phrase V = (s, <i>t,</i><i> </i>e) with e = (e<b>o </b>... eM<i>-1eM</i>) such that: 1) <i>ö(r,</i><i> </i><i>s)</i><i> &lt; </i>d; and 2) t &lt; l or <i>s &gt; m. </i>The former condition states that the phrase should satisfy the distortion limit. The latter condition requires that there is no overlap of the new phrase's span (s,t) with the span (l, m). For any such phrase, we create a transition ( <i>s,</i><i> </i><i>t</i><i> </i>) otherwise</p><doubt alpha="35.3" length="34" tooSmall="False" monospace="0.0">(w1,w2,n,l, m, r)-&gt;(w1,w2,n,l,m,r)</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">where</doubt><footnote label="1"> 2  (w 2, e 1 ) if = 1</footnote><doubt alpha="18.8" length="16" tooSmall="False" monospace="0.0">•n' = n +1—s + 1</doubt><doubt alpha="35.3" length="17" tooSmall="False" monospace="0.0">((l,t)ifs = m + 1</doubt><doubt alpha="27.6" length="29" tooSmall="False" monospace="0.0">•(l',m') = &lt;  (s, m)ift = l—1</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">•r'=t</doubt><p>The new target-language bigram (w', w<b>2 </b>) is the last two words of the partial translation after including phrase p. It comes from either the last two words of , or, if consists of a single word, the last word of the previous bigram, w2, and the first and only word, <b>1 </b>, in . (l', m') is expanded from (l, m) if the spans (l, m) and (s, t) are adjacent. Otherwise, (l', m') will be the same as (s, t).</p><p>The score of the transition is given by a sum of the phrase translation score the language model score, and the distortion cost n x <i>ô(r,</i><i> </i>s). The trigram language model score is h(e1|w1,w2) + h(e<b>2</b>|w<b>2</b>,e<b>1) </b>+ <i>Y,</i><i>i=-2 </i>h(e<b>i+2</b>|e<b>i</b>,e<b>i+1), </b>where h(w<b>3</b>|w1;w2) is a trigram score (typically a log probability plus a word insertion score).</p><p>We also include start and end states in the directed graph. The start state is (&lt;s&gt;, &lt;s&gt;, 0,0,0,0) where &lt;s&gt; is the start symbol in the language model. For each state (w1, w2, n, l, m, r), such that n = N, we create a transition to the end state. This transition takes the form</p><doubt alpha="34.3" length="35" tooSmall="False" monospace="0.0">(w1, w2, N, l, m, r)&lt;~JV'—+—/s—&gt;END</doubt><p>For this transition, we define the score as score = h(&lt;/s&gt;|w1, w2); thus this transition incorporates the end symbol &lt;/s&gt; in the language model.</p><p>The states and transitions we have described form a directed graph, where each path from the start state to the end state corresponds to a sequence ofphrases p1p2 • • - Vl. We define Y' to be the full set of such sequences. We can use the Viterbi algorithm to solve arg maxy€y f (y) by simply searching for the high­est scoring path from the start state to the end state.</p><p>The set Y' clearly includes derivations that are ill-formed, in that they may include words that have been translated 0 times, or more than 1 time. The first line of Figure 2 shows one such derivation (cor­responding to the translation <i>the quality and also the and the quality and also</i>.). For each phrase we show the English string (e.g., <i>the quality) </i>together with the span of the phrase (e.g., 3, 6). The values for y(i) are also shown. It can be verified that this derivation is a valid member of Y'. However, y(i) = 1 for several values of i: for example, words 1 and 2 are trans­lated 0 times, while word 3 is translated twice.</p><p>Other dynamic programs, and definitions of Y are possible: for example an alternative would be to use a dynamic program with states (w1, w2, n, r). However, including the previous contiguous span ( l, m) makes the set Y' a closer approximation to Y. In experiments we have found that including the previous span (l, m) in the dynamic program leads to faster convergence of the subgradient algorithm described in the next section, and in general to more stable results. This is in spite of the dynamic pro­gram being larger; it is no doubt due to Y' being a better approximation of Y.</p></subsection><subsection number="4.2" title="The Lagrangian Relaxation Algorithm"><p>We now describe the Lagrangian relaxation decod­ing algorithm for the phrase-based model. Recall that in the previous section, we defined a set Y' that allowed efficient dynamic programming, and such that Y C Y'. It is easy to see that Y = {y : y S Y', and Vi, y(i) = 1}. The original decoding problem can therefore be stated as:</p><doubt alpha="60.6" length="33" tooSmall="False" monospace="0.0">arg max f(y)such thatVi, y(i) = 1</doubt><p>We use Lagrangian relaxation (Korte and Vygen, 2008) to deal with the y(i) = 1 constraints. We introduce Lagrange multipliers for each such constraint. The Lagrange multipliers can take any positive or negative value. The Lagrangian is<page local="5" global="30"/></p><doubt alpha="32.3" length="31" tooSmall="False" monospace="0.0">L(u,y) = f (y) +Y,u(i)(y(i) —1)</doubt><doubt alpha="60.0" length="40" tooSmall="False" monospace="0.0">Initialization:—0fori=1...Nfort = 1... T</doubt><doubt alpha="40.8" length="49" tooSmall="False" monospace="0.0">y* = arg max^y, L(u*-1, y)ify*(i) = 1fori = 1...N</doubt><p><b>return </b>y* <b>else</b></p><doubt alpha="26.3" length="38" tooSmall="False" monospace="0.0">fori = 1... N u*(i) = — a* (y*(i) — 1)</doubt><figure caption="Figure 1: The decoding algorithm.a* &gt; 0is the step size at thet'th iteration."></figure><p>The dual objective is then</p><p>L(u) = max L(u,y).</p><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">yey'</doubt><p>and the dual problem is to solve min L(u).</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">u</doubt><p>The next section gives a number of formal results de­scribing how solving the dual problem will be useful in solving the original optimization problem.</p><p>We now describe an algorithm that solves the dual problem. By standard results for Lagrangian re­laxation (Korte and Vygen, 2008), L(u) is a con­vex function; it can be minimized by a subgradient method. If we define and Yu(i) = yu(i) — 1 for i = 1... N, then yu is a subgradient of L(u) at u. A subgradient method is an iterative method for minimizing L(u), which perfoms updates u* — u*-1 — a*Yut-i where a* &gt; 0 is the step size for the t'th subgradient step.</p><doubt alpha="60.9" length="23" tooSmall="False" monospace="0.0">yu= arg max L(u, y)yey'</doubt><figure caption="Figure 1 depicts the resulting algorithm. At each iteration, we solve"></figure><doubt alpha="40.0" length="30" tooSmall="False" monospace="0.0">arg max f(y) +    u(i)(y(i) 1)</doubt><doubt alpha="36.4" length="11" tooSmall="False" monospace="0.0">yey'   \Y /</doubt><doubt alpha="48.0" length="25" tooSmall="False" monospace="0.0">= arg max f(y) + u(i)y(i)</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">yey'ViJ</doubt><p>by the dynamic program described in the previous section. Incorporating the i u(i)y(i) terms in the dynamic program is straightforward: we simply re­define the phrase scores as</p><doubt alpha="40.7" length="27" tooSmall="False" monospace="0.0">g'(s,t,e) = g(s,t,e)+ Yu(i)</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">i=s</doubt><p>Intuitively, each Lagrange multiplier u(i) penal­izes or rewards phrases that translate word i; the al­gorithm attempts to adjust the Lagrange multipliers in such a way that each word is translated exactly once. The updates u*(i) = u*-1(i) — a*(y*(i) — 1) will decrease the value for u(i) if y*(i) &gt; 1, in­crease the value for u(i) if y*(i) = 0, and leave u(i) unchanged if y*(i) = 1.</p></subsection><subsection number="4.3" title="Properties"><p>We now give some theorems stating formal proper­ties of the Lagrangian relaxation algorithm. These results for Lagrangian relaxation are well known: for completeness, we state them here. First, define y* to be the optimal solution for our original prob­lem:</p><doubt alpha="63.6" length="33" tooSmall="False" monospace="0.0">Definition 1.y* = argmaxy€y f (y)</doubt><p>Our first theorem states that the dual function pro­vides an upper bound on the score for the optimal translation, f(y*):</p><doubt alpha="66.7" length="39" tooSmall="False" monospace="0.0">Theorem 1.For any value ofu G RV,L(u) &gt;</doubt><p>f(y*).</p><p><i>Proof.</i></p><doubt alpha="34.4" length="32" tooSmall="False" monospace="0.0">L(u) = max f(y) +   u(i)(y(i) 1)</doubt><doubt alpha="36.8" length="19" tooSmall="False" monospace="0.0">&gt;f(y)+Vu(i)(y(i)—1)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">i</doubt><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">= max f(y)</doubt><p>The first inequality follows because Y C YThe final equality is true since any y G Y has y(i) = 1 for all i, implying that ^<i>i </i>u(i)(y(i) — 1) = 0. □</p><p>The second theorem states that under an appropri­ate choice of the step sizes a*, the method converges to the minimum of L(u). Hence we will successfully find the tightest possible upper bound defined by the dual L(u).</p><doubt alpha="64.1" length="39" tooSmall="False" monospace="0.0">Theorem 2.For any sequencea1,a2,...If1)</doubt><doubt alpha="41.9" length="31" tooSmall="False" monospace="0.0">lim*^ooa*—&gt;   0;2)a*   =oo,then</doubt><doubt alpha="62.5" length="24" tooSmall="False" monospace="0.0">linit^ooL(u*) = minuL(u)</doubt><p><i>Proof. </i>See Korte and Vygen (2008).</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">□</doubt><page local="6" global="31"/><doubt alpha="34.4" length="32" tooSmall="False" monospace="0.0">L(u) = max f(y) +   u(i)(y(i) 1)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">i</doubt><p>Figure 2: An example run of the algorithm in Figure 1. For each value of t we show the dual value L(u*-1), the derivation y*, and the number of times each word is translated, y*(i) for i = 1... N. For each phrase in a derivation we show the English string e, together with the span (s, t): for example, the first phrase in the first derivation has English string <i>the quality and, </i>and span (3,6). At iteration 7 we have y*(i) = 1 for i = 1... N, and the translation is returned, with a guarantee that it is optimal.</p><p>Our final theorem states that if at any iteration the algorithm finds a solution y* such that y*(i) = 1 for i = 1... N, then this is guaranteed to be the optimal solution to our original problem. First, define <b>Definition 2.</b><b> </b>yu = arg maxyey L(u, y).</p><p>We then have the theorem <i>then </i>f (yu) = f (y*), <i>i.e. yu is optimal.</i> <i>Proof.</i><i> </i>We have</p><doubt alpha="47.6" length="42" tooSmall="False" monospace="0.0">Theorem 3.If3u,s.t.yu(i) = 1fori = 1... N,</doubt><doubt alpha="37.5" length="24" tooSmall="False" monospace="0.0">= f (yu)+]Tu(i)(yu(i)—1)</doubt><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">=f(yu)</doubt><doubt alpha="66.0" length="303" tooSmall="False" monospace="0.0">The second equality is true because of the defini­tion ofyu.The third equality follows because by assumptionyu(i) = 1fori = 1 . . . N.BecauseL(u) = f (yu)andL(u)&gt;f (y*)for allu,we havef (yu)&gt;f (y* ). Buty* = argmaxyey f (y),andyuG Y, hence we must also havef (yu)&lt;f (y*).It follows thatf (yu)= f (y*). □</doubt><p>In some cases, however, the algorithm in Figure 1 may not return a solution y* such that y*(i) = 1 for all i. There could be two reasons for this. In the first case, we may not have run the algorithm for enough iterations T to see convergence. In the second case, the underlying relaxation may not be tight, in that there may not be <i>any </i>settings u for the Lagrange multipliers such that yu(i) = 1 for all i.</p><p>Section 5 describes a method for tightening the underlying relaxation by introducing hard con­straints (of the form y(i) = 1 for selected values of i). We will see that this method is highly effective in tightening the relaxation until the algorithm con­verges to an optimal solution.</p></subsection><subsection number="4.4" title="An Example of the Algorithm"><p>Figure 2 shows an example of how the algorithm works when translating a German sentence into an English sentence. After the first iteration, there are words that have been translated two or three times, and words that have not been translated. At each iteration, the Lagrangian multipliers are updated to encourage each word to be translated once. On this example, the algorithm converges to a solution where all words are translated exactly once, and the solution is guaranteed to be optimal.</p></subsection></section><section number="5" title="Tightening the Relaxation"><p>In some cases the algorithm in Figure 1 will not converge to y(i) = 1 for i = 1 . . . N because the underlying relaxation is not tight. We now de­scribe a method that incrementally tightens the La-grangian relaxation algorithm until it provides an ex­act answer. In cases that do not converge, we in­troduce hard constraints to force certain words to be translated exactly once in the dynamic programming solver. In experiments we show that typically only a<page local="7" global="32"/></p><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Input German: </b>dadurch können die qualitat und die regelmäßige postZustellung auch weiterhin sichergestellt werden .</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>t</p></td><td class="cell"><p>L(ut-1)</p></td><td class="cell"><p><b><i>V*(i)</i></b></p></td><td class="cell"><p>derivation <b><i>yt</i></b></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1</p></td><td class="cell"><p>-10.0988</p></td><td class="cell"><p>0022330020001</p></td><td class="cell"><p>j       3, 6        1 9, 9 1 6, 6 1 5, 5 1 3, 3 1     4, 6      1 9, 9 1 13, 13 1 the quality and alsö the  and  the  quality and alsö .</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>2</p></td><td class="cell"><p>-11.1597</p></td><td class="cell"><p>001 0001 0041 5 1</p></td><td class="cell"><p>j3,3| 7, 7   112,12 1   10, 10    112,12 1   10,10    112,12 1   10,10    1 12,12 1   10,10    1      11,13 1 the  regular    will    cöntinue tö    be    cöntinue tö    be    cöntinue tö    be    cöntinue tö be guaranteed .</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3</p></td><td class="cell"><p>-12.3742</p></td><td class="cell"><p>3312200010001</p></td><td class="cell"><p>1, 2     5, 5 2, 2 1, 1   4, 4      1, 2          3, 5       9, 9 13, 13 in that way , and  can thus quality in that way , the quality and alsö .</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>4</p></td><td class="cell"><p>-11.8623</p></td><td class="cell"><p>0100011330301</p></td><td class="cell"><p>j2,2j     6,7      j         8, 8           j9,9j11,11 j 8,8           j9,9j11, 11 j         8,8 j9,9j11,11 can the regular distributiön shöuld alsö ensure distributiön shöuld alsö ensure distributiön shöuld alsö ensure</p></td><td class="cell"><p>13,. 13</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5</p></td><td class="cell"><p>-13.9916</p></td><td class="cell"><p>001 1 3240001 01</p></td><td class="cell"><p>3, 3   7, 7   5, 5 7, 7 5, 5   7, 7   6, 6   4, 4        5, 7       11, 11  13, 13 the  regular and regular and regular the  quality and the regular ensured .</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>6</p></td><td class="cell"><p>-15.6558</p></td><td class="cell"><p>1112 020111111</p></td><td class="cell"><p>1, 2         3, 4      6, 6    4, 4    6, 6        8, 8           9, 10        11, 13 in that way , the quality öf the  quality öf the  distributiön shöuld cöntinue tö be guaranteed .</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>7</p></td><td class="cell"><p>-16.1022</p></td><td class="cell"><p>1111111111111</p></td><td class="cell"><p>1, 2        3, 4         5, 7             8, 8           9, 10        11, 13 in that way , the quality and the regular distributiön shöuld cöntinue tö be guaranteed .</p></td><td class="cell"><p></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></tr></table><p>Optimize(C, u) <b>while </b>(dual value still improving) <b>return </b>y* <b>return </b>Optimize(C UC',u)</p><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">y*</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">L(u, y)</doubt><doubt alpha="40.4" length="57" tooSmall="False" monospace="0.0">u(i) = u(i) — a (y*(i) count (i)=0fori=1...Nfork = 1... K</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">1)</doubt><doubt alpha="61.8" length="178" tooSmall="False" monospace="0.0">u(i) = u(i)—a (y*(i)—1) count (i) = count (i) + [[y*(i) = 1]]Let C'=set of Gi's that have the largest value forcount(i),that are not in C, and that are not adjacent to each other</doubt><p>Figure 3: A decoding algorithm with incremental addi­tion of constraints. The function Optimize(C, u) is a re­cursive function, which takes as input a set of constraints C, and a vector of Lagrange multipliers, u. The initial call to the algorithm is with C = 0, and u = 0. a &gt; 0 is the step size. In our experiments, the step size decreases each time the dual value increases from one iteration to the next; see Appendix A.</p><p>few constraints are necessary.</p><doubt alpha="54.1" length="37" tooSmall="False" monospace="0.0">Given a setC ç{1,2,..., N}, we define</doubt><doubt alpha="46.9" length="32" tooSmall="False" monospace="0.0">YC= {y : yGY',andVigC, y(i) = 1}</doubt><p>Thus Y' is a subset of Y', formed by adding hard constraints of the form y(i) = 1 to Y'. Note that Y'remains as a superset of Y, which enforces y(i) = 1 for all i. Finding arg maxyey' f(y) can again be achieved using dynamic programming, with the number of dynamic programming states increased by a factor of 2 'C' : dynamic programming states of the form (w<b>1, </b>w<b>2, </b>n, l, m, r) are replaced by states (w1, w2, n, l, m, r, be) where 6e is a bit-string of length |C| , which records which words in the set C have or haven't been translated in a hypothesis (par­tial derivation). Note that if C = { 1 . . . N}, we have Y' = Y, and the dynamic program will correspond to exhaustive dynamic programming.</p><p>We can again run a Lagrangian relaxation algo­rithm, using the set Y' in place of Y'. We will use Lagrange multipliers u(i) to enforce the constraints y(i) = 1 for i G C. Our goal will be to find a small set of constraints C, such that Lagrangian relaxation will successfully recover an optimal solu­tion. We will do this by incrementally adding el­ements to C; that is, by incrementally adding con­straints that tighten the relaxation.</p><p>The intuition behind our approach is as follows. Say we run the original algorithm, with the set Y', for several iterations, so that L(u) is close to con­vergence (i.e., L(u) is close to its minimal value). However, assume that we have not yet generated a solution y* such that y*(i) = 1 for all i. In this case we have some evidence that the relaxation may not be tight, and that we need to add some constraints. The question is, which constraints to add? To an­swer this question, we run the subgradient algorithm for K more iterations (e.g., K = 10), and at each it­eration track which constraints of the form y(i) = 1 are violated. We then choose C to be the G con­straints (e.g., G = 3) that are violated most often during the K additional iterations, and are not ad­jacent to each other. We recursively call the algo­rithm, replacing Y' by Y' ; the recursive call may then return an exact solution, or alternatively again add more constraints and make a recursive call.<footnote anchor="4"/></p><p>Figure 3 depicts the resulting algorithm. We ini­tially make a call to the algorithm Optimize(C, u) with C equal to the empty set (i.e., no hard con­straints), and with u(i) = 0 for all i. In an initial phase the algorithm runs subgradient steps, while the dual is still improving. In a second step, if a so­lution has not been found, the algorithm runs for K more iterations, thereby choosing G additional con­straints, then recursing.</p><p>If at any stage the algorithm finds a solution y* such that y*(i) = 1 for all i, then this is the so­lution to our original problem, arg maxyey f(y). This follows because for any C ç {1 . . . N} we have Y ç Y' ; hence the theorems in section 4.3 go through for Y' in place of Ywith trivial modifica­tions. Note also that the algorithm is guaranteed to eventually find the optimal solution, because even­tually C = {1... N}, and Y = YC.</p><footnote label="4">Formal justification for the method comes from the rela­tionship between Lagrangian relaxation and linear program­ming relaxations. In cases where the relaxation is not tight, the subgradient method will essentially move between solu­tions whose convex combination form a fractional solution to an underlying LP relaxation (Nedic and Ozdaglar, 2009). Our method eliminates the fractional solution through the introduc­tion of hard constraints.</footnote><p>argmax^yc argmaxyeyc<page local="8" global="33"/></p><doubt alpha="43.9" length="41" tooSmall="False" monospace="0.0">ify*(i) = 1fori = 1...Nelse fori = 1... N</doubt><doubt alpha="49.0" length="51" tooSmall="False" monospace="0.0">ify* (i) = 1fori = 1... Nreturny*else fori = 1... N</doubt><p>Table 1: Table showing the number of iterations taken for the algorithm to converge. x indicates sentences that fail to converge after 250 iterations. 97% of the examples converge within 120 iterations.</p><p>Table 2: Table showing the number of constraints added before convergence of the algorithm in Figure 3, broken down by sentence length. Note that a maximum of 3 constraints are added at each recursive call, but that fewer than 3 constraints are added in cases where fewer than 3 constraints have <i>count(i) &gt; </i>0. x indicates the sentences that fail to converge after 250 iterations. 78.7% of the examples converge without adding any constraints.</p><p>The remaining question concerns the "dual still improving" condition; i.e., how to determine that the first phase of the algorithm should terminate. We do this by recording the first and second best dual val­ues L(u') and L(u'') in the sequence of Lagrange multipliers u<footnote anchor="1"/> , u<footnote anchor="2"/>, . . . generated by the algorithm. Suppose that L(u'') first occurs at iteration t''. If L(u*)-*L/u^ &lt; e, we say that the dual value does not decrease enough. The value for e is a parameter of the approach: in experiments we used e = 0.002.</p><p>See the supplementary material for this submis­sion for an example run of the algorithm.</p><p>When C = 0, A* search can be used for de­coding, with the dynamic program for Y' provid­ing admissible estimates for the dynamic program for Y'. Experiments show that A* gives significant improvements in efficiency. The supplementary ma­terial contains a full description of the A* algorithm.</p></section><section number="6" title="Experiments"><p>In this section, we present experimental results to demonstrate the efficiency of the decoding algo­rithm. We compare to MOSES (Koehn et al., 2007), a phrase-based decoder using beam search, and to a general purpose integer linear programming (ILP) solver, which solves the problem exactly.</p><p>The experiments focus on translation from Ger­man to English, using the Europarl data (Koehn, 2005). We tested on 1,824 sentences of length at most 50 words. The experiments use the algorithm shown in Figure 3. We limit the algorithm to a max­imum of 250 iterations and a maximum of 9 hard constraints. The distortion limit d is set to be four, and we prune the phrase translation table to have 10 English phrases per German phrase.</p><p>Our method finds exact solutions on 1,818 out of 1,824 sentences (99.67%). (6 examples do not converge within 250 iterations.) Table 1 shows the number of iterations required for convergence, and Table 2 shows the number of constraints required for convergence, broken down by sentence length. In 1,436/1,818 (78.7%) sentences, the method con­verges without adding hard constraints to tighten the relaxation. For sentences with 1-10 words, the vast majority (183 out of 185 examples) converge with 0 constraints added. As sentences get longer, more constraints are often required. However most exam­ples converge with 9 or fewer constraints.</p><p>Table 3 shows the average times for decoding, broken down by sentence length, and by the number of constraints that are added. As expected, decod­ing times increase as the length of sentences, and the number of constraints required, increase. The average run time across all sentences is 120.9 sec­onds. Table 3 also shows the run time of the method without the A* algorithm for decoding. The A* al­gorithm gives significant reductions in runtime.</p><table class="main" frame="box" rules="all" border="1" 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># iter.</p></td><td class="cell"><p>1-10 words</p></td><td class="cell"><p>11-20 words</p></td><td class="cell"><p>21-30 words</p></td><td class="cell"><p>31-40 words</p></td><td class="cell"><p>41-50 words</p></td><td class="cell"><p>All sentences</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>0-7</p><p>8-15</p><p>16-30</p><p>31-60</p><p>61-120</p><p>121-250</p></td><td class="cell"><p>166 (89.7 %) 17 ( 9.2%) 1 ( 0.5 %) 1 ( 0.5 %) 0 ( 0.0 %) 0 ( 0.0 %)</p></td><td class="cell"><p>219 (39.2%) 187 (33.5 %) 93 (16.7%) 52 ( 9.3 %) 7 ( 1.3%) 0 ( 0.0 %)</p></td><td class="cell"><p>34 ( 6.0%) 161 (28.4%) 208 (36.7 %) 105 (18.6%)</p><p>54 ( 9.5 %) 4 ( 0.7 %)</p></td><td class="cell"><p>2 ( 0.6 %) 30 ( 8.6%) 112 (32.3%) 99 (28.5 %) 89 (25.6 %) 14 ( 4.0 %)</p></td><td class="cell"><p>0 ( 0.0%) 3 ( 1.8%) 22 ( 13.1 %) 62 (36.9 %) 45 (26.8 %) 31 (18.5%)</p></td><td class="cell"><p>421 (23.1 %) 398 (21.8 %) 436 (23.9 %) 319 (17.5%) 195 (10.7%) 49 ( 2.7%)</p></td><td class="cell"><p>23.1 % 44.9 % 68.8 % 86.3 % 97.0 % 99.7 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>x</p></td><td class="cell"><p>0 ( 0.0 %)</p></td><td class="cell"><p>0 ( 0.0 %)</p></td><td class="cell"><p>0 ( 0.0 %)</p></td><td class="cell"><p>1 ( 0.3 %)</p></td><td class="cell"><p>5 ( 3.0%)</p></td><td class="cell"><p>6 ( 0.3 %)</p></td><td class="cell"><p>100.0 %</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><table class="main" frame="box" rules="all" border="1" 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># cons.</p></td><td class="cell"><p>1-10 words</p></td><td class="cell"><p>11-20 words</p></td><td class="cell"><p>21-30 words</p></td><td class="cell"><p>31-40 words</p></td><td class="cell"><p>41-50 words</p></td><td class="cell"><p>All sentences</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>0- 0</p><p>1- 3 4-6 7-9</p></td><td class="cell"><p>183 (98.9 %) 2 ( 1.1 %) 0 ( 0.0 %) 0 ( 0.0 %)</p></td><td class="cell"><p>511 (91.6%) 45 ( 8.1 %) 2 ( 0.4%) 0 ( 0.0 %)</p></td><td class="cell"><p>438 (77.4%) 94 (16.6%) 27 ( 4.8 %) 7 ( 1.2%)</p></td><td class="cell"><p>222 (64.0 %) 87 (25.1 %) 24 ( 6.9%) 13 ( 3.7 %)</p></td><td class="cell"><p>82 (48.8 %) 50 ( 29.8 %) 19 ( 11.3 %) 12 ( 7.1 %)</p></td><td class="cell"><p>1,436 (78.7 %) 278 (15.2%) 72 ( 3.9 %) 32 ( 1.8%)</p></td><td class="cell"><p>78.7 % 94.0 % 97.9 % 99.7 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>x</p></td><td class="cell"><p>0 ( 0.0 %)</p></td><td class="cell"><p>0 ( 0.0 %)</p></td><td class="cell"><p>0 ( 0.0 %)</p></td><td class="cell"><p>1 ( 0.3 %)</p></td><td class="cell"><p>5 ( 3.0%)</p></td><td class="cell"><p>6 ( 0.3 %)</p></td><td class="cell"><p>100.0 %</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><page local="9" global="34"/><p>Table 3: The average time (in seconds) for decoding using the algorithm in Figure 3, with and without A* algorithm, broken down by sentence length and the number of constraints that are added. A* indicates speeding up using A* search; w/o denotes without using A*.</p><p>Table 4: Average and median time of the LP/ILP solver (in seconds). % frac. indicates how often the LP gives a fractional answer. Y' indicates the dynamic program using set Y' as de­fined in Section 4.1, and Y'' indicates the dynamic program us­ing states <i>(w1 ,w2,n,r). </i>The statistics for ILP for length 16-20 are based on 50 sentences.</p><subsection number="6.1" title="Comparison to an LP/ILP solver"><p>To compare to a linear programming (LP) or inte­ger linear programming (ILP) solver, we can im­plement the dynamic program (search over the set Y') through linear constraints, with a linear ob­jective. The y(i) = 1 constraints are also lin­ear. Hence we can encode our relaxation within an LP or ILP. Having done this, we tested the result­ing LP or ILP using Gurobi, a high-performance commercial grade solver. We also compare to an LP or ILP where the dynamic program makes use of states (w1, w2, n, r)—i.e., the span (l, m) is dropped, making the dynamic program smaller. Ta­ble 4 shows the average time taken by the LP/ILP solver. Both the LP and the ILP require very long running times on these shorter sentences, and run­ning times on longer sentences are prohibitive. Our algorithm is more efficient because it leverages the structure of the problem, by directly using a combi­natorial algorithm (dynamic programming).</p></subsection><subsection number="6.2" title="Comparison to MOSES"><p>We now describe comparisons to the phrase-based decoder implemented in MOSES. MOSES uses beam search to find approximate solutions.</p><p>The distortion limit described in section 3 is the same as that in Koehn et al. (2003), and is the same as that described in the user manual for MOSES (Koehn et al., 2007). However, a complicating fac­tor for our comparisons is that MOSES uses an ad­ditional distortion constraint, not documented in the manual, which we describe here.<footnote anchor="5"/> We call this con­straint the <i>gap constraint. </i>We will show in experi­ments that without the gap constraint, MOSES fails to produce translations on many examples. In our experiments we will compare to MOSES both with and without the gap constraint (in the latter case, we discard examples where MOSES fails).</p><p>We now describe the gap constraint. For a se­quence of phrases p1, • • • ,Vfc define • • -Vfc) to be the index of the left-most source-language word not translated in this sequence. For example, if the bit-string for p1 • • - Vfc is 111001101000, then • • - Vfc) = 4. A sequence of phrases p1 • • -PLsatisfies the gap constraint if and only if for k = 2 ... L, |t(pfc) + 1 — • • • Vfc)| &lt; d, where d is the distortion limit. We will call MOSES without this restriction MOSES-nogc, and MOSES with this restriction MOSES-gc.</p><p><b>Results for MOSES-nogc </b>Table 5 shows the number of examples where MOSES-nogc fails to give a translation, and the number of search errors for those cases where it does give a translation, for a range of beam sizes. A search error is defined as a case where our algorithm produces an exact solution that has higher score than the output from MOSES-nogc. The number of search errors is significant, even for large beam sizes.</p><footnote label="5">Personal communication from Philipp Koehn; see also the</footnote><p>software for MOSES.</p><table class="main" frame="box" rules="all" border="1" 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><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p># cons.</p></td><td class="cell"><p>1-10 words</p></td><td class="cell"><p>11-20 words</p></td><td class="cell"><p>21-30 words</p></td><td class="cell"><p>31-40 words</p></td><td class="cell"><p>41-50 words</p></td><td class="cell"><p>All sentences</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>A*</p></td><td class="cell"><p>w/o</p></td><td class="cell"><p>A*</p></td><td class="cell"><p>w/o</p></td><td class="cell"><p>A*</p></td><td class="cell"><p>w/o</p></td><td class="cell"><p>A* w/o</p></td><td class="cell"><p>A* w/o</p></td><td class="cell"><p>A* w/o</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>0-0</p></td><td class="cell"><p>0.8</p></td><td class="cell"><p>0.8</p></td><td class="cell"><p>9.7</p></td><td class="cell"><p>10.7</p></td><td class="cell"><p>47.0</p></td><td class="cell"><p>53.7</p></td><td class="cell"><p>153.6 178.6</p></td><td class="cell"><p>402.6 492.4</p></td><td class="cell"><p>64.6 76.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1-3</p></td><td class="cell"><p>2.4</p></td><td class="cell"><p>2.9</p></td><td class="cell"><p>23.2</p></td><td class="cell"><p>28.0</p></td><td class="cell"><p>80.9</p></td><td class="cell"><p>102.3</p></td><td class="cell"><p>277.4 360.8</p></td><td class="cell"><p>686.0 877.7</p></td><td class="cell"><p>241.3 309.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>4-6</p></td><td class="cell"><p>0.0</p></td><td class="cell"><p>0.0</p></td><td class="cell"><p>28.2</p></td><td class="cell"><p>38.8</p></td><td class="cell"><p>111.7</p></td><td class="cell"><p>163.7</p></td><td class="cell"><p>309.5 575.2</p></td><td class="cell"><p>1,552.8 1,709.2</p></td><td class="cell"><p>555.6 699.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>7-9</p></td><td class="cell"><p>0.0</p></td><td class="cell"><p>0.0</p></td><td class="cell"><p>0.0</p></td><td class="cell"><p>0.0</p></td><td class="cell"><p>166.1</p></td><td class="cell"><p>500.4</p></td><td class="cell"><p>361.0 1,467.6</p></td><td class="cell"><p>1,167.2 3,222.4</p></td><td class="cell"><p>620.7 1,914.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>mean</p></td><td class="cell"><p>0.8</p></td><td class="cell"><p>0.9</p></td><td class="cell"><p>10.9</p></td><td class="cell"><p>12.3</p></td><td class="cell"><p>57.2</p></td><td class="cell"><p>72.6</p></td><td class="cell"><p>203.4 299.2</p></td><td class="cell"><p>679.9 953.4</p></td><td class="cell"><p>120.9 168.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>median</p></td><td class="cell"><p>0.7</p></td><td class="cell"><p>0.7</p></td><td class="cell"><p>8.9</p></td><td class="cell"><p>9.9</p></td><td class="cell"><p>48.3</p></td><td class="cell"><p>54.6</p></td><td class="cell"><p>169.7 202.6</p></td><td class="cell"><p>484.0 606.5</p></td><td class="cell"><p>35.2 40.0</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><td class="cell"></td><td class="cell"></td></tr></table><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>method</p></td><td class="cell"><p>ILP</p></td><td class="cell"><p>LP</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>set</p></td><td class="cell"><p>length</p></td><td class="cell"><p>mean</p></td><td class="cell"><p>median</p></td><td class="cell"><p>mean</p></td><td class="cell"><p>median</p></td><td class="cell"><p>% frac.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>y''</p></td><td class="cell"><p></p></td><td class="cell"><p>1-10</p></td><td class="cell"><p>275.2</p></td><td class="cell"><p>132.9</p></td><td class="cell"><p>10.9</p></td><td class="cell"><p>4.4</p></td><td class="cell"><p>12.4 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>11-15</p></td><td class="cell"><p>2,707.8</p></td><td class="cell"><p>1,138.5</p></td><td class="cell"><p>177.4</p></td><td class="cell"><p>66.1</p></td><td class="cell"><p>40.8 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>16-20</p></td><td class="cell"><p>20,583.1</p></td><td class="cell"><p>3,692.6</p></td><td class="cell"><p>1,374.6</p></td><td class="cell"><p>637.0</p></td><td class="cell"><p>59.7 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>y'</p></td><td class="cell"><p></p></td><td class="cell"><p>1-10</p></td><td class="cell"><p>257.2</p></td><td class="cell"><p>157.7</p></td><td class="cell"><p>18.4</p></td><td class="cell"><p>8.9</p></td><td class="cell"><p>1.1 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>11-15</p></td><td class="cell"><p>3607.3</p></td><td class="cell"><p>1838.7</p></td><td class="cell"><p>476.8</p></td><td class="cell"><p>161.1</p></td><td class="cell"><p>3.0%</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><page local="10" global="35"/><p>Table 5: Table showing the number of examples where MOSES-nogc fails to give a translation, and the num­ber/percentage of search errors for cases where it does give a translation.</p><p>Table 6: Table showing statistics for the difference between the translation score from MOSES, and from the optimal deriva­tion, for those sentences where a search error is made. For MOSES-gc we include cases where the translation produced by our system is not reachable by MOSES-gc. The average score of the optimal derivations is -23.4.</p><p><b>Results for MOSES-gc </b>MOSES-gc uses the gap constraint, and thus in some cases our decoder will produce derivations which MOSES-gc cannot reach. Among the 1,818 sentences where we produce a so­lution, there are 270 such derivations. For the re­maining 1,548 sentences, MOSES-gc makes search errors on 2 sentences (0.13%) when the beam size is 100, and no search errors when the beam size is 200, 1,000, or 10,000.</p><table caption="Table 6 shows statistics for the magnitude of the search errors that MOSES-gc and MOSES-nogc make."></table><p><b>BLEU Scores </b>Finally, table 7 gives BLEU scores (Papineni et al., 2002) for decoding using MOSES and our method. The BLEU scores under the two decoders are almost identical; hence while MOSES makes a significant proportion of search errors, these search errors appear to be benign in terms of their impact on BLEU scores, at least for this particular translation model. Future work should investigate why this is the case, and whether this applies to other models and language pairs.</p></subsection></section><section number="7" title="Conclusions"><p>We have described an exact decoding algorithm for phrase-based translation models, using Lagrangian</p><p>Table 7: BLEU score comparisons. We consider only those sentences where both decoders produce a transla­tion.</p><p>relaxation. The algorithmic construction we have described may also be useful in other areas of NLP, for example natural language generation. Possi­ble extensions to the approach include methods that incorporate the Lagrangian relaxation formulation within learning algorithms for statistical MT: we see this as an interesting avenue for future research.</p><p><b>A   Step Size</b></p><p>Similar to Koo et al. (2010), we set the step size at the t'th iteration to be a* = 1/(1 + A*), where A* is the number of times that L(u(* )) &gt; L(u(* for all <i>t</i><i> </i><i>&lt;</i><i> </i><i>t.</i><i> </i>Thus the step size decreases each time the dual value increases from one iteration to the next.</p><p><b>Acknowledgments </b>Yin-Wen Chang and Michael Collins were supported under the GALE program of the Defense Advanced Research Projects Agency, Contract No. HR0011-06-C-0022. Michael Collins was also supported by NSF grant IIS-0915176.</p><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Beam size</p></td><td class="cell"><p>Fails</p></td><td class="cell"><p># search errors</p></td><td class="cell"><p>percentage</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>100</p></td><td class="cell"><p>650/1,818</p></td><td class="cell"><p>214/1,168</p></td><td class="cell"><p>18.32%</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>200</p></td><td class="cell"><p>531/1,818</p></td><td class="cell"><p>207/1,287</p></td><td class="cell"><p>16.08 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1000</p></td><td class="cell"><p>342/1,818</p></td><td class="cell"><p>115/1,476</p></td><td class="cell"><p>7.79 %</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10000</p></td><td class="cell"><p>169/1,818</p></td><td class="cell"><p>68/1,649</p></td><td class="cell"><p>4.12%</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></tr></table><table class="main" frame="box" rules="all" border="1" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>type of Moses</p></td><td class="cell"><p>beam size</p></td><td class="cell"><p># sents</p></td><td class="cell"><p>Moses</p></td><td class="cell"><p>our method</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>100</p></td><td class="cell"><p>1,818</p></td><td class="cell"><p>24.4773</p></td><td class="cell"><p>24.5395</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MOSES-gc</p></td><td class="cell"><p>200</p></td><td class="cell"><p>1,818</p></td><td class="cell"><p>24.4765</p></td><td class="cell"><p>24.5395</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1,000</p></td><td class="cell"><p>1,818</p></td><td class="cell"><p>24.4765</p></td><td class="cell"><p>24.5395</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>10,000</p></td><td class="cell"><p>1,818</p></td><td class="cell"><p>24.4765</p></td><td class="cell"><p>24.5395</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>100</p></td><td class="cell"><p>1,168</p></td><td class="cell"><p>27.3546</p></td><td class="cell"><p>27.3249</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MOSES-nogc</p></td><td class="cell"><p>200 1,000</p></td><td class="cell"><p>1,287 1,476</p></td><td class="cell"><p>27.0591 26.5734</p></td><td class="cell"><p>26.9907</p><p>26.6128</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>10,000</p></td><td class="cell"><p>1,649</p></td><td class="cell"><p>25.6531</p></td><td class="cell"><p>25.6620</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></tr></table><table class="main" frame="box" rules="all" border="1" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Diff.</p></td><td class="cell"><p>MOSES-gc s =100</p></td><td class="cell"><p>MOSES-gc s =200</p></td><td class="cell"><p>MOSES-nogc s=1000</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>0.000- 0.125 0.125- 0.250</p><p>0.250 - 0.500 0.500 - 1.000</p><p>1.000- 2.000</p><p>2.000 - 4.000 4.000 -13.000</p></td><td class="cell"><p>66 (24.26%) 59 (21.69%) 65 (23.90%) 49 (18.01%) 31 (11.40%) 2 ( 0.74%) 0 ( 0.00%)</p></td><td class="cell"><p>65 (24.07%) 58 (21.48%) 65 (24.07%) 49 (18.15%) 31 (11.48%) 2 ( 0.74%) 0 ( 0.00%)</p></td><td class="cell"><p>32 ( 27.83%) 25 ( 21.74%) 25 ( 21.74%) 23 ( 20.00%) 5 ( 4.35%) 3 ( 2.61%) 2 ( 1.74%)</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></tr></table></section><references><p>Graeme Blackwood, Adria de Gispert, Jamie Brunning, and William Byrne. 2009. Large-scale statistical machine translation with weighted finite state trans­ducers. In <i>Proceeding of the 2009 conference on Finite-State Methods and Natural Language Process­ing: Post-proceedings of the 7th International Work­shop FSMNLP 2008, </i>pages 39-49, Amsterdam, The Netherlands, The Netherlands. IOS Press.</p><p>Peter F. Brown, Vincent J. Della Pietra, Stephen A. Della Pietra, and Robert L. Mercer. 1993. The mathematics of statistical machine translation: Parameter estima­tion. <i>Computational Linguistics, </i>19:263-311, June.</p><p>Ulrich Germann, Michael Jahr, Kevin Knight, Daniel Marcu, and Kenji Yamada. 2001. Fast decoding and optimal decoding for machine translation. In <i>Proceed-</i> <i>ings of the 39th Annual Meeting on Association for Computational Linguistics, </i>ACL '01, pages 228-235.<page local="11" global="36"/> Philipp Koehn, Franz Josef Och, and Daniel Marcu. 2003. Statistical phrase-based translation. In <i>Proceed­ings ofthe 2003 Conference ofthe North American Chapter ofthe Association for Computational Linguis­tics on Human Language Technology, </i>NAACL '03, pages 48-54.</p><p>Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Chris Dyer, Ondïej Bojar, Alexandra Con­stantin, and Evan Herbst. 2007. Moses: Open source toolkit for statistical machine translation. In <i>Proceed­ings of the 45th Annual Meeting of the ACL on Inter­active Poster and Demonstration Sessions, </i>ACL '07, pages 177-180.</p><p>Philipp Koehn. 2005. Europarl: A parallel corpus for statistical machine translation. In <i>Proceedings ofthe MT Summit.</i></p><p>Nikos Komodakis, Nikos Paragios, and Georgios Tziri-tas. 2007. MRF optimization via dual decomposition: Message-passing revisited. In <i>Proceedings of the 11th International Conference on Computer Vision.</i></p><p>Terry Koo, Alexander M. Rush, Michael Collins, Tommi Jaakkola, and David Sontag. 2010. Dual decompo­sition for parsing with non-projective head automata. In <i>Proceedings ofthe 2010 Conference on Empiri­cal Methods in Natural Language Processing, </i>pages 1288-1298, Cambridge, MA, October. Association for Computational Linguistics.</p><p>Bernhard Korte and Jens Vygen. 2008. <i>Combinatorial Optimization: Theory and Application. </i>Springer Ver­lag.</p><p>Shankar Kumar and William Byrne. 2005. Local phrase reordering models for statistical machine translation. In <i>Proceedings ofthe conference on Human Language Technology and Empirical Methods in Natural Lan­guage Processing, </i>HLT '05, pages 161-168.</p><p>Claude Lemarechal. 2001. Lagrangian Relaxation. In <i>Computational Combinatorial Optimization, Op­timal or Provably Near-Optimal Solutions [based on a Spring School], </i>pages 112-156, London, UK. Springer-Verlag.</p><p>Angelia Nedic and Asuman Ozdaglar. 2009. Approxi­mate primal solutions and rate analysis for dual sub­gradient methods. <i>SIAM Journal on Optimization, </i>19(4):1757-1780.</p><p>Franz Josef Och, Christoph Tillmann, Hermann Ney, and Lehrstuhl Fiir Informatik. 1999. Improved alignment models for statistical machine translation. In <i>Pro­ceedings ofthe Joint SIGDAT Conference on Empiri­cal Methods in Natural Language Processing and Very Large Corpora, </i>pages 20-28.</p><p>Franz Josef Och, Nicola Ueffing, and Hermann Ney. 2001. An efficient A* search algorithm for statisti­cal machine translation. In <i>Proceedings ofthe work­shop on Data-driven methods in machine translation -Volume 14, </i>DMMT '01, pages 1-8, Stroudsburg, PA, USA. Association for Computational Linguistics.</p><p>Franz Josef Och. 2003. Minimum error rate training in statistical machine translation. In <i>Proceedings of the 41st Annual Meeting on Association for Computa­tional Linguistics, </i>ACL '03, pages 160-167.</p><p>Kishore Papineni, Salim Roukos, Todd Ward, and Wei Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In <i>Proceedings of</i> <i>ACL 2002.</i><i></i></p><p>Sebastian Riedel and James Clarke. 2006. Incremental integer linear programming for non-projective depen­dency parsing. In <i>Proceedings of the 2006 Conference on Empirical Methods in Natural Language Process­ing, </i>EMNLP '06, pages 129-137, Stroudsburg, PA, USA. Association for Computational Linguistics.</p><p>Sebastian Riedel and James Clarke. 2009. Revisiting optimal decoding for machine translation IBM model 4. In <i>Proceedings ofHuman Language Technologies: The 2009 Annual Conference ofthe North American Chapter of the Association for Computational Lin­guistics, Companion Volume: Short Papers, </i>NAACL-Short '09, pages 5-8, Stroudsburg, PA, USA. Associ­ation for Computational Linguistics.</p><p>Alexander M. Rush and Michael Collins. 2011. Exact decoding of syntactic translation models through La-grangian relaxation. In <i>Proceedings ofACL.</i></p><p>Alexander M Rush, David Sontag, Michael Collins, and Tommi Jaakkola. 2010. On dual decomposition and linear programming relaxations for natural language processing. In <i>Proceedings ofthe 2010 Conference on Empirical Methods in Natural Language Processing, </i>pages 1-11, Cambridge, MA, October. Association for Computational Linguistics.</p><p>David A. Smith and Jason Eisner. 2008. Dependency parsing by belief propagation. In <i>Proceedings ofthe Conference on Empirical Methods in Natural Lan­guage Processing, </i>EMNLP '08, pages 145-156.</p><p>David Sontag, Talya Meltzer, Amir Globerson, Tommi Jaakkola, and Yair Weiss. 2008. Tightening LP relax­ations for MAP using message passing. In <i>Proceed­ings of the 24th Conference on Uncertainty in Artifi­cial Intelligence, </i>pages 503-510.</p><p>Christoph Tillmann and Hermann Ney. 2003. Word re­ordering and a dynamic programming beam search al­gorithm for statistical machine translation. <i>Computa­tional Linguistics, </i>29:97-133, March.</p><p>Christoph Tillmann. 2006. Efficient dynamic pro­gramming search algorithms for phrase-based SMT.</p><page local="12" global="37"/><p>In <i>Proceedings ofthe Workshop on Computationally Hard Problems and Joint Inference in Speech and Lan­guage Processing, </i>CHSLP '06, pages 9-16.</p><p>Roy W. Tromble and Jason Eisner. 2006. A fast finite-state relaxation method for enforcing global con­straints on sequence decoding. In <i>Proceedings of the main conference on Human Language Technology Conference ofthe North American Chapter ofthe As­sociation ofComputational Linguistics, </i>HLT-NAACL '06, pages 423-430, Stroudsburg, PA, USA. Associa­tion for Computational Linguistics.</p><p>Martin Wainwright, Tommi Jaakkola, and Alan Will-sky. 2005. MAP estimation via agreement on trees: Message-passing and linear programming. In <i>IEEE Transactions on Information Theory, </i>volume 51, pages 3697-3717.</p><p>Mikhail Zaslavskiy, Marc Dymetman, and Nicola Can-cedda. 2009. Phrase-based statistical machine transla­tion as a traveling salesman problem. In <i>Proceedings ofthe Joint Conference ofthe 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing ofthe AFNLP: Volume 1 - Volume 1, </i>ACL '09, pages 333-341, Stroudsburg, PA, USA. Association for Computational Linguistics.</p></references></body></article>