<?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="880"/><title>Fast Generation of Translation Forest for Large-Scale SMT Discriminative Training</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 880-888, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Xiao" givenname="Xinyan"><org  name="Chinese Academy of Sciences" country="China" city="Beijing"/></author><author surname="Liu" givenname="Yang"><org  name="Chinese Academy of Sciences" country="China" city="Beijing"/></author><author surname="Liu" givenname="Qun"><org  name="Chinese Academy of Sciences" country="China" city="Beijing"/></author><author surname="Lin" givenname="Shouxun"><org  name="Chinese Academy of Sciences" country="China" city="Beijing"/></author></firstpageheader><frontmatter><p><b>Fast Generation of Translation Forest for Large-Scale SMT Discriminative Training</b></p><p><b>Xinyan Xiao, Yang Liu, Qun Liu, </b>and <b>Shouxun Lin</b></p><p>Key Laboratory of Intelligent Information Processing Institute of Computing Technology Chinese Academy of Sciences {xiaoxinyan,yliu,liuqun,sxlin}@ict.ac.cn</p></frontmatter><abstract>Although discriminative training guarantees to improve statistical machine translation by in­corporating a large amount of overlapping fea­tures, it is hard to scale up to large data due to decoding complexity. We propose a new al­gorithm to generate translation forest of train­ing data in linear time with the help of word alignment. Our algorithm also alleviates the oracle selection problem by ensuring that a forest always contains derivations that exactly yield the reference translation. With millions of features trained on 519K sentences in 0.03 second per sentence, our system achieves sig­nificant improvement by 0.84 Bleu over the baseline system on the NIST Chinese-English test sets. </abstract></header><body><section number="1" title="Introduction"><p>Discriminative model (Och and Ney, 2002) can easily incorporate non-independent and overlapping features, and has been dominating the research field of statistical machine translation (SMT) in the last decade. Recent work have shown that SMT benefits a lot from exploiting large amount of features (Liang et al., 2006; Tillmann and Zhang, 2006; Watanabe et al., 2007; Blunsom et al., 2008; Chiang et al., 2009). However, the training of the large number of features was always restricted in fairly small data sets. Some systems limit the number of training ex­amples, while others use short sentences to maintain efficiency.</p><p>Overfitting problem often comes when training many features on a small data (Watanabe et al., 2007; Chiang et al., 2009). Obviously, using much more data can alleviate such problem. Furthermore, large data also enables us to globally train millions of sparse lexical features which offer accurate clues for SMT. Despite these advantages, to the best of our knowledge, no previous discriminative training paradigms scale up to use a large amount of training data. The main obstacle comes from the complexity of packed forests or n-best lists generation which requires to search through all possible translations of each training example, which is computationally prohibitive in practice for SMT.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">880</doubt><p>To make normalization efficient, contrastive esti­mation (Smith and Eisner, 2005; Poon et al., 2009) introduce neighborhood for unsupervised log-linear model, and has presented positive results in various tasks. Motivated by these work, we use a <i>translation forest </i>(Section 3) which contains both <i>"reference" </i>derivations that potentially yield the reference trans­lation and also <i>neighboring "non-reference" </i>deriva­tions that fail to produce the reference translation.<footnote anchor="1"/>However, the complexity of generating this transla­tion forest is up to O(n<footnote anchor="6"/>), because we still need bi-parsing to create the reference derivations.</p><p>Consequently, we propose a method to fast gener­ate a subset of the forest. The key idea (Section 4) is to initialize a reference derivation tree with maxi­mum score by the help of word alignment, and then traverse the tree to generate the subset forest in lin­ear time. Besides the efficiency improvement, such a forest allows us to train the model without resort-<page local="2" global="881"/></p><footnote label="1">Exactly, there are no reference derivations, since derivation is a latent variable in SMT. We call them reference derivation just for convenience.</footnote><p>hyper-edge</p><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">rule</doubt><footnote label="85"> t/</footnote></section><section number="0" title="qiangshou"><p><b>jingfang</b> (Xi <i>bei </i>X2, Xi was X2) <i>(qiangshou bei </i>X1, the gunman was Xi ) <i>(jingfang </i>X1, X1 by the police) <i>(jingfang </i>X1, police X1 ) ( <i>qiangshou, </i>the gunman) ( <i>jibi, </i>shot dead)</p><p>Figure 1: A translation forest which is the running example throughout this paper. The reference translation is "the <i>gunman was killed by the police'. </i>(1) Solid hyperedges denote a "reference" derivation tree <i>t1 </i>which exactly yields the reference translation. (2) Replacing e3 in <i>t1 </i>with e4 results a competing non-reference derivation t2, which fails to swap the order of X34. (3)Removing ei and e5 in ti and adding e2 leads to another reference derivation t3. Generally, this is done by deleting a node X0j 1.</p><p>ing to constructing the oracle reference (Liang et al., which is non-trivial for SMT and needs to be deter­mined experimentally. Given such forests, we glob­ally learn a log-linear model using stochastic gradi­ent descend (Section 5). Overall, both the generation of forests and the training algorithm are scalable, en­abling us to train millions of features on large-scale data.</p><doubt alpha="44.0" length="50" tooSmall="False" monospace="0.0">2006; Watanabe et al., 2007; Chiang et al., 2009),</doubt><p>To show the effect of our framework, we globally train millions of word level context features moti­vated by word sense disambiguation (Chan et al., 2007) together with the features used in traditional SMT system (Section 6). Training on 519K sentence pairs in 0.03 seconds per sentence, we achieve sig­nificantly improvement over the traditional pipeline by 0.84 Bleu.</p></section><section number="2" title="Synchronous Context Free Grammar"><p>We work on synchronous context free grammar (SCFG) (Chiang, 2007) based translation. The el­ementary structures in an SCFG are rewrite rules of the form:</p><doubt alpha="18.2" length="11" tooSmall="False" monospace="0.0">X     (7,a)</doubt><p>where 7 and <i>a</i><i> </i>are strings of terminals and nonter­minals. We call 7 and <i>a</i><i> </i>as the source side and the target side of rule respectively. Here a rule means a phrase translation (Koehn et al., 2003) or a transla­tion pair that contains nonterminals.</p><p>We call a sequence of translation steps as a <i>derivation. </i>In context of SCFG, a derivation is a sequence of SCFG rules }. <i>Translation forest </i>(Mi et al., 2008; Li and Eisner, 2009) is a compact repre­sentation of all the derivations for a given sentence under an SCFG (see Figure 1). A <i>tree </i>t in the forest corresponds to a derivation. In our paper, tree means the same as derivation.</p><p>More formally, a <b>forest </b>is a pair (V, <i>E</i>), where V is the set of <b>nodes, </b>E is the set of <b>hyperedge. </b>For a given source sentence <b>f </b>= /n, Each node v <i>G</i><i> </i>V is in the form <i>X</i><i>i</i><i>j</i>, which denotes the recognition of nonterminal X spanning the substring from the <i>i</i><i> </i>through <i>j</i><i> </i>(that is ). Each hyperedge e G E connects a set of antecedent to a single consequent node and corresponds to an SCFG rule r(e).</p></section><section number="3" title="Our Translation Forest"><p>We use a translation forest that contains both <i>"ref­erence" </i>derivations that potentially yield the refer­ence translation and also some neighboring <i>"non-reference" </i>derivations that fail to produce the ref­erence translation. Therefore, our forest only repre­sents some of the derivations for a sentence given an SCFG rule table. The motivation of using such a for­est is efficiency. However, since this space contains both "good" and "bad" translations, it still provides evidences for discriminative training.</p><p>First see the example in Figure 1. The derivation tree t represented by solid hyperedges is a reference derivation. We can construct a non-reference deriva­tion by making small change to t . By replacing the e3 of t with e4, we obtain a non-reference derivation tree t2.<page local="3" global="882"/> Considering the rules in each derivation, the difference between t and t2 lies in r3 and r4. Al­though r3 has a same source side with r4, it produces a different translation. While r3 provides a swap­ping translation, r4 generates a monotone transla­tion. Thus, the derivation t2 fails to move the sub­ject "police" to the behind of verb "shot dead", re­sulting a wrong translation "the gunman was police shot dead". Given such derivations, we hope that the discriminative model is capable to explain why should use a reordering rule in this context.</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></p></td><td class="cell"><p>ei</p></td><td class="cell"><p>ri</p></td><td class="cell"><p><i>X</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>e2</p></td><td class="cell"><p>r2</p></td><td class="cell"><p><i>X</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>e3</p></td><td class="cell"><p>r3</p></td><td class="cell"><p><i>X</i><i> </i><i>=&gt;</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>^3,4</b></p></td><td class="cell"><p>e4</p></td><td class="cell"><p>r4</p></td><td class="cell"><p><i>X</i><i> </i><i>=&gt;</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>e5</p></td><td class="cell"><p>r5</p></td><td class="cell"><p><i>X</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>jibi4</b></p></td><td class="cell"><p>ee</p></td><td class="cell"><p><i>re</i></p></td><td class="cell"><p><i>X</i><i> </i><i>=&gt;</i></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><p>Generally, our forest contains all the reference derivations RT for a sentence given a rule table, and some neighboring non-reference derivations NT, which can be defined from RT.</p><p>More formally, we call two hyperedges e and e<footnote anchor="2"/>are <b>competing hyperedges, </b>if their corresponding rules r(e<footnote anchor="1"/>) = (7<footnote anchor="1"/>, a<footnote anchor="1"/>) and r(e<footnote anchor="2"/>) = (y<footnote anchor="2"/>, a<footnote anchor="2"/>) :</p><doubt alpha="26.7" length="15" tooSmall="False" monospace="0.0">71= y2Aa1=a2(1)</doubt><p>This means they give different translations for a same source side. We use C(e) to represent the set of competing hyperedges of e.</p><p>Two derivations t<footnote anchor="1"/> = (V <footnote anchor="1"/>,E<footnote anchor="1"/>) and t<footnote anchor="2"/> = (V<footnote anchor="2"/>, E<footnote anchor="2"/>) are <b>competing derivations </b>if there exists e<footnote anchor="1"/> G E<footnote anchor="1"/> and e<footnote anchor="2"/> G E<footnote anchor="2"/>: <footnote anchor="2"/></p><doubt alpha="41.2" length="17" tooSmall="False" monospace="0.0">V1=V2AE1-e1=E2-e2</doubt><doubt alpha="38.5" length="13" tooSmall="False" monospace="0.0">Ae2GC(e1) (2)</doubt><p>In other words, derivations t<footnote anchor="1"/> and t<footnote anchor="2"/> only differ in e<footnote anchor="1"/> and e<footnote anchor="2"/>, and these two hyperedges are competing hyperedges. We use C(t) to represent the set ofcom-peting derivations of tree t, and C(t,e) to represent the set of competing derivations of t if the competi­tion occurs in hyperedge e in t.</p><p>Given a rule table, the set of reference derivations RT for a sentence is determined. Then, the set of non-reference derivations NT can be defined from</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">RT:</doubt><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">ut&lt;ERrC(t) (3)</doubt><p>Overall, our forest is the compact representation of RT and NT.</p><footnote label="2">The definition of derivation tree is similar to forest, except that the tree contains exactly one tree while forest contains ex­ponentially trees. In tree, the hyperedge degrades to edge.</footnote><p><b>Algorithm 1 </b>Forest Generation 1: <b>procedure </b>GENERATE(t)</p><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">2:list&lt;— t</doubt><p>3: <b>for </b>v G t in post order <b>do</b> 6: <b>for </b>u G child(v) from left to right <b>do</b> 8: <b>if </b>tn = t <b>then</b> 9: append tn to list 10: <b>for </b>e' G tn A e' G t <b>do</b></p><doubt alpha="64.0" length="25" tooSmall="False" monospace="0.0">4:e    incoming edge of v</doubt><doubt alpha="60.0" length="25" tooSmall="False" monospace="0.0">5:append C(t, e) to list;</doubt><doubt alpha="64.7" length="17" tooSmall="False" monospace="0.0">7:tnOPERATE(t, u)</doubt><doubt alpha="61.5" length="26" tooSmall="False" monospace="0.0">11:append C(tn,e ) to list</doubt><doubt alpha="65.5" length="29" tooSmall="False" monospace="0.0">12:ifSCORE(t) &lt; SCORE(tn)then</doubt><doubt alpha="33.3" length="9" tooSmall="False" monospace="0.0">13:t&lt;- tn</doubt><doubt alpha="66.7" length="15" tooSmall="False" monospace="0.0">14:returnt,1ist</doubt></section><section number="4" title="Fast Generation"><p>It is still slow to calculate the entire forest defined in Section 3, therefore we use a greedy decoding for fast generating a subset of the forest. Starting form a reference derivation, we try to slightly change the derivation into a new reference derivation. During this process, we collect the competing derivations of reference derivations. We describe the details of local operators for changing a derivation in section 4.1, and then introduce the creation of initial refer­ence derivation with max score in Section 4.2.</p><p>For example, given derivation t1 , we delete the node Xo)1 and the related hyperedge e1 and e5. Fix­ing the other nodes and edges, we try to add a new edge e2 to create a new reference translation. In this case, if rule r2 really exists in our rule table, we get a new reference derivation t3. After constructing t3, we first collect the new tree and C (t3, e2). Then, we will move to t3, if the score of t3 is higher than t2. Notably, if r2 does not exist in the rule table, we fail to create a new reference derivation. In such case, we keep the origin derivation unchanged.</p><p>Algorithm 1 shows the process of generation.<footnote anchor="3"/>The input is a reference derivation t, and the out­put is a new derivation and the generated derivations.</p><footnote label="3">For simplicity, we list all the trees, and do not compress them into a forest in practice. It is straight to extent the algo­rithm to get a compact forest for those generated derivations. Actually, instead of storing the derivations, we call the generate function twice to calculate gradient of log-linear model.</footnote><page local="4" global="883"/><p>Figure 2: Lexicalize and generalize operators over <i>t1 </i>(part) in Figure 1. Although here only shows the nodes, we also need to change relative edges actually. (1) Applying lexicalize operator on the non-terminal node X0j1 in (a) results a new derivation shown in (b). (2) When visiting <i>bei </i>in (b), the generalize operator changes the derivation into (c).</p><p>The <i>list </i>used for storing forest is initialized with the input tree (line 2). We visit the nodes in t in post-order (line 3). For each node v, we first append the competing derivations C(t,e) to <i>list, </i>where e is in­coming edge of v (lines 4-5). Then, we apply oper­ators on the child nodes of <i>v </i>from left to right (lines 6-13). The operators returns a reference derivation <i>tn </i>(line 7). If it is new (line 8), we collect both the <i>tn</i>(line 9), and also the competing derivations C(tn, e') of the new derivation on those edges e' which only occur in the new derivation (lines 10-11). Finally, if the new derivation has a larger score, we will replace the origin derivation with new one (lines 12-13).</p><p>Although there is a two-level loop for visiting nodes (line 3 and 6), each node is visited only one time in the inner loops. Thus, the complexity is linear with the number of nodes <i>#node. </i>Consid­ering that the number of source word (also leaf node here) is less than the total number of nodes and is more than \(#node +1)/2], the time complexity of the process is also linear with the number of source word.</p><subsection number="4.1" title="Lexicalize and Generalize"><p>The function Operate in Algorithm 1 uses two op­erators to change a node: <i>lexicalize </i>and <i>generalize. </i>Figure 2 shows the effects of the two operators. The <b>lexicalize </b>operator works on nonterminal nodes. It moves away a nonterminal node and attaches the children of current node to its parent. In Figure 2(b), the node X0;1 is deleted, requiring a more lexical-ized rule to be applied to the parent node X0 4 (one more terminal in the source side). We constrain the lexicalize operator to apply on pre-terminal nodes whose children are all terminal nodes. In contrast, the <b>generalize </b>operator works on terminal nodes and inserts a nonterminal node between current node and its parent node. This operator generalizes over the continuous terminal sibling nodes left to the current node (including the current node). Generalizing the node <i>bei </i>in Figure 2(b) results Figure 2(c). A new node X0 2 is inserted as the parent of node <i>qiang­shou </i>and node bei.</p><p>Notably, there are two steps when apply an oper­ator. Suppose we want to lexicalize the node X0;1in t1 of Figure 1, we first delete the node X01 and related edge e1 and e5, then we try to add the new edge e2. Since rule table is fixed, the second step is a process of decoding. Therefore, sometimes we may fail to create a new reference derivation (like <i>r2 </i>may not exist in the rule table). In such case, we keep the origin derivation unchanged.</p><p>The changes made by the two operators are local. Considering the change of rules, the lexicalize oper­ator deletes two rules and adds one new rule, while the generalize operator deletes one rule and adds two new rules. Such local changes provide us with a way to incrementally calculate the scores of new deriva­tions. We use this method motivated by Gibbs Sam­pler (Blunsom et al., 2009) which has been used for efficiently learning rules. The different lies in that we use the operator for decoding where the rule ta­ble is fixing.</p></subsection><subsection number="4.2" title="Initialize a Reference Derivation"><p>The generation starts from an initial reference derivation with max score. This requires bi-parsing (Dyer, 2010) over the source sentence <b>f </b>and the ref­erence translation <b>e. </b>In practice, we may face three problems.</p><p>First is efficiency problem. Exhaustive search over the space under SCFG requires <i>O</i><i>(\f</i><i> </i>|<footnote anchor="3"/>|e|<footnote anchor="3"/>).</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Xo,4</p></td><td class="cell"><p>Xo,4</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>^////'^\^"X2,4</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>qiangshou bei</b></p></td><td class="cell"><p><b>qiangshou bei</b></p></td><td class="cell"><p><b>qiangshou bei</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>(a)</b></p></td><td class="cell"><p><b>(b)</b></p></td><td class="cell"><p><b>(c)</b></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></tr></table><page local="5" global="884"/><p>To parse quickly, we only visit the tight consistent (Zhang et al., 2008) bi-spans with the help of word alignment <b>a. </b>Only visiting tight consistent spans greatly speeds up bi-parsing. Besides efficiency, adoption of this constraint receives support from the fact that heuristic SCFG rule extraction only extracts tight consistent initial phrases (Chiang, 2007).</p><p>Second is degenerate problem. If we only use the features as traditional SCFG systems, the bi-parsing may end with a derivation consists of some giant rules or rules with rare source/target sides, which is called degenerate solution (DeNero et al., 2006). That is because the translation rules with rare source/target sides always receive a very high trans­lation probability. We add a prior score <i>log(#rule) </i>for each rule, where #rule is the number of occur­rence of a rule, to reward frequent reusable rules and derivations with more rules.</p><p>Finally, we may fail to create reference deriva­tions due to the limitation in rule extraction. We create minimum trees for <b>(f</b>, <b>e, a) </b>using shift-reduce (Zhang et al., 2008). Some minimum rules in the trees may be illegal according to the definition of Chiang (2007). We also add these rules to the rule table, so as to make sure every sentence is reachable given the rule table. A source sentence is <b>reachable </b>given a rule table if reference derivations exists. We refer these rules as <b>added rules. </b>However, this may introduce rules with more than two variables and in­crease the complexity of bi-parsing. To tackle this problem, we initialize the chart with minimum par­allel tree from the Zhang et al. (2008) algorithm, ensuring that the bi-parsing has at least one path to create a reference derivation. Then we only need to consider the traditional rules during bi-parsing.</p></subsection></section><section number="5" title="Training"><p>We use the forest to train a log-linear model with a latent variable as describe in Blunsom et al.(2008). The probability p<b>(e\f</b>) is the sum over all possible derivations:</p><doubt alpha="36.8" length="19" tooSmall="False" monospace="0.0">p(e\f)=£p(t,e\f)(4)</doubt><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">t€A(e,f )</doubt><p>where A<b>(e, f</b>) is the set of all possible derivations that translate <b>f </b>into <b>e </b>and <b>t </b>is one such derivation.<footnote anchor="4"/></p><footnote label="4">Although the derivation is typically represent as d, we de­notes it by t since our paper use tree to represent derivation.</footnote><p><b>Algorithm 2 </b>Training 1: <b>procedure </b>Train(S) 3: Derivations T = 9: n LearnRate(i)</p><doubt alpha="60.6" length="33" tooSmall="False" monospace="0.0">2:Training DataS ={fn, en, an)N=1</doubt><doubt alpha="58.5" length="41" tooSmall="False" monospace="0.0">4:forn = 1toNdo5:tn&lt;- lnitial(fn, en, an)</doubt><doubt alpha="12.5" length="8" tooSmall="False" monospace="0.0">6:i &lt;- 0</doubt><doubt alpha="56.2" length="32" tooSmall="False" monospace="0.0">7:form = 0 to Mdo8:forn= 0 toNdo</doubt><doubt alpha="60.0" length="30" tooSmall="False" monospace="0.0">10:(AL(wi,tn),tn)^Generate(tn)</doubt><doubt alpha="33.3" length="27" tooSmall="False" monospace="0.0">11:w' &lt;- w' + n X AL(w^,tn)</doubt><doubt alpha="15.4" length="13" tooSmall="False" monospace="0.0">12:i &lt;- i + 1</doubt><doubt alpha="57.1" length="14" tooSmall="False" monospace="0.0">13:return^\=Ar</doubt><p>This model defines the conditional probability of a derivation <b>t </b>and the corresponding translation <b>e </b>given a source sentence <b>f </b>as:</p><doubt alpha="36.0" length="25" tooSmall="False" monospace="0.0">p(t, e|f) =eXP^(t'"■f)(5)</doubt><p>where the partition function is</p><doubt alpha="32.1" length="28" tooSmall="False" monospace="0.0">Z(f) =E   EA'h'(t, e, f) (6)</doubt><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">e   t€A(e,f)i</doubt><p>The partition function is approximated by our for­est, which is labeled as <i>Z</i><b><i>(f</i></b>), and the derivations that produce reference translation is approximated by reference derivations in Z<b>(f </b>).</p><p>We estimate the parameters in log-linear model using maximum a posteriori (MAP) estimator. It maximizes the likelihood of the bilingual corpus S = <b>{fn, en}N=1</b>, penalized using a gaussian prior (L2 norm) with the probability density function p0(A') oc exp(—A<footnote anchor="2"/>/2a<footnote anchor="2"/>). We set <i>a<footnote anchor="2"/> </i>to 1.0 in our experiments. This results in the following gradient:</p><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">dCA-</doubt><doubt alpha="41.7" length="36" tooSmall="False" monospace="0.0">-gy=Ep(t|e,f )[hi]—Ep(e|f)[hi]—02(7)</doubt><p>We use an online learning algorithm to train the parameters. We implement stochastic gradient de­scent (SGD) recommended by Bottou.<footnote anchor="5"/> The dy­namic learning rate we use is       ), where N is the number of training example, % is the training itera­tion, and %0 is a constant number used to get a initial learning rate, which is determined by calibration.<page local="6" global="885"/></p><footnote label="5">http://leon.bottou.org/projects/sgd</footnote><p>Algorithm 2 shows the entire process. We first create an initial reference derivation for every train­ing examples using bi-parsing (lines 4-5), and then online learn the parameters using SGD (lines 6-12). We use the Generate function to calculate the gra­dient. In practice, instead of storing all the deriva­tions in a list, we traverse the tree twice. The first time is calculating the partition function, and the second time calculates the gradient normalized by partition function. During training, we also change the derivations (line 10). When training is finished after M epochs, the algorithm returns an averaged weight vector (Collins, 2002) to avoid overfitting (line 13). We use a development set to select total epoch m, which is set as M = 5 in our experiments.</p></section><section number="6" title="Experiments"><p>Our method is able to train a large number of fea­tures on large data. We use a set of word context features motivated by word sense disambiguation (Chan et al., 2007) to test scalability. A word level context feature is a triple (/, e, which counts the number of time that / is aligned to e and /+1 oc­curs to the right of /. Triple (/, e, f-1) is similar ex­cept that /-1 locates to the left of /. We retain word alignment information in the extracted rules to ex­ploit such features. To demonstrate the importance of scaling up the size of training data and the effect of our method, we compare three types of training configurations which differ in the size of features and data.</p><p><b>MERT. </b>We use MERT (Och, 2003) to training 8 features on a small data. The 8 features is the same as Chiang (2007) including 4 rule scores (direct and reverse translation scores; direct and reverse lexi­cal translation scores); 1 target side language model score; 3 penalties for word counts, extracted rules and glue rule. Actually, traditional pipeline often uses such configuration.</p><p><b>Perceptron. </b>We also learn thousands of context word features together with the 8 traditional features on a small data using perceptron. Following (Chiang et al., 2009), we only use 100 most frequent words for word context feature. This setting use CKY de-</p><p>Table 1: Corpus statistics of Chinese side, where Sent., Avg., Lon., and Len. are short for sentence, longest, average, and length respectively. RTrain denotes the reachable (given rule table without added rules) subset of Train data.</p><p>coder to generate n-best lists for training. The com­plexity of CKY decoding limits the training data into a small size. We fix the 8 traditional feature weights as MERT to get a comparable results as MERT.</p><p><b>Our Method. </b>Finally, we use our method to train millions of features on large data. The use of large data promises us to use full vocabulary of training data for the context word features, which results mil­lions of fully lexicalized context features. During decoding, when a context feature does not exit, we simply ignore it. The weights of 8 traditional fea­tures are fixed the same as MERT also. We fix these weights because the translation feature weights fluc­tuate intensely during online learning. The main rea­son may come from the degeneration solution men­tioned in Section 4.2, where rare rules with very high translation probability are selected as the reference derivations. Another reason could be the fact that translation features are dense intensify the fluctua­tion. We leave learning without fixing the 8 feature weights to future work.</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">6.1 Data</doubt><p>We focus on the Chinese-to-English translation task in this paper. The bilingual corpus we use con­tains 519, 359 sentence pairs, with an average length of 16.5 in source side and 20.3 in target side, where 186,810 sentence pairs (36%) are reach­able (without added rules in Section 4.2). The monolingual data includes the Xinhua portion of the GiGAWORD corpus, which contains 238M En­glish words. We use the NIST evaluation sets of 2002 (MT02) as our development set, and sets of statistics of all bilingual corpus.</p><doubt alpha="63.0" length="46" tooSmall="False" monospace="0.0">MT03/MT04/MT05 as test sets. Table 2 shows the</doubt><doubt alpha="61.4" length="44" tooSmall="False" monospace="0.0">We use GiZA++ (Och and Ney, 2003) to perform</doubt><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></p></td><td class="cell"><p>Train</p></td><td class="cell"><p>RTrain</p></td><td class="cell"><p>Dev</p></td><td class="cell"><p>Test</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>#Sent.</p></td><td class="cell"><p>519,359</p></td><td class="cell"><p>186,810</p></td><td class="cell"><p>878</p></td><td class="cell"><p>3,789</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>#Word</p></td><td class="cell"><p>8.6M</p></td><td class="cell"><p>1.3M</p></td><td class="cell"><p>23K</p></td><td class="cell"><p>105K</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Avg. Len.</p></td><td class="cell"><p>16.5</p></td><td class="cell"><p>7.3</p></td><td class="cell"><p>26.4</p></td><td class="cell"><p>28.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lon. Len.</p></td><td class="cell"><p>99</p></td><td class="cell"><p>95</p></td><td class="cell"><p>77</p></td><td class="cell"><p>116</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><page local="7" global="886"/><p>Table 2: Effect of our method comparing with MERT and perceptron in terms of Bleu. We also compare our fast generation method with different data (only reachable or full data). #Data is the size of data for training the feature weights. * means significantly (Koehn, 2004) better than <i>MERT </i>(p <i>&lt; </i>0.01).</p><p>word alignment in both directions, and grow-diag-final-and (Koehn et al., 2003) to generate symmet­ric word alignment. We extract SCFG rules as de­scribed in Chiang (2007) and also added rules (Sec­tion 4.2). Our algorithm runs on the entire training data, which requires to load all the rules into the memory. To fit within memory, we cut off those composed rules which only happen once in the train­ing data. Here a composed rule is a rule that can be produced by any other extracted rules. A 4-grams language model is trained by the SRiLM toolkit (Stolcke, 2002). Case-insensitive NIST Bleu4 (Pa-pineni et al., 2002) is used to measure translation performance.</p><p>The training data comes from a subset of the</p><doubt alpha="57.1" length="42" tooSmall="False" monospace="0.0">LDC data including LDC2002E18, LDC2003E07,</doubt><doubt alpha="58.1" length="43" tooSmall="False" monospace="0.0">LDC2003E14, Hansards portion of LDC2004T07,</doubt><p>LDC2004T08 and LDC2005T06. Since the rule ta­ble of the entire data is too large to be loaded to the memory (even drop one-count rules), we remove many sentence pairs to create a much smaller data yet having a comparable performance with the entire data. The intuition lies in that if most of the source words of a sentence need to be translated by the added rules, then the word alignment may be highly crossed and the sentence may be useless. We cre­ate minimum rules from a sentence pair, and count the number of source words in those minimum rules that are added rules. For example, suppose the result minimum rules of a sentence contain <i>r3 </i>which is an added rule, then we count 1 time for the sentence. If the number of such source word is more than 10% of the total number, we will drop the sentence pair.</p><p>We compare the performances of MERT setting on three bilingual data: the entire data that contains 42.3M Chinese and 48.2M English words; 519K data that contains 8.6M Chinese and 10.6M En­glish words; FBIS (LDC2003E14) parts that con­tains 6.9M Chinese and 9.1M English words. They produce 33.11/32.32/30.47 Bleu tested on MT05 respectively. The performance of 519K data is com­parable with that of entire data, and much higher than that of FBIS data.</p><subsection number="6.2" title="Result"><p>Table 3 shows the performance of the three different training configurations. The training of MERT and perceptron run on MT02. For our method, we com­pare two different training sets: one is trained on all 519K sentence pairs, the other only uses 186K reachable sentences.</p><p>Although the perceptron system exploits 2.4K features, it fails to produce stable improvements over MERT. The reason may come from overfitting, since the training data for perceptron contains only 878 sentences. However, when use our method to learn the word context feature on the 519K data, we significantly improve the performance by 0.84 points on the entire test sets (ALL). The improve­ments range from 0.60 to 1.16 points on MT03-05. Because we use the full vocabulary, the num­ber of features increased into 13.9 millions, which is impractical to be trained on the small development set. These results confirm the necessity of exploiting more features and learning the parameters on large data. Meanwhile, such results also demonstrate that we can benefits from the forest generated by our fast method instead of traditional CKY algorithm.</p><p>Not surprisingly, the improvements are smaller when only use 186K reachable sentences. Some­times we even fail to gain significant improvement. This verifies our motivation to guarantee all sentence<page local="8" global="887"/></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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>System</p></td><td class="cell"><p>#Data</p></td><td class="cell"><p>#Feat</p></td><td class="cell"><p>MT03</p></td><td class="cell"><p>MT04</p></td><td class="cell"><p>MT05</p></td><td class="cell"><p>ALL</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MERT</p></td><td class="cell"><p>878</p></td><td class="cell"><p>8</p></td><td class="cell"><p>33.03</p></td><td class="cell"><p>35.12</p></td><td class="cell"><p>32.32</p></td><td class="cell"><p>33.85</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Perceptron</p></td><td class="cell"><p>878</p></td><td class="cell"><p>2.4K</p></td><td class="cell"><p>32.89</p></td><td class="cell"><p>34.88</p></td><td class="cell"><p>32.55</p></td><td class="cell"><p>33.76</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Our Method</p></td><td class="cell"><p>187K</p></td><td class="cell"><p>2.0M</p></td><td class="cell"><p>33.64</p></td><td class="cell"><p>35.48</p></td><td class="cell"><p>32.91*</p></td><td class="cell"><p>34.41*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>519K</p></td><td class="cell"><p>13.9M</p></td><td class="cell"><p>34.19*</p></td><td class="cell"><p>35.72*</p></td><td class="cell"><p>33.09*</p></td><td class="cell"><p>34.69*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Improvement over MERT</p></td><td class="cell"><p>+1.16</p></td><td class="cell"><p>+0.60</p></td><td class="cell"><p>+0.77</p></td><td class="cell"><p>+0.84</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></tr></table><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">mÊ</doubt><doubt alpha="58.3" length="24" tooSmall="True" monospace="0.0">40 50 60 Sentence Length</doubt><p>Figure 3: Plot of training times (including forest genera­tion and SGD training) versus sentence length. We ran­domly select 1000 sentence from the 519K data for plot­ting.</p><p>are reachable, so as to use all training data. <b>6.3 Speed</b></p><p>How about the speed of our framework? Our method learns in 32 mlliseconds/sentence. Figure 3 shows training times (including forest generation and SGD training) versus sentence length. The plot confirms that our training algorithm scales linearly. If we use n-best lists which generated by CKY decoder as MERT, it takes about 3105 milliseconds/sentence for producing 100-best lists. Our method accelerates the speed about 97 times (even though we search twice to calculate the gradient). This shows the effi­ciency of our method.</p><p>The procedure of training includes two steps. (1) Bi-parsing to initialize a reference derivation with max score. (2) Training procedure which generates a set of derivations to calculate the gradient and up­date parameters. Step (1) only runs once. The av­erage time of processing a sentence for each step is about 9.5 milliseconds and 30.2 milliseconds re­spectively.</p><p>For simplicity we do not compress the generated derivations into forests, therefore the size of result­ing derivations is fairly small, which is about 265.8 for each sentence on average, where 6.1 of them are reference derivations. Furthermore, we use lexical-ize operator more often than generalize operator (the ration between them is 1.5 to 1). Lexicalize operator is used more frequently mainly dues to that the ref­erence derivations are initialized with reusable (thus small) rules.</p></subsection></section><section number="7" title="Related Work"><p>Minimum error rate training (Och, 2003) is perhaps the most popular discriminative training for SMT. However, it fails to scale to large number of features. Researchers have propose many learning algorithms to train many features: perceptron (Shen et al., 2004; Liang et al., 2006), minimum risk (Smith and Eisner, 2006; Li et al., 2009), MIRA (Watanabe et al., 2007; Chiang et al., 2009), gradient descent (Blunsom et al., 2008; Blunsom and Osborne, 2008). The com­plexity of n-best lists or packed forests generation hamper these algorithms to scale to a large amount of data.</p><p>For efficiency, we only use neighboring deriva­tions for training. Such motivation is same as con-trastive estimation (Smith and Eisner, 2005; Poon et al., 2009). The difference lies in that the previous work actually care about their latent variables (pos tags, segmentation, dependency trees, etc), while we are only interested in their marginal distribution. Furthermore, we focus on how to fast generate trans­lation forest for training.</p><p>The local operators lexicalize/generalize are use for greedy decoding. The idea is related to "peg­ging" algorithm (Brown et al., 1993) and greedy de­coding (Germann et al., 2001). Such types of local operators are also used in Gibbs sampler for syn­chronous grammar induction (Blunsom et al., 2009;</p><p>Cohn and Blunsom, 2009).</p></section><section number="8" title="Conclusion and Future Work"><p>We have presented a fast generation algorithm for translation forest which contains both reference derivations and neighboring non-reference deriva­tions for large-scale SMT discriminative training. We have achieved significantly improvement of 0.84 Bleu by incorporate 13.9M feature trained on 519K data in 0.03 second per sentence.</p><p>In this paper, we define the forest based on com­peting derivations which only differ in one rule. There may be better classes of forest that can pro­duce a better performance. It's interesting to modify the definition of forest, and use more local operators to increase the size of forest. Furthermore, since the generation of forests is quite general, it's straight to apply our forest on other learning algorithms.<page local="9" global="888"/> Fi­nally, we hope to exploit more features such as re­ordering features and syntactic features so as to fur­ther improve the performance.</p><doubt alpha="20.0" length="5" tooSmall="True" monospace="0.0">180 r</doubt><doubt alpha="0.0" length="3" tooSmall="True" monospace="0.0">150</doubt><doubt alpha="100.0" length="1" tooSmall="True" monospace="0.0">n</doubt><doubt alpha="100.0" length="1" tooSmall="True" monospace="0.0">o</doubt><doubt alpha="66.7" length="3" tooSmall="True" monospace="0.0">c e</doubt><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">Ü2</doubt><doubt alpha="100.0" length="2" tooSmall="True" monospace="0.0">ae</doubt><doubt alpha="0.0" length="1" tooSmall="True" monospace="0.0">£</doubt><doubt alpha="0.0" length="3" tooSmall="True" monospace="0.0">120</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">90</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">60</doubt><doubt alpha="100.0" length="1" tooSmall="True" monospace="0.0">g</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">h1</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">30</doubt><doubt alpha="0.0" length="1" tooSmall="True" monospace="0.0">0</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">10</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">20</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">70</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">80</doubt><p><b>Acknowledgement</b></p><p>We would like to thank Yifan He, Xianhua Li, Daqi Zheng, and the anonymous reviewers for their in­sightful comments. The authors were supported by National Natural Science Foundation of China Con­tracts 60736014, 60873167, and 60903138.</p></section><references><p>Phil Blunsom and Miles Osborne. 2008. Probabilistic inference for machine translation. In <i>Proc. ofEMNLP 2008.</i></p><p>Phil Blunsom, Trevor Cohn, and Miles Osborne. 2008. A discriminative latent variable model for statistical machine translation. In <i>Proc. ofACL-08.</i></p><p>Phil Blunsom, Trevor Cohn, Chris Dyer, and Miles Os-borne. 2009. Agibbs sampler for phrasal synchronous grammar induction. In <i>Proc. of ACL 2009.</i></p><p>Peter F. Brown, Vincent J.Della Pietra, Stephen A. Della Pietra, and Robert. L. Mercer. 1993. The mathemat­ics of statistical machine translation. <i>Computational Linguistics, </i>19:263-311.</p><p>Yee Seng Chan, Hwee Tou Ng, and David Chiang. 2007. Word sense disambiguation improves statistical ma­chine translation. In <i>Proc. of ACL 2007, </i>pages 33—40.</p><p>David Chiang, Kevin Knight, and Wei Wang. 2009. 11,001 new features for statistical machine translation.</p><p>In <i>Proc. ofNAACL 2009.</i></p><p>David Chiang. 2007. Hierarchical phrase-based transla­tion. <i>Computational Linguistics, </i>33(2):201-228.</p><p>Trevor Cohn and Phil Blunsom. 2009. A Bayesian model of syntax-directed tree to string grammar induction. In <i>Proc.</i><i> ofEMNLP 2009.</i></p><p>Michael Collins. 2002. Discriminative training methods for hidden markov models: Theory and experiments with perceptron algorithms. In <i>Proc. ofEMNLP 2002.</i></p><p>John DeNero, Dan Gillick, James Zhang, and Dan Klein. 2006. Why generative phrase models underperform surface heuristics. In <i>Proc. of the HLT-NAACL 2006 Workshop on SMT.</i></p><p>Chris Dyer. 2010. Two monolingual parses are better than one (synchronous parse). In <i>Proc. ofNAACL 2010.</i></p><p>Ulrich Germann, Michael Jahr, Kevin Knight, Daniel Marcu, and Kenji Yamada. 2001. Fast decoding and optimal decoding for machine translation. In <i>Proc. of</i> <i>ACL 2001.</i><i></i></p><p>Philipp Koehn, Franz Josef Och, and Daniel Marcu. 2003. Statistical phrase-based translation. In <i>Proc. of HLT-NAACL 2003. </i>Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In <i>Proc. ofEMNLP 2004.</i></p><p>Zhifei Li and Jason Eisner. 2009. First- and second-order expectation semirings with applications to minimum-risktraining ontranslation forests. In<i>Proc. ofEMNLP</i> <i>2009.</i><i></i></p><p>Zhifei Li, Jason Eisner, and Sanjeev Khudanpur. 2009. Variational decoding for statistical machine transla­tion. In <i>Proc. ofACL 2009.</i></p><p>Percy Liang, Alexandre Bouchard-Cote, Dan Klein, and Ben Taskar. 2006. An end-to-end discriminative ap­proach to machine translation. In <i>Proc. ofACL 2006. </i>Haitao Mi, Liang Huang, and Qun Liu. 2008. Forest-</p><p>based translation. In <i>Proc. ofACL 2008. </i>Franz J. Och and Hermann Ney. 2002. Discriminative training and maximum entropy models for statistical machine translation. In <i>Proc. ofACL 2002. </i>Franz Josef Och and Hermann Ney. 2003. A system­atic comparison of various statistical alignment mod­els. <i>Computational Linguistics, </i>29(1):19-51. Franz Josef Och. 2003. Minimum error rate training in statistical machine translation. In <i>Proc. ofACL 2003. </i>Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evalua­tion of machine translation. In <i>Proc. ofACL 2002. </i>Hoifung Poon, Colin Cherry, and Kristina Toutanova. 2009. Unsupervised morphological segmentation with log-linear models. In <i>Proc. ofNAACL 2009.</i></p><p>Libin Shen, Anoop Sarkar, and Franz Josef Och. 2004. Discriminative reranking for machine translation. In <i>Proc.</i><i> ofNAACL 2004.</i></p><p>Noah A. Smith and Jason Eisner. 2005. Contrastive esti­mation: Training log-linear models on unlabeled data. In <i>Proc. of ACL 2005. </i>David A. Smith and Jason Eisner. 2006. Minimum risk annealing for training log-linear models. In <i>Proc. of COLING/ACL 2006. </i>Andreas Stolcke. 2002. Srilm - an extensible language modeling toolkit. In <i>Proc. ofICSLP 2002.</i></p><p>Christoph Tillmann and Tong Zhang. 2006. A discrim­inative global training algorithm for statistical mt. In <i>Proc.</i><i> ofACL 2006.</i></p><p>Taro Watanabe, Jun Suzuki, Hajime Tsukada, and Hideki Isozaki. 2007. Online large-margin training for statis­tical machine translation. In <i>Proc. ofEMNLP-CoNLL</i> <i>2007.</i><i></i></p><p>Hao Zhang, Daniel Gildea, and David Chiang. 2008. Ex­tracting synchronous grammar rules from word-level alignments in linear time. In <i>Proc. ofColing 2008.</i></p></references></body></article>