<?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="19"/><title>Formalizing Semantic Parsing with Tree Transducers</title><author surname="Johnson" givenname="Mark"><org  name="University of Edinburgh" country="United Kingdom" city="Edinburgh"/></author><author surname="Goldwater" givenname="Sharon"><org  name="University of Edinburgh" country="United Kingdom" city="Edinburgh"/></author><author surname="Jones" givenname="Bevan"><org  name="University of Edinburgh" country="United Kingdom" city="Edinburgh"/></author></firstpageheader><frontmatter><p><b>Formalizing Semantic Parsing with Tree Transducers</b></p><p><b>Bevan Keeley Jones &amp; Mark Johnson Sharon Goldwater</b></p><p>Department of Computing School oflnformatics</p><p>Macquarie University University of Edinburgh</p><p>Sydney, NSW 2109, Australia Edinburgh, EH8 9AB, UK</p><p>Bevan.Jones@students.mq.edu.au sgwater@inf.ed.ac.uk Mark.Johnson@mq.edu.au</p></frontmatter><abstract>This paper introduces tree transducers as a unifying theory for semantic parsing models based on tree transformations. Many exist­ing models use tree transformations, but im­plement specialized training and smoothing methods, which makes it difficult to mod­ify or extend the models. By connecting to the rich literature on tree automata, we show how semantic parsing models can be de­veloped using completely general estimation methods. We demonstrate the approach by reframing and extending one state-of-the-art model as a tree automaton. Using a variant of the inside-outside algorithm with variational Bayesian estimation, our generative model achieves higher raw accuracy than existing generative and discriminative approaches on a standard data set. </abstract></header><body><section number="1" title="Introduction"><p>Automatically interpreting language is an important challenge for computational linguistics. <i>Semantic parsing </i>addresses the specific task of learning to map natural language sentences to formal represen­tations of their meaning, a problem that arises in de­veloping natural language interfaces, for example. Given a set of (sentence, meaning representation) pairs like the example below, we want to to learn a map that generalizes to previously unseen sentences.</p><p>1. Sentence: what is the capital of texas ? Meaning: answer(capital_1(stateid(texas)))</p><p>Researchers have formalized the learning prob­lem in various ways, with approaches including string classifiers (Kate and Mooney, 2006), syn­chronous grammar (Wong and Mooney, 2006), combinatory categorial grammar (Zettlemoyer and Collins, 2005; Kwiatkowski et al., 2010), and PCFG-based approaches (Lu et al., 2008; Borschinger et al., 2011). Each approach has re­quired its own custom algorithms, which has made model development and innovation slow. Never­theless, there are many similarities between the approaches, which all exploit parallels between the structure of the meaning representation and that of the natural language. The meaning representation, as a context-free formal language, has an obvious tree structure. Trees are also widely used to describe natural language structure. Consequently, the semantic parsing problem can be generally defined as learning a mapping between trees, one of which may be latent. This mapping can be expressed as a <i>tree transducer, </i>a formalism from automata theory that maps input trees to output trees or strings. Tree transducers have well understood properties and algorithms, and a rich literature, making them a particularly appealing model class.</p><p>Although some previous approaches strongly re­semble tree transducers, to our knowledge, we are the first to explicitly formulate the problem in this way. We argue that connecting semantic parsing to the tree automata literature will free researchers from devising custom solutions and allow them to focus on studying and improving their models and developing more general learning algorithms.</p><p>To demonstrate the effectiveness of the approach, we choose one state-of-the-art model, the hybrid tree (Lu et al., 2008), translate it into the tree transducer</p><p>Bevan Jones, Mark Johnson and Sharon Goldwater. 2011. Formalizing Semantic Parsing with Tree Transducers. In <i>Proceedings of Australasian Language Technology Association Workshop, </i>pages 19—28<page local="2" global="20"/></p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">START</doubt><doubt alpha="60.2" length="108" tooSmall="False" monospace="0.0">MlSTART.highest(loc(Xo)) -► loc(highest(ORD.Xo))[2] ORD.cityid(xo, x,) —► cityid(ID.x,,ID.Xq)[3] ID.wa —► wa</doubt><doubt alpha="58.6" length="29" tooSmall="False" monospace="0.0">(a) [4] ID.seattle -► Seattle</doubt><doubt alpha="42.1" length="57" tooSmall="False" monospace="0.0">START,highest[1]loc     I2]     loc     PI[4] |oc1—».1.1i</doubt><doubt alpha="66.7" length="36" tooSmall="False" monospace="0.0">loc highest —►  highest   —► highest</doubt><p><b>cityid^   </b><b>ORD</b><b>.cityid^ cityjd^ cityid^</b> <b>(b) Seattle wa   Seattle wa </b><b>ID</b><b>.</b><b>wa    </b><b>ID</b><b>.seattle wa Seattle</b></p><p>Figure 1: An extended left hand side, root-to-frontier, lin­ear, non-deleting, tree-to-tree transducer (a) and an ex­ample derivation (b). Numbered arrows in the derivation indicate which rules apply during that step. Rule [1] is the only rule with an extended left hand side.</p><p>framework, and add a small extension, made easy by the framework. We also update a standard tree trans­ducer training algorithm to incorporate a Variational Bayes approximation. The result is the first purely generative model to achieve state-of-the-art results on a standard data set.</p><p><b>2   Extended, root-to-frontier, linear, non-deleting tree transducers</b></p><p>Tree transducers (Rounds, 1970; Thatcher, 1970) are generalizations of finite state machines that take trees as inputs and either output a string or another tree. Mirroring the branching nature of its input, the tree transducer may simultaneously transition to any number of successor states, assigning a separate state to process each sub-tree. Although they were originally conceived of by Rounds (1970) as a way to formalize tree transformations in linguistic theory, they have since received far more interest in theoret­ical computer science. Recently, however, they have also been used for syntax-based statistical machine translation (Graehl et al., 2008; Knight and Greahl, 2005).</p><p>Figure 1 presents an example of a tree-to-tree transducer. It is defined using tree transformation rules, where the left hand side identifies a state of the transducer and a fragment of the input tree, and the right hand side describes a fragment of the output tree. Variables x stand for entire sub-trees. There are many classes of transducer, each with its own se­lection of algorithms (Knight and Greahl, 2005). In this paper we restrict consideration primarily to the extended left hand side, root-to-frontier, linear, non-deleting tree transducers (Maletti et al., 2009), and we particularly make use of tree-to-string transduc­ers.</p><p>Formally, an extended left hand side, root-to-frontier, tree-to-tree transducer is a 5-tuple (Q, E, A, <i>Q</i><i>start, </i>R). Q is a finite set of states, E and A are the input and output tree alphabets, <i>qstart</i>is the start state, and R is the set of rules. We de­note a pair of symbols, <i>a </i>and b by a.b, and the cross product of two sets A and B by A.B. Let X be the set of variables {x°,xi,...}. Finally, let Ts (A) be the set of trees with non-terminals from alphabet E and leaf symbols from alphabet <i>A. </i>Then, each rule r € R is of the form [q.t <i>— u].v, </i>where q <i>€ </i>Q, <i>t € </i>Ts(X), u € TA(Q.X) such that every x € X in u also occurs in t, and v € SR-° is the weight of the rule.</p><p>We say q.t is the left hand side of the rule and u is the right hand side. The transducer is <i>linear </i>iff no variable appears more than once on the right hand side. It is <i>non-deleting </i>iff all variables on the left hand side also occur on the right hand side. Iff every tree t on the left hand side is of the form <i>a(x°,.xn), </i>where <i>a € E </i>(i.e., it is a tree of depth &lt; 1), then the transducer is simply root-to-frontier, otherwise we say it has an <i>extended left hand side </i>with the added power to look a bounded depth into the tree at each step. Finally, for a <i>tree-to-string </i>transducer, A is an alphabet, and the right hand sides of the rules consist of finite tuples of elements taken from A U Q.X.</p><p>A weighted tree transducer may define a probabil­ity distribution, either a joint distribution over input and output pairs or a conditional distribution of the output given the input. Here, we will use joint dis­tributions, which can be defined by ensuring that the weights of all rules with the same state on the left-hand side sum to one. In this case, it can be helpful to view the transducer as simultaneously generating both the input and output, rather than the usual view of reading inputs and writing outputs.</p></section><section number="3" title="Semantic parsing and meaning representation languages"><p>The goal of semantic parsing is to assign formal meanings to natural language (NL) sentences, re­quiring a formal meaning language. Some systems use lambda expressions; others use variable free log­ical languages or functional languages (such as that of example 1 in the introduction).<page local="3" global="21"/> Here we deal with meaning representations (MRs) of the latter form where the bracketing makes the tree structure ob­vious <footnote anchor="1"/> We refer to functions and predicates in the MR as either symbols or entities. Since MRs are trees, the language can be defined by a Regular Tree Grammar (a kind of CFG that generates trees). We refer to this grammar as the <i>meaning representation grammar </i>or MR grammar. Figure 3 shows a frag­ment of such a grammar and an MR parse. The parse is just the MR with each symbol labeled with its grammar rule. Like most systems, the MR gram­mar is one of our inputs.</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">20</doubt></section><section number="4" title="The hybrid tree model"><p>The idea of the hybrid tree model (Lu et al., 2008) is to start with the MR and apply a series of transfor­mations to create a kind of parse tree for the NL. There are two types of transformation. The first determines word order by simultaneously choosing where to attach words (but not the particular words) and whether or not to swap the order ofsiblings (Fig­ure 2a). Once the order is determined, word gener­ating transformations are then applied to insert spe­cific words in the determined locations (Figure 2b).</p><p>The hybrid tree includes parameters for the MR as well as the transformations in Figure 2 that relate words to meaning representations. The probability of each symbol in the MR is conditioned on the MR grammar rules that derive its parent symbol. Defin­ing symbol probabilities in terms of their parents' grammar rules (as opposed to parent symbols as in a standard PCFG) distinguishes between functions and predicates with the same name but different se­mantics (Wong and Mooney, 2006).</p><p>To formally define the probability of the MR, let <i>paths </i>be the set of paths from the root to every node in the MR where paths are represented using a vari­ety of Gorn's notation (Gorn, 1962)<footnote anchor="2"/>. Let <i>args</i><i>i </i>be the set of indices of the children of the node at path i; and <i>Ri </i>be the grammar rule that derives the symbol at i according to the MR parse. Then, the following</p><footnote label="1">With a pre-parsing step, it may also be possible to represent lambda expressions with trees (see Liang et al. (2011)).</footnote><footnote label="2">I.e., paths are represented by strings where the empty string e is the path to the root, and if i is a path and j is the index of a child of the node at i, i • j is the path to that child.</footnote><doubt alpha="63.5" length="52" tooSmall="False" monospace="0.0">equation definesP(MR).P(MR)=P (RJfjP (Rij| j, Ri)(1)</doubt><p><i>idpaths j&amp;argsi</i></p><p>In other words, each node in the tree is generated according to the probability of the MR rule that de­rives it conditioned on (1) the MR rule R<i>i </i>that de­rives its parent symbol and (2) its position j beneath that parent.</p><p>The hybrid tree model then re-orders and extends this basic skeleton to include the NL. The probabil­ity of this hybrid tree can be formally defined as fol­lows if we let <i>pati </i>be the word order pattern used to generate the children of the node at path <i>i,</i><i> </i>and <i>wordsi </i>be the indices of the words attached under the node at <i>i.</i></p><doubt alpha="62.9" length="35" tooSmall="False" monospace="0.0">P(NL-MR hybrid) = P(R€)FJP(pati|Ri)</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">i£paths</doubt><doubt alpha="62.5" length="24" tooSmall="False" monospace="0.0">HP(Rij|j, Ri)HP(wi.k|Ri)</doubt><p><i>j&amp;argsi k£wordsi</i></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><p>Note that P(pat|R) and P(w|R) correspond re­spectively to the weights on the word order and word generation transformations. In fact, equation 2 is a joint probability over not only the NL and MR pair but also the actual set of transformations chosen to produce the particular hybrid tree relating them.</p></section><section number="5" title="Reframing the hybrid tree as a tree transducer"><p>We now define a tree transducer that simultaneously generates an MR tree and NL string according to the joint probability defined by equation 2. We create separate states for each of the two transformation types <i>(order </i>states for word order selection and <i>word </i>states for word generation). In order to model the properties of the MR grammar (necessary for mod­eling equation 1), we create one additional state type for selecting MR children (arg states) and embed the MR grammar rules into the states so that each state is identified with exactly one grammar rule. Tran­sitions between transducer states then simulate the action of the MR grammar as it generates a new MR tree. Notationally, we employ subscripts to indicate each state's basic type <i>(arg, order, </i>or <i>word) </i>and su­perscripts to indicate the associated MR grammar<page local="4" global="22"/></p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">21</doubt><p>(a) Word Order Transformations (b) Word Generation Transformations 'porutorando' (Portland) 'meen' (Maine) 'no' (c) cityid Portland</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">A</doubt><doubt alpha="37.5" length="16" tooSmall="False" monospace="0.0">w'x^W^x/w&gt;...-*A</doubt><doubt alpha="20.0" length="5" tooSmall="False" monospace="0.0">--' I</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">► W x0W</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">&gt; I</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">W</doubt><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">W W W</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">me</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">Order -►</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">/ W</doubt><p>cityid me  W portland 'porutorando'</p><doubt alpha="53.8" length="39" tooSmall="False" monospace="0.0">Generate J^'^--^ -►    me 'no' Portland</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">meen</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">\</doubt><p>Figure 2: The two transformation types of the hybrid tree model and an example of their application. (a) Word order transformations simultaneously permute arguments and add W symbols where words should be attached. The dotted lines indicate that W symbols may or may not be attached in each of the possible locations, and siblings may or may not be swapped. Each possible configuration of sibling orderings and W attachments corresponds to a single transformation. Thus there are 4 different transformations for the case where A has one child, and 16 for when it has 2. In the case where A has no children, word attachment is not optional. (b) Word generation replaces each W symbol with actual words. (c) The series of transformations from example MR <i>cityid(portland,me) </i>to produce a parse for the Japanese equivalent of 'portland, maine'.</p><p>rule, so that, for instance, state q<b>Order </b>is an <i>order </i>state associated with MRL grammar rule R.</p><p>Figure 3 presents a graphical representation of the basic state transitions of the transducer, where the states for each grammar rule are clustered inside dot­ted lines beneath its associated grammar rule label. The transducer begins in an <i>arg </i>state and proceeds as follows. First, the <i>arg </i>state selects the next child by transitioning to an <i>order </i>state corresponding to the MR rule that generates the appropriate child. The <i>order </i>state then chooses the appropriate word order pattern and transitions to the <i>word </i>and <i>arg </i>states as­sociated with that same grammar rule<footnote anchor="3"/>. The <i>word </i>states proceed to generate words one at a time in a loop and finally terminate the string. Then the <i>arg </i>state begins the cycle over again by transitioning to the <i>order </i>of the next child in the MR tree.</p><p>Table 1 lists the actual transducer rule types. Rule probabilities are conditioned on the state on the left hand side. Thus, since states identify both their function and the grammar rule of the current MR node, rule weights correspond directly to the terms in equation 2: <i>P(R</i><i>i.j</i>|j, Ri), <i>P(pat\R),</i><i> </i>and</p><footnote label="3">Note that only arg states are permitted to transition to states for different grammar rules.</footnote><p>P (w|R).</p><doubt alpha="65.2" length="46" tooSmall="False" monospace="0.0">5.1   Source tree language model:P(Rij?-\j,Ri)</doubt><p>Rule type 1 in Table 1 begins the process by tran-sitioning from start state qstart to qRrder, where the grammar rule R ranges over those rules with the start symbol S on the left hand side. Choosing exactly which qRrder to transition to corresponds to the de­cision of choosing the root symbol of the MR tree (the symbol generated by R), and these transducer rules define the P(Re) term in equation 1, i.e., the probability of the grammar rule corresponding to the root symbol of the MR tree.</p><p>For each pair of MR grammar rules Rp and Rc, we add a transducer rule of the form of rule type 2 that transitions from the states associated with Rpto those for Rc if Rc generates a valid child of the symbol generated by Rp. Thus, the choice of state transition here corresponds to choosing the child of the last generated symbol of the input tree. State 9a<b>rg </b>i selects the ith argument of the current func­tion in the MR without generating anything in the input tree. With rules described in the next section, state q<b>arder </b>then writes the symbol to the input tree specified by MR grammar rule Rc.</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">22</doubt><page local="5" global="23"/><p>Figure 3 : State transitions selecting appropriate grammar rules for generating an MR. Solid arcs indicate a state transition was taken; dotted lines are alternatives. States are divided up into disjoint sets and associated with a specific MR rule. Transitioning between state sets implicitly chooses an MR rule. The rules lined up with the MR tree to the left constitute an MR parse. The bottom right shows the grammar fragment corresponding to this portion of the transducer.</p><p>Since the state on the left encodes the rule of the parent and the argument number, and the state on the right the child rule, the weights for transducer rules of type 2 define <i>P (Ri.j </i>|j, <i>Ri) </i>in equation 1.</p><subsection number="5.2" title="Order decisions: P(pai|R)"><p>Word ordering decisions are made with the aid of preprocessing step that adds W symbols to the input tree wherever words can be attached. These symbols are just a convenience: it is easier to design rules where every output structure has a counterpart in the input. The symbols are removed later in a postpro­cessing step (also using a tree transducer). Attach­ment decisions are then made by deciding which of these <i>W </i>symbols to replace with the empty string (no attachment) or a string ofwords.</p><p>We add transducer rules of the form of rule type 3 in Table 1 for each MR grammar rule Rf, to de­fine the selection of one of the word order patterns of the hybrid tree. These rules simply enumerate the conjunction of all the possible word attachment patterns and argument order decisions. Binary se­quence i indicates the word attachment portion of the hybrid tree pattern, where each bit is either 1 in­dicating an attachment, or 0 for a decision not to at­tach. For an n argument function, there are n + 1 such choices, requiring an n + 1 bit sequence, where ik is the decision for the kth position. Argument order is indicated by j, a permutation of the num­bers 0,1, ...n <b>— </b>1, and jk is the kth number in the permutation, indicating which argument appears at position k. State qR0rds i generates the words for f, state <i>qWROrds 0 </i>replaces the symbol W with the empty string, and the states q^g k select the grammar rule with which to generate the kth child. When there is only a single child W, no decisions about argu­ment order or child attachment are needed; rule type 4 always generates words for these constants.</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">23</doubt><page local="6" global="24"/><doubt alpha="63.6" length="22" tooSmall="False" monospace="0.0">qstart-x0—qRrder-x0(1)</doubt><doubt alpha="59.3" length="81" tooSmall="False" monospace="0.0">qorder •/(w0,x0,w1,x1jw2j •••xra—1,wn)rqwords,i0.W0qarg,j0-xjoqwords,i1-w1qarg,j1</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">RfRfRf(3)</doubt><doubt alpha="65.1" length="43" tooSmall="False" monospace="0.0">qwords,i2.W2—qarg,jn-1.xjn-lqwords,in.wn(3)</doubt><doubt alpha="52.2" length="23" tooSmall="False" monospace="0.0">AerJ(w0)—qRords,1.w0(4)</doubt><doubt alpha="64.5" length="31" tooSmall="False" monospace="0.0">qRords,i.X0—wordkqwords,1.X0(5)</doubt><doubt alpha="59.0" length="39" tooSmall="False" monospace="0.0">qRords,1.X0—WOrdkids^(6)qwords,0.W—e(7)</doubt><p>Table 1: Seven transducer rule types for three classes of transformation. (1)-(2) define <i>P(R</i><b><i>i.j </i></b>|j, <i>R</i><b><i>i), </i></b>(3)-(4) define <i>P(pat</i><b><i>I</i></b><i>R</i><b><i>i), </i></b>and (5)-(7) define P(w|Ri).</p><p>The following input tree and output string pair is illustrates an intermediate computation produced by interleaving these two kinds of ordering rules with the argument selection rules of the previous section, and applying them to the example in Figure 2:</p><doubt alpha="63.0" length="46" tooSmall="False" monospace="0.0">qRrcderd•cityid(W,portland(W), W, me(W), W)=*&gt;</doubt><p>words,0 words,1 words,1 <i>R</i><i>portland </i><i>R</i><i>cityid </i><b><i>ttj</i></b> qwords,1 <i>^ W </i>qwords,0 <i>^ W</i></p><p>The weights on these rules define the conditional probability <i>P</i>(pat|R), where <i>pat </i>is one of the pat­terns of the word transformations illustrated in Fig­ure 2.</p></subsection><subsection number="5.3" title="Word generation: P (w|R)"><p>Rule types 5 and 6 in Table 1 define the conditional probability of a word <i>wordk </i>given an MR grammar rule, and rule type 7 terminates generation by gener­ating <i>W </i>in the input and <i>e </i>in the output. Using the same example as in the previous section, this yields 5 <i>W </i>symbols in the input tree and the string 'meen no porutorando' in the output.</p><p><i>R</i><i>cityid </i><b><i>*</i></b> qwords,0 <i>^ W </i>e qRords,1 ■<i>W </i>meen e</p><doubt alpha="35.0" length="20" tooSmall="False" monospace="0.0">RmeTIT     *     i 1</doubt><p><i>Rcityid </i>q words, 1 ^ W</p><doubt alpha="55.6" length="18" tooSmall="True" monospace="0.0">Importland   . . .</doubt><p>words,1 <i>Rcityid </i>qwords,0 ^ W</p><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">'no'e</doubt><p>'porutorando' <i>e</i></p></subsection><subsection number="5.4" title="Derivation weights and the joint probability distribution"><p>The transducer applies the rules from the three classes of transformation in Table 1 to ultimately produce an MR-NL pair. The probability of this derivation is essentially the same quantity as that of the hybrid tree of the original model (shown in equa­tion 2).</p></subsection></section><section number="6" title="An extension: head-switching"><p>Reordering siblings allows the hybrid tree to cap­ture a large number of word orders, but it is still constrained by the hierarchy of the tree. This con­straint reduces the search space but also prevents the model from learning some word orders. Figure 4 il­lustrates with trees from the following Japanese sen­tence meaning <i>what's the highest point in the USA? </i>(the third line gives the correct alignment of words to components of the gold MR, which cannot be learned by the hybrid tree):</p><doubt alpha="65.7" length="99" tooSmall="False" monospace="0.0">beikoku no     mottomo takai chiten   wa nan desu kaamerica's      most high       point    what is</doubt><p><i>loc(america) highest() place() answer()</i></p><p>To address this problem, we modify the trans­ducer to allow it to rotate parents with their chil­dren in addition to re-ordering siblings. This change is easy within the transducer framework but would be difficult in the original implementation, requiring a complete reworking of the training and decoding algorithms. In the original transducer, rules oper-<page local="7" global="25"/></p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">e</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">24</doubt><p>'wa nan desu ka' 'mottomo takai' 'chiten'</p><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">rotate</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">answer</doubt><p><i>loc_2(usa) highest </i>'beikoku no' 'mottomo takai' 'chiten' 'beikoku no'</p><p>Figure 4: An example from Japanese illustrating head-switching. The tree on the left attempts (and fails) to generate the target sentence from the gold meaning representation. Switching <i>highest </i>and <i>place </i>allows the correct MR-NL map.</p><p>ate on tree fragments of depth &lt; 1. We implement the change using extended left-hand-side transduc­ers, which can operate on larger fragments as long as the depth is bounded (Maletti et al., 2009). In particular, we introduce rules like the following:</p><doubt alpha="46.5" length="43" tooSmall="False" monospace="0.0">n°rder-p(w0)c(w&lt;0,x&lt;0,w1),w1)~^nwords,i0-W0</doubt><p><i>aRP wp nRC </i><i>tc </i><i>aRP wp </i><i>nR°</i></p><doubt alpha="65.0" length="40" tooSmall="False" monospace="0.0">ywords,ii-w0^iarg,0^0words,i2l "words,i3</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">.w1</doubt><p>This rule begins the word generation process si­multaneously for both the parent and child, re­ordering the words to simulate the new nesting struc­ture, and then proceeds to choose the child func­tion's argument. We add similar rules for the vari­ous cases where the child and parent have multiple arguments.</p></section><section number="7" title="Varitional Bayes parameter estimation"><p>Tree transducer derivations are themselves trees, allowing for the computation of inside and out­side probabilities much as for the derivation trees of PCFGs. EM can then be applied in much the same way as for PCFGs, substituting the tree-to-string derivation algorithm for standard PCFG pars­ing (Graehl et al., 2008). Note that while EM maxi­mizes the likelihood of the training data, items not observed during training receive zero probability, limiting the ability of models to generalize to new data sets. Furthermore, many items that are actu­ally present in the training data are only seen a very few times, which can lead to a poor estimate of their distribution in the target data set. Bayesian estima­tion techniques such as Variational Bayes (VB) ad­dress these problems by allowing us to place a prior probability over the parameters, which particularly influence parameter estimates for sparse items and, depending on the choice of prior, may also assign some non-zero probability to unseen items.</p><p>We give a high-level outline of how a Dirichlet prior can be incorporated into tree transducer train­ing using Variational Bayes, drawing heavily on the essential similarity of inside-outside for PCFGs and training for tree transducers. We direct the reader to Kurihara and Sato (2006) for the details of PCFG training using VB, and to Graehl et al. (2008) for the full treatment of the basic EM algorithm for tree transducers, on which our VB training algorithm is closely based. See Bishop (2006) for a general in­traduction to VB and Beal (2003) for a derivation of VB as applied to Dirichlet-multinomials.</p><p>The objective of training is to find an estimate for the weights 6 of the transducer rules given some symmetric Dirichlet prior with hyperparameter a and observed pairs of natural language sentences W and meaning representation trees Y.</p><p>The tree transducer defines the probability <i>p(W,X,Y</i>|6), where <i>X </i>is a vector of derivations such that xi € X is the derivation from MRL tree <i>yi</i><i> </i>€ Y to NL string <i>wi</i><i> </i>€ W. We put a symmetric Dirichlet prior over <i>6 </i>so that the probability <i>p(6| a) </i>follows directly from the definition of the Dirichlet distribution. Thus, computing the denominator of equation 8 involves integrating out <i>6 </i>and <i>X.</i></p><doubt alpha="41.9" length="31" tooSmall="False" monospace="0.0">p(W,Y|a)= /p(W,X,Y|6)p(6|a)dXd6</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">p(6la,W,Y )</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(8)</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">25</doubt><doubt alpha="40.0" length="10" tooSmall="False" monospace="0.0">p(W,Y,6\a)</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">p(W,Y|a)</doubt><page local="8" global="26"/><p>However, this integral is intractable, so instead, following from Variational Bayes, we make an ap­proximation q(X, <i>9) </i>for the posterior probability <i>p(X,9\W,Y,a).</i><i></i></p><doubt alpha="55.6" length="27" tooSmall="False" monospace="0.0">log«W,Yto)= **fpWX,«\a)dXd9</doubt><doubt alpha="41.7" length="24" tooSmall="False" monospace="0.0">= log/q(X,9)P(W'X'Y'9I«)</doubt><p>ing this ratio with the following alternative quantity <i>t</i>, where * is the digamma function.</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">&gt;</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">jq(X,9)log</doubt><doubt alpha="36.0" length="25" tooSmall="False" monospace="0.0">q(X,9)p(W,X,Y,9\a) q(X,9)</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">dXd9</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">F</doubt><p>We can minimize the KL divergence between q(X, 9) and <i>p(W,Y\a) </i>by maximizing the lower bound F, called the variational free energy. Since F is a function of q, this amounts to maximizing q.</p><p>Following from Kurihara and Sato (2006)'s treat­ment of PCFGs, we employ the mean field ap­proximation that assumes the posterior is well ap­proximated by a factorized function q(X, 9) = qi(X<i>)q2(9), </i>which treats the derivations X and the rule weights 9 as independent. This allows us to maximizing <i>q </i>by alternately updating parameters for q1 with q2 fixed, and then updating parameters for q2 with q1 fixed, essentially in the same manner that E and M steps alternate in EM. The mathematical derivation of the modified inside-outside algorithm then follow directly from Kurihara and Sato (2006).</p><p>In practice, VB requires only a slight modifica­tion to the basic EM algorithm, and we refer the reader to Graehl et al. (2008) for the details of EM for tree transducers. As in inside-outside for PCFGs, the E-step involves computing estimated rule counts, weighted using inside and outside probabilities. The M-step resolves to calculating the vector parame­ters of the multinomial distributions over transducer rules using these count estimates. That is, if 9s is a multinomial parameter vector for transducer rules with state s on the left hand side, 9s&gt;k is its <i>kth</i>component (i.e., the weight of the <i>kth </i>rule with s on the left hand side), and cs&gt;k is the corresponding expected count, we have the following equation for straight EM.</p><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">cs,k</doubt><footnote label="9">s,k</footnote><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">J2k'Cs,k'</doubt><doubt alpha="47.6" length="21" tooSmall="False" monospace="0.0">Ts,k =exp*(cs,k+a) -*</doubt><p>Incorporating a Dirichlet prior with parameter <i>a </i>using our VB approximation simply requires replac-</p><p>For each step of EM, the updated <b>t </b>vectors from the previous M-step are then used to compute the expected counts c during the current E-step.</p></section><section number="8" title="Experimental setup"><p>We use Tiburon (May and Knight, 2006), a tree transducer toolkit, to train our transducer using 40 it­erations of its inside-outside-like EM training proce­dure, and modify it slightly to include the mean field VB approximation for a symmetric Dirichlet prior over the multinomial parameters as just described.</p><p>Decoding is handled the same by Tiburon for both training procedures, producing the MR input tree with the tree transducer derivation that maximizes the probability over derivations of equation 2.</p><p>In keeping with the original hybrid tree, we run 100 iterations of IBM alignment model 1 (Brown et al., 1993) to initialize the word distribution pa­rameters. Also in keeping with Lu et al. (2008), we use the standard noun phrase list from the given language to help initialize the word distributions for their counterparts in the meaning representation lan­guage.</p></section><section number="9" title="Results"><p>To evaluate our models, we use the the GeoQuery corpus, a standard benchmark data set. The corpus contains English sentences (questions about U.S. ge­ography) paired with an MR in a database query lan­guage, 250 of which were translated into Japanese (among other languages) yielding two training sets using the same MRs. For testing we run 10-fold cross validation, using the standard train and test splits of Wong and Mooney (2006), and micro­average our performance metrics across folds.</p><p>We measure performance using precision, recall, and f-score (the harmonic mean of precision and re­call) as standardly defined in the semantic parsing literature. Recall is simply the raw accuracy: the percentage of correct parses found out of all test sen­tences (where a parse is considered correct if it re­trieves the same results from the GeoQuery database as the gold MR).<page local="9" global="27"/> Precision is the percentage of cor­rect parses out of all sentences for which we find any parse at all.</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">26</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">-</doubt><table caption="Table 2: Performance of the various models on the mul­tilingual section of GeoQuery."></table><p>Table 2 compares our models' performance to previously published results. We list two versions of our model: the direct adaptation of the hybrid tree and the transducer with parent-child swapping rules. We train each version with both standard EM and the VB approximation (hyperparameter 0.1). The other state-of-the-art systems shown are: 1) two versions of the original hybrid tree (Lu et al., 2008): <i>Lu-uni, </i>which uses a unigram distribution over words, and is therefore the most similar to our transducer imple­mentation, and <i>Lu-dis, </i>the best-performing version, which uses a mixture of unigram and bigram model with discriminative re-ranking; 2) WASP (Wong and Mooney, 2006), which uses a synchronous grammar approach; and 3) UBL-s (Kwiatkowski et al., 2010), the model with the highest published raw accuracy (recall).</p><p>The transducers are competitive with the state-of-the-art, especially when using VB. VB smooths the parameter estimates, so there are no parse failures in the test set due to unseen words or functions; pre­cision, recall, and f-score all reduce to raw accu­racy. The basic transducer with VB has higher accu­racy (recall) than all other models except for UBL-s, which does better on Japanese. The head-switch transducer is better still, with the highest recall on both languages. Although the improvement over the basic transducer is small, we anticipate that using the transducer framework will allow us to easily explore many other possible extensions that could increase performance further.</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">27</doubt><p>As expected, the basic EM-trained transducer gets numbers that are similar, though not identical, to Lu-uni. The main reason for the discrepancy is that Lu et al. (2008) use custom smoothing methods for the source tree language model and word probabil­ities. While these could be emulated in a trans­ducer, we instead use a more general approach, VB, with better pay-off. Lu-uni was the simplest model presented by Lu et al. (2008), yet applying VB to our transducer implementation yields a fully gen­erative model whose performance rivals their best-performing system that uses discriminative reranking.</p></section><section number="10" title="Conclusion"><p>In this paper, we have shown how to formulate se­mantic parsing as tree transduction. This formula­tion is more general than previous approaches and allows us to exploit the rich literature on transduc­ers, including theoretical results as well as standard algorithms and toolkits. We focused here on ex­tended left hand side, root-to-frontier, linear, non-deleting, tree-to-string transducers (Maletti et al., 2009), using them to reformulate and extend an ex­isting model (Lu et al., 2008). Although we tried only one simple extension, our purely generative model already outperforms all previous models on raw accuracy, with comparable f-score. Since the transducer framework makes modifications easy, we anticipate further gains in future, especially if we add a discriminative reranking step as in Lu et al. (2008). We also hope to investigate other transducer classes. Finally, we note that working with a gen­eral framework encourages the development ofalgo-rithms that are widely applicable, even if developed for a particular application. The VB training algo­rithm presented here is just one example of such a contribution.</p></section><section title="Acknowledgments"><p>We would like to thank Wei Lu and Jon May for generously providing source code and support for the hybrid tree parser and Tiburon, respec­tively. Also, this work was supported under the Aus­tralian Research Council's Discovery Projects fund­ing scheme (project number DP110102506).</p><table caption="Table 2: Performance of the various models on the multilingual section of GeoQuery." class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>English</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>Japanese</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Oy îsLClll</p></td><td class="cell"><p>Pre.</p></td><td class="cell"><p>Rec.</p></td><td class="cell"><p>F1</p></td><td class="cell"><p>Pre.</p></td><td class="cell"><p>Rec.</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>UBL-s</p></td><td class="cell"><p>80.8</p></td><td class="cell"><p>80.4</p></td><td class="cell"><p>80.6</p></td><td class="cell"><p>80.6</p></td><td class="cell"><p>80.5</p></td><td class="cell"><p>80.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WASP</p></td><td class="cell"><p><b>95.4</b></p></td><td class="cell"><p>70.0</p></td><td class="cell"><p>80.8</p></td><td class="cell"><p><b>92.0</b></p></td><td class="cell"><p>74.4</p></td><td class="cell"><p><b>82.9</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lu-uni</p></td><td class="cell"><p>80.2</p></td><td class="cell"><p>71.2</p></td><td class="cell"><p>75.4</p></td><td class="cell"><p>79.7</p></td><td class="cell"><p>73.6</p></td><td class="cell"><p>76.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lu-dis</p></td><td class="cell"><p>91.5</p></td><td class="cell"><p>72.8</p></td><td class="cell"><p>81.1</p></td><td class="cell"><p>87.6</p></td><td class="cell"><p>76.0</p></td><td class="cell"><p>81.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>trs</p></td><td class="cell"><p>88.3</p></td><td class="cell"><p>69.6</p></td><td class="cell"><p>77.9</p></td><td class="cell"><p>82.4</p></td><td class="cell"><p>67.2</p></td><td class="cell"><p>74.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>trsVB</p></td><td class="cell"><p>82.0</p></td><td class="cell"><p>82.0</p></td><td class="cell"><p>82.0</p></td><td class="cell"><p>78.0</p></td><td class="cell"><p>78.0</p></td><td class="cell"><p>78.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>hs</p></td><td class="cell"><p>89.5</p></td><td class="cell"><p>71.6</p></td><td class="cell"><p>79.6</p></td><td class="cell"><p>84.3</p></td><td class="cell"><p>68.8</p></td><td class="cell"><p>75.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>hsVB</p></td><td class="cell"><p>82.8</p></td><td class="cell"><p><b>82.8</b></p></td><td class="cell"><p><b>82.8</b></p></td><td class="cell"><p>80.8</p></td><td class="cell"><p><b>80.8</b></p></td><td class="cell"><p>80.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="10" global="28"/></section><references><p>Matthew J. Beal. <i>Variational Algorithms for Approximate Bayesian Inference. </i>PhD thesis, Gatsby Computational Neuroscience unit, University College London, 2003.</p><p>Christopher M. Bishop. <i>Pattern Recognition and Ma­chine Learning. </i>Springer, 2006.</p><p>Benjamin Borschinger, Bevan K. Jones, and Mark John­son. Reducing grounded learning tasks to grammati­cal inference. In <i>Proc. ofthe Conference on Empirical Methods in Natural Language Processing, </i>2011.</p><p>Peter F. Brown, Stephen A. Della Pietra, Vincent J. Della Pietra, and Robert L. Mercer. The mathematics of statis­tical machine translation: Parameter estimation. <i>Com­putational Linguistics, </i>19:263-311, 1993.</p><p>Saul Gorn. Processors for infinite codes of shannon-fano type. In <i>Symp. Math. Theory of Automata, </i>1962.</p><p>Jonathon Graehl, Kevin Knight, and Jon May. Training tree transducers. <i>Computational Linguistics, </i>34, 2008.</p><p>Rohit J. Kate and Raymond J. Mooney. Using string-kernels for learning semantic parsers. In <i>Proc. of the 21st International Conference on Computational Lin­guistics and the 44th annual meeting of the ACL, </i>pages 913-920, 2006.</p><p>Kevin Knight and Jonathon Greahl. An overview of prob­abilistic tree transducers for natural language process­ing. In <i>Proc. of the 6th International Conference on Intelligent Text Processing and Computational Linguis­tics, </i>2005.</p><p>Kenichi Kurihara and Taisuke Sato. Variational bayesian grammar induction for natural language. In <i>Proc. of the 8th International Colloquium on Grammatical In­ference, </i>2006.</p><p>Tom Kwiatkowski, Luke Zettlemoyer, Sharon Goldwater, and Mark Steedman. Inducing probabilistic ccg gram­mars from logical form with higher-order unification. In <i>Proc.</i><i> ofthe Conference on Empirical Methods in Natu­ral Language Processing, </i>2010.</p><p>Percy Liang, Michael I. Jordan, and Dan Klein. Learning dependency-based compositional semantics. In <i>Associ­ation for Computational Linguistics (ACL), </i>2011.</p><p>Wei Lu, Hwee Tou Ng, Wee Sun Lee, and Luke S. Zettle-moyer. A generative model for parsing natural language to meaning representations. In <i>Proc. ofthe Conference on Empirical Methods in Natural Language Processing,</i> 2008.</p><p>Andreas Maletti, Jonathan Graehl, Mark Hopkins, and Kevin Knight. The power of extended top-down tree transducers. <i>SIAMJ. Comput., </i>39:410-430, June 2009.</p><p>Jon May and Kevin Knight. Tiburon: A weighted tree automata toolkit. In <i>Proc. ofInternational Conference on Implementation and Application ofAutomata, </i>2006.</p><p>W.C. Rounds. Mappings and grammars on trees. <i>Mathe­matical Systems Theory 4, </i>pages 257-287, 1970.</p><p>J.W. Thatcher. Generalized sequential machine maps. <i>J.</i></p><p><i>Comput. System Sci. 4, </i>pages 339-367, 1970.</p><p>Yuk Wah Wong and Raymond J. Mooney. Learning for semantic parsing with statistical machine translation.</p><p>In <i>Proc. ofHuman Language Technology Conference / North American Chapter ofthe Association for Com­putational Linguistics Annual Meeting, </i>pages 439-446,</p><p>New York City, NY, 2006.</p><p>Luke. S. Zettlemoyer and Michael Collins. Learning to map sentences to logical form: Structured classifica­tion with probabilistic categorial grammars. In <i>Proc. of the 21st Conference on Uncertainty in Artificial In­telligence, </i>2005.</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">28</doubt></references></body></article>