<?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="1373"/><title>Hierarchical Phrase-based Translation Representations</title><pubinfo>C T C Lf. Lp, Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 1373-1383, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Iglesias" givenname="Gonzalo"><org  name="University of Caen" country="France" city="Caen"/></author><author surname="Allauzen" givenname="Cyril"><org  name="University of Caen" country="France" city="Caen"/></author><author surname="Byrne" givenname="William"><org  name="University of Caen" country="France" city="Caen"/></author><author surname="de Gispert" givenname="Adrià"><org  name="University of Caen" country="France" city="Caen"/></author><author surname="Riley" givenname="Michael"><org  name="University of Caen" country="France" city="Caen"/></author></firstpageheader><frontmatter><p><b>Hierarchical Phrase-Based Translation Representations</b></p><p><b>Gonzalo Iglesias*    Cyril Allauzen*    William Byrne* Adrià de Gispert*     Michael Riley*</b></p><p>^Department of Engineering, University of Cambridge, Cambridge, CB2 1PZ, U.K. {gi212,wjb31,ad4 65}@eng.cam.ac.uk t Google Research, 76 Ninth Avenue, New York, NY 10011 {allauzen,riley}@google.com</p></frontmatter><abstract>This paper compares several translation rep­resentations for a synchronous context-free grammar parse including CFGs/hypergraphs, finite-state automata (FSA), and pushdown automata (PDA). The representation choice is shown to determine the form and complex­ity of target LM intersection and shortest-path algorithms that follow. Intersection, shortest path, FSA expansion and RTN replacement al­gorithms are presented for PDAs. Chinese-to-English translation experiments using HiFST and HiPDT, FSA and PDA-based decoders, are presented using admissible (or exact) search, possible for HiFST with compact SCFG rulesets and HiPDT with compact LMs. For large rulesets with large LMs, we intro­duce a two-pass search strategy which we then analyze in terms of search errors and transla­tion performance. </abstract></header><body><section number="1" title="Introduction"><p>Hierarchical phrase-based translation, using a <i>syn­chronous context-free translation grammar </i>(SCFG) together with an n-gram target language model (LM), is a popular approach in machine transla­tion (Chiang, 2007). Given a SCFG <i>G </i>and an <i>n-</i>gram language model M, this paper focuses on how to <i>decode </i>with them, i.e. how to apply them to the source text to generate a target translation. Decod­ing has three basic steps, which we first describe in terms of the formal languages and relations in­volved, with data representations and algorithms to follow.</p><p>1. <i>Translating the source sentence s with G to give target translations: </i><i>T</i><i> </i><i>= </i><i>{s}</i><i> </i>o <i>Q. </i>a (weighted) context-free language resulting from the composition of a finite language and the algebraic relation <i>Q </i>for SCFG <i>G.</i><i></i></p><p><i>2. Applying the language model to these target translations: </i><i>C = TnM, </i>a (weighted) context-free language resulting from the intersection of a context-free language and the regular lan­guage <i>M </i>for <i>M.</i></p><p>3. <i>Searching for the translation and language model combination with the highest-probablity path: </i>£ = argmaxie£_L</p><p>Of course, decoding requires explicit data represen­tations and algorithms for combining and searching them. In common to the approaches we will con­sider here, <i>s </i>is applied to <i>G </i>by using the CYK algo­rithm in Step 1 and <i>M </i>is represented by a finite au­tomaton in Step 2. The choice of the representation of T in many ways determines the remaining de­coder representations and algorithms needed. Since <i>{s}</i><i> </i>is a finite language and we assume through­out that <i>G </i>does not allow unbounded insertions. <i>T </i>and are, in fact, regular languages. As such. and have finite automaton representations T/ and In this case, weighted finite-state intersec­tion and single-source shortest path algorithms (us­ing negative log probabilities) can be used to solve Steps 2 and 3 (Mohri, 2009). This is the approach taken in (Iglesias et al, 2009a; de Gispert et al.. 2010). Instead T and <i>C </i>can be represented by <i>hy-pergraphs </i>and (or very similarly context-free rules, and-or trees, or deductive systems). In this case, hypergraph intersection with a finite automa­ton and hypergraph shortest path algorithms can be used to solve Steps 2 and 3 (Huang, 2008). This is the approach taken by Chiang (2007). In this paper, we will consider another representation for context-free languages T and <i>C </i>as well, <i>pushdown automata </i>(PDA) <i>Tp </i>and <i> </i>familiar from formal language theory (Aho and Ullman, 1972).<page local="2" global="1374"/> We will describe PDA intersection with a finite automaton and PDA shortest-path algorithms in Section 2 that can be used to solve Steps 2 and 3. It cannot be over-emphasized that the CFG, hypergraph and PDA representations of T are used for their compactness rather than for expressing non-regular languages.</p><p>As presented so far, the search performed in Step 3 is <i>admissible </i>(or <i>exact) - </i>the true shortest path is found. However, the search space in MT can be quite large. Many systems employ aggressive prun­ing during the shortest-path computation with little theoretical or empirical guarantees of correctness. Further, such pruning can greatly complicate any complexity analysis of the underlying representa­tions and algorithms. In this paper, we will exclude any inadmissible pruning in the shortest-path algo­rithm itself. This allows us in Section 3 to compare the computational complexity of using these differ­ent representations. We show that the PDA represen­tation is particularly suited for decoding with large SCFGs and compact LMs.</p><p>We present Chinese-English translation results under the FSA and PDA translation representations. We describe a two-pass translation strategy which we have developed to allow use of the PDA repre­sentation in large-scale translation. In the first pass, translation is done using a lattice-generating version of the shortest path algorithm. The full translation grammar is used but with a compact, entropy-pruned version (Stolcke, 1998) of the full language model. This first-step uses admissible pruning and lattice generation under the compact language model. In the second pass, the original, unpruned LM is simply applied to the lattices produced in the first pass. We find that entropy-pruning and first-pass translation can be done so as to introduce very few search errors in the overall process; we can identify search errors in this experiment by comparison to exact transla­tion under the full translation grammar and language model using the FSA representation. We then inves­tigate a translation grammar which is large enough that exact translation under the FSA representation is not possible. We find that translation is possible using the two-pass strategy with the PDA translation representation and that gains in BLEU score result from using the larger translation grammar.</p><subsection number="1.1" title="Related Work"><p>There is extensive prior work on computational ef­ficiency and algorithmic complexity in hierarchical phrase-based translation. The challenge is to find al­gorithms that can be made to work with large trans­lation grammars and large language models.</p><p>Following the original algorithms and analysis of Chiang (2007), Huang and Chiang (2007) devel­oped the cube-growing algorithm, and more recently Huang and Mi (2010) developed an incremental de­coding approach that exploits left-to-right nature of the language models.</p><p>Search errors in hierarchical translation, and in translation more generally, have not been as exten­sively studied; this is undoubtedly due to the diffi­culties inherent in finding exact translations for use in comparison. Using a relatively simple phrase-based translation grammar, Iglesias et al. (2009b) compared search via cube-pruning to an exact FST implementation (Kumar et al., 2006) and found that cube-pruning suffered significant search errors. For Hiero translation, an extensive comparison of search errors between the cube pruning and FSA imple­mentation was presented by Iglesias et al. (2009a) and de Gispert et al. (2010). Relaxation techniques have also recently been shown to finding exact so­lutions in parsing (Koo et al., 2010) and in SMT with tree-to-string translation grammars and trigram language models (Rush and Collins, 2011), much smaller models compared to the work presented in this paper.</p><p>Although entropy-pruned language models have been used to produce real-time translation sys­tems (Prasad et al., 2007), we believe our use of entropy-pruned language models in two-pass trans­lation to be novel. This is an approach that is widely-used in automatic speech recognition (Ljolje et al.. 1999) and we note that it relies on efficient represen­tation of very large search spaces T for subsequent rescoring, as is possible with F S As and PDAs.</p></subsection></section><section number="2" title="Pushdown Automata"><p>In this section, we formally define pushdown au­tomata and give intersection, shortest-path and re­lated algorithms that will be needed later.</p><p>Informally, pushdown automata are finite au­tomata that have been augmented with a stack. Typ-<page local="3" global="1375"/></p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">a</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">(a) (b)</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">(c) (d)</doubt><p>Figure 1: PDA Examples: (a) Non-regular PDA accept­ing <i>{anbn\n </i>G N}. (b) Regular (but not bounded-stack) PDA accepting <i>a*b*. </i>(c) Bounded-stack PDA accepting <i>a*b* </i>and (d) its expansion as an FSA.</p><p>ically this is done by adding a stack alphabet and la­beling each transition with a stack operation (a stack symbol to be pushed onto, popped or read from the stack) in additon to the usual input label (Aho and Ullman, 1972; Berstel, 1979) and weight (Kuich and Salomaa, 1986; Petre and Salomaa, 2009). Our equivalent representation allows a transition to be la­beled by a stack operation or a regular input symbol but not both. Stack operations are represented by pairs of open and close parentheses (pushing a sym­bol on and popping it from the stack). The advantage of this representation is that is identical to the finite automaton representation except that certain sym­bols (the parentheses) have special semantics. As such, several finite-state algorithms either immedi­ately generalize to this PDA representation or do so with minimal changes. The algorithms described in this section have been implemented in the PDT ex­tension (Allauzen and Riley, 2011) of the OpenFst library (Allauzen et al, 2007).</p><subsection number="2.1" title="Definitions"><p>A (restricted) Dyck language consist of "well-formed" or "balanced" strings over a finite num­ber of pairs of parentheses. Thus the string ([()()]{}[])() is m the Dyck language over 3 pairs of parentheses.</p><p>More formally, let <i>A </i>and <i>A </i>be two finite alpha­bets such that there exists a bijection / from <i>A </i>to <i>A.</i><i> </i>Intuitively, / maps an open parenthesis to its cor­responding close parenthesis. Let <i>a </i>denote /(a) if a G <i>A</i><i> </i>and <i>f~<footnote anchor="1"/>(a)</i><i> </i>if <i>a </i>G <i>A. </i>The <i>Dyck language </i><i>D</i><i>a</i><i> </i>over the alphabet <i>A = A </i>U <i>A </i>is then the lan­guage defined by the following context-free gram­mar: <i>S —&gt; </i>e, <i>S —&gt; </i><i>SS</i><i> </i>and <i>S</i><i> </i><i>—&gt;</i><i> </i><i>aSä</i><i> </i>for all <i>a </i>G <i>A. </i>We define the mapping <i>ca </i>: <i>A*</i><i> </i><i>—&gt;•</i><i> </i><i>A*</i><i> </i>as follow. <i>ca{x) </i>is the string obtained by iteratively deleting from <i>x </i>all factors of the form <i>aa </i>with <i>a </i>G <i>A. </i>Ob­serve that <i>Da </i><i>=</i><i> </i><i>c~A</i><i> </i><footnote anchor="1"/> (e).</p><p>Let <i>A </i>and <i>B </i>be two finite alphabets such that <i>B </i>ç <i>A, </i>we define the mapping <i>vb </i><i>'■</i><i> </i><i>A*</i><i> </i><i>—</i>&gt;• <i>B* </i>by <i>rB{x\</i><i> </i><i>...xn)=yi...yn</i><i> </i>with ^ = <i>Xi</i><i> </i>if <i>Xi</i><i> </i>G <i>B</i><i> </i>and <i>Vi = e </i>otherwise.</p><p>A <i>weighted pushdown automaton </i>(PDA) <i>T </i>over the tropical semiring (R U {oo}, min, +, oo, 0) is a 9-tuple (E, II, LÎ, <i>Q, E, </i>L_F, p) where E is the fi­nite input alphabet, IT and II are the finite open and close parenthesis alphabets, <i>Q </i>is a finite set of states. <i>I </i><i>eQ </i>the initial state, <i>F </i>ç <i>Q </i>the set of final states. £CQx(EuflU {e}) x (R U {oo}) x <i>Q </i>a fi­nite set of transitions, and <i>p : </i><i>F </i>—&gt;• RU{oo}the final weight function. Let e = <i>(p[e\,</i><i> </i><i>i[e],</i><i> </i><i>w[e],</i><i> </i><i>n[e\)</i><i> </i>denote a transition in <i>E.</i></p><p>A path 7T is a sequence of transitions <b><i>tt </i></b><i>= e\... en</i>such that <i>n[ei]</i><i> </i><i>=p[ei+i]</i><i> </i>for 1 &lt; <i>i &lt; n. </i>We then de­fine <i>p[</i><b><i>tt</i></b><i>]</i><i> </i><i>=p[ei],</i><i> n[7r] </i><i>=n[en],</i><i> </i><i>i[7r]</i><i> </i><i>=i[ei]</i><i> </i><i>•••i[en],</i><i> </i>and <b><i>w[tt</i></b><i>]</i><i> </i><i>=w[e\]</i><i> </i>+ ... + <i>w[en].</i></p><p>A path 7T is accepting if <i>p[ir] = I </i>and n[7r] G <i>F. </i>A path 7T is balanced if rjj(i[7r]) G <i>Du- </i>A balanced path 7T accepts the string <i>x </i>G E* if it is a balanced accepting path such that <i>r-z(i[jr])</i><i> </i><i>=</i><i> </i><i>x.</i></p><p>The <i>weight associated by T </i>to a string <i>x </i>G E* is <i>T(x)</i><i> </i><i>=</i><i> </i>min^p^) <b><i>w[tt] </i></b>+ <i>p{n[n})</i><i> </i>where <i>P{x)</i><i> </i>denotes the set of balanced paths accepting <i>x.</i><i> </i>A weighted language is recognizable by a weighted pushdown automaton iff it is context-free. We de­fine the <i>size </i>of <i>T </i>as |T| = |Q| + |£|.</p><p>A PDA <i>T </i>has <i>a bounded stack </i>if there exists <i>K </i>G N such that for any sub-path 7r of any balanced path inT: |cn(?"fj(î[vr]))| &lt; <i>K.</i><i> </i>If <i>T</i>has abounded stack then it represents a regular language. Figure 1 shows non-regular, regular and bounded-stack PDAs.</p><p>A <i>weightedfinite automaton </i>(FSA) can be viewed as a PDA where the open and close parentheses al­phabets are empty, see (Mohri, 2009) for a stand­alone definition.</p><page local="4" global="1376"/></subsection><subsection number="2.2" title="Expansion Algorithm"><p>Given a bounded-stack PDA T, the <i>expansion </i>of <i>T </i>is the FSA <i>T' </i>equivalent to <i>T </i>defined as follows.</p><p>A state in <i>T' </i>is a pair <i>(q,</i><i> </i><i>z)</i><i> </i>where <i>q</i><i> </i>is a state in <i>T</i><i> </i>and 2 G II*. A transition <i>a,</i><i> </i><i>w,</i><i> </i><i>q')</i><i> </i>in T results in a transition ((g, <i>z),a',</i><i> </i><i>w,</i><i> (q', </i><i>z<footnote anchor="1"/>))</i><i> </i>in <i>T' </i>only when: (a) a G S U {e}, = <i>z</i><i> </i>and a' = a, (b) <i>a&lt;EH,</i><i> z' = </i><i>za</i><i> </i>and a' = e, or (c) a G n, <i>z'</i><i> </i>is such that <i>z = z'a </i>and <i>a'</i><i> = e. </i>The initial state of <i>T' </i>is /' = <i>(I,</i><i> </i>e). A state <i>(q,</i><i> </i><i>z)</i><i> </i>in T' is final if <i>q</i><i> </i>is final in <i>T</i><i> </i>and 2 = e <i>(p'((q,</i><i> </i>e)) = p(&lt;?)). The set of states of T" is the set of pairs (g, <i>z)</i><i> </i>that can be reached from an initial state by transitions defined as above. The condition that <i>T </i>has a bounded stack ensures that this set is finite (since it implies that for any <i>(q,</i><i> </i><i>z),</i><i> </i><i>\z\</i><i> </i><i>&lt;</i><i> </i><i>K).</i></p><p>The complexity of the algorithm is linear in <i>0{\T'\)</i><i> </i><i>=</i><i> </i>0(elTl). Figure Id show the result of the algorithm when applied to the PDA of Figure lc.</p></subsection><subsection number="2.3" title="Intersection Algorithm"><p>The class of weighted pushdown automata is closed under intersection with weighted finite automata (Bar-Hillel et al, 1964; Nederhof and Satta, 2003). Considering a pair <i>T2)</i><i> </i>where one element is an FSA and the other element a PDA, then there exists a PDA Ti nT2, the <i>intersection </i>of <i>T\ </i>and <i>T2, </i>such that for all <i>x</i><i> </i>G X*: <i>(T1nT2)(x)</i><i> </i><i>=</i><i> </i><i>T1(x)+T2(x).</i><i> </i>We assume in the following that <i>T2 </i>is an FSA. We also assume that <i>T2 </i>has no input-e transitions. When <i>T2 </i>has input-e transitions, an epsilon filter (Mohri. 2009; Allauzen et al, 2011) generalized to handle parentheses can be used.</p><p>A state in <i>T = T\C\T2 </i>is a pair <i>(qi,q2)</i><i> </i>where <i>q\ </i>is a state of <i>T\</i><i> </i>and <i>q2 </i>a state of <i>T2. </i>The initial state is <i>I=(Ii,I2).</i><i> </i>Given a transition <i>e\ = </i><i>(qi,a,</i><i> Wi,q'{) </i>in <i>T\, </i>transitions out of <i>{q\,</i><i> </i><i>q2)</i><i> </i>in <i>T</i><i> </i>are obtained using the following rules.</p><p>If <i>a </i>G X, then <i>e\ </i>can be matched with a tran­sition <i>(q2,a,w2,q2)</i><i> </i>in <i>T2 </i>resulting a transition <i>((qi,q2),a,wi+w2,(q'1,q'2))</i><i> </i>in <i>T.</i></p><p>If <i>a = </i>e, then <i>e\ </i>is matched with staying in <i>q2</i>resulting in a transition <i>((qi,</i><i> </i><i>q2),</i><i> </i>e, <i>W\,</i><i> </i><i>{q^q^).</i></p><p>Finally, if a G TI, <i>e\ </i>is also matched with staying in <i>q2, </i>resulting in a transition <i>{(qi,</i><i> </i><i>q2),</i><i> </i><i>a,</i><i> </i><i>Wi,(q[,q2))</i><i> </i>in <i>T.</i></p><p>A state <i>(qi,q2)</i><i> </i>in <i>T </i>is final when both <i>q\ </i>and <i>q2</i>are final, and then <i>p((qu</i><i> </i><i>q2))</i><i> </i><i>=</i><i> </i><i>p\{qi)+p2{q2).</i></p><p>ShortestDistance(T) 1 for each <i>q € Q </i>and <i>a </i>€ II do</p><doubt alpha="33.3" length="9" tooSmall="False" monospace="0.0">2B[g,a]^0</doubt></subsection></section><section number="3" title="GETDlSTANCE(T, I)"><p>4 return <i>d[f,</i><i> </i><i>I]</i></p><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">RELAX(g,s, w,5)</doubt><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">1ifd[q, s] &gt; wthen</doubt><doubt alpha="33.3" length="6" tooSmall="False" monospace="0.0">2s]4—w</doubt><doubt alpha="66.7" length="12" tooSmall="False" monospace="0.0">3ifq ^ Sthen</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">4 Enqueue(5,&lt;j)</doubt><p>GetDistance(T, <i>s)</i> 1 for each <i>q </i>€ Q do</p><doubt alpha="33.3" length="9" tooSmall="False" monospace="0.0">2s] «— oc</doubt><doubt alpha="30.0" length="10" tooSmall="False" monospace="0.0">3d[s,s]+-0</doubt><doubt alpha="33.3" length="6" tooSmall="False" monospace="0.0">45S&lt;-s</doubt><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">5 while 5^0do</doubt><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">6g -s—Head(5s)</doubt></section><section number="7" title="Dequeue(S s )"><p>8 for each <i>e</i><i> </i><i>&lt;E</i><i> E[q] </i>do</p></section><section number="9" title="ifi[e] GSUjf)  then"><doubt alpha="46.9" length="32" tooSmall="False" monospace="0.0">10 relax(n[e],s,d[g,s] +w[e],Ss)</doubt><doubt alpha="66.7" length="21" tooSmall="False" monospace="0.0">11elseifi[e] € IIthen</doubt><doubt alpha="40.0" length="25" tooSmall="False" monospace="0.0">12 S[s,ïR]&lt;-B[s,ï\e\]U{e}</doubt></section><section number="13" title="elseifi [e] G II then"><p>14 if d[n[e], <i>n[e]] </i>is undefined then</p></section><section number="15" title="GetDistance(T, n[e\)"><doubt alpha="53.3" length="30" tooSmall="False" monospace="0.0">16foreach e' G ß[n[e], i[e]]do</doubt><doubt alpha="31.0" length="42" tooSmall="False" monospace="0.0">17w ^- d[g,s]+w[e] + d[p[e'],n[e\] + w[e'}</doubt><doubt alpha="45.5" length="22" tooSmall="False" monospace="0.0">18 relax(n[e'],s,w,5s)</doubt><p>Figure 2: PDA shortest distance algorithm. We assume that <i>F = </i>{/} and p(/) = 0 to simplify the presentation.</p><p>The complexity of the algorithm is in <i>O ( | T\ \ \ T2 \ ).</i></p><subsection number="2.4" title="Shortest Distance and Path Algorithms"><p>A <i>shortest path </i>in a PDA <i>T </i>is a balanced accepting path with minimal weight and the <i>shortest distance </i>in <i>T </i>is the weight of such a path. We show that when <i>T </i>has a bounded stack, shortest distance and short­est path can be computed in <i>0(\T\<footnote anchor="3"/></i><i> </i>log |T|) time (assuming <i>T</i><i> </i>has no negative weights) and <i>0{\T\<footnote anchor="2"/>)</i><i> </i>space.</p><p>Given a state <i>s </i>in <i>T </i>with at least one incoming open parenthesis transition, we denote by <i>Cs </i>the set of states that can be reached from s by a balanced path. If <i>s </i>has several incoming open parenthesis transitions, a naive implementation might lead to the states in <i>Cs </i>to be visited up to exponentially many times. The basic idea of the algorithm is to memo-ize the shortest distance from <i>s </i>to states in <i>Cs. </i>The pseudo-code is given in Figure 2.<page local="5" global="1377"/></p><p>GetDi stance (T, <i>s)</i><i> </i>starts a new instance of the shortest-distance algorithm from <i>s </i>using the queue <i>Ss,</i><i> </i>initially containing <i>s.</i><i> </i>While the queue is not empty, a state is dequeued and its outgoing transi­tions examined (line 5-9). Transitions labeled by non-parenthesis are treated as in Mohri (2009) (line 9-10). When the considered transition e is labeled by a close parenthesis, it is remembered that it balances all incoming open parentheses in <i>s</i><i> </i>labeled by <i>i[e]</i><i> </i>by adding e to <i>B[s,</i><i> </i><i>i[e\]</i><i> </i>(line 11-12). Finally, when e is labeled with an open parenthesis, if its destina­tion has not already been visited, a new instance is started from <i>n[e]</i><i> </i>(line 14-15). The destination states of all transitions balancing e are then relaxed (line 16-18).</p><p>The space complexity of the algorithm is quadratic for two reasons. First, the number of non-infinity <i>d[q,s]</i><i> </i>is <i>\Q\<footnote anchor="2"/>.</i><i> </i>Second, the space re­quired for storing <i>B</i><i> </i>is at most in <i>0{\E\<footnote anchor="2"/>)</i><i> </i>since for each open parenthesis transition e, the size of £&gt;[n[e],<i>i[e]]\</i><i> </i>is 0(|£7|) in the worst case. This last observation also implies that the cumulated number of transitions examined at line 16 is in <i>0(N\Q\</i><i> </i><i>\E\<footnote anchor="2"/>)</i><i> </i>in the worst case, where <i>N</i><i> </i>denotes the maximal number of times a state is inserted in the queue for a given call of GetDistance. As­suming the cost of a queue operation is <i>T(n)</i><i> </i>for a queue containing <i>n </i>elements, the worst-case time complexity of the algorithm can then be expressed as <i>0(N\T\<footnote anchor="3"/></i><i> </i>r(|T|)). When <i>T</i><i> </i>contains no negative weights, using a shortest-first queue discipline leads to a time complexity in <i>0(\T\<footnote anchor="3"/></i><i> </i>log |T|). When all the <i>Cs</i>'s are acyclic, using a topological order queue discipline leads to a 0(|T|<footnote anchor="3"/>) time complexity.</p><p>In effect, we are solving a fc-sources shortest-path problem with <i>k </i>single-source solutions. A po­tentially better approach might be to solve the <i>k-</i><i></i>sources or A;-pairs problem directly (Hershberger et al., 2003).</p><p>When <i>T </i>has been obtained by converting an RTN or an hypergraph into a PDA (Section 2.5), the poly­nomial dependency in |T| becomes a linear depen­dency both for the time and space complexities. In­deed, for each <i>q </i>in T, there exists a unique <i>s </i>such that <i>d[q,</i><i> </i><i>s]</i><i> </i>is non-infinity. Moreover, for each close parenthesis transistion e, there exists a unique open parenthesis transition <i>ê</i><i> </i>such that e G £&gt;[n[e'], <i>i[e'}}.</i></p><p>When each component of the RTN is acyclic, the complexity of the algorithm is hence in 0(|T|) in time and space.</p><p>The algorithm can be modified to compute the shortest path by keeping track of parent pointers.</p></subsection><subsection number="2.5" title="Replacement Algorithm"><p>A <i>recursive transition network </i>(RTN) can be speci­fied by <i>(N,</i><i> </i>E, <i>(T</i><i>u)uen, </i><i>S)</i><i> </i>where <i>N</i><i> </i>is an alphabet of nonterminals, E is the input alphabet, <i>{T</i><i>v)v</i><i>^n </i>is a family of FSAs with input alphabet SUl, and <i>S </i>G <i>N </i>is the root nonterminal.</p><p>A string <i>x </i>G E* is accepted by <i>R </i>if there exists an accepting path <b><i>tt </i></b>in <i>Ts </i>such that recursively re­placing any transition with input label <i>v </i>G <i>N </i>by an accepting path in <i>Tv </i>leads to a path <b><i>tt* </i></b>with input <i>x.</i><i> </i>The weight associated by <i>R </i>is the minimum over all such 7T* of <i>w[7r*]+ps(n[7r*}).</i></p><p>Given an RTN <i>R, </i>the <i>replacement </i>of <i>R </i>is the PDA <i>T </i>equivalent to <i>R </i>defined by the 9-tuple (E, n, ÎÎ, <i>Q,</i><i> </i><i>E,</i><i> </i><i>I,</i><i> </i><i>F,</i><i> a, </i><i>p)</i><i> </i>with <i>U</i><i> </i><i>=</i><i> </i><i>Q</i><i> </i><i>=</i><i> </i><i>[j^N</i><i> </i><i>Qv,</i><i> </i><i>I</i><i> </i><i>=</i><i> </i><i>Is,F</i><i> </i><i>=</i><i> </i><i>Fs,p</i><i> = ps, </i>and <i>E = \JveN \JeeEv Ee</i>where <i>Ee = </i>{e} if <i>i[e\_ g N </i>and <i>Ee = {{'p </i>[e], <i>n </i>[e], <i>w </i>[e], <i>Iß</i><i> </i><i>),</i><i> </i>(/, <i>n</i><i> </i>[e], <i>pß</i><i> </i><i>(</i><i> </i><i>/),</i><i> </i><i>n</i><i> </i>[e] ) | / G <i>Fß</i><i> </i><i>}</i><i> </i>with <i>ß</i><i> </i><i>=</i><i> </i><i>i[e]EN</i><i> </i>otherwise.</p><p>The complexity of the construction is in 0(|T|). If <i>\FV\ = </i>1, then |T| = 0(£,eW <i>\TV\) = </i><i>0{\R\).</i><i> </i>Creating a superfinal state for each <i>Tv </i>would lead to a <i>T </i>whose size is always linear in the size of <i>R.</i></p></subsection></section><section number="3" title="Hierarchical Phrase-Based Translation Representation"><p>In this section, we compare several different repre­sentations for the target translations T of the source sentence <i>s </i>by synchronous CFG G prior to language model <i>M </i>application. As discussed in the introduc­tion, T is a context-free language. For example, sup­pose it corresponds to:</p><p><i>S^abXdg,</i><i> </i><i>S^acXfg,</i><i> </i>and <i>X—&gt;bc.</i></p><p>Figure 3 shows several alternative representations of T: Figure 3a shows the hypergraph representation of this grammar; there is a 1:1 correspondence between each production in the CFG and each hyperedge in the hypergraph. Figure 3b shows the RTN represen­tation of this grammar with a 1:1 correspondence be­tween each production in the CFG and each path in the RTN; this is the translation representation pro-<page local="6" global="1378"/></p><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">(b) RTN</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">(d) FSA</doubt><p>Figure 3 : Alternative translation representations duced by the HiFST decoder (Iglesias et al, 2009a; de Gispert et al., 2010). Figure 3c shows the push­down automaton representation generated from the RTN with the replacement algorithm of Section 2.5. Since s is a finite language and <i>G </i>does not allow unbounded insertion, <i>Tp </i>has a bounded stack and <i>T </i>is, in fact, a regular language. Figure 3d shows the finite-state automaton representation of T gen­erated by the PDA using the expansion algorithm of Section 2.2. The HiFST decoder converts its RTN translation representation immediately into the finite-state representation using an algorithm equiv­alent to converting the RTN into a PDA followed by PDA expansion.</p><p>As shown in Figure 4, an advantage of the RTN. PDA, and FSA representations is that they can bene­fit from FSA epsilon removal, determinization and minimization algorithms applied to their compo­nents (for RTNs and PDAs) or their entirety (for FSAs). For the complexity discussion below, how­ever, we disregard these optimizations. Instead we focus on the complexity of each MT step described in the introduction:</p><p>1. <i>SCFG Translation: </i>Assuming that the parsing of the input is performed by a CYK parse, then the CFG, hypergraph, RTN and PDA représentations can be generated in 0(|s|<footnote anchor="3"/>|G|) time and space (Aho and Ullman, 1972). The FSA rep­resentation can require an additional 0(e'sl lGl) time and space since the PDA expansion can be exponential.</p><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">te) FSA</doubt><figure caption="Figure 4: Optimized translation representations"></figure><p>2. <i>Intersection: </i>The intersection of a CFG <i>T^</i><i> </i>with a finite automaton <i>M </i>can be performed by the classical Bar-Hillel algorithm (Bar-Hillel et al, 1964) with time and space complex­ity <i>0(\Th\\M\<footnote anchor="3"/>)<footnote anchor="1"/></i><i> </i>The PDA intersection algo­rithm from Section 2.3 has time and space com­plexity <i>0(\Tp\\M\).</i><i> </i>Finally, the FSA intersec­tion algorithm has time and space complexity <i>0{\Tf\\M\)</i><i> </i>(Mohri, 2009).</p><p>3. <i>Shortest Path: </i>The shortest path algorithm on the hypergraph, RTN, and FSA representations requires linear time and space (given the under­lying acyclicity) (Huang, 2008; Mohri, 2009). As presented in Section 2.4, the PDA rep­resentation can require time cubic and space quadratic in <i>\M\.<footnote anchor="2"/></i></p><p>Table 1 summarizes the complexity results. Note the PDA representation is equivalent in time and su­perior in space to the CFG/hypergraph representa­tion, in general, and it can be superior in both space</p><p>'The modified Bar-Hillel construction described by Chi­ang (2007) has time and space complexity 0(|T)j||M|<footnote anchor="4"/>); the modifications were introduced presumably to benefit the subse­quent pruning method employed (but see Huang et al. (2005)).</p><footnote label="2">The time (resp. space) complexity is not cubic (resp. quadratic) in |T P ||M|. Given a state q in T p , there exists a unique s q  such that q belongs to C Sq . Given a state (91,92) in T p nM, (91,92) G C(si,s 2 ) onr y if -si = s qi , and hence (91,92) belongs to at most \M\ components.</footnote><page local="7" global="1379"/><p>Representation Time Complexity    Space Complexity</p><doubt alpha="45.2" length="42" tooSmall="False" monospace="0.0">CFG/hypergraph0(\s\3\G\|M|3)0(\s\3\G\|M|3)</doubt><doubt alpha="29.0" length="31" tooSmall="False" monospace="0.0">PDA0(\s\3\G\\M\3)0(\s\3\G\\M\2)</doubt><doubt alpha="44.1" length="34" tooSmall="False" monospace="0.0">FSA_IQ(e|s|3|G||M|)IQ(e|s|3|G||M|)</doubt><p>Table 1 : Complexity using various target translation rep­resentations.</p><p>and time to the FSA representation depending on the relative SCFG and LM sizes. The FSA representa­tion favors smaller target translation sets and larger language models. Should a better complexity PDA shortest path algorithm be found, this conclusion could change. In practice, the PDA and FSA rep­resentations benefit hugely from the optimizations mentioned above, these optimizations improve the time and space usage by one order of magnitude.</p></section><section number="4" title="Experimental Framework"><p>We use two hierarchical phrase-based SMT de­coders. The first one is a lattice-based decoder im­plemented with weighted finite-state transducers (de Gispert et al., 2010) and described in Section 3. The second decoder is a modified version using PDAs as described in Section 2. In order to distinguish both decoders we call them HiFST and HiPDT, re­spectively. The principal difference between the two decoders is where the finite-state <i>expansion </i>step is done. In HiFST, the RTN representation is immedi­ately expanded to an FSA. In HiPDT, this expansion is delayed as late as possible - in the output of the shortest path algorithm. Another possible configu­ration is to expand after the LM intersection step but before the shortest path algorithm; in practice this is quite similar to HiFST.</p><p>In the following sections we report experiments in Chinese-to-English translation. For translation model training, we use a subset of the GALE 2008 evaluation parallel text;<footnote anchor="3"/> this is 2.1M sentences and approximately 45M words per language. We re­port translation results on a development set <i>tune-nw </i>(1,755 sentences) and a test set <i>test-nw </i>(1,671 sen­tences). These contain translations produced by the GALE program and portions of the newswire sec­tions of MT02 through MT06. In tuning the sys-</p><footnote label="3">See http://projects.ldc.upenn.edu/gale/data/catalog.html . We excluded the UN material and the LDC2002E18, LDC2004T08, LDC2007E08 and CUDonga collections.</footnote><p>Table 2: Number of ngrams (in millions) in the 1st pass 4-gram language models obtained with different <i>0 </i>values (top row).</p><p>tems, standard MERT (Och, 2003) iterative param­eter estimation under IBM BLEU<footnote anchor="4"/> is performed on the development set.</p><p>The parallel corpus is aligned using MTTK (Deng and Byrne, 2008) in both source-to-target and target-to-source directions. We then follow stan­dard heuristics (Chiang, 2007) and filtering strate­gies (Iglesias et al., 2009b) to extract hierarchical phrases from the union of the directional word align­ments. We call a translation grammar the set of rules extracted from this process. We extract two transla­tion grammars:</p><p>• A restricted grammar where we apply the fol­lowing additional constraint: rules are only considered if they have a forward translation probability <i>p</i><i> </i>&gt; 0.01. We call this <i>G\.</i><i> </i>As will be discussed later, the interest of this grammar is that decoding under it can be exact, that is. without any pruning in search.</p><p>• An unrestricted one without the previous con­straint. We call this <i>G2.</i><i> </i>This is a superset of the previous grammar, and exact search under it is not feasible for HiFST: pruning is required in search.</p><p>The initial English language model is a Kneser-Ney 4-gram estimated over the target side of the par­allel text and the AFP and Xinhua portions of mono­lingual data from the English Gigaword Fourth Edi­tion (LDC2009T13). This is a total of 1.3B words. We will call this language model Mi. For large lan­guage model rescoring we also use the LM <i>M2 </i>ob­tained by interpolating Mi with a zero-cutoff stupid-backoff (Brants et al., 2007) 5-gram estimated using 6.6B words of English newswire text.</p><p>We next describe how we build translation sys­tems using entropy-pruned language models.</p><p>1. We build a baseline HiFST system that uses Mi and a hierarchical grammar <i>G,</i><i> </i>parameters be­ing optimized with MERT under BLEU.</p><footnote label="4">See ftp://jaguar.ncsl.nist.gov/mt/resources/mteval-vl3.pl</footnote><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>0</p></td><td class="cell"><p>7.5 x l(Ty</p></td><td class="cell"><p>7.5 x 1(TS</p></td><td class="cell"><p>7.5 x 1(T<footnote anchor="7"/></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>207.5</p></td><td class="cell"><p>20.2</p></td><td class="cell"><p>4.1</p></td><td class="cell"><p>0.9</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><page local="8" global="1380"/><p>2. We then use entropy-based pruning of the lan­guage model (Stolcke, 1998) under a relative perplexity threshold of <i>9 </i>to reduce the size of Mi. We will call the resulting language model as Mf. Table 2 shows the number of n-grams (in millions) obtained for different <i>9 </i>values.</p><p>3. We translate with Mf using the same param­eters obtained in MERT in step 1, except for the word penalty, tuned over the lattices under BLEU performance. This produces a transla­tion lattice in the topmost cell that contains hy­potheses with exact scores under the translation grammar and Mf.</p><p>4. Translation lattices in the topmost cell are pruned with a likelihood-based beam width <i>ß.</i></p><p>5. We remove the Mf scores from the pruned translation lattices and reapply Mi, moving the word penalty back to the original value ob­tained in MERT. These operations can be car­ried out efficiently via standard FSA opera­tions.</p><p>6. Additionally, we can rescore the translation lat­tices obtained in steps 1 or 5 with the larger language model <i>M2.</i><i> </i>Again, this can be done via standard FSA operations.</p><p>Note that if <i>ß = </i>oo or if <i>9 = </i>0, the translation lattices obtained in step 1 should be identical to the ones of step 5. While the goal is to increase <i>9 </i>to reduce the size of the language model used at Step 3, <i>ß </i>will have to increase accordingly so as to avoid pruning away desirable hypotheses in Step 4. If <i>ß </i>defines a sufficiently wide beam to contain the hypotheses which would be favoured by Mi, faster decoding with Mf would be possible without incurring search errors Mi. This is investigated next.</p></section><section number="5" title="Entropy-Pruned LM in Rescoring"><p>In Table 3 we show translation performance under grammar <i>G\ </i>for different values of <i>9.</i><i> </i>Performance is reported after first-pass decoding with Mf (see step 3 in Section 4), after rescoring with Mi (see step 5) and after rescoring with <i>M2 </i>(see step 6). The baseline (experiment number 1) uses <i>9 = 0 </i>(that is. Mi) for decoding.</p><p>Under translation grammar <i>G\,</i><i> </i>HiFST is able to generate an FSA with the entire space of possible candidate hypotheses. Therefore, any degradation in performance is only due to the Mf involved in decoding and the <i>ß </i>applied prior to rescoring.</p><p>As shown in row number 2, for <i>9 &lt; </i>1CT<footnote anchor="9"/> the system provides the same performance to the base­line when <i>ß </i>&gt; 8, while decoding time is reduced by roughly 40%. This is because Mf is 10% of the size of the original language model Mi, as shown in Table 2. As Mf is further reduced by increas­ing <i>9 </i>(see rows number 3 and 4), decoding time is also reduced. However, the beam width <i>ß </i>required in order to recover the good hypotheses in rescoring increases, reaching 12 for experiment 3 and 15 for experiment 4.</p><p>Regarding rescoring with the larger <i>M2 </i>(step 6 in Section 4), the system is also able to match the baseline performance as long as <i>ß </i>is wide enough, given the particular Mf used in first-pass decoding. Interestingly, results show that a similar <i>ß </i>value is needed when rescoring either with Mi or <i>M2.</i></p><p>The usage of entropy-pruned language models in­crements speed at the risk of search errors. For in­stance, comparing the outputs of systems 1 and 2 with <i>ß = </i>10 in Table 3 we find 45 different 1-best hy­potheses, even though the BLEU score is identical. In other words, we have 45 cases in which system 2 is not able to recover the baseline output because the lst-pass likelihood beam <i>ß </i>is not wide enough. Sim­ilarly, system 3 fails in 101 cases <i>(ß = </i>12) and sys­tem 4 fails in 95 cases. Interestingly, some of these sentences would require unpractically huge beams. This might be due to the Kneser-Ney smoothing, which interacts badly with entropy pruning (Chelba et al., 2010).</p></section><section number="6" title="Hiero with PDAs and FSAs"><p>In this section we contrast HiFST with HiPDT under the same translation grammar and entropy-pruned language models. Under the constrained grammar <i>G\ </i>their performance is identical as both decoders can generate the entire search space which can then be rescored with Mi or <i>M2 </i>as shown in the previous section.</p><p>Therefore, we now focus on the unconstrained grammar <i>G2,</i><i> </i>where exact search is not feasible for HiFST. In order to evaluate this problem, we run both decoders over <i>tune-nw, </i>restricting memory us­age to 10 gigabytes. If this limit is reached in decod-<page local="9" global="1381"/></p><p>Table 3: Results (lowercase IBM BLEU scores) under <i>G\</i><i> </i>with various <i>Mf </i>as obtained with several values of 0. Performance in subsequent rescoring with <i>M\</i><i> </i>and M2 after likelihood-based pruning of the translation lattices for various <i>ß </i>is also reported. Decoding time, in seconds/word over <i>test-nw, </i>refers strictly to first-pass decoding.</p><p>Table 4: Percentage of success in producing the 1-best translation under C?2 with various <i>Mf </i>when applying a hard memory limitation of 10 GB, as measured over <i>tune-nw </i>(1755 sentences). If decoder fails, we report what step was being done when the limit was reached. HiFST could be expanding into an FSA or composing the FSA with <i>Mf; </i>HiPDT could be PDA composing with <i>Mf </i>or PDA expanding into an FSA.</p><p>Table 5: HiPDT performance on grammar C?2 with 0 = 7.5 x 10 <b><i><footnote anchor="7"/>. </i></b>Exact search with HiFST is not possible under these conditions: pruning during search would be required.</p><p>ing, the process is killed<footnote anchor="5"/>. We report what internal decoding operation caused the system to crash. For HiFST, these include expansion into an FSA <i>(Ex­pand) </i>and subsequent intersection with the language model <i>(Compose). </i>For HiPDT, these include PDA intersection with the language model <i>(Compose) </i>and subsequent expansion into an FSA <i>(Expand), </i>using algorithms described in Section 2.</p><p>Table 4 shows the number of times each decoder succeeds in finding a hypothesis given the memory limit, and the operations being carried out when they fail to do so, when decoding with various <i>Mf. </i>With 0 = 7.5 x 10"<footnote anchor="9"/> (row 2), HiFST can only decode 218 sentences, while HiPDT succeeds in 703 cases. The differences between both decoders increase as the <i>Mf </i>is more reduced, and for <i>9 = </i>7.5 x 10~<footnote anchor="7"/> (row 4), HiPDT is able to perform exact search over all but three sentences.</p><footnote label="5">We used ulimit command. The experiment was carried out over machines with different configurations and load. There­fore, these numbers must be considered as approximate values.</footnote><p>Table 5 shows performance using the latter con­figuration (Table 4, row 4). After large language model rescoring, HiPDT improves 0.5 BLEU over baseline with <i>G\ </i>(Table 3, row 1).</p></section><section number="7" title="Discussion and Conclusion"><p>HiFST fails to decode mainly because the expansion into an FST leads to far too big search spaces (e.g. fails 938 times under <i>9 = </i>7.5 x 10"<footnote anchor="8"/>). If it suc­ceeds in expanding the search space into an FST, the decoder still has to compose with the language model, which is also critical in terms of memory usage (fails 536 times).<page local="10" global="1382"/> In contrast, HiPDT creates a PDA, which is a more compact representation of the search space and allows efficient intersection with the language model before expansion into an FST. Therefore, the memory usage is considerably lower. Nevertheless, the complexity of the language model is critical for the PDA intersection and very specially the PDA expansion into an FST (fails 403 times for 0 = 7.5 x 10"<footnote anchor="8"/>).</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>HiFST (Gi + Mf )</p></td><td class="cell"><p>+Mi</p></td><td class="cell"><p>+M2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>#</p></td><td class="cell"><p>0</p></td><td class="cell"><p><i>tune-nw</i></p></td><td class="cell"><p><i>test-nw</i></p></td><td class="cell"><p><i>time</i></p></td><td class="cell"><p><i>ß</i></p></td><td class="cell"><p><i>tune-nw</i></p></td><td class="cell"><p><i>test-nw</i></p></td><td class="cell"><p><i>tune-nw</i></p></td><td class="cell"><p><i>test-nw</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>1</b></p></td><td class="cell"><p><b>0</b>(Mi)</p></td><td class="cell"><p><b>34.3</b></p></td><td class="cell"><p><b>34.5</b></p></td><td class="cell"><p><b>0.68</b></p></td><td class="cell"><p><b><i>-</i></b></p></td><td class="cell"><p><b><i>-</i></b></p></td><td class="cell"><p><b><i>-</i></b></p></td><td class="cell"><p><b>34.8</b></p></td><td class="cell"><p><b>35.6</b></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>7.5 x l(Ty</p></td><td class="cell"><p>32.0</p></td><td class="cell"><p>32.8</p></td><td class="cell"><p>0.38</p></td><td class="cell"><p><i>10</i></p></td><td class="cell"><p>34.3</p></td><td class="cell"><p>34.5</p></td><td class="cell"><p>34.8</p></td><td class="cell"><p>35.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>9 </i>8</p></td><td class="cell"><p>34.9</p></td><td class="cell"><p>35.5</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>7.5 x 1(TS</p></td><td class="cell"><p>29.5</p></td><td class="cell"><p>30.0</p></td><td class="cell"><p>0.28</p></td><td class="cell"><p><i>12</i></p></td><td class="cell"><p>34.2</p></td><td class="cell"><p>34.5</p></td><td class="cell"><p>34.7</p></td><td class="cell"><p>35.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>9</i></p></td><td class="cell"><p>34.3</p></td><td class="cell"><p>34.4</p></td><td class="cell"><p>34.8</p></td><td class="cell"><p>35.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>8</p></td><td class="cell"><p>34.2</p></td><td class="cell"><p>35.1</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>7.5 x 1(TY</p></td><td class="cell"><p>26.0</p></td><td class="cell"><p>26.4</p></td><td class="cell"><p>0.20</p></td><td class="cell"><p>75</p></td><td class="cell"><p>34.2</p></td><td class="cell"><p>34.5</p></td><td class="cell"><p>34.7</p></td><td class="cell"><p>35.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>72</p></td><td class="cell"><p>34.4</p></td><td class="cell"><p>35.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><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><b>Exact search for </b><i>G2 + </i>Mf <b>with memory usage under 10 GB</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>#</p></td><td class="cell"><p>0</p></td><td class="cell"><p>HiFST</p></td><td class="cell"><p>HiPDT</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><b>Success</b></p></td><td class="cell"><p><b>Failure</b></p></td><td class="cell"><p><b>Success</b></p></td><td class="cell"><p><b>Failure</b></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></p></td><td class="cell"><p><i>Expand</i></p></td><td class="cell"><p><i>Compose</i></p></td><td class="cell"><p></p></td><td class="cell"><p><i>Compose</i></p></td><td class="cell"><p><i>Expand</i></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>7.5 x 10~y</p></td><td class="cell"><p>12</p></td><td class="cell"><p>51</p></td><td class="cell"><p>37</p></td><td class="cell"><p>40</p></td><td class="cell"><p>8</p></td><td class="cell"><p>52</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>7.5 x 10~<footnote anchor="8"/></p></td><td class="cell"><p>16</p></td><td class="cell"><p>53</p></td><td class="cell"><p>31</p></td><td class="cell"><p>76</p></td><td class="cell"><p>1</p></td><td class="cell"><p>23</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>7.5 x 10~Y</p></td><td class="cell"><p>18</p></td><td class="cell"><p>53</p></td><td class="cell"><p>29</p></td><td class="cell"><p>99.8</p></td><td class="cell"><p>0</p></td><td class="cell"><p>0.2</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>HiPDT <i>(G2 +</i></p></td><td class="cell"><p>Mf)</p></td><td class="cell"><p></p></td><td class="cell"><p>+Mi</p></td><td class="cell"><p>+M2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>0</p></td><td class="cell"><p><i>tune-nw</i></p></td><td class="cell"><p><i>test-nw</i></p></td><td class="cell"><p><i>ß</i></p></td><td class="cell"><p><i>tune-nw</i></p></td><td class="cell"><p><i>test-nw</i></p></td><td class="cell"><p><i>tune-nw</i></p></td><td class="cell"><p><i>test-nw</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>7.5 x <i>10-<footnote anchor="7"/></i></p></td><td class="cell"><p>25.7</p></td><td class="cell"><p>26.3</p></td><td class="cell"><p>15</p></td><td class="cell"><p>34.6</p></td><td class="cell"><p>34.8</p></td><td class="cell"><p>35.2</p></td><td class="cell"><p>36.1</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>With the algorithms presented in this paper, de­coding with PDAs is possible for any translation grammar as long as an entropy pruned LM is used. While this allows exact decoding, it comes at the cost of making decisions based on less complex LMs, although this has been shown to be an ad­equate strategy when applying compact CFG rule-sets. On the other hand, HiFST cannot decode under large translation grammars, thus requiring pruning during lattice construction, but it can apply an un-pruned LM in this process. We find that with care­fully designed pruning strategies, HiFST can match the performance of HiPDT reported in Table 5. But without pruning in search, expansion directly into an FST would lead to an explosion in terms of memory usage. Of course, without memory constraints both strategies would reach the same performance.</p><p>Overall, these results suggest that HiPDT is more robust than HiFST when using complex hierarchi­cal grammars. Conversely, FSTs might be more efficient for search spaces described by more con­strained hierarchical grammars. This suggests that a hybrid solution could be effective: we could use PDAs or FSTs e.g. depending on the number of states of the FST representing the expanded search space, or other conditions.</p></section><section number="8" title="Acknowledgments"><p>The research leading to these results has received funding from the European Union Seventh Frame­work Programme (FP7-ICT-2009-4) under grant agreement number 247762, and was supported in part by the GALE program of the Defense Advanced Research Projects Agency, Contract No.HROOll-06-C-0022, and a Google Faculty Research Award, May 2010.</p></section><references><p>Alfred V Aho and Jeffrey D. Ullman. 1972. <i>The Theory of Parsing, Translation and Compiling, </i>volume 1-2. Prentice-Hall.</p><p>Cyril Allauzen and Michael Riley, 2011. <i>Pushdown Transducers, </i>http://pdt.openfst.org.</p><p>Cyril Allauzen, Michael Riley, Johan Schalkwyk, Wo-jciech Skut, and Mehryar Mohri. 2007. OpenFst: A general and efficient weighted finite-state trans­ducer library. In <i>Proceedings of CIAA, </i>pages 11-23. http://www.openfst.org.</p><p>Cyril Allauzen, Michael Riley, and Johan Schalkwyk. 2011. Filters for efficient composition of weighted finite-state transducers. In <i>Proceedings of CIAA, </i>vol­ume 6482 of <i>INCS, </i>pages 28-38. Springer.</p><p>Y. Bar-Hillel, M. Perles, andE. Shamir. 1964. On formal properties of simple phrase structure grammars. In Y. Bar-Hillel, editor, <i>language and Information: Se­lected Essays on their Theory and Application, </i>pages 116-150. Addison-Wesley.</p><p>Jean Berstel. 1979. <i>Transductions and Context-Free languages. </i>Teubner.</p><p>Thorsten Brants, Ashok C. Popat, Peng Xu, Franz J. Och and Jeffrey Dean. 2007. Large language models in machine translation. In <i>Proceedings of EMNLP-ACL, </i>pages 858-867.</p><p>Ciprian Chelba, Thorsten Brants, Will Neveitt, and Peng Xu. 2010. Study on interaction between entropy prun­ing and kneser-ney smoothing. In <i>Proceedings of In­ter speech, </i>pages 2242-2245.</p><p>David Chiang. 2007. Hierarchical phrase-based transla­tion. <i>Computational linguistics, </i>33(2):201-228.</p><p>Adrià de Gispert, Gonzalo Iglesias, Graeme Blackwood. Eduardo R. Banga, and William Byrne. 2010. Hier­archical phrase-based translation with weighted finite state transducers and shallow-n grammars. <i>Computa­tional linguistics, </i>36(3).</p><p>Yonggang Deng and William Byrne. 2008. HMM word and phrase alignment for statistical machine transla­tion. <i>IEEE Transactions on Audio, Speech, and lan­guage Processing, </i>16(3)494-507.</p><p>Manfred Drosde, Werner Kuick, and Heiko Vogler, ed­itors. 2009. <i>Handbook of Weighted Automata. </i>Springer.</p><p>JohnHershberger, SubhashSuri, and AmitBhosle. 2003.</p><p>On the difficulty of some shortest path problems. In <i>Proceedings ofSTACS, </i>volume 2607 of <i>INCS, </i>pages</p><doubt alpha="65.3" length="72" tooSmall="False" monospace="0.0">343-354. Springer. Liang Huang and David Chiang. 2007. Forest rescoring:</doubt><p>Faster decoding with integrated language models. In <i>Proceedings of ACI, </i>pages 144-151.</p><page local="11" global="1383"/><p>Liang Huang and Haitao Mi. 2010. Efficient incremental decoding for tree-to-string translation. In <i>Proceedings of EMNLP, </i>pages 273-283. Liang Huang, Hao Zhang, and Daniel Gildea. 2005. Machine translation as lexicalized parsing with hooks. In <i>Proceedings of the Ninth International Workshop on Parsing Technology, </i>Parsing '05, pages 65-73, Stroudsburg, PA, USA. Association for Computational Linguistics.</p><p>Liang Huang. 2008. Advanced dynamic programming in semiring and hypergraph frameworks. In <i>Proceedings of COLING, </i>pages 1-18. Gonzalo Iglesias, Adria de Gispert, Eduardo R. Banga, and William Byrne. 2009a. Hierarchical phrase-based translation with weighted inite state transducers. In <i>Proceedings ofNAACL-HLT, </i>pages 433-441. Gonzalo Iglesias, Adria de Gispert, Eduardo R. Banga, and William Byrne. 2009b. Rule iltering by pattern for eficient hierarchical translation. In <i>Proceedings of</i> <i>EACL, </i>pages 380-388.</p><p>Terry Koo, Alexander M. Rush, Michael Collins, Tommi Jaakkola, and David Sontag. 2010. Dual decomposi­tion for parsing with non-projective head automata. In <i>Proceedings of EMNLP, </i>pages 1288-1298. Werner Kuich and Arto Salomaa. 1986. <i>Semirings, au­tomata, languages. </i>Springer. Shankar Kumar, Yonggang Deng, and William Byrne. 2006.   A weighted inite state transducer transla­tion template model for statistical machine translation. <i>Natural Language Engineering, </i>12(1):35-75. Andrej Ljolje, Fernando Pereira, and Michael Riley. 1999. Eficient general lattice generation and rescor-ing. In <i>Proceedings ofEurospeech, </i>pages 1251-1254. Mehryar Mohri. 2009. Weighted automata algorithms. In Drosde et al. (Drosde et al., 2009), chapter 6, pages 213-254.</p><p>Mark-Jan Nederhof and Giorgio Satta. 2003. Probabilis­tic parsing as intersection. In <i>Proceedings of 8th In­ternational Workshop on Parsing Technologies, </i>pages 137-148.</p><p>Franz J. Och. 2003. Minimum error rate training in sta­tistical machine translation. In <i>Proceedings ofACL, </i>pages 160-167. Ion Petre and Arto Salomaa. 2009. Algebraic systems and pushdown automata. In Drosde et al. (Drosde et al., 2009), chapter 7, pages 257-289. R. Prasad, K. Krstovski, F. Choi, S. Saleem, P. Natarajan, M. Decerbo, and D. Stallard. 2007. Real-time speech-to-speech translation for pdas. In <i>Proceedings of IEEE International Conference on Portable Information De­vices, </i>pages 1 -5. Alexander M. Rush and Michael Collins. 2011. Ex­act decoding of syntactic translation models through lagrangian relaxation.  In <i>Proceedings ofACL-HLT,</i> pages 72-82.</p><p>Andreas Stolcke. 1998. Entropy-based pruning of backoff language models. In <i>Proceedings ofDARPA Broadcast News Transcription and Understanding Workshop, </i>pages 270-274.</p></references></body></article>