<?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="1418"/><title>Consensus Training for Consensus Decoding in Machine Translation</title><author surname="Pauls" givenname="Adam"><org  name="University of California at Berkeley" country="USA" city="Berkeley"/></author><author surname="Denero" givenname="John"><org  name="University of California at Berkeley" country="USA" city="Berkeley"/></author><author surname="Klein" givenname="Dan"><org  name="University of California at Berkeley" country="USA" city="Berkeley"/></author></firstpageheader><frontmatter><p><b>Consensus Training for Consensus Decoding in Machine Translation</b></p><p><b>Adam Pauls, John DeNero and Dan Klein</b></p><p><b>Computer Science Division University of California at Berkeley</b></p><p>{adpauls,denero,klein}@cs.berkeley.edu</p></frontmatter><abstract>We propose a novel objective function for dis-criminatively tuning log-linear machine trans­lation models. Our objective explicitly op­timizes the BLEU score of <i>expected </i>n-gram counts, the same quantities that arise in forest-based consensus and minimum Bayes risk de­coding methods. Our continuous objective can be optimized using simple gradient as­cent. However, computing critical quantities in the gradient necessitates a novel dynamic program, which we also present here. As­suming BLEU as an evaluation measure, our objective function has two principle advan­tages over standard max BLEU tuning. First, it specifically optimizes model weights for downstream consensus decoding procedures. An unexpected second benefit is that it reduces overfltting, which can improve test set BLEU scores when using standard Viterbi decoding. </abstract></header><body><section number="1" title="Introduction"><p>Increasing evidence suggests that machine trans­lation decoders should not search for a single top scoring Viterbi derivation, but should instead choose a translation that is sensitive to the model's entire predictive distribution. Several recent con­sensus decoding methods leverage compact repre­sentations of this distribution by choosing transla­tions according to n-gram posteriors and expected counts (Tromble et al., 2008; DeNero et al., 2009; Li et al., 2009; Kumar et al., 2009). This change in decoding objective suggests a complementary change in <i>tuning </i>objective, to one that optimizes expected n-gram counts directly. The ubiquitous minimum error rate training (MERT) approach op­timizes Viterbi predictions, but does not explicitly boost the aggregated posterior probability of de­sirable n-grams (Och, 2003). We therefore propose an alternative objective function for parameter tuning, which we call <i>con­sensus </i>BLEU or CoBLEU, that is designed to maximize the <i>expected counts </i>of the n-grams that appear in reference translations. To maintain con­sistency across the translation pipeline, we for­mulate CoBLEU to share the functional form of BLEU used for evaluation. As a result, CoBLEU optimizes exactly the quantities that drive efficient consensus decoding techniques and precisely mir­rors the objective used for fast consensus decoding in DeNero et al. (2009).</p><p>CoBLEU is a continuous and (mostly) differ-entiable function that we optimize using gradient ascent. We show that this function and its gradient are efficiently computable over packed forests of translations generated by machine translation sys­tems. The gradient includes expectations of <i>prod­ucts </i>of features and n-gram counts, a quantity that has not appeared in previous work. We present a new dynamic program which allows the efficient computation of these quantities over translation forests. The resulting gradient ascent procedure does not require any A;-best approximations. Op­timizing over translation forests gives similar sta­bility benefits to recent work on lattice-based min­imum error rate training (Macherey et al., 2008) and large-margin training (Chiang et al., 2008).</p><p>We developed CoBLEU primarily to comple­ment consensus decoding, which it does; it pro­duces higher BLEU scores than coupling MERT with consensus decoding. However, we found an additional empirical benefit: CoBLEU is less prone to overfitting than MERT, even when using Viterbi decoding. In experiments, models trained to maximize tuning set BLEU using MERT con­sistently degraded in performance from tuning to test set, while CoBLEU-trained models general­ized more robustly. As a result, we found that op­timizing CoBLEU improved test set performance reliably using consensus decoding and occasion­ally using Viterbi decoding.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1418</doubt><p><i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, </i>pages 1418-1427, Singapore, 6-7 August 2009. ©2009 ACL and AFNLP (a) <b>Hypotheses ranked by </b>Otm = <b>6</b>lm = <b>1</b><page local="2" global="1419"/></p><p>Sentence/   Il était une rime Reference <i>r.</i><i> </i>Once upon a rhyme (b) <b>Computing Consensus Bigram Precision</b></p><doubt alpha="22.2" length="99" tooSmall="False" monospace="0.0">Eg[c(nep n ,d)|/]   =0.4+ 0.0=0.Eg[c(p n,d)\f]   =0. 4 + 0.0=0.Ee[c(me,d)\f]   =0.    + 0. 4 = 0. 1</doubt><doubt alpha="7.3" length="41" tooSmall="False" monospace="0.0">J]£&lt;,[£=(&lt;?,d)I/]   =     [0.+0.4 + 0.0 ]</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">9</doubt><doubt alpha="31.7" length="41" tooSmall="False" monospace="0.0">J2gmm{Ee[c(g,d)\f],c(g,r)}_   0.+0.+ 0. 1</doubt><p>Figure 1: (a) A simple hypothesis space of translations for a single sentence containing three alternatives, each with two features. The hypotheses are scored under a log-linear model with parameters <i>6 </i>equal to the identity vector, (b) The expected counts of all bigrams that ap­pear in the computation of consensus bigram precision.</p><p>Viterbi derivations under a log-linear model with parameters <i>6. </i>Let <i>d*e{fi) = </i>arg <i>vaax.dPe{d\fi) </i>be the highest scoring derivation <i>d </i>of <i>fa. </i>For a system employing Viterbi decoding and evaluated by bi­gram precision, we would want to select <i>6 </i>to max­imize MaxBP(JR,F,6l):</p><doubt alpha="42.9" length="28" tooSmall="False" monospace="0.0">E"iEfl2»{c(te(i;(/i)),4,fi)}</doubt><p>On the other hand, for a system that uses ex­pected bigram counts for decoding, we would pre­fer to choose <i>6 </i>such that expected bigram counts match bigrams in the reference sentence. To this end, we can evaluate an entire posterior distri­bution over derivations by computing the same clipped precision for expected bigram counts us­ing <i>C6BP(R,F,6):</i></p><doubt alpha="60.5" length="38" tooSmall="False" monospace="0.0">YZiEfl2min{Ee[c(g2, d)\M,c(g2,n)}where</doubt></section><section number="2" title="Consensus Objective Functions"><p>Our proposed objective function maximizes n-gram precision by adapting the BLEU evaluation metric as a tuning objective (Papineni et al., 2002). To simplify exposition, we begin by adapting a simpler metric: bigram precision.</p><subsection number="2.1" title="Bigram Precision Tuning"><p>Let the tuning corpus consist of source sentences <i>F = </i>/i... <i>fm </i>and human-generated references <i>R = r\... rm, </i>one reference for each source sentence. Let be a translation of <i>fa, </i>and let <i>E — &amp;i... em </i>be a corpus of translations, one for each source sentence. A simple evaluation score for <i>E </i>is its bigram precision BP(iî, <i>E):</i></p><doubt alpha="33.3" length="18" tooSmall="False" monospace="0.0">ttt&gt;{K,b) =-m-----</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">Lj=iL92c(g2,ei)</doubt><p>where <i>g2 </i>iterates over the set of bigrams in the tar­get language, and <i>c(g2, </i>e) is the count of bigram <i>g2 </i>in translation e. As in BLEU, we "clip" the bi­gram counts of e in the numerator using counts of bigrams in the reference sentence.</p><p>Modern machine translation systems are typi­cally tuned to maximize the evaluation score of is the expected count of bigram <i>g2 </i>in all deriva­tions <i>d </i>of <i>fa.</i><i> </i>We define the precise parametric form of <i>Pe{d\fi) </i>in Section 3. Figure 1 shows pro­posed translations for a single sentence along with the bigram expectations needed to compute CoBP.</p><doubt alpha="46.7" length="30" tooSmall="False" monospace="0.0">Ee[c(g2,d)\M =Y,Pe{d\h)c{g2,d)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">d</doubt><p>Equation 1 constitutes an objective function for tuning the parameters of a machine translation model. Figure 2 contrasts the properties of CoBP and MaxBP as tuning objectives, using the simple example from Figure 1.</p><p>Consensus bigram precision is an instance of a general recipe for converting n-gram based eval­uation metrics into consensus objective functions for model tuning. For the remainder of this pa­per, we focus on consensus BLEU. However, the techniques herein, including the optimization ap­proach of Section 3, are applicable to many differ-entiable functions of expected n-gram counts.</p><p>!By <i>derivation, </i>we mean a translation of a foreign sen­tence along with any latent structure assumed by the model. Each derivation corresponds to a particular English transla­tion, but many derivations may yield the same translation.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1419</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>TM</p></td><td class="cell"><p>LM</p></td><td class="cell"><p>Pr</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Hi) Once on a rhyme</p></td><td class="cell"><p>-3</p></td><td class="cell"><p>-7</p></td><td class="cell"><p>0.67</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>H2) Once upon a rhyme</p></td><td class="cell"><p>-5</p></td><td class="cell"><p>-6</p></td><td class="cell"><p>0.24</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>H3) Once upon a time</p></td><td class="cell"><p>-9</p></td><td class="cell"><p>-3</p></td><td class="cell"><p>0.09</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="3" global="1420"/><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">(a) (b)</doubt><p>Figure 2: These plots illustrate two properties of the objectives <i>max bigram precision </i>(MaxBP) and <i>consensus bigram precision </i>(CoBP) on the simple example from Figure 1. (a) MaxBP is only sensitive to the convex hull (the solid line) of model scores. When varying the single parameter <i>Olm, </i>it entirely disregards the correct translation <i>H2 </i>because <i>H2 </i>never attains a maximal model score, (b) A plot of both objectives shows their differing characteris­tics. The horizontal segmented line at the top of the plot indicates the range over which consensus decoding would select each hypothesis, while the segmented line at the bottom indicates the same for Viterbi decoding. MaxBP is only sensitive to the single point of discontinuity between <i>H\ </i>and <i>H3, </i>and disregards <i>H2 </i>entirely. CoBP peaks when the distribution most heavily favors <i>H2 </i>while suppressing <i>H\. </i>Though <i>H2 </i>never has a maximal model score, if <i>Olm </i>is in the indicated range, consensus decoding would select <i>H2, </i>the desired translation.</p></subsection><subsection number="2.2" title="CoBLEU"><p>The logarithm of the single-reference<footnote anchor="2"/> BLEU met­ric (Papineni et al., 2002) has the following form:</p><doubt alpha="39.1" length="23" tooSmall="False" monospace="0.0">InBLEU(iî,E)= (1 -^-- )</doubt><doubt alpha="44.7" length="38" tooSmall="False" monospace="0.0">1-A    E™1ESrlmin{c(gr„, e;),c{gn,r;)}</doubt><p>Above, <i>\R\ </i>denotes the number of words in the reference corpus. The notation (•)_ is shorthand for mm(-, 0). In the inner sums, <i>gn </i>iterates over all n-grams of order n. In order to adapt BLEU to be a consensus tuning objective, we follow the recipe of Section 2.1: we replace n-gram counts from a candidate translation with expected n-gram counts under the model.</p><doubt alpha="45.8" length="24" tooSmall="False" monospace="0.0">CoBLEU^,F,0) = ( 1-mjfj)</doubt><doubt alpha="53.3" length="45" tooSmall="False" monospace="0.0">1ir^    E™iESrlmin{Ee[c(â,n,d)\fi], c(gn,ri)}</doubt><p>The brevity penalty term in BLEU is calculated using the expected length of the corpus, which</p><p>throughout this paper, we use only a single reference, but our objective readily extends to multiple references.</p><p>equals the sum of all expected unigram counts. We call this objective function <i>consensus </i>BLEU, or CoBLEU for short.</p></subsection></section><section number="3" title="Optimizing CoBLEU"><p>Unlike the more common MaxBLEU tuning ob­jective optimized by MERT, CoBLEU is con­tinuous. For distributions <i>Pe{d\fi) </i>that factor over synchronous grammar rules and n-grams, we show below that it is also analytically differen-tiable, permitting a straightforward gradient ascent optimization procedure.<footnote anchor="3"/> In order to perform gra­dient ascent, we require methods for efficiently computing the gradient of the objective function for a given parameter setting <i>6. </i>Once we have the gradient, we can perform an update at iteration <i>t </i>of the form where <i>rjt </i>is an adaptive step size.<footnote anchor="4"/></p><doubt alpha="43.2" length="37" tooSmall="False" monospace="0.0">0(*+i) ^_e(t)+r?tV0CoBLEU(iî,F, 6{t))</doubt><p>technically, CoBLEU is non-differentiable at some points because of <i>clipping. </i>At these points, we must com­pute a sub-gradient, and so our optimization is formally sub-gradient ascent. See the Appendix for details.</p><footnote label="4">After each successful step, we grow the step size by a constant factor. Whenever the objective does not decrease after a step, we shrink the step size by a constant factor and try again until a decrease is attained.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1420</doubt><page local="4" global="1421"/><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">d</doubt><p><u>(H=OnceSrhyme}</u> <b><i>heCtd(h)</i></b></p><doubt alpha="48.6" length="35" tooSmall="False" monospace="0.0">c("Once upon",h) =1 c("upon a",h)=1</doubt><p>lowing expectations:</p><doubt alpha="61.5" length="13" tooSmall="False" monospace="0.0">](v3=aNPrhym3</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">tail(h)</doubt><p>Figure 3: A hyperedge <i>h </i>represents a "rule" used in syntactic machine translation, <i>tail(h) </i>refers to the "chil­dren" of the rule, while <i>head(h) </i>refers to the "head" or "parent". A forest of translations is built by combining the nodes using <i>h </i>to form a new node <i>u = head(h). </i>Each forest node consists of a grammar symbol and tar­get language boundary words used to track n-grams. In the above, we keep one boundary word for each node, which allows us to track bigrams.</p><p>In this section, we develop an analytical expres­sion for the gradient of CoBLEU, then discuss how to efficiently compute the value of the objec­tive function and gradient.</p><subsection number="3.1" title="Translation Model Form"><p>We first assume the general hypergraph setting of Huang and Chiang (2007), namely, that deriva­tions under our translation model form a hyper­graph. This framework allows us to speak about both phrase-based and syntax-based translation in a unified framework.</p><p>We define a probability distribution over deriva­tions <i>d </i>via <i>6 </i>as:</p><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">Pe(d\fi) =</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">w{d)</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">ZÛÎ)</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">with</doubt><p>where <i>w(d) </i>= exp(#T$(d, <i>fi)) </i>is the weight of a derivation and <i>fi) </i>is a featurized representa­tion of the derivation <i>d </i>of <i>fi. </i>We further assume that these features decompose over <i>hyperedges </i>in the hypergraph, like the one in Figure 3. That is,</p><p>In this setting, we can analytically compute the gradient of CoBLEU. We provide a sketch of the derivation of this gradient in the Appendix. In computing this gradient, we must calculate the folwhere <i>£n(d) = J2g„ c(9n, d) </i>is the sum of all n-grams on derivation <i>d </i>(its "length"). The first ex­pectation is an expected count of the fcth feature <i>4&gt;k </i>over all derivations of <i>fi. </i>The second is an ex­pected length, the total expected count of all n-grams in derivations of <i>fi. </i>We call the final ex­pectation an expected <i>product of counts. </i>We now present the computation of each of these expecta­tions in turn.</p><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">Ee[c^k,d)\M</doubt><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">Ee[£n(d)\M</doubt><doubt alpha="47.6" length="21" tooSmall="False" monospace="0.0">Ee[c(&lt;t&gt;k,d)-£n(d)\fy</doubt><doubt alpha="0.0" length="11" tooSmall="False" monospace="0.0">(2) (3) (4)</doubt></subsection><subsection number="3.2" title="Computing Feature Expectations"><p>The expected feature counts E# <i>[c</i><i>(&lt;pk</i><i>,d)\fi] </i>can be written as</p><doubt alpha="43.6" length="39" tooSmall="False" monospace="0.0">®o[c(&lt;l&gt;k,d)\fi]   =J2Pe(d\fi)c(&lt;l&gt;k,d)</doubt><doubt alpha="18.8" length="16" tooSmall="False" monospace="0.0">= ^^(/ll/i)^,/!)</doubt><p>We can justify the second step since fea­ture counts are local to hyperedges, i.e. <i>c((/)k,d) = </i><i>T,hed</i><i>c((l</i><i>)k,h). </i>The posterior probability <i>Pe{h\fi) </i>can be efficiently computed with inside-outside scores. Let <i>\{u) </i>and <i>0</i><i>(u) </i>be the standard inside and outside scores for a node <i>u </i>in the forest.<footnote anchor="5"/> where <i>w(h) </i>is the weight of hyperedge <i>h, </i>given by <i>exp(6T®(h)), </i>and <i>Z(f)</i><i> = \{root) </i>is the in­side score of the root of the forest. Computing these inside-outside quantities takes time linear in the number of hyperedges in the forest.</p><doubt alpha="35.9" length="39" tooSmall="False" monospace="0.0">Pe(h\fi) =        w(h) 0(head(h))[]l(v)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">v&amp;ail(h)</doubt></subsection><subsection number="3.3" title="Computing n -gram Expectations"><p>We can compute the expectations of any specific n-grams, or of total n-gram counts £, in the same way as feature expectations, provided that target-side n-grams are also localized to hyperedges (e.g. consider <i>I </i>to be a feature of a hyperedge whose value is the number of n-grams on <i>h). </i>If the nodes in our forests are annotated with target-side boundary words as in Figure 3, then this will be the case.<page local="5" global="1422"/> Note that this is the same approach used by decoders which integrate a target language model (e.g. Chiang (2007)). Other work has computed n-gram expectations in the same way (DeNero et al., 2009; Li et al., 2009).</p><footnote label="5">Appendix Figure 7 gives recursions for I(w) and O(w)</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1421</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">d</doubt></subsection><subsection number="3.4" title="Computing Expectations of Products of Counts"><p>While the previous two expectations can be com­puted using techniques known in the literature, the expected product of counts E#[c((/&gt;fc, <i>d) ■ £n(d)\fi] </i>is a novel quantity. Fortunately, an efficient dy­namic program exists for computing this expec­tation as well. We present this dynamic program here as one of the contributions of this paper, though we omit a full derivation due to space re­strictions.</p><p>To see why this expectation cannot be computed in the same way as the expected feature or n-gram counts, we expand the definition of the expectation above to get</p><doubt alpha="52.2" length="23" tooSmall="False" monospace="0.0">Y,peid\h) [c^k,d)en(d)\</doubt><p>Unlike feature and n-gram counts, the product of counts in brackets above does not decompose over hyperedges, at least not in an obvious way. We can, however, still decompose the feature counts <i>c(&lt;pk, d) </i>over hyperedges. After this decomposi­tion and a little re-arranging, we get</p><doubt alpha="44.4" length="27" tooSmall="False" monospace="0.0">=   Y^c^",h)J2Pe(d\fi)in(d)</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">]Tw(d)£n(d)</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">d:hed</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">.d:hed</doubt><p>The quantity <b><i>D</i></b><i>e(h</i><i>\fi)</i><i> </i><i>=</i><i> </i>Ed</p><p><i>:hed w(d)£n{d) </i>is the sum of the weight-length products of all deriva­tions <i>d </i>containing hyperedge <i>h. </i>In the same way that <i>Pe{h\fi) </i>can be efficiently computed from inside and outside probabilities, this quan­tity <b><i>D</i></b><i>e(h\fi) </i>can be efficiently computed with two new inside and outside quantities, which we call <b><i>l</i></b><i>n(u) </i>and <b><i>O</i></b><i>n(u). </i>We provide recursions for these quantities in Figure 4. Like the standard inside and outside computations, these recursions run in time linear in the number of hyperedges in the forest.</p><p>While a full exposition of the algorithm is not possible in the available space, we give some brief intuition behind this dynamic program. We first define I„(-u):</p><doubt alpha="42.1" length="19" tooSmall="False" monospace="0.0">în(u) =^2w(du)£n(d)</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">du</doubt><p>where <i>du </i>is a derivation rooted at node <i>u. </i>This is a sum of weight-length products similar to D. To give a recurrence for I, we rewrite it:</p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">\n{v)</doubt><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">= E EHdMh)]</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">duhedu</doubt><p>Here, we have broken up the total value of <i>£n(d) </i>across hyperedges in <i>d. </i>The bracketed quantity is a score of a <i>marked</i><i> </i><i>derivation</i><i> </i>pair <i>(d, h) </i>where the edge <i>h </i>is some specific element of <i>d. </i>The score of a marked derivation includes the weight of the derivation and the factor <i>£n(h) </i>for the marked hy­peredge.</p><p>This sum over marked derivations gives the in­side recurrence in Figure 4 by the following de­composition. For <b><i>l</i></b><i>n(u) </i>to sum over all marked derivation pairs rooted at <i>u, </i>we must consider two cases. First, the marked hyperedge could be at the root, in which case we must choose child deriva­tions from regular inside scores and multiply in the local £n, giving the first summand of I„(-u). Alter­natively, the marked hyperedge is in exactly one of the children; for each possibility we recursively choose a marked derivation for one child, while the other children choose regular derivations. The second summand of <b><i>l</i></b><i>n(u) </i>compactly expresses a sum over instances of this case. <b><i>O</i></b><i>n(u) </i>de­composes similarly: the marked hyperedge could be local (first summand), under a sibling (second summand), or higher in the tree (third summand).</p><p>Once we have these new inside-outside quanti­ties, we can compute D as in Figure 5. This com­bination states that marked derivations containing <i>h </i>are either marked at <i>h, </i>below <i>h, </i>or above <i>h.</i></p><p>As a final detail, computing the gradient <i>X7C'nip(0) </i>(see the Appendix) involves a clipped version of the expected product of counts, for which a clipped <i>D </i>is required. This quantity can be computed with the same dynamic program with a slight modification. In Figure 4, we show the dif­ference as a choice point when computing <i>£n(h).</i></p></subsection><subsection number="3.5" title="Implementation Details"><p>As stated, the runtime of computing the required expectations for the objective and gradient is lin­ear in the number of hyperedges in the forest. The <i>vEtail(h)</i> <i>vEtail(h)</i><i> </i><i>wEtail(h)</i> computing undipped counts <i>wEtail(h)</i><page local="6" global="1423"/></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1422</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">In(m) =</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">heIN(u)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">w(h)</doubt><doubt alpha="40.0" length="10" tooSmall="False" monospace="0.0">Ô„(u)=w(h)</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">/iGOUT(m)</doubt><doubt alpha="50.9" length="57" tooSmall="False" monospace="0.0">£n(h)ö(head(h))]JK»+ö(head(h))^î„(»]Jl(w)+Ön(head(h))]JK&gt;</doubt><doubt alpha="40.0" length="15" tooSmall="False" monospace="0.0">in(h)=\^c{9n&gt;h)</doubt><p><i>[T</i><i>,gn </i><i>c(9n, </i><i>h</i><i>)l </i><i>[Ee[c(gn,</i><i> </i><i>d)}</i><i> </i><i>&lt;</i><i> </i><i>c(gn,</i><i> </i><i>n)]</i><i> </i>computing clipped counts</p><p>Figure 4: Inside and Outside recursions for I„(w) and <b><i>O</i></b><i>n(u).</i><i> </i>IN(w) and OUT(w) refer to the incoming and outgoing hyperedges of <i>u,</i><i> </i>respectively. I( ) and O(-) refer to standard inside and outside quantities, defined in Appendix Figure 7. We initialize with I„(w) = 0 for all terminal forest nodes <i>u</i><i> </i>and <b><i>O</i></b><i>n(root)</i><i> </i><i>=</i><i> </i>0 for the root node. <i>£n(h)</i><i> </i>computes the sum of all n-grams of order n on a hyperedge <i>h.</i></p><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">Ve{h\k) =</doubt><doubt alpha="41.7" length="60" tooSmall="False" monospace="0.0">en(h)0(head(h))]J+0(head(h))       \n{v)\[\{w)+Ôn(head(h))]J</doubt><doubt alpha="62.5" length="32" tooSmall="False" monospace="0.0">v&amp;ail(h)v&amp;ail(h)v&amp;ail(h)w&amp;ail(h)</doubt><figure caption="Figure 5: Calculation of De(h\fi)after I„(w)andOn(u)have been computed."></figure><p>number of hyperedges is very large, however, be­cause we must track n-gram contexts in the nodes, just as we would in an integrated language model decoder. These contexts are required both to cor­rectly compute the model score of derivations and to compute clipped n-gram counts. To speed our computations, we use the cube pruning method of Huang and Chiang (2007) with a fixed beam size.</p><p>For regularization, we added an <i>L2 </i>penalty on the size of <i>6 </i>to the CoBLEU objective, a simple addition for gradient ascent. We did not find that our performance varied very much for moderate levels of regularization.</p></subsection><subsection number="3.6" title="Related Work"><p>The calculation of expected counts can be for­mulated using the expectation semiring frame­work of Eisner (2002), though that work does not show how to compute expected products of counts which are needed for our gradient calcu­lations. Concurrently with this work, Li and Eis­ner (2009) have generalized Eisner (2002) to com­pute expected products of counts on translation forests. The training algorithm of Kakade et al. (2002) makes use of a dynamic program similar to ours, though specialized to the case of sequence models.</p></subsection></section><section number="4" title="Consensus Decoding"><p>Once model parameters <i>6 </i>are learned, we must select an appropriate decoding objective. Sev­eral new decoding approaches have been proposed recently that leverage some notion of consensus over the many weighted derivations in a transla­tion forest. In this paper, we adopt the fast consen­sus decoding procedure of DeNero et al. (2009), which directly complements CoBLEU tuning. For a source sentence /, we first build a translation forest, then compute the expected count of each n-gram in the translation of / under the model. We extract a fc-best list from the forest, then select the translation that yields the highest BLEU score relative to the forest's expected n-gram counts. Specifically, let BLEU(e; <i>r)</i><i> </i>compute the simi­larity of a sentence e to a reference <i>r </i>based on the n-gram counts of each. When training with CoBLEU, we replace e with expected counts and maximize <i>6. </i>In consensus decoding, we replace <i>r </i>with expected counts and maximize e.</p><p>Several other efficient consensus decoding procedures would similarly benefit from a tuning pro­cedure that aggregates over derivations.<page local="7" global="1424"/> For in­stance, Blunsom and Osborne (2008) select the translation sentence with highest posterior proba­bility under the model, summing over derivations. Li et al. (2009) propose a variational approxima­tion maximizing sentence probability that decom­poses over n-grams. Tromble et al. (2008) min­imize risk under a loss function based on the lin­ear Taylor approximation to BLEU, which decom­poses over n-gram posterior probabilities.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1423</doubt></section><section number="5" title="Experiments"><p>We compared CoBLEU training with an imple­mentation of minimum error rate training on two language pairs.</p><subsection number="5.1" title="Model"><p>Our optimization procedure is in principle tractable for any syntactic translation system. For simplicity, we evaluate the objective using an In­version Transduction Grammar (ITG) (Wu, 1997) that emits phrases as terminal productions, as in (Cherry and Lin, 2007). Phrasal ITG models have been shown to perform comparably to the state-of-the art phrase-based system Moses (Koehn et al., 2007) when using the same phrase table (Petrov et al., 2008).</p><p>We extract a phrase table using the Moses pipeline, based on Model 4 word alignments gen­erated from GIZA++ (Och and Ney, 2003). Our fi­nal ITG grammar includes the five standard Moses features, an n-gram language model, a length fea­ture that counts the number of target words, a fea­ture that counts the number of monotonie ITG rewrites, and a feature that counts the number of inverted ITG rewrites.</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">5.2 Data</doubt><p>We extracted phrase tables from the Spanish-English and French-English sections of the Eu-roparl corpus, which include approximately 8.5 million words of bitext for each of the language pairs (Koehn, 2002). We used a trigram lan­guage model trained on the entire corpus of En­glish parliamentary proceedings provided with the Europarl distribution and generated according to the ACL 2008 SMT shared task specifications.<footnote anchor="6"/>For tuning, we used all sentences from the 2007 SMT shared task up to length 25 (880 sentences</p><p>CoBLEU MERT</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">6</doubt><p>Iterations</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">10</doubt><p>See http : //www. statmt. org/wmt08 for details.</p><p>Figure 6: Trajectories of MERT and CoBLEU dur­ing optimization show that MERT is initially unstable, while CoBLEU training follows a smooth path to con­vergence. Because these two training procedures op­timize different functions, we have normalized each trajectory by the final objective value at convergence. Therefore, the absolute values of this plot do <i>not </i>re­flect the performance of either objective, but rather the smoothness with which the final objective is ap­proached. The rates of convergence shown in this plot are not directly comparable. Each iteration for MERT above includes 10 iterations of coordinate ascent, fol­lowed by a decoding pass through the training set. Each iteration of CoBLEU training involves only one gradi­ent step.</p><p>for Spanish and 923 for French), and we tested on the subset of the first 1000 development set sen­tences which had length at most 25 words (447 sentences for Spanish and 512 for French).</p></subsection><subsection number="5.3" title="Tuning Optimization"><p>We compared two techniques for tuning the nine log-linear model parameters of our ITG grammar. We maximized CoBLEU using gradient ascent, as described above. As a baseline, we maximized BLEU of the Viterbi translation derivations using minimum error rate training. To improve opti­mization stability, MERT used a cumulative fc-best list that included all translations generated during the tuning process.</p><p>One of the benefits of CoBLEU training is that we compute expectations efficiently over an entire forest of translations. This has substantial stabil­ity benefits over methods based on A;-best lists. In Figure 6, we show the progress of CoBLEU as compared to MERT. Both models are initialized from 0 and use the same features. This plot ex­hibits a known issue with MERT training: because new fc-best lists are generated at each iteration, the objective function can change drastically be­tween iterations. In contrast, CoBLEU converges<page local="8" global="1425"/></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1424</doubt><p><b>Consensus Decoding</b></p><p>Table 1: Performance measured by BLEU using a con­sensus decoding method over translation forests shows an improvement over MERT when using CoBLEU training. The first two conditions were initialized by 0 vectors. The third condition was initialized by the final parameters of MERT training. Br. indicates the brevity penalty on the test set. The * indicates differ­ences which are not statistically significant.</p><p>smoothly to its final objective because the forests do not change substantially between iterations, de­spite the pruning needed to track n-grams. Similar stability benefits have been observed for lattice-based MERT (Macherey et al., 2008).</p></subsection><subsection number="5.4" title="Results"><p>We performed experiments from both French and Spanish into English under three conditions. In the first two, we initialized both MERT and CoBLEU training uniformly with zero weights and trained until convergence. In the third condition, we ini­tialized CoBLEU with the final parameters from MERT training, denoted MERT^CoBLEU in the results tables. We evaluated each of these condi­tions on both the tuning and test sets using the con­sensus decoding method of DeNero et al. (2009). The results appear in Table 1.</p><p>In Spanish-English, CoBLEU slightly outper­formed MERT under the same initialization, while the opposite pattern appears for French-English. The best test set performance in both language pairs was the third condition, in which CoBLEU training was initialized with MERT. This con­dition also gave the highest CoBLEU objective value. This pattern indicates that CoBLEU is a useful objective for translation with consensus de­coding, but that the gradient ascent optimization is getting stuck in local maxima during tuning. This issue can likely be addressed with annealing, as described in (Smith and Eisner, 2006).</p><p>Interestingly, the brevity penatly results in French indicate that, even though CoBLEU did</p><p><b>Viterbi Decoding</b></p><p>Table 2: Performance measured by BLEU using <i>Viterbi </i>decoding indicates that CoBLEU is less prone to over-fitting than MERT.</p><p>not outperform MERT in a statistically significant way, CoBLEU tends to find shorter sentences with higher n-gram precision than MERT.</p><p>Table 1 displays a second benefit of CoBLEU training: compared to MERT training, CoBLEU performance degrades less from tuning to test set. In Spanish, initializing with MERT-trained weights and then training with CoBLEU actually decreases BLEU on the tuning set by 0.8 points. However, this drop in tuning performance comes with a corresponding increase of 0.6 on the test set, relative to MERT training. We see the same pattern in French, albeit to a smaller degree.</p><p>While CoBLEU ought to outperform MERT us­ing consensus decoding, we expected that MERT would give better performance under Viterbi de­coding. Surprisingly, we found that CoBLEU training actually outperformed MERT in Spanish-English and performed equally well in French-English. Table 2 shows the results. In these ex­periments, we again see that CoBLEU overfit the training set to a lesser degree than MERT, as evi­denced by a smaller drop in performance from tun­ing to test set. In fact, test set performance actually improved for Spanish-English CoBLEU training while dropping by 2.3 BLEU for MERT.</p></subsection></section><section number="6" title="Conclusion"><p>CoBLEU takes a fundamental quantity used in consensus decoding, expected n-grams, and trains to optimize a function of those expectations. While CoBLEU can therefore be expected to in­crease test set BLEU under consensus decoding, it is more surprising that it seems to better regularize learning even for the Viterbi decoding condition. It is also worth emphasizing that the CoBLEU ap­proach is applicable to functions of expected n-gram counts other than BLEU.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1425</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>Spanish</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Tune</p></td><td class="cell"><p>Test</p></td><td class="cell"><p>A</p></td><td class="cell"><p>Br.</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>32.5</p></td><td class="cell"><p>30.2</p></td><td class="cell"><p>-2.3</p></td><td class="cell"><p>0.992</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CoBLEU</p></td><td class="cell"><p>31.4</p></td><td class="cell"><p>30.4</p></td><td class="cell"><p>-1.0</p></td><td class="cell"><p>0.992</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MERT^CoBLEU</p></td><td class="cell"><p>31.7</p></td><td class="cell"><p><b>30.8</b></p></td><td class="cell"><p>-0.9</p></td><td class="cell"><p>0.992</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>French</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Tune</p></td><td class="cell"><p>Test</p></td><td class="cell"><p>A</p></td><td class="cell"><p>Br.</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>32.5</p></td><td class="cell"><p>31.1*</p></td><td class="cell"><p>-1.4</p></td><td class="cell"><p>0.972</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CoBLEU</p></td><td class="cell"><p>31.9</p></td><td class="cell"><p>30.9</p></td><td class="cell"><p>-1.0</p></td><td class="cell"><p>0.954</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MERT^CoBLEU</p></td><td class="cell"><p>32.4</p></td><td class="cell"><p><b>31.2*</b></p></td><td class="cell"><p>-0.8</p></td><td class="cell"><p>0.953</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Spanish</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Tune</p></td><td class="cell"><p>Test</p></td><td class="cell"><p>A</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>32.5</p></td><td class="cell"><p>30.2</p></td><td class="cell"><p>-2.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MERT^CoBLEU</p></td><td class="cell"><p>30.5</p></td><td class="cell"><p>30.9</p></td><td class="cell"><p><b>+0.4</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>French</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Tune</p></td><td class="cell"><p>Test</p></td><td class="cell"><p>A</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>32.0</p></td><td class="cell"><p>31.0</p></td><td class="cell"><p>-1.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MERT^CoBLEU</p></td><td class="cell"><p>31.7</p></td><td class="cell"><p>30.9</p></td><td class="cell"><p>-0.8</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="9" global="1426"/><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">w(h)</doubt><p><i>wEtail(h)</i></p></section><references><p>Phil Blunsom and Miles Osborne. 2008. Probabilistic inference for machine translation. In <i>Proceedings of the Conference on Emprical Methods for Natural Language Processing.</i></p><p>Colin Cherry and Dekang Lin. 2007. Inversion trans­duction grammar for joint phrasal translation mod­eling. In <i>The Annual Conference of the North Amer­ican Chapter of the Association for Computational Linguistics Workshop on Syntax and Structure in Statistical Translation.</i></p><p>David Chiang, Yuval Marton, and Philip Resnik. 2008. Online large-margin training of syntactic and struc­tural translation features. In <i>The Conference on Em­pirical Methods in Natural Language Processing.</i></p><p>David Chiang. 2007. Hierarchical phrase-based trans­lation. <i>Computational Linguistics.</i></p><p>John DeNero, David Chiang, and Kevin Knight. 2009. Fast consensus decoding over translation forests. In <i>The Annual Conference of the Association for Com­putational Linguistics.</i></p><p>Jason Eisner. 2002. Parameter estimation for prob­abilistic finite-state transducers. In <i>Proceedings of the 40th Annual Meeting on Association for Compu­tational Linguistics.</i></p><p>Liang Huang and David Chiang. 2007. Forest rescor-ing: Faster decoding with integrated language mod­els. In <i>The Annual Conference of the Association for Computational Linguistics.</i></p><p>Sham Kakade, Yee Whye Teh, and Sam T. Roweis. 2002. An alternate objective function for markovian fields. In <i>Proceedings oflCML.</i></p><p>Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Chris Dyer, Ondrej Bojar, Alexandra Constantin, and Evan Herbst. 2007. Moses: Open source toolkit for statistical machine translation. In <i>The Annual Conference of the Association for Com­putational Linguistics.</i></p><p>Philipp Koehn. 2002. Europarl: A multilingual corpus for evaluation of machine translation.</p><p>Shankar Kumar, Wolfgang Macherey, Chris Dyer, and Franz Och. 2009. Efficient minimum error rate training and minimum Bayes-risk decoding for translation hypergraphs and lattices. In <i>The Annual Conference of the Association for Computational Linguistics.</i></p><p>Zhifei Li and Jason Eisner. 2009. First- and second-order expectation semirings with applications to minimum-risk training on translation forests. In <i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing.</i></p><p>Zhifei Li, Jason Eisner, and Sanjeev Khudanpur. 2009. Variational decoding for statistical machine transla­tion. In <i>The Annual Conference of the Association for Computational Linguistics.</i></p><p>W. Macherey, F. Och, I. Thayer, and J. Uszkoreit. 2008. Lattice-based minimum error rate training for statistical machine translation. In <i>In Proceedings of Empirical Methods in Natural Language Process­ing.</i></p><p>Franz Josef Och and Hermann Ney. 2003. A sys­tematic comparison of various statistical alignment models. <i>Computational Linguistics, </i>29:19-51.</p><p>Franz Josef Och. 2003. Minimum error rate training in statistical machine translation. In <i>Proceedings of the 41st Annual Meeting on Association for Compu­tational Linguistics (ACL), </i>pages 160-167, Morris-town, NJ, USA. Association for Computational Lin­guistics.</p><p>Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. BLEU: A method for automatic evaluation of machine translation. In <i>The Annual Conference of the Association for Computational Linguistics.</i></p><p>Slav Petrov, Aria Haghighi, and Dan Klein. 2008. Coarse-to-fine syntactic machine translation us­ing language projections. In <i>Proceedings of the 2008 Conference on Empirical Methods in Nat­ural Language Processing, </i>pages 108-116, Hon­olulu, Hawaii, October. Association for Computa­tional Linguistics.</p><p>David Smith and Jason Eisner. 2006. Minimum risk annealing for training log-linear models. In <i>In Pro­ceedings of the Association for Computational Lin­guistics.</i></p><p>Roy Tromble, Shankar Kumar, Franz Och, and Wolf­gang Macherey. 2008. Lattice minimum Bayes-risk decoding for statistical machine translation. In <i>The Conference on Empirical Methods in Natural Lan­guage Processing.</i></p><p>Dekai Wu. 1997. Stochastic inversion transduction grammars and bilingual parsing of parallel corpora. <i>Computational Linguistics, </i>23:377^104.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1427</doubt></references><appendix title="Appendix"><p>We would like to compute the gradient of</p><doubt alpha="61.9" length="21" tooSmall="False" monospace="0.0">VE?=iEgiMc(9ud)\ft]J_</doubt><doubt alpha="53.8" length="65" tooSmall="False" monospace="0.0">1-AYT=l E5rlmin{Ee[c(ffw,d)\fj], c(gn, n)}+11ET=iJ2gnMc(9n,d)\ft}</doubt><p>To simplify notation, we introduce the functions</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">m</doubt><doubt alpha="40.0" length="20" tooSmall="False" monospace="0.0">Cn{e)=Y.Y.^&lt;^,e)\fi]</doubt><doubt alpha="51.4" length="35" tooSmall="False" monospace="0.0">Cfv(e) =J2J2mÜ1iE^n,d)\fi},c(r,gn)}</doubt><p><i>Cn{9) </i>represents the sum of the expected counts of all n-grams or order n in all translations of the source corpus <i>F,</i><i> </i>while <i>C</i><i>Cn</i><i>V{9)</i><i> </i>represents the sum of the same expected counts, but clipped with reference counts <i>c(gn,ri).</i></p><p>With this notation, we can write our objective function CoBLEU(_R, <i>F, </i><i>9)</i><i> </i>in three terms:</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">\R\</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">cm</doubt><doubt alpha="57.9" length="19" tooSmall="False" monospace="0.0">+^lnCf(ö)-^lnCre(ö)</doubt><p>We first state an identity:</p><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">EJ^~Eöic(9n,d)\fi]</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">de</doubt><doubt alpha="50.0" length="22" tooSmall="False" monospace="0.0">Ee[c(&lt;t&gt;k,d)-en(d)\fi]</doubt><doubt alpha="38.7" length="31" tooSmall="False" monospace="0.0">-Ee[£n(d)\fi] ■1&amp;e[c{4&gt;k,d)\fi}</doubt><p>which can be derived by expanding the expectation on the left-hand side and substituting</p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">Snd</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">de,</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">-Pe{d\fi) =</doubt><doubt alpha="47.9" length="48" tooSmall="False" monospace="0.0">P9(d\fi)c(&lt;f&gt;k,d)- Pe(d\fi)Y^Pe(d'\fi)c(&lt;f&gt;k,d')</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">d'</doubt><p>Using this identity and some basic calculus, the gradient <i>VCn(9) </i>is</p><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">I(u) =J2w(h)</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">heJN(u)</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">ITJH</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">0(u)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">- E</doubt><p><i>heOUT</i><i>(u)</i></p><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">0(head(h))l(l</doubt><p><i>vÇ</i><i>^taUih)</i></p><p>Figure 7: Standard Inside-Outside recursions which compute I(w) and <b><i>O</i></b><i>(u). </i>IN(w) and OUT(w) refer to the incoming and outgoing hyperedges of <i>u, </i>respectively. We initialize with I(w) = 1 for all terminal forest nodes <i>u </i>and <b><i>O</i></b><i>(root) = </i>1 for the root node. These quantities are referenced in Figure 4.</p><p>and the gradient VC£lip(tf) is given by where 1 denotes an indicator function. At the top level, the gradient of the first term (the brevity penalty) is</p><doubt alpha="52.0" length="25" tooSmall="False" monospace="0.0">EEEelc(9n,d)■ c(4&gt;k,d)\fi</doubt><doubt alpha="54.5" length="22" tooSmall="False" monospace="0.0">1Ee[c(gn,d)\fi]&lt;c(gn,n</doubt><doubt alpha="42.9" length="21" tooSmall="False" monospace="0.0">-C^(e)Ee[c(4&gt;k,d)+fi]</doubt><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">\R\Vd(9)</doubt><doubt alpha="30.0" length="10" tooSmall="False" monospace="0.0">Ci{9)&lt; \R\</doubt><doubt alpha="33.3" length="6" tooSmall="False" monospace="0.0">Ci(9)2</doubt><p>The gradient of the second term is</p><p><i>lh</i><i> </i><i>C</i><i>^(9)</i><i> </i>and the gradient of the third term is</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">1AVCn(9)</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">Cn{9)</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">n=i</doubt><p>Note that, because of the indicator func­tions, CoBLEU is non-differentiable when <i>Ee[c(gn,d)\fl] = c(gn, </i><i>n)</i><i> </i>or <i>Cn{9) = \R\. </i>Formally, we must compute a sub-gradient at these points. In practice, we can choose between the gradients calculated assuming the indicator function is 0 or 1 ; we always choose the latter.</p><doubt alpha="39.4" length="33" tooSmall="False" monospace="0.0">^Ee[c(4&gt;k,d)-Cn(6)&amp;e[c{4&gt;k,d)\fi_</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1426</doubt><page local="10" global="1427"/></appendix></body></article>