<?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="145"/><title>Dependency Parsing by Belief Propagation</title><author surname="Smith" givenname="David"><org  name="Johns Hopkins University" country="USA" city="Baltimore"/></author><author surname="Eisner" givenname="Jason"><org  name="Johns Hopkins University" country="USA" city="Baltimore"/></author></firstpageheader><frontmatter><p><b>Dependency Parsing by Belief Propagation*</b></p><p>David A. Smith and Jason Eisner</p><p>Dept. of Computer Science, Johns Hopkins University Balitmore, MD 21218, USA</p><p>{dasmith,eisner}@jhu.edu</p></frontmatter><abstract>We formulate dependency parsing as a graphical model with the novel ingredient of global constraints. We show how to apply loopy belief propagation (BP), a simple and effective tool for <i>approximate </i>learning and inference. As a parsing algorithm, BP is both asymptotically and em­pirically efficient. Even with second-order features or la­tent variables, which would make exact parsing consider­ably slower or NP-hard, BP needs only O(n<footnote anchor="3"/>) time with a small constant factor. Furthermore, such features sig­nificantly improve parse accuracy over exact first-order methods. Incorporating additional features would in­crease the runtime additively rather than multiplicatively. </abstract></header><body><section number="1" title="Introduction"><p>Computational linguists worry constantly about run­time. Sometimes we oversimplify our models, trad­ing linguistic nuance for fast dynamic programming. Alternatively, we write down a better but intractable model and then use approximations. The CL com­munity has often approximated using heavy pruning or reranking, but is beginning to adopt other meth­ods from the machine learning community, such as Gibbs sampling, rejection sampling, and certain variational approximations.</p><p>We propose borrowing a different approximation technique from machine learning, namely, loopy be­lief propagation (BP). In this paper, we show that BP can be used to <i>train </i>and <i>decode </i>complex pars­ing models. Our approach calls a simpler parser as a subroutine, so it still exploits the useful, well-studied combinatorial structure of the parsing problem.<footnote anchor="1"/></p></section><section number="2" title="Overview and Related Work"><p>We wish to make a dependency parse's score de­pend on <i>higher-order </i>features, which consider ar-</p><p>*This work was supported by the Human Language Tech­nology Center of Excellence.</p><footnote label="1">As do constraint relaxation (Tromble and Eisner, 2006) and forest reranking (Huang, 2008). In contrast, generic NP-hard solution techniques like Integer Linear Programming (Riedel and Clarke, 2006) know nothing about optimal substructure.</footnote><p>bitrary interactions among two or more edges in the parse (and perhaps also other latent variables such as part-of-speech tags or edge labels). Such features can help accuracy—as we show. Alas, they raise the polynomial runtime of projective parsing, and ren­der non-projective parsing NP-hard. Hence we seek approximations.</p><p>We will show how BP's "message-passing" disci­pline offers a principled way for <i>higher-order </i>fea­tures to incrementally adjust the numerical edge weights that are fed to a fast <i>first-order </i>parser. Thus the first-order parser is influenced by higher-order interactions among edges—but not asymptotically slowed down by considering the interactions itself.</p><p>BP's behavior in our setup can be understood intu­itively as follows. Inasmuch as the first-order parser finds that edge e is probable, the higher-order fea­tures will kick in and discourage other edges e' to the extent that they prefer not to coexist with e.<footnote anchor="2"/> Thus, the <i>next </i>call to the first-order parser assigns lower probabilities to parses that contain these e'. (The method is approximate because a first-order parser must equally penalize <i>all </i>parses containing e', even those that do not in fact contain e.)</p><p>This behavior is somewhat similar to parser stack­ing (Nivre and McDonald, 2008; Martins et al., 2008), in which a first-order parser derives some of its input features from the full 1-best output of an­other parser. In our method, a first-order parser de­rives such input features from its <i>own </i>previous full output (but probabilistic output rather than just 1-best). This circular process is <i>iterated </i>to conver­gence. Our method also permits the parse to in­teract cheaply with other variables. Thus first-order parsing, part-of-speech tagging, and other tasks on a common input could mutually influence one another.</p><p>Our method and its numerical details emerge nat­urally as an instance of the well-studied loopy BP algorithm, suggesting several potential future im-</p><footnote label="2">This may be reminiscent of adjusting a Lagrange multiplier on e' until some (hard) constraint is satisfied.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">145</doubt><p><i>Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, </i>pages 145-156, Honolulu, October 2008. ©2008 Association for Computational Linguistics<page local="2" global="146"/></p><p>provements to accuracy (Yedidia et al., 2004; Braun­stein et al., 2005) and efficiency (Sutton and McCal-lum, 2007).</p><p>Loopy BP has occasionally been used before in NLP, with good results, to handle non-local fea­tures (Sutton and McCallum, 2004) or joint decod­ing (Sutton et al., 2004). However, our application to parsing requires an innovation to BP that we ex­plain in §5—a <i>global </i>constraint to enforce that the parse is a tree. The tractability of some such global constraints points the way toward applying BP to other computationally intensive NLP problems, such as syntax-based alignment of parallel text.</p></section><section number="3" title="Graphical Models of Dependency Trees"><subsection number="3.1" title="Observed and hidden variables"><p>To apply BP, we must formulate dependency parsing as a search for an optimal assignment to the vari­ables of a graphical model. We encode a parse using the following variables:</p><p>Sentence. The n-word input sentence W is fully observed (not a lattice). Let W = <i>W°W\ </i><i>• • • </i><i>Wn,</i><i> </i>where Wo is always the special symbol root.</p><p>Tags. If desired, the variables <i>T</i><i> </i><i>= </i><i>TXT2</i><i> </i><i>•••</i><i> </i><i>Tn </i>may specify tags on the n words, drawn from some tagset T (e.g., parts of speech). These variables are needed iff the tags are to be inferred jointly with the parse.</p><p>Links. The O(n<footnote anchor="2"/>) boolean variables <i>{L</i><i>ij </i>: 0 &lt; <i>i</i><i> </i><i>&lt; </i><i>n,</i><i> </i>1 &lt; j <i>&lt; </i><i>n,i</i><i> </i><i>= </i><i>j</i><i>} </i>correspond to the possible links in the dependency parse.<footnote anchor="3"/> <i>L</i><i>ij </i>= true is in­terpreted as meaning that there exists a dependency link from parent i — child j.<footnote anchor="4"/>Link roles, etc. It would be straightforward to add other variables, such as a binary variable <i>L</i><i>irj </i>that is true iff there is a link i — j labeled with role r (e.g.,</p><p>AGENT, PATIENT, TEMPORAL ADJUNCT).</p></subsection><subsection number="3.2" title="Markov random fields"><p>We wish to define a probability distribution over all configurations, i.e., all joint assignments A to these variables. Our distribution is simply an undirected graphical model, or Markov random field (MRF):<footnote anchor="5"/> specified by the collection of factors <i>Fm </i><i>:</i><i> </i><i>A — </i>R-0. Each factor is a function that consults only a <i>subset </i>of A. We say that the factor has degree d if it depends on the values of d variables in A, and that it is unary, binary, ternary, or global if <i>d </i>is respectively 1, 2, 3, or unbounded (grows with <i>n).</i></p><footnote label="3">"Links" are conventionally called edges, but we reserve the term "edge" for describing the graphical model's factor graph.</footnote><footnote label="4">We could have chosen a different representation with O(n) integer variables {P j : 1 &lt; j &lt; n}, writing P j = i instead of L ij = true. This representation can achieve the same asymp­totic runtime for BP by using sparse messages, but some con­straints and algorithms would be somewhat harder to explain.</footnote><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">p(A) = ZnFm(A) (1)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">m</doubt><p>A factor function <i>F</i><i>m</i>(A) may also depend freely on the observed variables—the input sentence <i>W </i>and a known (learned) parameter vector 6. For no-tational simplicity, we suppress these extra argu­ments when writing and drawing factor functions, and when computing their degree. In this treatment, these observed variables are not specified by A, but instead are absorbed into the very definition of Fm.</p><p>In defining a factor Fm, we often define the cir­cumstances under which it fires. These are the only circumstances that allow Fm(A) = 1. When Fmdoes not fire, Fm(A) = 1 and does not affect the product in equation (1).</p></subsection><subsection number="3.3" title="Hard constraints"><p>A hard factor Fm fires only on parses A that <i>violate </i>some specified condition. It has value 0 on those parses, acting as a hard constraint to rule them out.</p><p>TREE. A hard global constraint on all the <i>L</i><i>ij </i>vari­ables at once. It requires that exactly n of these vari­ables be true, and that the corresponding links form a directed tree rooted at position 0.</p><p>PTREE. This stronger version of TREE requires further that the tree be projective. That is, it pro­hibits <i>L</i><i>ij </i>and <i>L</i><i>ke </i>from both being true if i — j crosses <i>k</i><i> </i><i>— </i><i>l.</i><i> </i>(These links are said to cross if one of <i>k,l</i><i> </i>is strictly between i and j while the other is strictly outside that range.)</p><p>Exactly1. A <i>family </i>of <i>O(n)</i><i> </i>hard global con­straints, indexed by 1 &lt; j &lt; n. Exactly 1<b>j </b>re­quires that j have exactly one parent, i.e., exactly one of the Lij variables must be true. Note that Ex-ACTLY1 is implied by TREE or PTREE.</p><footnote label="5">Our overall model is properly called a dynamic MRF, since we must construct different-size MRFs for input sentences of different lengths. Parameters are shared both across and within these MRFs, so that only finitely many parameters are needed.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">146</doubt><page local="3" global="147"/><p>ATMOST1. A weaker version. ATMOST1<b>j </b>re­quires j to have one or zero parents.</p><p>NAND. A <i>family </i>of hard binary constraints. NAND<b>j^ </b>requires that Lij and <i>Lk£ </i>may not both be true. We will be interested in certain subfamilies.</p><p>NOT2. Shorthand for the family of O(n<footnote anchor="3"/>) bi­nary constraints {NAND<b>ij)kj</b>}. These are collectively equivalent to AtMost1, but expressed via a larger number of simpler constraints, which can make the BP approximation less effective (footnote 30).</p><p>NO2CYCLE. Shorthand for the family of O(n<footnote anchor="2"/>) binary constraints {NAND<b>ij ji}.</b></p></subsection><subsection number="3.4" title="Soft constraints"><p>A soft factor F<b>m </b>acts as a soft constraint that prefers some parses to others. In our experiments, it is al­ways a log-linear function returning positive values:</p><doubt alpha="48.0" length="25" tooSmall="False" monospace="0.0">Fm(A)  =exp6hfh(A,W,m)(2)</doubt><p><b>hG</b>features<b>(Fm)</b></p><p>where 6 is a learned, finite collection of weights and f is a corresponding collection of feature functions, some of which are used by Fm. (Note that fh is permitted to consult the observed input W. It also sees which factor F<b>m </b>it is scoring, to support reuse of a single feature function f<b>h </b>and its weight 6<b>h </b>by unboundedly many factors in a model.)</p><p>LINK. A family of unary soft factors that judge the links in a parse A individually. LINKij fires iff Lij = true, and then its value depends on (i, j), W, and 6. Our experiments use the same features as</p><p>McDonald et al. (2005).</p><p>A first-order (or "edge-factored") parsing model (McDonald et al., 2005) contains <i>only </i>LINK factors, along with a global TREE or PTREE factor. Though there are O(n<footnote anchor="2"/>) link factors (one per Lij), only n of them fire on any particular parse, since the global factor ensures that exactly n are true.</p><p>We'll consider various higher-order soft factors:</p><p>PAIR. The binary factor PAIR<b>j^ </b>fires with some value iff Lij and <i>L</i><i>ke </i>are both true. Thus, it penal­izes or rewards a pair of links for being simultane­ously present. This is a soft version of NAND.</p><p>GRAND. Shorthand for the family of O(n<footnote anchor="3"/>) binary factors {PAIR<b>jjfc</b>}, which evaluate grandparent-parent-child configurations, i — j — k. For exam­ple, whether preposition j attaches to verb i might depend on its object k. In non-projective parsing, we might prefer (but not require) that a parent and child be on the same side of the grandparent.</p><p>Sib. Shorthand for the family of O(n<footnote anchor="3"/>) binary fac­tors {PAIRij)ik}, which judge whether two children of the same parent are compatible. E.g., a given verb may not like to have two noun children both to its left.<footnote anchor="6"/> The children do not need to be adjacent.</p><p>ChildSeq. A family of O(n) global factors. CHILDSEQi scores i's sequence of children; hence it consults all variables of the form Lij. The scor­ing follows the parametrization of a weighted split head-automaton grammar (Eisner and Satta, 1999). If 5 has children 2, 7, 9 under A, then CHILDSEQiis a product of subfactors of the form pair5#;57, PAIR57 59, PAIR59)5# (right child sequence) and pair5#;52, pair52 5# (left child sequence).</p><p>NOCROSS. A family of O(n<footnote anchor="2"/>) global constraints. If the parent-to-j link crosses the parent-to-l link, then NoCROSS<b>j^</b><b> </b>fires with a value that depends only on j and l. (If j and l do not each have ex­actly one parent, NoCROSS^ fires with value 0; i.e., it incorporates EXACTLY 1<b>j </b>and EXACTLY^.)<footnote anchor="7"/></p><p>TAG<b>i </b>is a unary factor that evaluates whether T<b>i</b>'s value is consistent with W (especially W<b>i).</b></p><p>TAGLlNK<b>j </b>is a ternary version of the LlNKij fac­tor whose value depends on Lij, Ti and T<b>j </b>(i.e., its feature functions consult the tag variables to decide whether a link is likely). One could similarly enrich the other features above to depend on tags and/or link roles; TAGLINK is just an illustrative example.</p><p>T RI GR AM is a global factor that evaluates the tag sequence T according to a trigram model. It is a product of subfactors, each of which scores a tri-gram of adjacent tags Ti_2,Ti_i,Ti, possibly also considering the word sequence W (as in CRFs).</p></subsection></section><section number="4" title="A Sketch of Belief Propagation"><p>MacKay (2003, chapters 16 and 26) provides an excellent introduction to belief propagation, a gen-<page local="4" global="148"/></p><footnote label="6">A similar binary factor could directly discourage giving the verb two SUBJECT s, if the model has variables for link roles.</footnote><footnote label="7">In effect, we have combined the O(n 4 ) binary factors P AiR ij ,fc£ into O(n 2 ) groups, and made them more precise by multiplying in ExactlyOne constraints (see footnote 30). This will permit O(n 3 ) total computation if we are willing to sacrifice the ability of the Pair weights to depend on i and k.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">147</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">tree</doubt><p>Figure 1: A fragment of a factor graph, illustrating a few of the unary, binary, and global factors that affect vari­ables L25 and L56. The Grand factor induces a loop.</p><p>eralization of the forward-backward algorithm that is deeply studied in the graphical models literature (Yedidia et al., 2004, for example). We briefly sketch the method in terms of our parsing task.</p><subsection number="4.1" title="Where BP comes from"><p>The basic BP idea is simple. Variable L34 main­tains a <i>distribution </i>over values true and false—a "belief"—that is periodically recalculated based on the current <i>distributions </i>at other variables.<footnote anchor="8"/></p><p>Readers familiar with Gibbs sampling can regard this as a kind of deterministic approximation. In Gibbs sampling, L34's <i>value </i>is periodically resam-pled based on the current <i>values </i>of other variables. Loopy BP works not with random samples but their expectations. Hence it is approximate but tends to converge much faster than Gibbs sampling will mix.</p><p>It is convenient to visualize an undirected factor graph (Fig. 1), in which each factor is connected to the variables it depends on. Many factors may connect to—and hence influence—a given variable such as L34. If X is a variable <i>or </i>a factor, <i>N</i><i>(X)</i><i> </i>denotes its set of neighbors.</p></subsection><subsection number="4.2" title="What BP accomplishes"><p>Given an input sentence W and a parameter vector 9, the collection of factors Fm defines a probabil­ity distribution (1). The parser should determine the values of the individual variables. In other words, we would like to marginalize equation (1) to obtain the distribution <i>p(L34)</i><i> </i>over L34 = true vs. false, the distribution <i>p(T4)</i><i> </i>over tags, etc.</p><p>If the factor graph is <i>acyclic, </i>then BP com­putes these marginal distributions exactly. Given an HMM, for example, BP reduces to the forward-backward algorithm.</p><footnote label="8">Or, more precisely—this is the tricky part—based on ver­sions of those other distributions that do not factor in L 34 's re­ciprocal influence on them. This prevents (e.g.) L 34  and T 3 from mutually reinforcing each other s existing beliefs.</footnote><p>BP's estimates of these distributions are called be­liefs about the variables. BP also computes be­liefs about the factors, which are useful in learn­ing 9 (see §7). E.g., if the model includes the factor TAGLINKj, which is connected to variables <i>L</i><i>ij</i>, Ti, <i>T</i><i>j</i>, then BP will estimate the marginal joint distribu­tion <i>p(L</i><i>ij</i><i>,T</i><i>i, </i><i>T</i><i>j) </i>over (boolean, tag, tag) triples.</p><p>When the factor graph has loops, BP s beliefs are usually not the true marginals of equation (1) (which are in general intractable to compute). Indeed, BP s beliefs may not be the true marginals of <i>any </i>distribu­tion <i>p</i><i>(A) </i>over assignments, i.e., they may be glob­ally inconsistent. All BP does is to incrementally adjust the beliefs till they are at least <i>locally </i>con­sistent: e.g., the beliefs at factors TAGLINK<i>ij </i>and TAGLINKik must both imply<footnote anchor="9"/> the same belief about variable <i>T</i><i>i, </i>their common neighbor.</p></subsection><subsection number="4.3" title="The BP algorithm"><p>This iterated negotiation among the factors is han­dled by message passing along the edges of the fac­tor graph. A message to or from a variable is a (pos­sibly unnormalized) probability distribution over the values of that variable.</p><p>The variable V sends a message to factor F, say­ing "My <i>other </i>neighboring factors G jointly suggest that I have posterior distribution <i>qv_</i><i>F </i>(assuming that they are sending me independent evidence)." Meanwhile, factor <i>F</i><i> </i>sends messages to <i>V,</i><i> </i>saying, "Based on my factor function and the messages re­ceived from my <i>other </i>neighboring variables U about <i>their </i>values (and assuming that those messages are independent), I suggest you have posterior distribu­tion rF<i>_</i><i>v </i>over <i>your </i>values."</p><p>To be more precise, BP at each iteration k (until convergence) updates two kinds of messages:</p><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">=knrg_v(v) (3)</doubt><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">ceN (v )\f</doubt><p>from variables to factors, and from factors to variables.<page local="5" global="149"/> Each message is a proba­bility distribution over values v of V, normalized by a scaling constant <i>k.</i><i> </i>Alternatively, messages may be left as unnormalized distributions, choosing k <b>= 1 </b>only as needed to prevent over- or underflow. Mes­sages are initialized to uniform distributions.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><doubt alpha="53.6" length="28" tooSmall="False" monospace="0.0">r?_:t)(v)=kEF(A)IlqglF(A[U])</doubt><doubt alpha="44.0" length="25" tooSmall="False" monospace="0.0">As.t.A[V]=v      UeM(F)\v</doubt><footnote label="9">In the sense that marginalizing the belief p(L ij , T i ,T j ) at the factor yields the belief p(T i ) at the variable.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">148</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>Q</p></td><td class="cell"><p><i>I</i></p></td><td class="cell"><p>l[5,6]</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>link</p></td><td class="cell"><p></p></td><td class="cell"><p>grand</p></td><td class="cell"><p></p></td><td class="cell"><p>link</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Whenever we wish, we may compute the beliefs at <i>V </i>and <i>F:</i></p><doubt alpha="40.9" length="22" tooSmall="False" monospace="0.0">&amp;v:1)(v)=knrglv(v) (5)</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">ceM(v )</doubt><doubt alpha="42.9" length="28" tooSmall="False" monospace="0.0">bF^\A)=kF(A)nqU__f(A[U]) (6)</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">UeM(F )</doubt><p>These beliefs do not truly characterize the ex­pected behavior of Gibbs sampling (§4.1), since the products in (5)-(6) make conditional independence assumptions that are valid only if the factor graph is acyclic. Furthermore, on cyclic ("loopy") graphs, BP might only converge to a local optimum (Weiss and Freedman, 2001), or it might not converge at all. Still, BP often leads to good, fast approximations.</p></subsection></section><section number="5" title="Achieving Low Asymptotic Runtime"><p>One iteration of standard BP simply updates all the messages as in equations (3)-(4): one message per edge of the factor graph.</p><p>Therefore, adding new factors to the model in­creases the runtime per iteration <i>additively, </i>by in­creasing the number of messages to update. We believe this is a compelling advantage over dy­namic programming—in which new factors usually increase the runtime and space <i>multiplicatively </i>by exploding the number of distinct items.<footnote anchor="10"/></p><subsection number="5.1" title="Propagators for local constraints"><p>But how long does updating each message take? The runtime of summing over all assignments in</p><footnote label="10">For example, with unknown tags T, a model with PTree+TagLink will take only O(n 3  + n 2 g 2 ) time for BP, compared to O(n 3 g 2 ) time for dynamic programming (Eisner</footnote><p>6 Satta 1999). Adding Trigram, which is string-local rather than tree-local, will increase this only to O(n<footnote anchor="3"/> + n<footnote anchor="2"/>g<footnote anchor="2"/> + ng<footnote anchor="3"/>), compared to O(n<footnote anchor="3"/>g<footnote anchor="6"/>) for dynamic programming.</p><p>Even more dramatic, adding the SIB family of O(n<footnote anchor="3"/>) PAiRij,ik factors will add only O(n<footnote anchor="3"/>) to the runtime of BP (Table 1). By contrast, the runtime of dynamic programming becomes exponential, because each item must record its head­word s full <i>set </i>of current children.</p><p>equation (4) may appear prohibitive. Crucially, how­ever, F (A) only depends on the values in A of F 's its neighboring variables N(F). So this sum is pro­portional to a sum over <i>restricted </i>assignments to just those variables.<footnote anchor="11"/></p><p>For example, computing a message from TAGLlNK<b>j </b>— Ti only requires iterating over all (boolean, tag, tag) triples.<footnote anchor="12"/> The runtime to update that message is therefore O(2 <i>• </i>|T| • |T|).</p></subsection><subsection number="5.2" title="Propagators for global constraints"><p>The above may be tolerable for a ternary factor. But how about global factors? Exactly 1 <b>j </b>has n neigh­boring boolean variables: surely we cannot iterate over all 2n assignments to these! Tree is even worse, with 2O(n ) assignments to consider. We will give specialized algorithms for handling these sum­mations more efficiently.</p><p>A historical note is in order. Traditional constraint satisfaction corresponds to the special case of (1) where <i>all </i>factors F<b>m </b>are hard constraints (with val­ues in {0,1}). In that case, loopy BP reduces to an algorithm for generalized arc consistency (Mack­worth, 1977; Bessiere and Regin, 1997; Dechter, 2003), and updating a factor s outgoing messages is known as constraint propagation. Regin (1994) famously introduced an efficient propagator for a global constraint, AllDifferent, by adapting combinatorial bipartite matching algorithms.</p><p>In the same spirit, we will demonstrate efficient propagators for our global constraints, e.g. by adapt­ing combinatorial algorithms for <i>weighted parsing. </i>We are unaware of any previous work on global fac­tors in sum-product BP, although for <i>max-product </i>BP,<footnote anchor="13"/> Duchi et al. (2007) independently showed that a global 1-to-1 alignment constraint—a kind of weighted AllDifferent—permits an efficient propagator based on weighted bipartite matching.</p></subsection><subsection number="5.3" title="Constraint propagators for parsing"><p>Table 1 shows our asymptotic runtimes for all fac­tors in §§3.3-3.4. Remember that if several of these<page local="6" global="150"/></p><footnote label="11">The constant of proportionality may be folded into k; it is the number of assignments to the other variables.</footnote><footnote label="12">Separately for each value v of Ti, get v's probability by summing over assignments to (L ij , Ti, Tj) s.t. T i = v.</footnote><footnote label="13">Max-product replaces the sums in equations (3)-(6) with maximizations. This replaces the forward-backward algorithm with its Viterbi approximation.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">149</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">150</doubt><p>Note that the marginal belief and both messages are unnormalized distributions over values v of V. F and k are clear from context below, so we simplify the notation so that (7)-(8) become</p><doubt alpha="42.9" length="42" tooSmall="False" monospace="0.0">b(V = v) =Eb(A) = rv(v) • qv(v)As.t.A[v]=v</doubt><p>T RIGRAM must sum over assignments to the tag sequence T. The belief (6) in a given assignment is a product of trigram scores (which play the role of transition weights) and incoming messages qTj(playing the role of emission weights). The marginal belief (7) needed above, b(T = t), is found by sum­ming over assignments where Ti = t. All marginal beliefs are computed together in O(ng<footnote anchor="3"/>) total time by the forward-backward algorithm.<footnote anchor="16"/></p><p>EXACTLY1<b>j </b>is a <i>sparse </i>hard constraint. Even though there are 2n assignments to its n neighboring variables {Lij }, the factor function returns 1 on only n assignments and 0 on the rest. In fact, for a given i, <i>b(L</i><i>ij </i>= true) in (7) is defined by (6) to have exactly one non-zero summand, in which A puts L<b>ij </b>= true and all other Li/<b>j </b>= false. We compute the marginal beliefs for all i together in O(n) total time:</p><doubt alpha="62.9" length="35" tooSmall="False" monospace="0.0">1. Pre-compute n =Y[iqLij(false).17</doubt><p>2. For each i, compute the marginal belief b(L<b>ij </b>= true) as n • qLij, where qLij G R de­notes the odds ratio qLij (true)/qLij (false).<footnote anchor="18"/></p><p>3. The partition function b() denotes b(A); compute it in this case as    <b>i </b>b(L<b>ij </b>= true).</p><p>4. For each i, compute b(L<b>ij </b>= false) by subtrac­tion, as b() - b(L<b>ij </b>= true).</p><p>T REE and PTREE must sum over assignments to the O(n<footnote anchor="2"/>) neighboring variables {Lij}. There are now exponentially many non-zero summands, those in which A corresponds to a valid tree. Nonetheless,</p><footnote label="16">Which is itself an exact BP algorithm, but on a different graph—a junction tree formed from the graph of Trigram sub-factors. Each variable in the junction tree is a bigram. If we had simply replaced the global Trigram factor with its subfactors in the full factor graph, we would have had to resort to General­ized BP (Yedidia et al., 2004) to obtain the same exact results.</footnote><footnote label="17">But taking n = 1 gives the same results, up to a constant.</footnote><footnote label="18">As a matter of implementation, this odds ratio q Lij  can be used to represent the incoming message q Lij  everywhere.</footnote><p>Table 1: Asymptotic runtimes of the propagators for var­ious factors (where n is the sentence length and g is the size of the tag set T). An iteration of standard BP propa­gates through each factor once. Running a factor s prop­agator will update all of its outgoing messages, based on its current incoming messages.</p><p>factors are included, the total runtime is <i>additive.<footnote anchor="14"/></i>Propagating the local factors is straightforward (§5.1). We now explain how to handle the global factors. <i>Our main trick is to work backwards from marginal beliefs. </i>Let F be a factor and V be one of its neighboring variables. At any time, F has a marginal belief about V (see footnote 9), a sum over (6) s products ofincoming messages. By the definition of rF_<b>v </b>in (4), and distributivity, we can also express the marginal belief (7) as a point-wise product of outgoing and incoming messages<footnote anchor="15"/> up to a constant. If we can quickly sum up the marginal belief (7), then (8) says we can divide out <i>each </i>particular incoming message qv <b>F </b>to obtain its corresponding outgoing message r<b>F+y</b>.</p><doubt alpha="36.4" length="22" tooSmall="False" monospace="0.0">bF__1)(V=v)=EbF^A) (7)</doubt><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">As.t.A[v]=v</doubt><doubt alpha="42.3" length="26" tooSmall="False" monospace="0.0">bF^V=v)=rFfc^(v) •f(v) (8)</doubt><footnote label="14">We may ignore the cost of propagators at the variables. Each outgoing message from a variable can be computed in time proportional to its size, which may be amortized against the cost of generating the corresponding incoming message.</footnote><footnote label="15">E.g., the familiar product of forward and backward mes­sages that is used to extract posterior marginals from an HMM.</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>factor</p></td><td class="cell"><p>degree</p></td><td class="cell"><p>runtime</p></td><td class="cell"><p>count</p></td><td class="cell"><p>runtime</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>family</p></td><td class="cell"><p>(each)</p></td><td class="cell"><p>(each)</p></td><td class="cell"><p></p></td><td class="cell"><p>(total)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Tree</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"><p>1</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ptree</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"><p>1</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Exactly1</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>n</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>AtMost1</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>n</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Not2</p></td><td class="cell"><p>2</p></td><td class="cell"><p>O(1)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>No2Cycle</p></td><td class="cell"><p>2</p></td><td class="cell"><p>O(1)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Link</p></td><td class="cell"><p>1</p></td><td class="cell"><p>O(1)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Grand</p></td><td class="cell"><p>2</p></td><td class="cell"><p>O(1)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Sib</p></td><td class="cell"><p>2</p></td><td class="cell"><p>O(1)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ChildSeq</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NoCross</p></td><td class="cell"><p><i>O(n)</i></p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Tag</p></td><td class="cell"><p>1</p></td><td class="cell"><p>O(g)</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(ng)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>taglink</p></td><td class="cell"><p>3</p></td><td class="cell"><p>O(g<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>)</p></td><td class="cell"><p>O(n<footnote anchor="2"/>g<footnote anchor="2"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>trigram</p></td><td class="cell"><p>O(n)</p></td><td class="cell"><p>O(ng<footnote anchor="3"/>)</p></td><td class="cell"><p>1</p></td><td class="cell"><p>O(ng<footnote anchor="3"/>)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="7" global="151"/><p>we can follow the same approach as for Exactly 1. Steps 1 and 4 are modified to iterate over all i, j such that L<b>ij </b>is a variable. In step 3, the partition function <i>J2</i><i>a </i>b( A) is now n times the total weight of all trees, where the weight of a given tree is the product of the <b>qLij </b>values of its n edges. In step 2, the marginal belief b(Lij <b>= </b>true) is now n times the total weight of all trees having edge i — j.</p><p>We perform these combinatorial sums <i>by calling a first-order parsing algorithm, </i>with edge weights q<b>j</b>. Thus, as outlined in §2, a first-order parser is called each time we propagate through the global Tree or PTREE constraint, using edge weights that include the first-order LINK factors but also multiply in any current messages from higher-order factors.</p><p>The parsing algorithm simultaneously computes the partition function b(), and all O(n<footnote anchor="2"/><b>) </b>marginal beliefs b(Lij <b>= </b>true). For PTREE (projective), it is the inside-outside version of a dynamic program­ming algorithm (Eisner, 1996). For TREE (non-projective), Koo et al. (2007) and Smith and Smith (2007) show how to employ the matrix-tree theorem. In both cases, the total time is O(n<footnote anchor="3"/>).<footnote anchor="19"/></p><p>NOCROSS<b>j^</b><b> </b>must sum over assignments to O(n) neighboring variables {Lij } and {LThe non­zero summands are assignments where j and £ each have exactly one parent.   At step 1, n <b>=</b></p><doubt alpha="100.0" length="3" tooSmall="True" monospace="0.0">def</doubt><p>ri<b>i qLij(</b>false<b>) </b>^ n<b>fcqLfc£ (</b>false<b>)</b>. At step <footnote anchor="2"/> the</p><p>marginal belief b(L<b>ij = </b>true) sums over the n non­zero assignments containing i — j. It is n • <b>qLij </b>• <b>Ek </b>q<b>ifc£ </b>• PAlR<b>ij, fc^, </b>where PAIR<b>j^</b><b> </b>is x <b>j</b><b> </b>if i — j crosses k — £ and is 1 otherwise. is some factor value defined by equation (2) to penalize or reward the crossing. Steps 3-4 are just as in Exactly 1<b>j</b>.</p><p>The question is how to compute b(Lij <b>= </b>true) for each i in only O<b>(1) </b>time,<footnote anchor="20"/> so that we can propagate each of the O(n<footnote anchor="2"/>) NoCross^ in O(n) time. This is why we allowed a <b>j </b>to depend only on j, £. We can rewrite the sum b(Lij <b>= </b>true) as</p><doubt alpha="48.3" length="29" tooSmall="False" monospace="0.0">n^fei*^(aj ^qLfc£+1^qLfc£)(9)</doubt><p>crossing <b>fc </b>noncrossing <b>fc</b></p><footnote label="19">A dynamic algorithm could incrementally update the out­going messages if only a few incoming messages have changed (as in asynchronous BP). In the case of Tree, dynamic matrix inverse allows us to update any row or column (i.e., messages from all parents or children of a given word) and find the new inverse in O(n 2 ) time (Sherman and Morrison, 1950).</footnote><footnote label="20">Symmetrically, we compute b(L k e = true) for each k.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">151</doubt><p>To find this in O<b>(1) </b>time, we precompute for each £ an array of partial sums Q^[s, t] <i>= Yl</i><b>s&lt;k&lt;t qLfc£</b>. Since Q^[s, t] <b>= </b>Q^[s, t — <b>1] + qLt£</b>, we can compute each entry in O<b>(1) </b>time. The total precomputation time over all £, s, t is then O(n<footnote anchor="3"/>), with the array shared across all factors NoCROSS<b>j/^. </b>The crossing sum is respectively Q<b>^[0, </b>i — <b>1] + </b>[j <b>+ 1, </b>n], Q^[i <b>+ 1, </b>j — <b>1], </b>or 0 according to whether £ G (i, j<b>)</b>, £ G [i, j<b>]</b>, or £ <b>= </b>i.<footnote anchor="21"/> The non-crossing sum is <b>[0, </b>n] minus the crossing sum.</p><p>CHILDSEQi , like Trigram, is propagated by a forward-backward algorithm. In this case, the al­gorithm is easiest to describe by replacing CHILD5 EQ<b>i </b>in the factor graph by a collection of local subfactors, which pass messages in the ordinary way.<footnote anchor="22"/> Roughly speaking,<footnote anchor="23"/> at each j <b>[1, </b>n], we introduce a new variable Cij —a hidden state whose value is the position of i s previous child, if any (so <b>0 </b>&lt; Cij &lt; j). So the ternary sub-factor on ,L<b>ij </b>,C<b>i;j+1) </b>has value 1 if Lij- <b>= </b>false and <b>= </b>Ci;j ; a sibling-bigram score (PAlR<b>iCij,iCi,j+i</b>) if L<b>ij = </b>true and C<b>ij</b>+i <b>=</b><b> </b>j; and 0 otherwise. The sparsity of this factor, which is 0 almost everywhere, is what gives CHILDSEQ<b>i </b>atotal runtime of O(n<footnote anchor="2"/>) rather than O(n<footnote anchor="3"/>). It is equivalent to forward-backward on an HMM with n observa­tions (the Lij) and n states per observation (the C<b>j</b>), with a <i>deterministic </i>(thus sparse) transition function.</p></subsection></section><section number="6" title="Decoding Trees"><p>BP computes local beliefs, e.g. the conditional prob­ability that a link L<b>ij </b>is present. But if we wish to output a single well-formed dependency tree, we need to find a single assignment to all the {Lij} that satisfies the TREE (or PTREE) constraint.</p><p>Our final belief about the Tree <i>factor </i>is a distri­bution over such assignments, in which a tree's prob­ability is proportional to the probability of its edge weights <b>qLij </b>(incoming messages). We could simply return the mode of this distribution (found by using a 1-best first-order parser) or the k-best trees, or take samples.</p><footnote label="21">There are no N o C ROSS j£ factors with £ = j.</footnote><footnote label="22">We still treat C HiLD S EQ i  as a global factor and compute all its correct outgoing messages on a single BP iteration, via serial forward and backward sweeps through the subfactors. Handling the subfactors in parallel, (3)-(4), would need O(n) iterations.</footnote><footnote label="23">Ignoring the treatment of boundary symbols "#" (see §3.4).</footnote><page local="8" global="152"/><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">m</doubt><p>In our experiments, we actually take the edge weights to be not the messages <b>qLij </b>from the links, but the full beliefs bLij at the links (where bLij <b>=</b>f<b>log </b>bLij (true)/bLij (false)). These are passed into a ast algorithm or maximum spanning tree (Tarjan, 1977) or maximum projective spanning tree (Eis­ner, 1996). This procedure is equivalent to minimum Bayes risk (MBR) parsing (Goodman, 1996) with a dependency accuracy loss unction.</p><p>Notice that the above decoding approaches do not enforce any hard constraints other than TREE in the final output. In addition, they only recover values of the L<b>ij </b>variables. They marginalize over other variables such as tags and link roles. This solves the problem of "nuisance" variables (which merely fragment probability mass among refinements of a parse). On the other hand, it may be undesirable for variables whose values we desire to recover.<footnote anchor="24"/></p></section><section number="7" title="Training"><p>Our training method also uses beliefs computed by BP, but at the <i>factors. </i>We choose the weight vector 9 by maximizing the log-probability of training data</p><footnote label="24">An alternative is to attempt to find the most probable ("MAP") assignment to all variables—using the max-product algorithm (footnote 13) or one of its recent variants. The esti­mated marginal beliefs become "max marginals," which assess the 1-best assignment consistent with each value of the variable.</footnote><p>We can indeed build max-product propagators for our global constraints. PTree still propagates in O(n<footnote anchor="3"/>) time: simply change the first-order parser's semiring (Goodman, 1999) to use max instead of sum. Tree requires O(n<footnote anchor="4"/>) time: it seems that the O(n<footnote anchor="2"/>) max marginals must be computed separately, each requiring a separate call to an O(n<footnote anchor="2"/>) maximum spanning tree algorithm (Tarjan, 1977).</p><p>If max-product BP converges, we may simply output each variable's favorite value (according to its belief), if unique. However, max-product BP tends to be unstable on loopy graphs, and we may not wish to wait for full convergence in any case. A more robust technique for extracting an assignment is to mimic Viterbi decoding, and "follow backpointers" of the max-product computation along some spanning subtree of the factor graph.</p><p>A slower but potentially more stable alternative is determin­istic annealing. Replace each factor <i>F</i><i>m(A) </i>with Fm(A)1/T, where T &gt; 0 is a temperature. As T — 0 ("quenches"), the distribution (1) retains the same mode (the MAP assignment), but becomes more sharply peaked at the mode, and sum-product BP approaches max-product BP. Deterministic annealing runs sum-product BP while gradually reducing T toward 0 as it it­erates. By starting at a high T and reducing T slowly, it often manages in practice to find a good local optimum. We may then extract an assignment just as we do for max-product.</p><p>under equation (1), regularizing only by early stop­ping. If all variables are observed in training, this objective function is <i>convex </i>(as for any log-linear model).</p><p>The difficult step in computing the gradient of our objective is finding V <b>log </b>Z, where Z in equa­tion (1) is the normalizing constant (partition func­tion) that sums over all assignments A. (Recall that Z, like each F<b>m, </b>depends implicitly on W and 9.) As usual for log-linear models,</p><doubt alpha="48.0" length="25" tooSmall="False" monospace="0.0">VlogZ=Ep(A)[V Fm(A)] (10)</doubt><p>Since V Fm(A) only depends on the assignment A's values for variables that are connected to F<b>m </b>in the factor graph, its expectation under p(A) de­pends only on the marginalization of p(A) to those variables jointly. Fortunately, BP provides an esti­mate of that marginal distribution, namely, its belief about the factor F<b>m, </b>given W and 9 (§4.2).<footnote anchor="25"/></p><p>Note that the hard constraints do not depend on 9 at all; so their summands in equation (10) will be 0.</p><p>We employ stochastic gradient descent (Bottou, 2003), since this does not require us to compute the objective function itself but only to (approxi­mately) estimate its gradient as explained above. Al­ternatively, given any of the MAP decoding proce­dures from §6, we could use an error-driven learning method such as the perceptron or MIRA.<footnote anchor="26"/></p></section><section number="8" title="Experiments"><p>We asked: (1) For projective parsing, where higher­order factors have traditionally been incorporated into slow but exact dynamic programming (DP), what are the comparative speed and quality of the BP approximation? (2) How helpful are such higher­order factors—particularly for non-projective pars­ing, where BP is needed to make them tractable? (3) Do our global constraints (e.g., TREE) contribute to the goodness of BP's approximation?</p><footnote label="25">One could use coarser estimates at earlier stages of training, by running fewer iterations of BP.</footnote><footnote label="26">The BP framework makes it tempting to extend an MRF model with various sorts of latent variables, whose values are not specified in training data. It is straightforward to train under these conditions. When counting which features fire on a train­ing parse or (for error-driven training) on an current erroneous parse, we can find expected counts if these parses are not fully observed, by using BP to sum over latent variables.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">152</doubt><page local="9" global="153"/><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">ö)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">'(/)</doubt><doubt alpha="37.5" length="8" tooSmall="True" monospace="0.0">Q. &lt;D ö)</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">4</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">A</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">o</doubt><doubt alpha="100.0" length="2" tooSmall="True" monospace="0.0">CO</doubt><doubt alpha="100.0" length="1" tooSmall="True" monospace="0.0">O</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">/ /</doubt></section><section number="2" title="iterations of BP"><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="100.0" length="2" tooSmall="True" monospace="0.0">CN</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">T10</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">T"</doubt><doubt alpha="0.0" length="33" tooSmall="False" monospace="0.0">20     30     40     50     60 70</doubt><p>Sentence length</p><figure caption="Figure 2: Runtime of BP parser on various sentence lengths compared toO(n4)dynamic programming."></figure><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">8.1 Data</doubt><p>We trained and tested on three languages from the CoNLL Dependency Parsing Shared Task (Nivre et al., 2007). The English data for that task were converted from the Penn Treebank to dependen­cies using a trace-recovery algorithm that induced some very slight non-projectivity—about 1% of links crossed other links. Danish is a slightly more non-projective language (3% crossing links). Dutch is the most non-projective language in the corpus (11%). In all cases, the test input W consists of part-of-speech-tagged words, so T variables were not used.</p><subsection number="8.2" title="Features"><p>Although BP makes it cheap to incorporate many non-local features and latent variables at once, we kept our models relatively simple in this paper.</p><p>Our first-order LlNKij factors replicate McDon­ald et al. (2005). Following equation (2), they are defined using binary features that look at words i and j, the distance j — i, and the tags (provided in W) of words at, around, and between i and j.</p><p>Our second-order features are similar. In the GRAND factors, features fire for particular triples of tags and of coarse tags. A feature also fires if the grandparent falls between the child and parent, inducing crossing dependency links. The CHILD-Seq factors included features for tags, and like­wise coarse tags, on adjacent sibling pairs and</p><doubt alpha="0.0" length="4" tooSmall="True" monospace="0.0">'&lt;/)</doubt><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">Q.</doubt><doubt alpha="66.7" length="3" tooSmall="True" monospace="0.0">O O</doubt><doubt alpha="75.0" length="4" tooSmall="True" monospace="0.0">CD O</doubt><doubt alpha="75.0" length="4" tooSmall="True" monospace="0.0">O CN</doubt><p>MBR by DP Viterbi DP</p></subsection></section><section number="3" title="iterations of BP 5 iterations of BP 10 iterations of BP"><p><i>9.</i></p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">10</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">20</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">30</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">40</doubt><p>Figure 3: Runtime of BP parser on various sentence lengths compared to O(n<footnote anchor="5"/>) dynamic programming. DP is so slow for length &gt; 45 that we do not even show it.</p><p>parent-sibling-sibling triples. Each of these fea­tures also have versions that were conjoined with link direction—pairs of directions in the grandpar­ent case—or with signed link length of the child or farther sibling. Lengths were binned per McDonald et al. (2005). The NoCross^ factors consider the tag and coarse tag attributes of the two child words j and £, separately or jointly.</p><subsection number="8.3" title="Experimental procedures"><p>We trained all models using stochastic gradient de­scent (§7). SGD initialized <i>0 </i>= 0 and ran for 10 con­secutive passes over the data; we picked the stopping point that performed best on held-out data.</p><p>When comparing runtimes for projective parsers, we took care to produce comparable implementa­tions. All beliefs and dynamic programming items were stored and indexed using the high-level Dyna language,<footnote anchor="27"/> while all inference and propagation was written in C++. The BP parser averaged 1.8 seconds per sentence for non-projective parsing and 1.5 sec­onds per sentence for projective parsing (1.2 and 0.9 seconds/sentence for &lt; 40 words), using our stan­dard setup, which included five iterations of BP and the final MBR tree decoding pass.</p><p>In our tables, we boldface the best result in each column along with any results that are not signifi­cantly worse (paired permutation test, p &lt; .05).</p><footnote label="27">This dominates runtime, and probably slows down all our parsers by a factor of 4-11 owing to known inefficiencies in the Dyna prototype we used (Eisner et al., 2005).</footnote><doubt alpha="100.0" length="1" tooSmall="True" monospace="0.0">c</doubt><doubt alpha="40.0" length="5" tooSmall="True" monospace="0.0">o Ü 0</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">T&gt;c</doubt><doubt alpha="57.1" length="7" tooSmall="True" monospace="0.0">o Ü 0tn</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">153</doubt><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></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>o</p><p>CO</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>/</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>A</p></td><td class="cell"><p>MBR by DP</p></td><td class="cell"><p>//</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>O</p></td><td class="cell"><p>Viterbi DP</p></td><td class="cell"><p>/ /</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>o</p></td><td class="cell"><p>+</p></td><td class="cell"><p>2 iterations of BP</p></td><td class="cell"><p>//</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>X</p></td><td class="cell"><p>3 iterations of BP ,'</p></td><td class="cell"><p><i>y Â</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>0</p></td><td class="cell"><p>5 iterations of BP //'</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>V</p></td><td class="cell"><p>10 iterations of BP</p></td><td class="cell"><p><i>/</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>o</p><p>CN</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><i>(y</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>O -</p></td><td class="cell"><p><i>0</i><i>-</i><i>♦</i><i>-</i><i>*-</i></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="10" global="154"/><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">m</doubt><doubt alpha="100.0" length="1" tooSmall="True" monospace="0.0">X</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">ci</doubt><doubt alpha="100.0" length="2" tooSmall="True" monospace="0.0">OL</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">5CO</doubt><doubt alpha="33.3" length="3" tooSmall="True" monospace="0.0">0 o</doubt><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">®o</doubt><p>Parsing time in seconds</p><p>Figure 4: Runtime vs. search error after different num­bers of BP iterations. This shows the simpler model of Fig. 2, where DP is still relatively fast.</p></subsection><subsection number="8.4" title="Faster higher-order projective parsing"><p>We built a first-order projective parser—one that uses only factors PTree and Link—and then com­pared the cost of incorporating second-order factors, Grand and ChildSeq, by BP versus DP.<footnote anchor="28"/></p><p>Under DP, the first-order runtime of O(n<footnote anchor="3"/>) is in­creased to O(n<footnote anchor="4"/>) with Grand, and to O(n<footnote anchor="5"/>) when we add ChildSeq as well. BP keeps runtime down to O(n<footnote anchor="3"/>)—although with a higher constant factor, since it takes several rounds to converge, and since it computes more than just the best parse.<footnote anchor="29"/></p><p>Figures 2-3 compare the empirical runtimes for various input sentence lengths. With only the Grand factor, exact DP can still find the Viterbi parse (though not the MBR parse<footnote anchor="29"/>) faster than ten iterations of the asymptotically better BP (Fig. 2), at least for sentences with n &lt; 75. However, once we add the ChildSeq factor, BP is always faster— dramatically so for longer sentences (Fig. 3). More complex models would widen BP's advantage.</p><p>Fig. 4 shows the tradeoff between runtime and search error of BP in the former case (Grand only). To determine BP's search error at finding the MBR parse, we measured its dependency accuracy not</p><footnote label="28">We trained these parsers using exact DP, using the inside-outside algorithm to compute equation (10). The training and test data were English, and for this section we filtered out sen­tences with non-projective links.</footnote><footnote label="29">Viterbi parsing in the log domain only needs the (max, +) semiring, whereas both BP and any MBR parsing must use the slower (+, log+) so that they can compute marginals.</footnote><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">(a)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">(b)</doubt><p>Table 2: (a) Percent unlabeled dependency accuracy for various non-projective BP parsers (5 iterations only), showing the cumulative contribution ofdifferentfeatures. (b) AccuracyforanprojectiveDP parserwithallfeatures. Forrelatively non-projective languages (Danish andespe-cially Dutch), the exact projective parses can be improved by non-projective hill-climbing—but in those cases, just running our non-projective BP is better and faster.</p><p>against the gold standard, but against the optimal MBR parse under the model, which DP is able to find. After 10 iterations, the overall macro-averaged search error compared to O(n<footnote anchor="4"/>) DP MBR is 0.4%; compared to O(n<footnote anchor="5"/>) (not shown), 2.4%. More BP iterations may help accuracy. In future work, we plan to compare BP's speed-accuracy curve on more complex projective models with the speed-accuracy curve of <i>pruned </i>or <i>reranked </i>DP.</p></subsection><subsection number="8.5" title="Higher-order non-projective parsing"><p>The BP approximation can be used to improve the accuracy of <i>non</i>-projective parsing by adding higher-order features. These would be NP-hard to incorporate exactly; DP cannot be used.</p><p>We used BP with a non-projective Tree factor to train conditional log-linear parsing models of two highly non-projective languages, Danish and Dutch, as well as slightly non-projective English (§8.1). In all three languages, the first-order non-projective parser greatly overpredicts the number of crossing links. We thus added NoCross factors, as well as Grand and ChildSeq as before. All of these significantly improve the first-order baseline, though not necessarily cumulatively (Table 2).</p><p>Finally, Table 2 compares loopy BP to a previ­ously proposed "hill-climbing" method for approx­imate inference in non-projective parsing McDon­ald and Pereira (2006). Hill-climbing decodes our richest non-projective model by finding the best <i>pro-jective </i>parse under that model—using slow, <i>higher­order </i>DP—and then greedily modifies words' par­ents until the parse score (1) stops improving.</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">o d</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">154</doubt><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>A</p></td><td class="cell"><p></p></td><td class="cell"><p>2 iterations of BP</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>A</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>\</b></p></td><td class="cell"><p>+</p></td><td class="cell"><p>3 iterations of BP</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>A</p></td><td class="cell"><p>X</p></td><td class="cell"><p>5 iterations of BP</p></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>O</p></td><td class="cell"><p>10 iterations of BP</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>A</p></td><td class="cell"><p><b>1 \</b></p></td><td class="cell"><p>o</p></td><td class="cell"><p>MBR DP</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>i</p></td><td class="cell"><p>» \</p></td><td class="cell"><p></p></td><td class="cell"><p>Input length</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>i</p></td><td class="cell"><p><b>1 \</b></p></td><td class="cell"><p></p></td><td class="cell"><p>40 words</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>l \ 1 \</p></td><td class="cell"><p></p></td><td class="cell"><p>50 words</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>i</p></td><td class="cell"><p>1 \</p></td><td class="cell"><p><b>-</b></p></td><td class="cell"><p>60 words</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>i</p></td><td class="cell"><p></p></td><td class="cell"><p><b>-</b></p></td><td class="cell"><p>— 70 words</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>i</p><p><b>_L</b></p></td><td class="cell"><p>+ \</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>l</i></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>— o</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>0</i></p></td><td class="cell"><p>1</p><p>20</p></td><td class="cell"><p>1</p><p>40</p></td><td class="cell"><p>1</p><p>60</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Danish</p></td><td class="cell"><p>Dutch</p></td><td class="cell"><p>English</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>tree+link</p></td><td class="cell"><p>85.5</p></td><td class="cell"><p>87.3</p></td><td class="cell"><p>88.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>+NoCross</p></td><td class="cell"><p>86.1</p></td><td class="cell"><p>88.3</p></td><td class="cell"><p>89.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>+Grand</p></td><td class="cell"><p>86.1</p></td><td class="cell"><p>88.6</p></td><td class="cell"><p>89.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>+ChildSeq</p></td><td class="cell"><p>86.5</p></td><td class="cell"><p>88.5</p></td><td class="cell"><p>90.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Proj. DP</p></td><td class="cell"><p>86.0</p></td><td class="cell"><p>84.5</p></td><td class="cell"><p>90.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>+hill-climbing</p></td><td class="cell"><p>86.1</p></td><td class="cell"><p>87.6</p></td><td class="cell"><p>90.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="11" global="155"/><p>Table 3: After training a non-projective first-order model with Tree, decoding it with weaker constraints is asymp­totically faster (except for Not2) but usually harm­ful. (Parenthetical numbers show that the harm is com­pounded if the weaker constraints are used in training as well; even though this matches training to test con­ditions, it may suffer more from BP's approximate gradi­ents.) Decoding the Tree model with the even stronger PTree constraint can actually be helpful for a more pro­jective language. All results use 5 iterations of BP.</p><p>BP for non-projective languages is much faster and more accurate than the hill-climbing method. Also, hill-climbing only produces an (approximate) 1-best parse, but BP also obtains (approximate) marginals of the distribution over <i>all </i>parses.</p></subsection><subsection number="8.6" title="Importance of global hard constraints"><p>Given the BP architecture, do we even need the hard Tree constraint? Or would it suffice for more local hard constraints to negotiate locally via BP?</p><p>We investigated this for non-projective first-order parsing. Table 3 shows that global constraints are indeed important, and that it is essential to use Tree during training. At test time, the weaker but still global Exactly 1 may suffice (followed by MBR decoding to eliminate cycles), for total time O(n<footnote anchor="2"/>).</p><p>Table 3 includes Not2, which takes O(n<footnote anchor="3"/>) time, merely to demonstrate how the BP approximation becomes more accurate for training and decoding when we join the simple Not2 constraints into more global AtMost1 constraints. This does not change the distribution (1), but makes BP enforce stronger local consistency requirements at the factors, rely­ing less on independence assumptions. In general, one can get better BP approximations by replacing a group of factors F<b>m</b>(A) with their product.<footnote anchor="30"/></p><p>The above experiments concern <i>gold-standard</i> accuracy under a given <i>first-order, non-projective </i>model. Flipping all three of these parameters for Danish, we confirmed the pattern by instead mea­suring <i>search error </i>under a <i>higher-order, projective </i>model (PTree+Link+Grand), when PTree was weakened during decoding. Compared to the MBR parse under that model, the search errors from de­coding with weaker hard constraints were 2.2% for Not2, 2.1% for Exactly 1, 1.7% for Exactly 1 + No2Cycle, and 0.0% for PTree.</p><footnote label="30">In the limit, one could replace the product (1) with a sin­gle all-purpose factor; then BP would be exact—but slow. (In constraint satisfaction, joining constraints similarly makes arc consistency slower but better at eliminating impossible values.)</footnote></subsection></section><section number="9" title="Conclusions and Future Work"><p>Belief propagation improves <i>non-projective </i>depen­dency parsing with features that would make ex­act inference intractable. For <i>projective </i>parsing, it is significantly faster than exact dynamic program­ming, at the cost of small amounts of search error,</p><p>We are interested in extending these ideas to phrase-structure and lattice parsing, and in try­ing other higher-order features, such as those used in parse reranking (Charniak and Johnson, 2005; Huang, 2008) and history-based parsing (Nivre and McDonald, 2008). We could also introduce new variables, e.g., nonterminal refinements (Matsuzaki et al., 2005), or secondary links Mij (not constrained by Tree/PTree) that augment the parse with repre­sentations of control, binding, etc. (Sleator and Tem-perley, 1993; Buch-Kromann, 2006).</p><p>Other parsing-like problems that could be at­tacked with BP appear in syntax-based machine translation. Decoding is very expensive with a syn­chronous grammar composed with an n-gram lan­guage model (Chiang, 2007)—but our footnote 10 suggests that BP might incorporate a language model rapidly. String alignment with synchronous grammars is quite expensive even for simple syn­chronous formalisms like ITG (Wu, 1997)—but Duchi et al. (2007) show how to incorporate bipar­tite matching into max-product BP.</p><p>Finally, we can take advantage of improvements to BP proposed in the context of other applications. For example, instead of updating all messages in parallel at every iteration, it is empirically faster to serialize updates using a priority queue (Elidan et<page local="12" global="156"/></p><doubt alpha="47.5" length="40" tooSmall="False" monospace="0.0">al., 2006; Sutton and McCallum, 2007).31</doubt><footnote label="31">These methods need alteration to handle our global propa­gators, which do update all their outgoing messages at once.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">155</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Decoding</p></td><td class="cell"><p>Danish       Dutch English</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Not2</p><p>AtMost1</p><p>Exactly1 + No2Cycle Tree</p></td><td class="cell"><p>81.8 (76.7)    83.3 (75.0)    87.5 (66.4)</p><p>85.4 (82.2) 87.3 (86.3) 88.5 (84.6) 85.7 (85.0) 87.0 (86.7) 88.6 (86.0) 85.0 (85.2)   86.2 (86.7)   88.5 (86.2)</p><p>85.5 (85.5)   87.3 (87.3)   88.6 (88.6)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PTree</p></td><td class="cell"><p>85.8 83.9 88.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></tr></table></section><references><p>C. Bessiere and J.-C. Regin. 1997. Arc consistency for general constraint networks: preliminary results. In <i>IJCAI, </i>pages 398-404.</p><p>L. Bottou. 2003. Stochastic learning. In <i>Advanced Lec­tures in Machine Learning, </i>pages 146-168. Springer. A. Braunstein, M. Mezard, and R. Zecchina. 2005. Sur­vey propagation: An algorithm for satisfiability. <i>Ran­dom Structures and Algorithms, </i>27:201-226. M. Buch-Kromann. 2006. <i>Discontinuous Grammar. A Model of Human Parsing and Language Acquisi­tion". </i>Dr.ling.merc. dissertation, Copenhagen Busi­ness School.</p><p>E. Charniak and M. Johnson. 2005. Coarse-to-fine n-best parsing and maxent discriminative reranking. In ACL, pages 173-180.</p><p>D. Chiang. 2007. Hierarchical phrase-based translation. <i>Computational Linguistics, </i>33(2):201-228.</p><p>R. Dechter. 2003. <i>Constraint Processing. </i>Morgan Kauf­mann.</p><p>J. Duchi, D. Tarlow, G. Elidan, and D. Koller. 2007.</p><p>Using combinatorial optimization within max-product belief propagation. In <i>NIPS 2006, </i>pages 369-376. J. Eisner and G. Satta. 1999. Efficient parsing for bilex-ical context-free grammars and head automaton gram­mars. In <i>ACL, </i>pages 457-480. J. Eisner, E. Goldlust, andN. A. Smith. 2005. Compiling comp ling: Weighted dynamic programming and the dyna language. In <i>HLT-EMNLP, </i>pages 281-290. J. Eisner. 1996. Three new probabilistic models for de­pendency parsing: An exploration. In <i>COLING. </i>G. Elidan, I. McGraw, and D. Koller.   2006. Resid­ual belief propagation: Informed scheduling for asyn­chronous message passing. In <i>UAI. </i>J. T. Goodman. 1996. Parsing algorithms and metrics.</p><doubt alpha="64.8" length="71" tooSmall="False" monospace="0.0">In ACL, pages 177-183. J. Goodman. 1999. Semiring parsing.Computational</doubt><p><i>Linguistics, </i>25(4):573-605. L. Huang. 2008. Forest reranking: Discriminative pars­ing with non-local features. In <i>ACL, </i>pages 586-594. T. Koo, A. Globerson, X. Carreras, and M. Collins. 2007. Structured prediction models via the Matrix-Tree The­orem. In <i>EMNLP-CoNLL.</i></p><p>D. MacKay. 2003. <i>Information Theory, Inference, and</i></p><p><i>Learning Algorithms. </i>Cambridge. A. Mackworth. 1977. Consistency in networks of rela­tions. <i>Artificial Intelligence, </i>8(1):99-118. A. F. T. Martins, D. Das, N. A. Smith, and E. P. Xing.</p><p>2008. Stacking dependency parsers. In <i>EMNLP. </i>T. Matsuzaki, Y. Miyao, and J. Tsujii. 2005. Probabilis­tic CFG with latent annotations. In <i>ACL, </i>pages 75-82.</p><p>R. McDonald and F. Pereira. 2006. Online learning of approximate dependency parsing algorithms. In <i>EACL.</i><i></i></p><p>R. McDonald, K. Crammer, and F. Pereira. 2005. Online large-margin training of dependency parsers. In <i>ACL.</i></p><p>J. Nivre and R. McDonald. 2008. Integrating graph-based and transition-based dependency parsers. In <i>ACL.</i><i></i></p><p>J. Nivre, J. Hall, S. Kubler, R. McDonald, J. Nilsson, S. Riedel, and D. Yuret. 2007. The CoNLL 2007 shared task on dependency parsing. In <i>Proceedings of the CoNLL Shared Task Session ofEMNLP-CoNLL.</i></p><p>J.-C. Regin. 1994. A filtering algorithm for constraints of difference in csps. In <i>AAAI, </i>pages 362-367.</p><p>S. Riedel and J. Clarke. 2006. Incremental integer linear programming for non-projective dependency parsing. In <i>EMNLP, </i>pages 129-137.</p><p>J. Sherman and W. J. Morrison. 1950. Adjustment of an inverse matrix corresponding to a change in one ele­ment of a given matrix. <i>Ann. Math. Stat., </i>21:124-127.</p><p>D. Sleator and D. Temperley. 1993. Parsing English with a link grammar. In <i>IWPT, </i>pages 277-291, August.</p><p>D. A. Smith and N. A. Smith. 2007. Probabilistic mod­els of nonprojective dependency trees.  In <i>EMNLP-</i> <i>CoNLL.</i><i></i></p><p>C. Sutton and A. McCallum. 2004. Collective segmenta­tion and labeling of distant entities in information ex­traction. In <i>ICML Workshop on Statistical Relational Learning.</i></p><p>C. Sutton and A. McCallum. 2007. Improved dynamic schedules for belief propagation. In UAI.</p><p>C. Sutton, K. Rohanimanesh, and A. McCallum. 2004. Dynamic conditional random fields: Factorized prob­abilistic models for labeling and segmenting sequence data. In <i>ICML.</i></p><p>R. E. Tarjan. 1977. Finding optimum branchings. <i>Net­works, </i>7:25-35.</p><p>R. W. Tromble and J. Eisner. 2006. A fast finite-state relaxation method for enforcing global constraints on sequence decoding. In <i>HLT-NAACL, </i>pages 423-430.</p><p>Y. Weiss and W. T. Freedman. 2001. On the optimal-ity of solutions of the max-product belief propagation algorithm in arbitrary graphs. <i>IEEE Transactions on Information Theory, </i>47.</p><p>D. Wu. 1997. Stochastic inversion transduction gram­mars and bilingual parsing of parallel corpora. <i>CL,</i></p><p>23(3):377-404. J. S. Yedidia, W. T. Freeman, and Y. Weiss. 2004. Con­structing free-energy approximations and generalized belief approximation algorithms.   MERL TR2004-040, Mitsubishi Electric Research Laboratories.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">156</doubt></references></body></article>