<?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="34"/><title>Turbo Parsers: Dependency Parsing by Approximate Variational Inference</title><pubinfo>Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing,pages 34—44, MIT, Massachusetts, USA, 9-11 October 2010. ©2010 Association for Computational Linguistics</pubinfo><author surname="Smith" givenname="Noah"><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author><author surname="Xing" givenname="Eric"><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author><author surname="Aguiar" givenname="Pedro"><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author><author surname="Figueiredo" givenname="Mario"><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author><author surname="Martins" givenname="Andre"><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author></firstpageheader><frontmatter><p><b>TUrbo Parsers: Dependency Parsing by Approximate Variational Inference</b></p><p><b>André </b><b>F.</b><b> </b><b>T.</b><b> Martins*<footnote anchor="1"/>" Noah A. Smith* Eric </b><b>P.</b><b> Xing*</b></p><p>* School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213, USA</p><p>{afm,nasmith,epxing}@cs.cmu.edu</p><p><b>Pedro M. Q. Aguiar*</b></p><p>^Instituto de Sistemas e Robotica Instituto Superior Tecnico Lisboa, Portugal aguiar@isr.ist.utl.pt</p><p><b>Mario A. </b><b>T.</b><b> Figueiredo<footnote anchor="1"/>"</b></p><p>"""Instituto de Telecomunicacoes Instituto Superior Tecnico Lisboa, Portugal mtf@lx.it.pt</p></frontmatter><abstract>We present a unified view of two state-of-the-art non-projective dependency parsers, both approximate: the loopy belief propagation parser of Smith and Eisner (2008) and the re­laxed linear program of Martins et al. (2009). By representing the model assumptions with a factor graph, we shed light on the optimiza­tion problems tackled in each method. We also propose a new aggressive online algorithm to learn the model parameters, which makes use of the underlying variational representation. The algorithm does not require a learning rate parameter and provides a single framework for a wide family of convex loss functions, includ­ing CRFs and structured SVMs. Experiments show state-of-the-art performance for 14 lan­guages. </abstract></header><body><section number="1" title="Introduction"><p>Feature-rich discriminative models that break local­ity/independence assumptions can boost a parser's performance (McDonald et al., 2006; Huang, 2008; Finkel et al., 2008; Smith and Eisner, 2008; Martins et al., 2009; Koo and Collins, 2010). Often, infer­ence with such models becomes computationally in­tractable, causing a demand for understanding and improving approximate parsing algorithms.</p><p>In this paper, we show a formal connection be­tween two recently-proposed approximate inference techniques for non-projective dependency parsing: loopy belief propagation (Smith and Eisner, 2008) and linear programming relaxation (Martins et al., 2009). While those two parsers are differently moti­vated, we show that both correspond to inference in a factor graph, and both optimize objective functions over local approximations of the marginal polytope. The connection is made clear by writing the explicit declarative optimization problem underlying Smith and Eisner (2008) and by showing the factor graph underlying Martins et al. (2009). The success of both approaches parallels similar approximations in other fields, such as statistical image processing and error-correcting coding. Throughtout, we call these <i>turbo parsers.<footnote anchor="1"/></i></p><p>Our contributions are not limited to dependency parsing: we present a general method for inference in factor graphs with hard constraints (§2), which extends some combinatorial factors considered by Smith and Eisner (2008). After presenting a geo­metric view of the variational approximations un­derlying message-passing algorithms (§3), and clos­ing the gap between the two aforementioned parsers (§4), we consider the problem of learning the model parameters (§5). To this end, we propose an ag­gressive online algorithm that generalizes MIRA (Crammer et al., 2006) to arbitrary loss functions. We adopt a family of losses subsuming CRFs (Laf-ferty et al., 2001) and structured SVMs (Taskar et al., 2003; Tsochantaridis et al., 2004). Finally, we present a technique for including features not at­tested in the training data, allowing for richer mod­els without substantial runtime costs. Our experi­ments (§6) show state-of-the-art performance on de­pendency parsing benchmarks.</p><footnote label="1">The name stems from "turbo codes," a class of high-performance error-correcting codes introduced by Berrou et al.</footnote><p>(1993) for which decoding algorithms are equivalent to running belief propagation in a graph with loops (McEliece et al., 1998).</p><page local="2" global="35"/></section><section number="2" title="Structured Inference and Factor Graphs"><p>Denote by X a set of input objects from which we want to infer some hidden structure conveyed in an output set Y. Each input x G X (e.g., a sentence) is associated with a set of candidate outputs Y (x) ç Y (e.g., parse trees); we are interested in the case where Y (x) is a large structured set.</p><p>Choices about the <i>representation </i>of elements of Y(x) play a major role in algorithm design. In many problems, the elements of Y(x) can be rep­resented as discrete-valued vectors of the form <b>y </b>= <i>(yi,...,y</i><i>i</i>), each yi taking values in a label set Yi. For example, in unlabeled dependency parsing, I is the number of candidate dependency arcs (quadratic in the sentence length), and each <i>Y</i><i>i </i><i>= </i>{0,1}. Of course, the yi are highly interdependent.</p><p><b>Factor Graphs. </b>Probabilistic models like CRFs (Lafferty et al., 2001) assume a factorization of the conditional distribution of Y, where each <i>C ç </i>{1,..., I} is a <i>factor, </i>C is the set of factors, each <b>yc = </b><i>(yi)ie</i><i>c </i>denotes a partial out­put assignment, and each ^c is a nonnegative <i>po­tential function </i>that depends on the output only via its restriction to C. A <i>factor graph </i>(Kschischang et al., 2001) is a convenient representation for the factorization in Eq. 1: it is a bipartite graph <i>Gx</i><i> </i>com­prised of variable nodes {1,..., I} and factor nodes C G C, with an edge connecting the ith variable node and a factor node C iff i G C. Hence, the fac­tor graph Sx makes explicit the direct dependencies among the variables {yi,..., yI}.</p><doubt alpha="53.3" length="30" tooSmall="False" monospace="0.0">Pr(Y=y|X =x)ocncee*c(x,yc),(1)</doubt><p>Factor graphs have been used for several NLP tasks, such as dependency parsing, segmentation, and co-reference resolution (Sutton et al., 2007; Smith and Eisner, 2008; McCallum et al., 2009).</p><p><b>Hard and Soft Constraint Factors.   </b>It may be the case that valid outputs are a <i>proper </i>subset of Yi x • • • x Y i—for example, in dependency pars­ing, the entries of the output vector <b>y </b>must jointly define a spanning tree. This requires <i>hard constraint factors </i>that rule out forbidden partial assignments by mapping them to zero potential values. See Ta­ble 1 for an inventory of hard constraint factors used in this paper. Factors that are not of this special kind are called <i>soft factors, </i>and have strictly positive po­tentials. We thus have a partition C = Chard U Csoft.</p><p>We let the soft factor potentials take the form *c(x, <b>y</b>c) = exp(0T0c(x, <b>y</b>c)), where 6 G <i>Rd</i>is a vector of parameters (shared across factors) and <i>4&gt;c </i>(x, <b>yc </b>) is a local feature vector. The conditional distribution of Y (Eq. 1) thus becomes log-linear:</p><doubt alpha="37.1" length="35" tooSmall="False" monospace="0.0">Pr0(y|x) = Zx(6)-iexp(6T0(x,y)),(2)</doubt><p>where Zx(6) = £y'ey(x) exp(6T0(x, <b>y')) </b>is the <i>partition function, </i>and the features decompose as:</p><doubt alpha="51.9" length="27" tooSmall="False" monospace="0.0">0(xy)= Eceesoft&lt;£c(xyc).(3)</doubt><p><b>Dependency Parsing. </b>Smith and Eisner (2008) proposed a factor graph representation for depen­dency parsing (Fig. 1). The graph has O(n<footnote anchor="2"/>) vari­able nodes (n is the sentence length), one per candi­date arc a = (h, m) linking a head <i>h </i>and modifier m. Outputs are binary, with ya = 1 iff arc a belongs to the dependency tree. There is a hard factor T RE E connected to all variables, that constrains the overall arc configurations to form a spanning tree. There is a unary soft factor per arc, whose log-potential reflects the score of that arc. There are also O(n<footnote anchor="3"/>) pair-wise factors; their log-potentials reflect the scores of <i>sibling </i>and <i>grandparent </i>arcs. These factors cre­ate loops, thus calling for approximate inference. Without them, the model is arc-factored, and ex­act inference in it is well studied: finding the most probable parse tree takes O(n<footnote anchor="3"/>) time with the Chu-Liu-Edmonds algorithm (McDonald et al., 2005),<footnote anchor="2"/>and computing posterior marginals for all arcs takes O(n<footnote anchor="3"/>) time via the matrix-tree theorem (Smith and</p><p>Smith, 2007; Koo et al., 2007).</p><p><b>Message-passing algorithms. </b>In general factor graphs, both inference problems— obtaining the most probable output (the MAP) argmaxy€y(x) Pr#<b>(y</b>|x), and computing the marginals Pr#(Yi = yi|x)—can be addressed with the belief propagation (BP) algorithm (Pearl, 1988), which iteratively passes messages between variables and factors reflecting their local "beliefs."<page local="3" global="36"/></p><footnote label="2">There is a faster but more involved O  (n 2  ) algorithm due to Tarjan (1977).</footnote><p>where SC Ç {0, i}n.</p><doubt alpha="59.3" length="54" tooSmall="False" monospace="0.0">=i,-,n^Partitionfunction:Zc(üü)= E(„,,..1v„)es^n=imI—C</doubt><doubt alpha="63.4" length="93" tooSmall="False" monospace="0.0">•Marginals:marg^cü)=Pr^{V= i\{Vi,... ,Vn)eSc}•Max-marginals:max-margi&gt;b(u)=maxv6gCPr^(v|v4=b)</doubt><doubt alpha="62.9" length="89" tooSmall="False" monospace="0.0">•Sum-prod.:mC—i=•margi(ü)/(i-margi(w))•Max-prod.:mC—i=m-1;C•max-margi&gt;i(u)/max-margiio(w)</doubt><p>• Local agreem. constr.: z e conv Sc , where z = (ri (i))"=i • Entropy: <i>H</i><i>e </i>= log <i>Zc </i>(ü) — En=;L margi(ü)log mi—e</p><doubt alpha="65.3" length="75" tooSmall="False" monospace="0.0">~fiy e ytree(i.e.,{a e A \ ya= i} is a directed spanning tree) 0 otherwise,</doubt><doubt alpha="61.5" length="13" tooSmall="False" monospace="0.0">*TREE«ya)a6A)</doubt><p>where A is the set of candidate arcs.</p><p>• Partition function Ztree(ü) and marginals (MARGa(u))aEA computed via the matrix-tree theorem, with <b><i>u&gt; = </i></b>(ma^TREE)a€A</p><doubt alpha="58.3" length="24" tooSmall="False" monospace="0.0">•Sum-prod.:""tree—&gt;a=ma—</doubt><doubt alpha="64.1" length="39" tooSmall="False" monospace="0.0">•Max-prod.:mTREE—a=m-"-1»TREE•max-marg,</doubt><p>• Local agreem. constr.: z e Ztree, where <i>Ztree = </i>conv ytree is the arborescence polytope</p><p><u>•</u> <u>Entropy: </u><u>H</u><u>tree </u><u>= log </u><u>Z</u><u>tree(ü) </u><u>— E</u><u>a</u><u>P</u><u>A M</u>ARGa(ü) log <i>ma</i><i> </i>— TREE</p><p>,i(w)/MAX-MARGa,o(w), where MAX-MARGa b(w) = maxyeStree Pr„(y\ya = b)</p><doubt alpha="50.0" length="32" tooSmall="False" monospace="0.0">xor("one-hot")*xor(vi,..., vn) =</doubt><doubt alpha="63.3" length="30" tooSmall="False" monospace="0.0">•Sum-prod.:"xor—i=(Ej=i"j—xorj</doubt><doubt alpha="65.1" length="43" tooSmall="False" monospace="0.0">•Local agreem. constr.:Eizi= i,zie[0, i],Vi</doubt><doubt alpha="61.8" length="34" tooSmall="False" monospace="0.0">•Max-prod.:"xor—i= (maxj=imj—xor)1</doubt><doubt alpha="66.7" length="42" tooSmall="False" monospace="0.0">•Hxor=— Exor/Ej"j—xor)log(mj—xor/Ej"j—xor)</doubt><doubt alpha="31.6" length="19" tooSmall="False" monospace="0.0">*OR(vi, . . . , vn)</doubt><p>i  En=i vi &gt; i 0 otherwise. i     vn = Vnrii vi</p><doubt alpha="54.5" length="33" tooSmall="False" monospace="0.0">•Sum-prod.:"or—i=(i—nj=i(i +"j—or</doubt><doubt alpha="66.7" length="42" tooSmall="False" monospace="0.0">•Local agreem. constr.:Eizi&gt;i,zie[0, i],Vi</doubt><doubt alpha="60.5" length="38" tooSmall="False" monospace="0.0">•Max-prod.:mOR—i= max{i, minj=i m .OR}</doubt><p>OR-WITH-OUTPUT</p><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">t(vi</doubt><doubt alpha="56.5" length="23" tooSmall="False" monospace="0.0">• Sum-prod.:"or-out—i =</doubt><doubt alpha="56.5" length="23" tooSmall="False" monospace="0.0">• Max-prod.:"or-out—i =</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">,vn)</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">(i —</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">^n—OR-OUT</doubt><doubt alpha="53.6" length="28" tooSmall="False" monospace="0.0">)Ilj=i,n(i+"j — OR-OUT)l)i&lt;n</doubt><p>i = n.</p><doubt alpha="59.1" length="22" tooSmall="False" monospace="0.0">rij = n(i+mj—or-out)—i</doubt><p>min {"n—or-ou^max{i,mj—or-out}, max{i, minj=i,n m-— or-out}} i &lt; n <u>nj=n </u><u>max{i</u><u>,m</u><u>j—</u><u>or-out</u><u>} </u><u>min{i, max</u><u>j=n </u><u>m</u><u>j—</u><u>or-out}</u>_<u>i </u><u>= </u><u>n.</u></p><p>Table 1: Hard constraint factors, their potentials, messages, and entropies. The top row shows expressions for a general binary factor: each outgoing message is computed from incoming <i>marginals </i>(in the sum-product case), or <i>max-marginals </i>(in the max-product case); the entropy of the factor (see §3) is computed from these marginals and the partition function; the local agreement constraints (§4) involve the <i>convex hull </i>of the set sc of allowed configurations (see footnote 5). The tree, xor, or and or-with-output factors allow tractable computation of all these quantities (rows 2-5). Two of these factors (TREE and XOR) had been proposed by Smith and Eisner (2008); we provide further information (max-product messages, entropies, and local agreement constraints). Factors OR and OR-WITH-OUTPUT are novel to the best of our knowledge. This inventory covers many cases, since the above formulae can be extended to the case where some inputs are <i>negated: </i>just replace the corresponding messages by their reciprocal, v by 1 - vj, etc. This allows building factors NAND (an OR factor with negated inputs), IMPLY (a 2-input OR with the first input negated), and xor-with-output (an xor factor with the last input negated).</p><p>In sum-product BP, the messages take the form:<footnote anchor="3"/></p><doubt alpha="59.7" length="62" tooSmall="False" monospace="0.0">Mi^c(yi)ocnD=cMD^i(yi)(4)Mc^i(yi)ocEye~w*c(yc)rij=iMj^c(y).(5)</doubt><p>In max-product BP, the summation in Eq. 5 is re­placed by a maximization. Upon convergence, vari­able and factor beliefs are computed as:</p><doubt alpha="54.2" length="48" tooSmall="False" monospace="0.0">Ti(yi)«rfcMc^i(yi)(6)tc(yc)«*c(yc)ELMi^c(yi).(7)</doubt><p>BP is exact when the factor graph is a tree: in the sum-product case, the beliefs in Eqs. 6-7 correspond to the true marginals, and in the max-product case, maximizing each ri(yi ) yields the MAP output. In graphs with loops, BP is an approximate method, not guaranteed to converge, nicknamed <i>loopy </i>BP. We highlight a variational perspective of loopy BP in §3; for now we consider algorithmic issues. Note that computing the factor-to-variable messages for each factor C (Eq. 5) requires a summation/maximization over exponentially many configurations. Fortu­nately, for all the hard constraint factors in rows 3-5 of Table 1, this computation can be done in linear time (and polynomial for the TR EE factor)—this ex­tends results presented in Smith and Eisner (2008).<footnote anchor="4"/><page local="4" global="37"/></p><footnote label="3">We employ the standard ~ notation, where a summa­tion/maximization indexed by y C  ~ y i means that it is over all y C with the i-th component held fixed and set to y i .</footnote><footnote label="4">The insight behind these speed-ups is that messages on binary-valued potentials can be expressed as M C—i (y i ) oc</footnote><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">TREE</doubt><doubt alpha="58.1" length="43" tooSmall="False" monospace="0.0">A general binary factor:^&gt;a(vi,..., vn) = |</doubt><doubt alpha="57.1" length="14" tooSmall="False" monospace="0.0">ivi,..., vneSc</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">iE?=ivi= i</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">TREE</doubt><doubt alpha="61.5" length="13" tooSmall="False" monospace="0.0">GRAND(g,h,m1)</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">ARC</doubt><p>SIB SIB SIB</p><doubt alpha="37.0" length="27" tooSmall="False" monospace="0.0">(h,m1,m2)(h,m2,m3)(h,ml,m3)</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(g,h)</doubt><p>Figure 1: Factor graph corresponding to the dependency parsing model of Smith and Eisner (2008) with sibling and grandparent features. Circles denote variable nodes, and squares denote factor nodes. Note the loops created by the inclusion of pairwise factors (GRAND and SIB).</p><p>In Table 1 we present closed-form expressions for the factor-to-variable message ratios mc= Mc^i(1)/Mc-^(0) in terms of their variable-to-factor counterparts mi^c = Mi^c (1)/Mi^c (0); these ratios are all that is necessary when the vari­ables are binary. Detailed derivations are presented in an extended version of this paper (Martins et al., 2010b).</p></section><section number="3" title="Variational Representations"><p>Let Px = (Pr<b>e</b>(.|x) | <i>6 </i>G Rd} be the family of all distributions of the form in Eq. 2. We next present an alternative parametrization for the distributions in Px in terms of factor marginals. We will see that each distribution can be seen as a point in the so-called <i>marginal polytope </i>(Wainwright and Jordan, 2008); this will pave the way for the variational rep­resentations to be derived next.</p><p><b>Parts and Output Indicators. </b>A <i>part </i>is a pair (C, <b>yc </b>), where C is a soft factor and <b>yc </b>a partial output assignment. We let R = ((C, <b>yc</b>) | C G Csoft, <b>y</b>c G I]iec Yi} be the set of all parts. Given an output <b>y' </b>G Y (x), a part (C, <b>yc</b>) is said to be <i>ac­tive </i>if it locally matches the output, i.e., if <b>yc </b>= <b>y</b>C. Any output <b>y' </b>G Y(x) can be mapped to a |R|-dimensional binary vector x<b>(y') </b>indicating which parts are active, i.e., [x<b>(y</b>')](c,ye) = 1 if <b>y</b>c = <b>y</b>C</p><doubt alpha="43.2" length="37" tooSmall="False" monospace="0.0">Pr{*e(Ye)    = =    yi}and Me—i(yi)&lt;x</doubt><p>max$C(yc)=i Pr{Ye = ye|Yi = yi}, respectively for the sum-product and max-product cases; these probabilities are in­duced by the messages in Eq. 4: for an event A <i>Ç </i><b>FJ</b>i C yi, Pr{Ye € A} 4 <i>pyc </i>I(ye € A) ni6e Mi—e(yi).</p><p>and 0 otherwise; x<b>(y') </b>is called the <i>output indicator vector. </i>This mapping allows decoupling the feature vector in Eq. 3 as the product of an input matrix and an output vector:</p><doubt alpha="33.3" length="27" tooSmall="False" monospace="0.0">0(x,y)=(x,yc) =F(x)x(y),(8)</doubt><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">ceeSoft</doubt><p>where <b>F</b>(x) is a d-by-|R| matrix whose columns contain the part-local feature vectors 0C (x, <b>yc </b>). Observe, however, that not every vector in (0, corresponds necessarily to a valid output in Y(x).</p><p><b>Marginal Polytope. </b>Moving to vector representa­tions of outputs leads naturally to a geometric view of the problem. The <i>marginal polytope </i>is the convex hull<footnote anchor="5"/> of all the "valid" output indicator vectors:</p><p>M(3x) = conv(x<b>(y) </b>| <b>y </b>g Y(x)}.</p><p>Note that M(Sx) only depends on the factor graph Sx and the hard constraints (i.e., it is independent of the parameters 6). The importance of the marginal polytope stems from two facts: (i) each vertex of M(Sx) corresponds to an output in Y(x); (ii) each point in M(Sx) corresponds to a vector of marginal probabilities that is realizable by some distribution (not necessarily in Px) that factors according to Sx.</p><p><b>Variational Representations. </b>We now describe formally how the points in M(Sx) are linked to the distributions in Px. We extend the "canonical over-complete parametrization" case, studied by Wain-wright and Jordan (2008), to our scenario (common in NLP), where arbitrary features are allowed and the parameters are <i>tied </i>(shared by all factors). Let</p><p>H<b>(Pre</b>(.|x)) = — Eyey(x) <b>Pre(y|x)logPre</b>(y|x)denote the <i>entropy </i>of Pre(.|x), and Ee[.] the ex­pectation under Pre(.|x). The component of G M(Sx) indexed by part (C, <b>yc</b>) is denoted /xc<b>(yc</b>). <b>Proposition 1. </b><i>There is a map coupling each distri­bution </i>Pre(.|x) G Px <i>to a unique </i>G M(Sx) <i>such that E</i><b><i>e</i></b>)] = <i>Define </i>H(//) = H(Pr<b>e</b>(.|x)) <i>if some </i>Pre (.|x) <i>is coupled to and </i>H (//) = —oo <i>if no such </i>Pre (.|x) <i>exists. Then:</i></p><p><i>1. The following variational representation for the log-partition function (mentioned in Eq. </i><i>2)</i><i> holds:</i></p><doubt alpha="39.4" length="33" tooSmall="False" monospace="0.0">logZx(6)=   max0TF(x)/t+H(//).(9)</doubt><footnote label="5">The convex hull of {z i ,..., z k  } is the set of points that can be written as Y] k =i A i z i , where Y] k =i A i = 1 and each A i  &gt; 0.</footnote><page local="5" global="38"/><p>Parameter space  Factorlog-potentials    Marginal polytope Rd space <b>R</b>l*l <i>M(%)</i></p><p>Figure 2: Dual parametrization of the distributions in Px. Our parameter space (left) is first linearly mapped to the space of factor log-potentials (middle). The latter is mapped to the marginal polytope M(Gx) (right). In gen­eral only a subset of M( <b><i>Gx </i></b>) is reachable from our param­eter space. Any distribution in Px can be parametrized by a vector <b>6 </b>g Rd or by a point <b>ß </b>g M(Gx).</p><p><i>2. The problem in Eq. 9 is convex and its solution is attained at the factor marginals, i.e., there is a maximizer </i><i>ß </i><i>s.t. </i>/ic <b>(y</b>c ) = Pr<b>e </b>(Yc = <b>y</b>c |x) <i>for each </i>C G C. <i>The gradient of the log-partition function is </i>V log Zx(6) = <b>F</b>(x)ß<i>.</i></p><p><i>3. The MAP </i><b>y </b>= argmaxy€y(x) Pre<b>(y</b>|x) <i>can be obtained by solving the linear program</i></p><doubt alpha="50.0" length="26" tooSmall="False" monospace="0.0">ß=x(y)= argmax6TF(x)ß.(10)</doubt><p>A proof of this proposition can be found in Mar­tins et al. (2010a). Fig. 2 provides an illustration of the dual parametrization implied by Prop. 1.</p></section><section number="4" title="Approximate Inference &amp; Turbo Parsing"><p>We now show how the variational machinery just described relates to message-passing algorithms and provides a common framework for analyzing two re­cent dependency parsers. Later (§5), Prop. 1 is used constructively for learning the model parameters.</p><subsection number="4.1" title="Loopy BP as a Variational Approximation"><p>For general factor graphs with loops, the marginal polytope M(Sx) cannot be compactly specified and the entropy term H( ) lacks a closed form, render­ing exact optimizations in Eqs. 9-10 intractable. A popular <i>approximate </i>algorithm for marginal infer­ence is sum-product loopy BP, which passes mes­sages as described in §2 and, upon convergence, computes beliefs via Eqs. 6-7. Were loopy BP exact, these beliefs would be the true marginals and hence a point in the marginal polytope M(Sx). However, this need not be the case, as elucidated by Yedidia et al. (2001) and others, who first analyzed loopy BP from a variational perspective. The following two approximations underlie loopy BP:</p><p>• The marginal polytope M(Sx) is approximated by the <i>local polytope </i>L(Sx). This is an <i>outer </i>bound; its name derives from the fact that it only imposes <i>local agreement constraints </i>Vi, y G Yi, C G C:</p><doubt alpha="62.5" length="24" tooSmall="False" monospace="0.0">EViTi(yi)=^ EyC~wTc(yc)=</doubt><p>Namely, it is characterized by L(Sx) = (t g R+R\ | Eq. 11 holds Vi, y G Yi,C G C}. The elements of L(Sx) are called <i>pseudo-marginals. </i>Clearly, the true marginals satisfy Eq. 11, and therefore M(Sx) Ç L(Sx). • The entropy H is replaced by its <i>Bethe approx­imation </i>Hßethe(t) = Ei=i(1 — di)H(ti) + E^ e H (t c ), where di = |(C | i G C }| is the number of factors connected to the ith variable,</p><p>H(Ti) = ^E»i Ti(yi)log and H(tc) = — EyC Tc (yc) log Tc (yc).</p><p>Any stationary point of sum-product BP is a lo­cal optimum of the variational problem in Eq. 9 with M(Sx) replaced by L(Sx) and H replaced by HBethe (Yedidia et al., 2001). Note however that multiple optima may exist, since HBethe is not nec­essarily concave, and that BP may not converge.</p><p>Table 1 shows closed form expressions for the local agreement constraints and entropies of some hard-constraint factors, obtained by invoking Eq. 7 and observing that tc <b>(yc</b>) must be zero if configu­ration <b>yc </b>is forbidden. See Martins et al. (2010b).</p></subsection><subsection number="4.2" title="Two Dependency Turbo Parsers"><p>We next present our main contribution: a formal connection between two recent approximate depen­dency parsers, which at first sight appear unrelated. Recall that (i) Smith and Eisner (2008) proposed a factor graph (Fig. 1) in which they run loopy BP, and that (ii) Martins et al. (2009) approximate pars­ing as the solution of a linear program. Here, we fill the blanks in the two approaches: we derive ex­plicitly the variational problem addressed in (i) and we provide the underlying factor graph in (ii). This puts the two approaches side-by-side as approximate methods for marginal and MAP inference. Since both rely on "local" approximations (in the sense of Eq.<page local="6" global="39"/> 11) that ignore the loops in their graphical models, we dub them <i>turbo parsers </i>by analogy with error-correcting turbo decoders (see footnote 1).</p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">ARC</doubt><p><b>Turbo Parser #1: Sum-Product Loopy BP. </b>The factor graph depicted in Fig. 1—call it Sx—includes pairwise soft factors connecting sibling and grand­parent arcs.<footnote anchor="6"/> We next characterize the local polytope L(Sx) and the Bethe approximation HBethe inherent in Smith and Eisner's loopy BP algorithm.</p><p>Let A be the set of candidate arcs, and P ç A<footnote anchor="2"/> the set of pairs of arcs that have factors. Let t = (t a, t p ) with t <i>a </i>= (Ta)a€A and t p = (Tab)(a^)ep. Since all variables are binary, we may write, for each a g A, Ta(1) = Za and Ta (0) = 1 — Za, where Za is a variable constrained to [0,1]. Let <b>Z</b>A = (za)aeA; the local agreement constraints at the tree factor (see Table 1) are written as za g Ztree(x), where Ztree(x) is the <i>arborescence poly-tope, </i>i.e., the convex hull of all incidence vectors of dependency trees (Martins et al., 2009). It is straightforward to write a contingency table and ob­tain the following local agreement constraints at the pairwise factors:</p><doubt alpha="43.6" length="39" tooSmall="False" monospace="0.0">Tab(1, 1) =Zab,Tafe(0, 0) = 1—Za—Zb+Zab</doubt><p>Tab(1, 0) = Za — Zab,    Tab(0, 1) = Zb — Zab.</p><p>Noting that all these pseudo-marginals are con­strained to the unit interval, one can get rid of all variables Tab and write everything as</p><doubt alpha="32.3" length="31" tooSmall="False" monospace="0.0">Zag[0, 1],Zbg[0, 1],Zabg[0, 1],</doubt><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">) ARC</doubt><doubt alpha="20.0" length="5" tooSmall="False" monospace="0.0">(0,m)</doubt><p>PATH-BUILDER</p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(m,k)</doubt><p>SINGLE-PARENT</p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(n,m)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">r</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">)FLOW</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">(h,m,k)</doubt><p>FLOW-IMPLIES-ARC</p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(h,m)</doubt><p>FLOW-DELTA</p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(h,k)</doubt><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">w w w    U-U U</doubt><p>FLOW FLOW  PATH FLOW FLOW PATH</p><doubt alpha="24.1" length="58" tooSmall="False" monospace="0.0">(0,m,k)    (n,m,k)      (m,k)     (h,1,k)     (h,n,k)(h,k)</doubt><p>Figure 3: Details of the factor graph underlying the parser of Martins et al. (2009). Dashed circles represent auxil­iary variables. See text and Table 1.</p><p>£ya,yb Tab(ya, yb) log TafâTbSb). The approximate variational expression becomes log Zx(6) w</p><p>maxz <b>6TF</b>(x<b>)z </b>+ <i>Htlee(z</i><i>A) </i><i>— </i><i>I</i><i>a;b</i><i>(Z</i><i>a, </i><i>Z</i><i>b, </i><i>Z</i><i>ab)</i></p><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">{a,b)EP</doubt><p>s.t.</p><doubt alpha="62.5" length="16" tooSmall="False" monospace="0.0">Zab —za,Zab —zb,</doubt><doubt alpha="52.2" length="23" tooSmall="False" monospace="0.0">Zab&gt;Za+ Zb—1,v(a, b)gP,</doubt><p>ZA g Ztree,</p><doubt alpha="65.4" length="26" tooSmall="False" monospace="0.0">Zab—Za,Zab—Zb,Zab&gt;Za+Zb—1,</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(12)</doubt><p>inequalities which, along with za g Ztree(x), de­fine the local polytope L(Sx). As for the factor en­tropies, start by noting that the TREE-factor entropy Htree can be obtained in closed form by computing the marginals za and the partition function Zx(6) (via the matrix-tree theorem) and recalling the vari-ational representation in Eq. 9, yielding Htree = log Zx(6) — 6tF(x)za. Some algebra allows writ­ing the overall Bethe entropy approximation as:</p><doubt alpha="55.8" length="43" tooSmall="False" monospace="0.0">HBethe(T) =Htree(zA)—^ Ia;b(Za,Zb,Zab),(13)</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">(a,b)€P</doubt><p>where we introduced the mutual information asso­ciated with each pairwise factor, Ia;b(Za, Zb, Zab) = whose maximizer corresponds to the beliefs re­turned by the Smith and Eisner's loopy BP algorithm (if it converges).</p><footnote label="6">Smith and Eisner (2008) also proposed other variants with more factors, which we omit for brevity.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(14)</doubt><p><b>Turbo Parser #2: LP-Relaxed MAP. </b>We now turn to the concise integer LP formulation of Mar­tins et al. (2009). The formulation is exact but NP-hard, and so an LP relaxation is made there by drop­ping the integer constraints. We next construct a fac­tor graph Sx and show that the LP relaxation corre­sponds to an optimization of the form in Eq. 10, with the marginal polytope M(Sx) replaced by L(Sx).</p><p>Sx includes the following auxiliary variable nodes: <i>path variables </i>)i=ov.^nj=L..^n, which indicate whether word <i>j </i>descends from i in the de­pendency tree, and <i>flow variables </i>(/a<footnote anchor="0"/> )aeA^=1v^n, which evaluate to 1 iff arc a "carries flow" to k, i.e., iff there is a path from the root to k that passes through a. We need to seed these variables imposing i.e., any word descends from the root and from it­self, and arcs leaving a word carry no flow to that word.<page local="7" global="40"/> This can be done with unary hard constraint factors. We then replace the tree factor in Fig. 1 by the factors shown in Fig. 3:</p><doubt alpha="43.2" length="37" tooSmall="False" monospace="0.0">Pofc=Pfcfc= 1,Vk,/(h m)= 0,Vh, m;(15)</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">OR</doubt><p>• O(n) xor factors, each connecting all arc vari­ables of the form ((h, m)}/j=0v^n. These ensure that each word has exactly one parent. Each factor yields a local agreement constraint (see Table 1):</p><doubt alpha="35.7" length="28" tooSmall="False" monospace="0.0">ELoZ(fc,m)=1,mG(1,...,n}(16)</doubt><p>• O(n<footnote anchor="3"/>) imply factors, each expressing that if an arc carries flow, then that arc <i>must </i>be active. Such factors are or factors with the first input negated, hence, the local agreement constraints are:</p><doubt alpha="37.0" length="27" tooSmall="False" monospace="0.0">/ak—Za,aGA,kG(1,...,n}.(17)</doubt><p>• O(n<footnote anchor="2"/>) xor-with-output factors, which im­pose the constraint that each path variable pmf is active if and only if exactly one incoming arc in ((h, m)}/!^^«, carries flow to k. Such factors are xor factors with the last input negated, and hence their local constraints are:</p><doubt alpha="42.9" length="28" tooSmall="False" monospace="0.0">pmf=ELo^Im^m,kG(1,...,n}(18)</doubt><p>• O(n<footnote anchor="2"/>) xor-with-output factors to impose the constraint that words don't consume other words' commodities; i.e., if h = k and k = 0, then there is a path from h to k iff exactly one outgoing arc in ((h, m)}m=1v^ra carries flow to k:</p><p>îfcfc = <b>E</b>m=i /f/m), h, k G (0,..., n}, k <b>G </b>(0, h}.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(19)</doubt><p>L(Sx) is thus defined by the constraints in Eq. 12 and 15-19. The approximate MAP problem, that replaces M(Sx) by L(Sx) in Eq. 10, thus becomes:</p><p>maxz,f,p   6TF(x)z (20) s.t. Eqs. 12 and 15-19 are satisfied.</p><p>This is exactly the LP relaxation considered by Mar­tins et al. (2009) in their multi-commodity flow model, for the configuration with siblings and grand­parent features.<footnote anchor="7"/> They also considered a config­uration with non-projectivity features—which fire if an arc is non-projective.<footnote anchor="8"/> That configuration can also be obtained here if variables («(^m)} are added to indicate non-projective arcs and or-with-output hard constraint factors are inserted to en­force n(/j,m) = Z(/i,m) AVmin(/i,m)&lt;j&lt;min(/i,m) .</p><footnote label="7">To be precise, the constraints of Martins et al. (2009) are recovered after eliminating the path variables, via Eqs. 18-19.</footnote><footnote label="8">An arc (h, m) is non-projective if there is some word in its span not descending from h (Kahane et al., 1998).</footnote><p>Details are omitted for space.</p><p>In sum, although the approaches of Smith and Eis­ner (2008) and Martins et al. (2009) look very dif­ferent, in reality both are variational approximations emanating from Prop. 1, respectively for marginal and MAP inference. However, they operate on dis­tinct factor graphs, respectively Figs. 1 and 3.<footnote anchor="9"/></p></subsection></section><section number="5" title="Online Learning"><p>Our learning algorithm is presented in Alg. 1. It is a generalized online learner that tackles ^2-regularized empirical risk minimization of the form where each (xi, <b>yi) </b>is a training example, A &gt; 0 is the regularization constant, and L(6; x, <b>y) </b>is a non­negative convex loss. Examples include the logistic loss used in CRFs (— logPre<b>(y</b>|x)) and the hinge loss of structured SVMs (maxy/ey(x) 6T(0(x, <b>y') </b>— 0(x, <b>y)) </b>+ <b>^(y', y) </b>for some cost function £). These are both special cases of the family defined in Fig. 4, which also includes the structured perceptron's loss (ß — oo, 7 = 0) and the softmax-margin loss of Gimpel and Smith (2010; ß = 7 = 1).</p><doubt alpha="50.0" length="34" tooSmall="False" monospace="0.0">mineeRdf||6||2+mIXiL(6;Xi,yi),(21)</doubt><p>Alg. 1 is closely related to stochastic or online gradient descent methods, but with the key advan­tage of not needing a learning rate hyperparameter. We sketch the derivation of Alg. 1; full details can be found in Martins et al. (2010a). On the tth round, one example (xt, <b>yt) </b>is considered. We seek to solve<page local="8" global="41"/></p><doubt alpha="32.6" length="46" tooSmall="False" monospace="0.0">mine,ç||6—6tf+ {(23)s.t.L(6;xt,yt)—£,   {&gt;0,K}</doubt><footnote label="9">Given what was just exposed, it seems appealing to try max-product loopy BP on the factor graph of Fig. 1, or sum-product loopy BP on the one in Fig. 3. Both attempts present se­rious challenges: the former requires computing messages sent by the tree factor, which requires O(n 2 ) calls to the Chu-Liu-Edmonds algorithm and hence O(n 5 ) time. No obvious strat­egy seems to exist for simultaneous computation of all mes­sages, unlike in the sum-product case. The latter is even more challenging, as standard sum-product loopy BP has serious is­sues in the factor graph of Fig. 3; we construct in Martins et al. (2010b) a simple example with a very poor Bethe approxima­tion. This might be fixed by using other variants of sum-product BP, e.g., ones in which the entropy approximation is concave.</footnote><doubt alpha="38.6" length="57" tooSmall="False" monospace="0.0">Lß,7(6;x,y)= ßlogy/ey(x)expß(6T(&lt;£(x,y') — 0(x,y))+7%',y)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(22)</doubt><p>Figure 4: A family of loss functions including as particular cases the ones used in CRFs, structured SVMs, and the structured perceptron. The hyperparameter ß is the analogue of the inverse temperature in a Gibbs distribution, while 7 scales the cost. For any choice of ß &gt; 0 and 7 &gt; 0, the resulting loss function is convex in <b>6, </b>since, up to a scale factor, it is the composition of the (convex) log-sum-exp function with an affine map.</p><p><b>Algorithm 1 </b>Aggressive Online Learning</p><doubt alpha="65.0" length="40" tooSmall="False" monospace="0.0">1:Input:((xi,yi)}m=1,A,number of epochsK</doubt><doubt alpha="66.7" length="24" tooSmall="False" monospace="0.0">2:Initialize61—0;setT=mK</doubt><doubt alpha="64.3" length="14" tooSmall="False" monospace="0.0">3:fort= 1toTdo</doubt><p>4: Receive instance (xt, yt) and set ßt = x(yt)</p><doubt alpha="66.7" length="42" tooSmall="False" monospace="0.0">5:Solve Eq. 24 to obtainßtandLßY(6t,xt,yt)</doubt><doubt alpha="59.5" length="37" tooSmall="False" monospace="0.0">6:ComputeVLß,7(6t,xt,yt)=F(xt)(ßt—ßt)</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">1Lß,7(et;xt,yt)</doubt><p>Compute nt = min</p><doubt alpha="52.4" length="21" tooSmall="False" monospace="0.0">Am&gt; ||VLß,7(et;xt,yt)</doubt><doubt alpha="54.5" length="33" tooSmall="False" monospace="0.0">Return6t+1=6t — ntVLÄ7(6t; xt,yt)</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">7:</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">8:</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">9:end for</doubt><p>10: Return the averaged model Ö — ^   ^ 6t.</p><p>which trades off conservativeness (stay close to the most recent solution 6t) and correctness (keep the loss small). Alg. 1's lines 7-8 are the result of tak­ing the first-order Taylor approximation of L around 6t, which yields the lower bound L(6; xt, yt) &gt; L(6t; xt, yt) + (6 — 6t)TVL(6t; xt, yt), and plug­ging that linear approximation into the constraint of Eq. 23, which gives a simple Euclidean projection problem (with slack) with a closed-form solution.</p><p>The online updating requires evaluating the loss and computing its gradient. Both quantities can be computed using the variational expression in Prop. 1, for any loss Lß Y(6; x, y) in Fig. 4.<footnote anchor="10"/> Our only assumption is that the cost function ^(y', y) can be written as a sum over factor-local costs; let­ting ß = x(y) and ß' = x(y'), this implies ^(y', y) = PTß' + q for some p and q which are constant with respect to '.<footnote anchor="11"/> under this assump­tion, Lß Y(6; x, y) becomes expressible in terms of the log-partition function of a distribution whose log-potentials are set to ß(F(x)T6 + 7p). From Eq. 9 and after some algebra, we finally obtain Lß,7 (6; x, y) = max ,6TF(x)(ß'—ß) +<footnote anchor="1"/>H(ß')+7(pTß'+q).</p><footnote label="10">Our description also applies to the (non-differentiable) hinge loss case, when ß — 00, if we replace all instances of "the gradient" in the text by "a subgradient."</footnote><footnote label="11">For the Hamming cost, this holds with p = 1 — 2/x and q  = 1 T /x. See Taskar et al. (2006) for other examples.</footnote><p>Let <i>ß</i><i> </i>be a maximizer in Eq. 24; from the second statement of Prop. 1 we obtain VLß Y(6; x, y) = F(x)(ß — ß). When the inference problem in Eq. 24 is intractable, approximate message-passing algo­rithms like loopy BP still allow us to obtain approx­imations of the loss Lß Y and its gradient.</p><p>For the hinge loss, we arrive precisely at the max-loss variant of 1-best MIRA (Crammer et al., 2006). For the logistic loss, we arrive at a new online learn­ing algorithm for CRFs that resembles stochastic gradient descent but with an automatic step size that follows from our variational representation.</p><p><b>Unsupported Features. </b>As datasets grow, so do the sets of features, creating further computational challenges. Often only "supported" features—those observed in the training data—are included, and even those are commonly eliminated when their fre­quencies fall below a threshold. Important infor­mation may be lost as a result of these expedi­ent choices. Formally, the <i>supported feature set </i>is Fsupp = Um=1 SUPP 0(xi, yi), where supp u = (j | Uj = 0} denotes the <i>support </i>of vector u. Fsuppis a subset of the <i>complete </i>feature set, comprised of those features that occur in some candidate output, Fcomp = U£=111 yiey(xi) supp0(xi, yi). Features in Fcomp \Fsupp are called <i>unsupported.</i></p><p>Sha and Pereira (2003) have shown that training a CRF-based shallow parser with the complete feature set may improve performance (over the supported one), at the cost of 4.6 times more features. De­pendency parsing has a much higher ratio (around 20 for bilexical word-word features, as estimated in the Penn Treebank), due to the quadratic or faster growth of the number of parts, of which only a few are active in a legal output. We propose a simple strategy for handling Fcomp efficiently, which can be applied for those losses in Fig. 4 where ß = o . (e.g., the structured SVM and perceptron). Our pro­cedure is the following: keep an active set F contain-<page local="9" global="42"/></p><p>Table 2: unlabeled attachment scores, ignoring punctuation. The leftmost columns show the performance of arc-factored and second-order models for the CRF and SVM losses, after 10 epochs with 1 /(Am) =0.001 (tuned on the English Non-Proj. dev.-set). The rightmost columns refer to a model to which non-projectivity features were added, trained under the SVM loss, that handles the <i>complete </i>feature set. Shown is the total number of features instantiated, the multiplicative factor w.r.t. the number of supported features, and the accuracies (in parenthesis, we display the difference w.r.t. a model trained with the supported features only). Entries marked with | are the highest reported in the literature, to the best of our knowledge, beating (sometimes slightly) McDonald et al. (2006), Martins et al. (2008), Martins et al. (2009), and, in the case of English Proj., also the third-order parser of Koo and Collins (2010), which achieves 93.04% on that dataset (their experiments in Czech are not comparable, since the datasets are different).</p><p>ing all features that have been instantiated in Alg. 1. At each round, run lines 4-5 as usual, using only features in F. Since the other features have not been used before, they have a zero weight, hence can be ignored. When ß = o , the variational problem in Eq. 24 consists of a MAP computation and the solu­tion corresponds to one output <b>yt </b>G Y(xt). Only the parts that are active in <b>yt </b>but not in <b>yt, </b>or vice-versa, will have features that might receive a nonzero up­date. Those parts are reexamined for new features and the active set F is updated accordingly.</p></section><section number="6" title="Experiments"><p>We trained non-projective dependency parsers for 14 languages, using datasets from the CoNLL-x shared task (Buchholz and Marsi, 2006) and two datasets for English: one from the CoNLL-2008 shared task (Surdeanu et al., 2008), which contains non-projective arcs, and another derived from the Penn Treebank applying the standard head rules of Yamada and Matsumoto (2003), in which all parse trees are projective.<footnote anchor="12"/>   We implemented Alg. 1, which handles any loss function Lß Y .<footnote anchor="13"/> When ß &lt; o , Turbo Parser #1 and the loopy BP algorithm of Smith and Eisner (2008) is used; otherwise, Turbo Parser #2 is used and the LP relaxation is solved with CPLEx. in both cases, we employed the same prun­ing strategy as Martins et al. (2009).</p><footnote label="12">We used the provided train/test splits for all datasets. For English, we used the standard test partitions (section 23 of the Wall Street Journal). We did not exploit the fact that some datasets only contain projective trees and have unique roots.</footnote><p>Two different feature configurations were first tried: an arc-factored model and a model with second-order features (siblings and grandparents). We used the same arc-factored features as McDon­ald et al. (2005) and second-order features that con­join words and lemmas (at most two), parts-of-speech tags, and (if available) morphological infor­mation; this was the same set of features as in Mar­tins et al. (2009). Table 2 shows the results obtained in both configurations, for CRF and SVM loss func­tions. While in the arc-factored case performance is similar, in second-order models there seems to be a consistent gain when the SVM loss is used. There are two possible reasons: first, SVMs take the cost function into consideration; second, Turbo Parser #2 is less approximate than Turbo Parser #1, since only the marginal polytope is approximated (the entropy function is not involved).</p><footnote label="13">The code is available at http://www.ark.cs.cmu.edu/</footnote><p>TurboParser.</p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><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>CRF (Turbo Pars. #1)</p></td><td class="cell"><p>SVM (Turbo Pars. #2)</p></td><td class="cell"><p></p></td><td class="cell"><p>SVM (Turbo #2)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Arc-Fact.</p></td><td class="cell"><p>Sec. Ord.</p></td><td class="cell"><p>Arc-Fact.</p></td><td class="cell"><p>Sec. Ord.</p></td><td class="cell"><p>\F</p></td><td class="cell"><p>1 F supp<footnote anchor="1"/></p></td><td class="cell"><p>+nonproj., compl.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Arabic</p></td><td class="cell"><p>78.28</p></td><td class="cell"><p>79.12</p></td><td class="cell"><p>79.04</p></td><td class="cell"><p>79.42</p></td><td class="cell"><p>6,643,191</p></td><td class="cell"><p>2.8</p></td><td class="cell"><p>80.02 (-0.14)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Bulgarian</p></td><td class="cell"><p>91.02</p></td><td class="cell"><p>91.78</p></td><td class="cell"><p>90.84</p></td><td class="cell"><p>92.30</p></td><td class="cell"><p>13,018,431</p></td><td class="cell"><p>2.1</p></td><td class="cell"><p>92.88 (+0.34) (f)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Chinese</p></td><td class="cell"><p>90.58</p></td><td class="cell"><p>90.87</p></td><td class="cell"><p>91.09</p></td><td class="cell"><p>91.77</p></td><td class="cell"><p>28,271,086</p></td><td class="cell"><p>2.1</p></td><td class="cell"><p>91.89 (+0.26)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Czech</p></td><td class="cell"><p>86.18</p></td><td class="cell"><p>87.72</p></td><td class="cell"><p>86.78</p></td><td class="cell"><p>88.52</p></td><td class="cell"><p>83,264,645</p></td><td class="cell"><p>2.3</p></td><td class="cell"><p>88.78 (+0.44) (f)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Danish</p></td><td class="cell"><p>89.58</p></td><td class="cell"><p>90.08</p></td><td class="cell"><p>89.78</p></td><td class="cell"><p>90.78</p></td><td class="cell"><p>7,900,061</p></td><td class="cell"><p>2.3</p></td><td class="cell"><p>91.50 (+0.68)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Dutch</p></td><td class="cell"><p>82.91</p></td><td class="cell"><p>84.31</p></td><td class="cell"><p>82.73</p></td><td class="cell"><p>84.17</p></td><td class="cell"><p>15,652,800</p></td><td class="cell"><p>2.1</p></td><td class="cell"><p>84.91 (-0.08)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>German</p></td><td class="cell"><p>89.34</p></td><td class="cell"><p>90.58</p></td><td class="cell"><p>89.04</p></td><td class="cell"><p>91.19</p></td><td class="cell"><p>49,934,403</p></td><td class="cell"><p>2.5</p></td><td class="cell"><p>91.49 (+0.32) (f)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Japanese</p></td><td class="cell"><p>92.90</p></td><td class="cell"><p>93.22</p></td><td class="cell"><p>93.18</p></td><td class="cell"><p>93.38</p></td><td class="cell"><p>4,256,857</p></td><td class="cell"><p>2.2</p></td><td class="cell"><p>93.42 (+0.32)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Portuguese</p></td><td class="cell"><p>90.64</p></td><td class="cell"><p>91.00</p></td><td class="cell"><p>90.56</p></td><td class="cell"><p>91.50</p></td><td class="cell"><p>16,067,150</p></td><td class="cell"><p>2.1</p></td><td class="cell"><p>91.87 (-0.04)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Slovene</p></td><td class="cell"><p>83.03</p></td><td class="cell"><p>83.17</p></td><td class="cell"><p>83.49</p></td><td class="cell"><p>84.35</p></td><td class="cell"><p>4,603,295</p></td><td class="cell"><p>2.7</p></td><td class="cell"><p>85.53 (+0.80)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Spanish</p></td><td class="cell"><p>83.83</p></td><td class="cell"><p>85.07</p></td><td class="cell"><p>84.19</p></td><td class="cell"><p>85.95</p></td><td class="cell"><p>11,629,964</p></td><td class="cell"><p>2.6</p></td><td class="cell"><p>87.04 (+0.50) (f)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Swedish</p></td><td class="cell"><p>87.81</p></td><td class="cell"><p>89.01</p></td><td class="cell"><p>88.55</p></td><td class="cell"><p>88.99</p></td><td class="cell"><p>18,374,160</p></td><td class="cell"><p>2.8</p></td><td class="cell"><p>89.80 (+0.42)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Turkish</p></td><td class="cell"><p>76.86</p></td><td class="cell"><p>76.28</p></td><td class="cell"><p>74.79</p></td><td class="cell"><p>76.10</p></td><td class="cell"><p>6,688,373</p></td><td class="cell"><p>2.2</p></td><td class="cell"><p>76.62 (+0.62)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>English Non-Proj.</p></td><td class="cell"><p>90.15</p></td><td class="cell"><p>91.08</p></td><td class="cell"><p>90.66</p></td><td class="cell"><p>91.79</p></td><td class="cell"><p>57,615,709</p></td><td class="cell"><p>2.5</p></td><td class="cell"><p>92.13 (+0.12)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>English Proj.</p></td><td class="cell"><p>91.23</p></td><td class="cell"><p>91.94</p></td><td class="cell"><p>91.65</p></td><td class="cell"><p>92.91</p></td><td class="cell"><p>55,247,093</p></td><td class="cell"><p>2.4</p></td><td class="cell"><p>93.26 (+0.41) (f)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="10" global="43"/><p>recently proposed an efficient dual decomposition method to solve an LP problem similar (but not equal) to the one in Eq. 20,<footnote anchor="15"/> with excellent pars­ing performance. Their parser is also an instance of a turbo parser since it relies on a local approxi­mation of a marginal polytope. While one can also use dual decomposition to address our MAP prob­lem, the fact that our model does not decompose as nicely as the one in Koo et al. (2010) would likely result in slower convergence.</p></section><section number="8" title="Conclusion"><p>We presented a unified view of two recent approxi­mate dependency parsers, by stating their underlying factor graphs and by deriving the variational prob­lems that they address. We introduced new hard con­straint factors, along with formulae for their mes­sages, local belief constraints, and entropies. We provided an aggressive online algorithm for training the models with a broad family of losses.</p><p>There are several possible directions for future work. Recent progress in message-passing algo­rithms yield "convexified" Bethe approximations that can be used for marginal inference (Wainwright et al., 2005), and provably convergent max-product variants that solve the relaxed LP (Globerson and Jaakkola, 2008). Other parsing formalisms can be handled with the inventory of factors shown here— among them, phrase-structure parsing.</p></section><section title="Acknowledgments"><p>The authors would like to thank the reviewers for their comments, and Kevin Gimpel, David Smith, David Son-tag, and Terry Koo for helpful discussions. A. M. was supported by a grant from FCT/iCTi through the CMu-Portugal Program, and also by Priberam Informatica. N. S. was supported in part by Qatar NRF NPRP-08-485-1-083. E. X. was supported by AFOSR FA9550010247,</p><doubt alpha="38.1" length="42" tooSmall="False" monospace="0.0">ONR N000140910758, NSF CAREER DBi-0546594,</doubt><p>NSF IIS-0713379, and an Alfred P. Sloan Fellowship. M. F. and P. A. were supported by the FET programme (EU FP7), under the SIMBAD project (contract 213250).</p><footnote label="15">The difference is that the model of Koo et al. (2010) includes features that depend on consecutive siblings— making it decompose into subproblems amenable to dynamic programming—while we have factors for all pairs of siblings.</footnote><p>Table 3: Varying ß and 7: neither the CRF nor the SVM is optimal. Results are uAS on the English Non-Projective dataset, with A tuned with dev.-set validation.</p><p>The loopy BP algorithm managed to converge for nearly all sentences (with message damping). The last three columns show the beneficial effect of un­supported features for the SVM case (with a more powerful model with non-projectivity features). For most languages, unsupported features convey help­ful information, which can be used with little extra cost (on average, 2.5 times more features are instan­tiated). A combination of the techniques discussed here yields parsers that are in line with very strong competitors—for example, the parser of Koo and Collins (2010), which is exact, third-order, and con­strains the outputs to be projective, does not outper­form ours on the projective English dataset.<footnote anchor="14"/></p><p>Finally, Table 3 shows results obtained for differ­ent settings of ß and 7. Interestingly, we observe that higher scores are obtained for loss functions that are "between" SVMs and CRFs.</p></section><section number="7" title="Related Work"><p>There has been recent work studying efficient com­putation of messages in combinatorial factors: bi­partite matchings (Duchi et al., 2007), projective and non-projective arborescences (Smith and Eis­ner, 2008), as well as high order factors with count-based potentials (Tarlow et al., 2010), among others. Some of our combinatorial factors (OR, OR-WITH-OUTPUT) and the analogous entropy computations were never considered, to the best of our knowledge.</p><p>Prop. 1 appears in Wainwright and Jordan (2008) for canonical overcomplete models; we adapt it here for models with shared features. We rely on the vari-ational interpretation of loopy BP, due to Yedidia et al. (2001), to derive the objective being optimized by Smith and Eisner's loopy BP parser.</p><doubt alpha="65.9" length="44" tooSmall="False" monospace="0.0">Independently of our work, Koo et al. (2010)</doubt><footnote label="14">This might be due to the fact that Koo and Collins (2010) trained with the perceptron algorithm and did not use unsup­ported features. Experiments plugging the perceptron loss (ß — 00, 7 — 0) into Alg. 1 yielded worse performance than with the hinge loss.</footnote><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><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>1</p></td><td class="cell"><p>1</p></td><td class="cell"><p>1</p></td><td class="cell"><p>1</p></td><td class="cell"><p>3</p></td><td class="cell"><p>5</p></td><td class="cell"><p>oo</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><footnote anchor="7"/></p></td><td class="cell"><p>0 (CRF)</p></td><td class="cell"><p>1</p></td><td class="cell"><p>3</p></td><td class="cell"><p>5</p></td><td class="cell"><p>1</p></td><td class="cell"><p>1</p></td><td class="cell"><p>1 (SVM)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Arc-F.</p></td><td class="cell"><p>90.15</p></td><td class="cell"><p>90.41</p></td><td class="cell"><p>90.38</p></td><td class="cell"><p>90.53</p></td><td class="cell"><p>90.80</p></td><td class="cell"><p>90.83</p></td><td class="cell"><p>90.66</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>2Ord.</p></td><td class="cell"><p>91.08</p></td><td class="cell"><p>91.85</p></td><td class="cell"><p>91.89</p></td><td class="cell"><p>91.51</p></td><td class="cell"><p>92.04</p></td><td class="cell"><p>91.98</p></td><td class="cell"><p>91.79</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="11" global="44"/></section><references><p>C. Berrou, A. Glavieux, and P. Thitimajshima. 1993. Near Shannon limit error-correcting coding and decod­ing. In <i>Proc. of ICC, </i>volume 93, pages 1064-1070.</p><doubt alpha="66.7" length="51" tooSmall="False" monospace="0.0">S. Buchholz and E. Marsi. 2006. CoNLL-x shared task</doubt><p>on multilingual dependency parsing. In <i>CoNLL. </i>K. Crammer, O. Dekel, J. Keshet, S. Shalev-Shwartz, and Y. Singer. 2006. Online passive-aggressive al­gorithms. <i>JMLR, </i>7:551-585.</p><p>J. Duchi, D. Tarlow, G. Elidan, and D. Koller. 2007.</p><p>using combinatorial optimization within max-product belief propagation. <i>NIPS, </i>19. J. R. Finkel, A. Kleeman, and C. D. Manning. 2008. Effi­cient, feature-based, conditional random field parsing.</p><p><i>Proc. ofACL.</i></p><p>K. Gimpel and N. A. Smith. 2010. Softmax-margin crfs: Training log-linear models with loss functions.</p><p>In <i>Proc. ofNAACL.</i></p><p>A. Globerson and T. Jaakkola. 2008. Fixing max-product: Convergent message passing algorithms for MAP LP-relaxations. <i>NIPS, </i>20.</p><p>L. Huang. 2008. Forest reranking: Discriminative pars­ing with non-local features. In <i>Proc. ofACL.</i></p><p>S. Kahane, A. Nasr, and O. Rambow. 1998. Pseudo-projectivity: a polynomially parsable non-projective dependency grammar. In <i>Proc. ofCOLING.</i></p><p>T. Koo and M. Collins. 2010. Efficient third-order de­pendency parsers. In <i>Proc. ofACL.</i></p><p>T. Koo, A. Globerson, X. Carreras, and M. Collins. 2007. Structured prediction models via the matrix-tree theo­rem. In <i>Proc. ofEMNLP.</i></p><p>T. Koo, A. M. Rush, M. Collins, T. Jaakkola, and D. Son-tag. 2010. Dual decomposition for parsing with non-projective head automata. In <i>Proc. ofEMNLP.</i></p><p>F. R. Kschischang, B. J. Frey, and H. A. Loeliger. 2001. Factor graphs and the sum-product algorithm. <i>IEEE</i> <i>Trans.</i><i> Inf. Theory, </i>47(2):498-519.</p><p>J. Lafferty, A. McCallum, and F. Pereira. 2001. Con­ditional random fields: Probabilistic models for seg­menting and labeling sequence data. In <i>Proc. ofICML.</i></p><p>A. F. T. Martins, D. Das, N. A. Smith, and E. P. xing. 2008. Stacking dependency parsers. In <i>EMNLP.</i></p><p>A. F. T. Martins, N. A. Smith, and E. P. xing. 2009.</p><p>Concise integer linear programming formulations for dependency parsing. In <i>Proc. ofACL-IJCNLP. </i>A. F. T. Martins, K. Gimpel, N. A. Smith, E. P. xing,</p><p>P. M. Q. Aguiar, and M. A. T. Figueiredo. 2010a. Learning structured classifiers with dual coordinate descent. Technical Report CMU-ML-10-109.</p><p>A. F. T. Martins, N. A. Smith, E. P. xing, P. M. Q. Aguiar, and M. A. T. Figueiredo. 2010b. Turbo parsers: Dependency parsing by approximate variational infer­ence (extended version).</p><doubt alpha="59.2" length="49" tooSmall="False" monospace="0.0">A. McCallum, K. Schultz, and S. Singh. 2009. Fac-</doubt><p>torie: Probabilistic programming via imperatively de­fined factor graphs. In <i>NIPS.</i></p><p>R. T. McDonald, F. Pereira, K. Ribarov, and J. Hajic. 2005. Non-projective dependency parsing using span­ning tree algorithms. In <i>Proc. ofHLT-EMNLP.</i></p><p>R. McDonald, K. Lerman, and F. Pereira. 2006. Multi­lingual dependency analysis with a two-stage discrim­inative parser. In <i>Proc. ofCoNLL.</i></p><p>R. J. McEliece, D. J. C. MacKay, and J. F. Cheng. 1998.</p><p>Turbo decoding as an instance of Pearl's "belief prop­agation" algorithm. <i>IEEE Journal on Selected Areas in Communications, </i>16(2). J. Pearl. 1988. <i>Probabilistic Reasoning in Intelligent Systems: Networks ofPlausible Inference. </i>Morgan Kaufmann.</p><p>F. Sha and F. Pereira. 2003. Shallow parsing with condi­tional random fields. In <i>Proc. of HLT-NAACL.</i></p><p>D. A. Smith and J. Eisner. 2008. Dependency parsing by belief propagation. In <i>Proc. ofEMNLP.</i></p><p>D. A. Smith and N. A. Smith. 2007. Probabilistic models of nonprojective dependency trees. In <i>EMNLP.</i></p><p>M. Surdeanu, R. Johansson, A. Meyers, L. Marquez, and joint parsing of syntactic and semantic dependencies.</p><doubt alpha="57.8" length="45" tooSmall="False" monospace="0.0">J. Nivre. 2008. The CoNLL-2008 shared task on</doubt><p><i>CoNLL.</i></p><p>C. Sutton, A. McCallum, and K. Rohanimanesh. 2007. Dynamic conditional random fields: Factorized prob­abilistic models for labeling and segmenting sequence data. <i>JMLR, </i>8:693-723.</p><p>R. E. Tarjan. 1977. Finding optimum branchings. <i>Net­works, </i>7(1):25-36.</p><p>D. Tarlow, I. E. Givoni, and R. S. Zemel. 2010. HOP-MAP: Efficient message passing with high order po­tentials. In <i>Proc. ofAISTATS.</i></p><p>B. Taskar, C. Guestrin, and D. Koller. 2003. Max-margin Markov networks. In <i>NIPS.</i></p><p>B. Taskar, S. Lacoste-Julien, and M. I. Jordan. 2006. Structured prediction, dual extragradient and Bregman projections. <i>JMLR, </i>7:1627-1653.</p><p>I. Tsochantaridis, T. Hofmann, T. Joachims, and Y. Altun. 2004. Support vector machine learning for interdepen­dent and structured output spaces. In <i>Proc. ofICML.</i></p><p>M. J. Wainwright and M. I. Jordan. 2008. <i>Graphical Models, Exponential Families, and Variational Infer­ence. </i>Now Publishers.</p><p>M. J. Wainwright, T.S. Jaakkola, and A.S. Willsky. 2005. A new class of upper bounds on the log partition func­tion. <i>IEEE Trans. Inf. Theory, </i>51(7):2313-2335.</p><p>H. Yamada and Y. Matsumoto. 2003. Statistical depen­dency analysis with support vector machines. In <i>Proc.</i></p><p><i>ofIWPT.</i></p><p>J. S. Yedidia, W. T. Freeman, and Y. Weiss. 2001. Gen­eralized belief propagation. In <i>NIPS.</i></p></references></body></article>