<?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="1416"/><title>Reducing Grounded Learning Tasks To Grammatical Inference</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 1416-1425, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Börschinger" givenname="Benjamin"><org  name="Mie University" country="Japan" city="Mie"/></author><author surname="Jones" givenname="Bevan K."><org  name="Mie University" country="Japan" city="Mie"/></author><author surname="Johnson" givenname="Mark"><org  name="Mie University" country="Japan" city="Mie"/></author></firstpageheader><frontmatter><p><b>Reducing Grounded Learning Tasks to Grammatical Inference</b></p><p><b>Benjamin Börschinger Bevan K. Jones Mark Johnson</b></p><p>Department of Computing School of Informatics Department of Computing</p><p>Macquarie University University of Edinburgh Macquarie University</p><p>Sydney, Australia Edinburgh, UK Sydney, Australia</p><p>benjamin.borschinger@mq.edu.au b.k.jones@sms.ed.ac.uk mark.johnson@mq.edu.au</p></frontmatter><abstract>It is often assumed that 'grounded' learning tasks are beyond the scope of grammatical in­ference techniques. In this paper, we show that the grounded task of learning a seman­tic parser from ambiguous training data as dis­cussed in Kim and Mooney (2010) can be re­duced to a Probabilistic Context-Free Gram­mar learning task in a way that gives state of the art results. We further show that ad­ditionally letting our model learn the lan­guage's canonical word order improves its performance and leads to the highest seman­tic parsing f-scores previously reported in the literature.<footnote anchor="1"/> </abstract></header><body><section number="1" title="Introduction"><p>One of the most fundamental ideas about language is that we use it to express our thoughts. Learning a natural language, then, amounts to (at least) learning a mapping between the things we utter and the things we think, and can therefore be seen as the task of learning a semantic parser, i.e. something that maps natural language expressions such as sentences into meaning representations such as logical forms. Ob­viously, this learning can neither take place in a fully supervised nor in a fully unsupervised fashion: the learner does not 'hear' the meanings of the sentences she observes, but she is also not treating them as merely meaningless strings. Rather, it seems plau­sible to assume that she uses extra-linguistic context to assign certain meanings to the linguistic input she is confronted with.</p><footnote label="1">The source code used for our experiments and the evalua­tion is available as supplementary material for this article.</footnote><p>In this sense, learning a semantic parser seems to go beyond the well-studied task of unsupervised grammar induction. It involves not only learning a grammar for the form-side of language, i.e. lan­guage expressions such as sentences, but also the 'grounding' of this structure in meaning represen­tations. It requires going beyond the mere linguistic input to incorporate, for example, perceptual infor­mation that provides a clue to the meaning of the ob­served forms. Essentially, it seems as if 'grounded' learning tasks like this require dealing with two different kinds of information, the purely formal (phonemic) and meaningful (semantic) aspects of language. Grammatical inference seems to be lim­ited to dealing with one level of formal information (Chang and Maia, 2001). For this reason, probably, approaches to the task of learning a semantic parser employ a variety of sophisticated and task-specific techniques that go beyond (but often elaborate on) the techniques used for grammatical inference (Lu et al., 2008; Chen and Mooney, 2008; Liang et al., 2009; Kim and Mooney, 2010; Chen et al., 2010).</p><p>In this paper, we show that one can reduce the task of learning a semantic parser to a Probabilistic Context Free Grammar (PCFG) learning task, and more generally, that grounded learning tasks are not in principle beyond the scope of grammatical infer­ence techniques. In particular, we show how to for­mulate the task of learning a semantic parser as dis­cussed by Chen, Kim and Mooney (2008, 2010) as the task of learning a PCFG from strings. Our model does not only constitute a proof of concept that this reduction is possible for certain cases, it also yields highly competitive results.<page local="2" global="1417"/><footnote anchor="2"/></p><p>By reducing the problem to the well understood PCFG formalism, it also becomes easy to consider extensions, leading to our second contribution. We demonstrate that a slight modification to our model so that it also learns the language's canonical word order improves its performance even beyond the best results previously reported in the literature. This language-independent and linguistically well moti­vated elaboration allows the model to learn a global fact about the language's syntax, its canonical word order.</p><p>Our contribution is two-fold. We provide an illus­tration of how to reduce grounded learning tasks to grammatical inference. Secondly, we show that ex­tending the model so that it can learn linguistically well motivated generalizations such as the canonical word order can lead to better results.</p><p>The structure of the paper is as follows. First we give a short overview of the previous work by Chen, Kim and Mooney and describe their dataset. Then, we show how to reduce the parsing task addressed by them to a PCFG-learning task. Finally, we ex­plain how to let our model additionally learn the lan­guage's canonical word order.</p></section><section number="2" title="Previous Work by Chen, Kim and Mooney"><p>In a series of recent papers, Chen, Kim and Mooney approach the task of learning a semantic parser from <i>ambiguous </i>training data (Chen and Mooney, 2008; Kim and Mooney, 2010; Chen et al., 2010). This goes beyond previous work on semantic parsing such as Lu et al. (2008) or Zettlemoyer and Collins (2005) which rely on <i>unambiguous </i>training data where every sentence is paired only with its mean­ing. In contrast, Chen, Kim and Mooney allow their training examples to exhibit the kind of uncer­tainty about sentence meanings human learners are likely to have to deal with by allowing for sentences to be associated with a <i>set </i>of candidate-meanings, and the correct meaning might not even be in this set. They create the training data by first collect­ing humanly generated written language comments on four different RoboCup games. The comments are recorded with a time-stamp and then associated with all game events automatically extracted from the games which occured up to five seconds before the comment was made. This leads to an ambigu­ous pairing of comments with candidate meanings that can be considered similar to the "linguistic in­put in the context of a rich, relevant, perceptual en­vironment" to which real language learners prob­ably have access (Chen and Mooney, 2008). For evaluation purposes, they manually create a gold­standard which contains unambiguous natural lan­guage comment / event pairs. Due to the fact that some comments refer to events not detected by their extraction-algorithm, not every natural lan­guage sentence has a gold matching meaning repre­sentation. In addition to the inherent ambiguity of the training examples, the learner therefore has to somehow deal with those examples which only have 'wrong' meanings associated with them.</p><footnote label="2">It has been pointed out to us by one reviewer that the task we address falls short of what is often called 'grounded learn­ing'. We acknowledge that semantic parsing constitutes a very limited kind of grounded learning but want to point out that the task has been introduced as an instance of grounded learning in the previous literature such as Chen and Mooney (2008).</footnote><p>Datasets exist for both Korean and English, each comprising training and gold data for four games.<footnote anchor="3"/>Some details about this data are given in Table 1, such as the number of examples, their average am­biguity and the number of misleading examples.</p><p>For the following short discussion of previous ap­proaches, we mainly focus on Kim and Mooney (2010). This is the most recent publication and re­ports the highest scores.</p><subsection number="2.1" title="The parsing task"><p>Learning a semantic parser from the ambiguous data is, in fact, just one of three tasks discussed by Kim and Mooney (2010), henceforth KM. In addition to parsing, they discuss matching and natural language generation. We are ignoring the generation task as we are currently only interested in the parsing prob­lem, and we treat the matching task, picking the cor­rect meaning from the set of candidates, merely as a byproduct of parsing, rather than as a completely separate task: parsing implicitly requires the model to disambiguate the data it is learning from.</p><footnote label="3">The datasets are freely available at http://www.cs . utexas.edu/~ml/clamp/sportscasting/ . We re­trieved the data used here on March 29th, 2011.</footnote><page local="3" global="1418"/><p>Table 1: Statistics for the Korean and the English datasets. The numbers are basically identical to those reported in Chen et al. (2010) except for minimal differences in the number of training examples (we give one more for every English training set, and one more for the 2004 Korean training set). In addition, our calculation of the average sentential ambiguity (Avg. # of MRs) differs because we assume that mutiple occurences of the same event in a context do not add to the overall ambiguity, and our calculation of the noise (fraction of training examples without the correct meaning in their context) takes into account that there are training examples which do not have their gold meaning associated with them in the training data and is therefore slightly higher than the one reported in Chen et al.</p><p>(2010).</p><p>KM's model builds on previous work by Lu et al. (2008) and is a generative model which defines a joint probability distribution over natural language sentences (NLs), meaning representations (MRs) and hybrid trees. The NLs are the natural language comments to the games, the MRs are simple log­ical formulae describing game events and playing the role of sentence meanings, and a hybrid tree is a tree structure that represents the correspondence between a sentence and its meaning. More specif­ically, if some NL W has as its meaning an MR m, and m has been generated by a meaning gram­mar (MG) G, the hybrid tree corresponding to the pair (w,m) has as its internal nodes those rules of G used in the derivation of m, and as its leaves the words making up W.<footnote anchor="4"/> An example hybrid tree for the pair (the pink goalie passes the ball to PINK11,pass(pink1,pink11)) is given in Figure 1. Their model is trained by a variant of the Inside-Outside algorithm which deals with the hybrid tree structure and takes into account the ambiguity of the training examples.</p><p>In addition to learning directly from the ambigu­ous training data, they also train a semantic parser in a supervised fashion on data that has been pre­viously disambiguated by their matching model. This slightly improves their system's performance. Consequently, there are two scores for each of the</p><footnote label="4">We use small caps for words, sans serif for MRs and MR constituents (concepts), and italics for non-terminals and Grammars.</footnote><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">S</doubt><p>S    pass PLAYER PLAYER</p><p>PLAYER passes the ball to PLAYER</p><p>PLAYER    pink1 PLAYER pink11 the pink goalie pink11</p><p>Figure 1: A hybrid tree for the sentence-meaning pair (the pink goalie passes the ball to pink11,pass(pink1,pink11)) . The internal nodes cor­respond to the rules used to derive pass(pink1,pink11) from a given Meaning Grammar, and the leaves corre­spond to the words or substrings that make up the sen­tence.</p><p>two languages (English and Korean) with which we compare our own model: those of the parsers trained directly from the ambiguous data, and those of the 'supervised' parsers which constitute the cur­rent state of the art. The details of their evaluation method are disccused in Section 3.3, and their scores are given in Table 2, together with our own scores.</p></subsection></section><section number="3" title="Learning a Semantic Parser as a PCFG-learning problem"><p>Given that one can effectively represent both a sen­tence's form and its meaning in a hybrid tree, it is in­teresting to ask whether one can do with a structure that can be learned by grammatical inference techniques from strings which incorporate the contextual information.<page local="4" global="1419"/> In this section, we show how to reduce hybrid trees to such 'standard' trees. In effect, we show via construction that 'grounded' learning tasks such as learning a semantic parser from semantically enriched and ambiguous data can be reduced to 'un­grounded' tasks such as grammatical inference.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Number of comments</p></td><td class="cell"><p>Ambiguity</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p># Training</p></td><td class="cell"><p># Training with Gold Match</p></td><td class="cell"><p># Training with correct MR</p></td><td class="cell"><p>#Gold</p></td><td class="cell"><p>Noise</p></td><td class="cell"><p>Avg. # of MRs</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>English dataset</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>total</p></td><td class="cell"><p>1872</p></td><td class="cell"><p>1492</p></td><td class="cell"><p>1360</p></td><td class="cell"><p>1539</p></td><td class="cell"><p>0.2735</p></td><td class="cell"><p>2.20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Korean dataset</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>total</p></td><td class="cell"><p>1914</p></td><td class="cell"><p>1763</p></td><td class="cell"><p>1733</p></td><td class="cell"><p>1763</p></td><td class="cell"><p>0.0946</p></td><td class="cell"><p>2.39</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><p>Instead of taking the internal nodes of the trees generated by our model as corresponding to MG <i>production rules, </i>we take them to correspond to MR <i>constituents. </i>The MR pass(pink1,pink11), for exam­ple, has 4 constituents: the whole MR, the predicate pass, and the two arguments pink1 and pink11 . Fig­ure 2 gives the tree we assume instead of Figure 1 for the sentence-meaning pair (THE PINK GOALIE passes the ball to pink1 1,pass(pink1,pink11)). Its root is assumed to correspond to the whole MR and is labeled <i>S</i><i>pass(pinkl,pinkll). </i>The remain­ing three MR constituents correspond to the root's daughters which we label <i>Phrase</i><i>pjnki, </i><i>Phrase</i><i>pass</i>and <i>Phrase</i><i>pink</i><i>n.</i><i> </i>Generally speaking, we assume a special non-terminal <i>Sm </i>for every MR m generated by the MG, and a special non-terminal <i>Phrasecon </i>for each of the terminals of the MG (which loosely cor­respond to concepts). This is only possible for MGs which create a finite set of MRs, but the MG used by Kim and Mooney (2010) obeys this restriction.<footnote anchor="5"/></p><p>The tree's terminals are the words that make up the sentence, and we assume them to be dominated by concept-specific pre-terminals <i>Wordcon </i>which correspond to concept-specific probability distribu­tions over the language's vocabulary. Since each <i>Phrasecon </i>may span multiple words, we give trees rooted in <i>Phrasecon </i>a left-recursive structure that corresponds to a unigram Markov-process. This process generates an arbitrary sequence of words semantically related to con, dominated by the cor­responding pre-terminal <i>Wordcon </i>in our model, and words not directly semantically related to con, dom­inated by a special word pre-terminal <i>Word^. </i>The sole further restriction is that every <i>Phrasecon </i>must contain at least one <i>Wordcon.</i></p><p>Trees like the one in Figure 2 can be generated by a Context-Free Grammar (CFG) which, in turn, can be trained on strings to yield a PCFG which embodies a semantic parser as will be discussed in Section 3.3. We now describe how to set up such a CFG in a systematic way and how to train it on the data used by KM.</p><footnote label="5">This grammar is given in the Appendix to Chen et al. (2010) and generates a total of 2048 MRs.</footnote><subsection number="3.1" title="Setting up the PCFG"><p>The training data expresses information of two dif­ferent kinds - form and meaning. Every training ex­ample consists of a natural language string (the for­mal information) and a set of candidate meanings for the string (the semantic information, its context), allowing for the possibility that none of the mean­ings in the context is the correct one. In order to learn from data like this within a grammatical in­ference framework, we have to encode the semantic information as part of the string. Assigning a spe­cific MR m to a string corresponds, in our frame­work, to analyzing it as a tree with <i>Sm </i>as its root. A sentence's context constrains which of the many possible meanings might be expressed by the string. Thus the role played by the context is adequately modelled if we ensure that if a string W is associated with a context {rm ,...,mn}, the model only considers the possibilities that this string might be analyzed as S S</p><p>There are 959 different contexts, i e 959 dif­ferent sets of MRs, in the English data set (984 for the Korean data), and we therefore introduce 959 new terminal symbols which play the role of context-identifiers, for example C1 to C959.<footnote anchor="6"/> For­mally speaking, a context-identifier is a terminal like any other word of the language and we can therefore prefix every comment in the training data with the context-identifier standing for the set of MRs associated with this comment, an idea taken from previous work such as Johnson et al. (2010). Thus having incorporated the contextual informa­tion into the string, we go on to show how our model makes use of this information, considering the MR pass(pink1,pink11) as an example. A formal de­scription of the model is given Figure 3.</p><p>Assume that pass(pink1,pink11) is associated with only one training example and therefore occurs only in one specific context. If the context-identifier introduced for this context is C1, we require the</p><footnote label="6">If we were to consider every possible context, we would have to consider 2 2048 contexts because the MG generates 2048</footnote><p>MRs.</p><page local="5" global="1420"/><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">Root</doubt><p><i>Spass(pinkl,pinkll)</i></p><p><i>c16 Phmse</i><i>pinki</i></p><p><i>Phrasepass</i> <i>Phrasepinkll</i></p><p>THE PINK GOALIE</p><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">TO</doubt><p><i>PhX</i><i>pass </i><i>Word</i><i>pass       </i>PINK 11</p><p><i>PhXpass </i><i>Word</i><i>$</i></p><p><i>PhXpass </i><i>Word</i><i>$ </i><b>I I</b> <i>Wordpass </i>THE</p><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">BALL</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">PASSES</doubt><p>Figure 2: The tree-structure we propose instead of the Hybrid Tree structure used by (Kim and Mooney, 2010). The non-terminal nodes do not correspond to MG productions, but to MR constituents. The internal structure of the <i>Phrasecon </i>constituents, shown in full detail for <i>Phrasepass, </i>corresponds to a Markov process that generates the words that make up the sentence. The terminal is a context-identifier that restricts the range of <i>Sm </i>non-terminals that might dominate the sentence and is only used during training, as described in Section 3.1. The grammar that generates this trees is described in Figure 3.</p><p>right-hand side of aü rules with <i>Spass(pinkl,pinkll) </i>on their left-hand side to begin with C1. More gener­ally, if an MR m occurs in the contexts associated with the context-identifiers CK,...,CL, we require the right-hand side of all rules with <i>Sm </i>on their left-hand side to begin with exactly one of CK,...,CL.</p><p>In this sense, the <i>context-identifiers </i>can be seen as providing the model with a <i>top-down constraint </i>- if it encounters a context-identifier, it can only try analyses leading to MRs which are licensed by this context-identifier. On the other hand, the words have to be generated by concept-specific word­distributions, and the concepts that are present re­strict the range of possible <i>Sm </i>non-terminals which might dominate the whole string. In this sense, the <i>words </i>the model observes provide it with a <i>bottom-up constraint </i>- if it sees words which are semanti-cally related to certain concepts con1,...,conn, it has to arrive at an MR which licenses the presence of the corresponding <i>Phraseconx </i>non-terminals. Of course, the model has to also learn which words are seman-tically related to which concepts. To enable it to do this, our grammar allows every <i>Wordx </i>non-terminal to be rewritten as every word of the language.</p><p>Since there are sentences in the training data with­out the correct meaning in their context, we want to give our model the possibility of not assigning to a sentence any of the MRs licensed by its context-identifier. To do this, we employ another trick of previous work by Johnson et. al and assume a spe­cial null meaning 0 to be present in every context. S0 may only span words generated by <i>Word^, </i>the language-specific distribution for words not directly related to any concept; this also has to be learned by the model.</p><p>As a last complication, we deal with the fact that syntactic constituents are linearized with respect to each other. For example, if an MR has 3 proper con­stituents (i.e. excluding the MR itself), our grammar allows the corresponding 3 syntactic constituents -which we might label <i>Phrasepredicate, Phraseargl</i>and <i>Phrase</i><i>arg2 </i>- to occur in any of the 6 possible orders. Therefore, we have an <i>Sm </i>rule for every con­text in which m occurs and for every possible order of the proper constituents of m.</p><p>A formally explicit description of the rule schemata used to generate the CFG is given in Fig­ure 3.<page local="6" global="1421"/><footnote anchor="7"/> Instantiating all those schemata leads to a grammar with 33,101 rules for the English data and 30,731 rules for the Korean data. The difference in size is due to differences in the size of the vocabu­lary and the different number of contexts in the data sets.</p><p>These CFGs can now be trained on the training data using the Inside-Outside algorithm (Lari and Young, 1990). After training, the resulting PCFG embodies a semantic parser in the sense that, with a slight modification we describe in section 3.3, it can be used to parse a string into its meaning rep­resentation by determining the most likely syntactic analysis and reading off the meaning assigned by our model at the <i>S</i>m-node.</p></subsection><subsection number="3.2" title="Possible objections to our reduction"><p>Before we go on to discuss the details of training and evaluation of our model, we want to address an objection that might seem tempting. Isn't our reduc­tion impractical and unrealistic as even a highly ab­stract model of language learning - after all, setting up the huge CFG requires knowledge about the vo­cabulary, the MG and all the complicated rules dis­cussed which, presumably, is more knowledge than we want to provide a language learner with, lest we trivialize the task. To this we reply firstly, that it is true that our reduction only works for <i>offline </i>or <i>batch grounded learning tasks </i>where all the data is avail­able to the model before the actual learning begins so that it 'knows' the words, the meanings and the contexts present in the data. This offline constraint is, however, true of all models which are trained by iterating multiple times over training data such as KM's model. Secondly, the intimidating CFG can in principle be reduced to a hand-full of intuitive prin­ciples and is easy to generate automatically.</p><p>First of all, the many specific Sm-rewrite rules re­duce to the heuristic that every semantic constituent should correspond to a syntactic constituent, and the fact that natural language expressions are linearly or­dered. Note that our model does not contain knowl­edge about the specific word order of the language.</p><footnote label="7">In our description, we use context-identifiers such as c 1 with a systematic ambiguity, letting them stand for the terminal symbol representing a context and, in contexts such as m €c 1, for the represented context itself.</footnote><p>It simply allows for the constituents of an MR to oc­cur in every possible order which is a very unbiased and empiricist assumption. Of course, this leads to some limited kind of 'implicit learning' of word or­der in the sense that for every meaning and for every context, our model might (and in most cases will) as­sign different probabilities to the different rules for every word order; so it can learn that certain specific MRs such as pass(pink1,pink11) are more often lin­earized in one way than in any other. It cannot, how­ever, generalize this to other (or even unseen) MRs, i.e. it does not learn a global fact about the language. In a way, it lacks the knowledge that there is such a thing as word order, a point which we will elaborate on in Section 4.</p><p>The many re-write rules for the pre-terminal <i>Wordxs </i>are nothing but an explicit version of the assumption that every word the model encounters might, in principle, be semantically related to every concept it knows. Again, this seems to us to be a reasonable assumption.</p><p>Finally, the complicated looking set of rules for the internal structure of <i>Phrasexs </i>corresponds to a simple unigram Markov-process for generating strings. All in all, we do not see that we make any more assumptions than other approaches; our for­mulation may make explicit how rich those assump­tions are but we have not qualitatively changed them.</p></subsection><subsection number="3.3" title="Training and Evaluation"><p>The CFG described in the previous section is trained on the same training data used by KM, except that we reduce it to strings (without changing the infor­mation present in the original data) by prefixing ev­ery sentence with a context-identifier. For training we run the Inside-Outside algorithm<footnote anchor="8"/> with uniform initialization weights until convergence. For En­glish, this results in an average number of 76 itera­tions for each fold, for Korean the average number of iterations is 50. To deal with the fact that the model might not observe certain meanings during training, we apply a simple smoothing technique by using a Dirichlet prior of a=0.1 on the rule probabilities. In effect, this provides our system with a small number of pseudo-observations for each rule which prevents<page local="7" global="1422"/></p><footnote label="8">We use Mark Johnson's freely available implementa­tion, available at http://web.science.mq.edu.au/ -mjohnson/Software.htm.</footnote><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">Root —»Sm</doubt><p><i>Sm </i><i>—</i><i> </i><i>c Phrase</i><i>p(m)</i> <i>S</i><i>m </i><i>—</i><i> </i><i>c [Phrase</i><i>p(m</i><i>),Phrase</i><i>ai(m)}</i> <i>S</i><i>m </i><i>—</i><i> </i><i>c [Phrase</i><i>p(m), </i><i>Phrase</i><i>ai(m), </i><i>Phrase</i><i>a2(m)}</i> <i>S</i><i>g </i>— <i>cPhrase</i><i>g</i> <i>Phrase</i><i>g </i><i>—</i><i> </i><i>Word</i><i>g</i> <i>Phrase</i><i>g </i><i>—</i><i> </i><i>Phrase</i><i>g </i><i>Word</i><i>g</i> <i>PhrasexPhrasexPhrasex</i> <i>WordxPhXx WordxPhx Word</i><i>g</i> <i>PhX</i><i>x </i><i>PhX</i><i>x </i><i>Ph</i><i>x — </i><i>Ph</i><i>x — </i><i>Ph</i><i>x —</i> <i>— PhXx Wordr</i> <i>PhX</i><i>x </i><i>Word</i><i>x</i> <i>Phx Word</i><i>g </i><i>Word</i><i>x </i><i>—&gt; v</i> <i>c </i><i>e </i><i>C,m </i><i>e </i><i>c,m </i><i>e </i><i>Pred0(M) c </i><i>e </i><i>C,m </i><i>e </i><i>c,m </i><i>e </i><i>Pred1(M) c </i><i>e </i><i>C,m </i><i>e </i><i>c,m </i><i>e </i><i>Pred2(M)</i> <i>x</i><i>e</i><i>T x</i><i>e</i><i>T x</i><i>e</i><i>T</i></p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Wordx</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">— Wordr</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">meMU{0}</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">ceC</doubt><doubt alpha="54.5" length="22" tooSmall="False" monospace="0.0">xeT,re{x,0}xeT,re{x,0}</doubt><doubt alpha="63.6" length="11" tooSmall="False" monospace="0.0">xeTu{0},veV</doubt><p>Figure 3: The rule-schemata used to generate the NoWo-PCFG. Root is the unique start-symbol, <i>M </i>is the set of all MRs present in the corpus, <i>C </i>is set the of all context-identifiers present in the corpus, <i>T </i>is the set of terminals of the MG, <i>V </i>is the vocabulary of the corpus. <i>Pred0(M) </i>is the subset of all MRs in M of the form predicate, <i>Pred1(M</i>) is the subset of all MRs in M of the form predicate(argl) and <i>Pred2(M) </i>is the subset of all MRs in M of the form predicate(arg1,arg2). <i>p(m) </i>is the predicate of the MR m, al(m) is the first argument of the MR m, a2(m) is the second argument of the MR m. The rules expanding <i>Phrasex </i>ensure that it contains at least one <i>Wordx. </i>A set on the right-hand side of a rule is shorthand for all possible orderings of the elements of the set.</p><p>the automatic assignment of zero probability to rules not used during training.<footnote anchor="9"/></p><p>For parsing, the resulting PCFG is slightly mod­ified by removing the context-identifiers. This is done because the task of a semantic parser is to es­tablish a mapping between NLs and MRs, irrespec­tive of contexts which were only used for learning the parser and should not play a role in its final per­formance. To do this, we add up the probability of all rules which differ only in the context-identifier which can be thought of as marginalizing out the dif­ferent contexts, giving our first model which we call NoWo-PCFG.<footnote anchor="10"/></p><p>Note that the context-deletion (and the simple smoothing) enables NoWo-PCFG to parse sentences into meanings not present in the data it was trained on which, in fact, happens. For example, there are 81 meanings in the training data for the first English match that are not present in any of the other games' training data. The PCFG trained on games 2,3 and 4 is still able to correctly assign 12 of those 81 mean­ings which it has not seen during the training phase which shows the effectiveness of the bottom-up con­straint.</p><footnote label="9">We experimented with a=0.1, a=0.5 and a=1.0 and found that overall, 0.1 yields the best results. We also tried jittering the initial rule weights during training and found that our re­sults are very robust and seem to be independent of a specific initialization.</footnote><footnote label="10">NoWo because this model, unlike the one described in Sec­tion 4, does no t make explicit use of w ord o rder generalisa­tions.</footnote><p>For evaluation, we employ 4-fold cross validation as described in detail in Chen and Mooney (2008) and used by KM: the model is trained on all possible combinations of 3 of the 4 games and is then used to produce an MR for all sentences of the held-out game <i>for which there is a matching gold-standard meaning. </i>For an NL W, our model produces an MR m by finding the <i>most probable </i>parse of W with the CKY algorithm and reading off m at the Sm-node.<footnote anchor="11"/>An MR is considered correct if and only if it matches the gold-standard MR <i>exactly; </i>the final evaluation result is averaged over all 4 folds. Our evaluation results for NoWo-PCFG are given in Table 2. All scores are reported in F-measure which is the har­monic mean of Precision and Recall. In this specific case, precision is the fraction of correct parses out<page local="8" global="1423"/></p><footnote label="11">For parsing, we use Mark Johnson's freely available CKY implementation which can be downloaded at http://web . science.mq.edu.au/~mjohnson/Software.htm .</footnote><p>Table 2: A summary of results for the parsing task, in F-measure. We also show the results of Chen et al. (2010), as given in Kim and Mooney (2010), which to our knowl­edge are the highest previously reported scores for Ko­rean. WO-PCFG, described in Section 4 performs better than all previously reported models, but only slightly so for Korean.</p><p>of the total number of parses the model returns. Re­call is the fraction of correct parses out of the total number of test sentences.<footnote anchor="12"/></p><p>NoWo-PCFG performs a little worse than KM's model. Its scores are virtually identical for English (0.742) and worse for Korean (0.718 vs 0.764). We are not sure as to why our model performs worse on the Korean data, but it might have to do with the fact that the Korean average ambiguity is higher than for the English data.</p><p>This shows that it is not only possible to re­duce the task of learning a semantic parser to stan­dard grammatical inference, but that this way of ap­proaching the problem yields comparable results.</p><p>The remainder of the paper focuses on our second main point: that letting the model learn additional kinds of information, such as the language's canoni­cal word order, can further improve its performance. In order to do this we propose a model that learns the word order as well as the mapping from NLs to MRs, and compare its performance to that of the other models.</p></subsection></section><section number="4" title="Extending NoWo-PCFG to WO-PCFG"><p>We already pointed out that our model considers ev­ery possible linear order of syntactic constituents. Our NoWo-PCFG model considers each of the pos­sible word orders for every meaning and context in isolation: it is unable to infer from the fact that most meanings it has observed are most likely to be ex­pressed with a certain word order that new meanings it will encounter are also more likely to be expressed with this word order. It seems, however, to be at least a soft fact about languages that they <i>do </i>have a canonical word order that is more likely to be re­alized in its sentences than any other possible word order. In order to test whether trying to learn this order helps our model, we modify the CFG used for NoWo-PCFG so it can learn word order generaliza­tions, and train it in the same way to yield another semantic parser, WO-PCFG.</p><subsection number="4.1" title="Setting up WO-PCFG"><p>For every possible ordering of the constituents cor­responding to an MR, our grammar contains a rule. In NoWo-PCFG, these different rules all share the same parent which prevents the model from learn­ing the probability of the different word orders cor­responding to the many rules. A straight-forward way to overcome this is to annotate every <i>Sm </i>node with the word order of its daughter. We split every <i>Sm </i>non-terminal in multiple <i>Swo_m </i>non-terminals, where <i>wo e </i>{v,sv,vs,svo,sov,osv,ovs,vso,vos} indi­cates the linear order of the constituents the non­terminal rewrites as.<footnote anchor="13"/></p><p>This in itself does not yet allow our model to <i>use </i>word order as a means of generalization. To model that whenever it <i>encounters a specific example </i>that is indicative of a certain word order, this word or­der becomes slightly more probable <i>for every other example as well, </i>we have to make a further slight change to the CFG which we now describe. A for­mally explicit description of the necessary changes which we go on to describe is given in Figure 4.</p><p>We introduce six new non-terminals, correspond­ing to the six possible word orders SVO, SOV, VSO, VOS, OSV and OVS and require every <i>Swo </i><i>m </i>non­terminal to be dominated by the non-terminal com­patible with its daughters linear order. As an exam­ple, consider the two syntactic non-terminals cor­responding to the MR kick(pink1), <i>Svs_kick(p&gt;inkU)</i> and <i>Ssv_kick(pinkUy </i>Whenever an example is suc­cessfully analyzed as <i>Svs_kick(pink11), </i>this should strengthen our model's expectation of encountering<page local="9" global="1424"/></p><footnote label="12">Because our model parses every sentence, for it Recall and Precision are identical and F-measure is identical to Accuracy.</footnote><footnote label="13">We assume, somewhat simplifying, that an MR's predicate corresponds to a V(erb), its first argument corresponds to the S(ubject) and its second argument corresponds to the O(bject). These are purely formal categories that are not constrained to correspond to specific linguistic categories.</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>English</p></td><td class="cell"><p>Korean</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>KM</p></td><td class="cell"><p>0.742</p></td><td class="cell"><p>0.764</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>KM 'supervised'</p></td><td class="cell"><p>0.810</p></td><td class="cell"><p>0.808</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Chen et al. (2010)</p></td><td class="cell"><p>0.801</p></td><td class="cell"><p>0.812</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NoWo-PCFG</p></td><td class="cell"><p>0.742</p></td><td class="cell"><p>0.718</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WO-PCFG</p></td><td class="cell"><p><b>0.860</b></p></td><td class="cell"><p><b>0.829</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Root <i>—</i><i> </i><i>wo wo </i><i>e</i><i> </i><i>WO</i> <i>wo </i><i>—</i><i> </i><i>Sxm wo </i><i>e</i><i> </i><i>WO, x </i><i>e</i><i> </i><i>WOS, x </i><i>C</i><i> </i><i>wo, m </i><i>e</i><i> </i><i>M</i> <i>S</i><i>v_m </i><i>—</i><i> </i><i>c Phrasep(m) c </i><i>e</i><i> </i><i>C,m </i><i>e</i><i> </i><i>c,m </i><i>e</i><i> </i><i>Pred0(M)</i> <i>Sx </i><i>m </i><i>—</i><i> </i><i>c {Phrasep(m),Phrase</i><i>ai</i><i>(m),Phrase</i><i>a2(m)} </i><i>c </i><i>e</i><i> </i><i>C,m </i><i>e</i><i> </i><i>c,m </i><i>e</i><i> </i><i>Pred2(M),x </i><i>e</i><i> </i><i>WOS</i> <i>S</i><i>v_g </i><i>—</i><i> </i><i>cPhrase</i><i>g </i><i>c </i><i>e</i><i> </i><i>C</i></p><doubt alpha="65.6" length="61" tooSmall="False" monospace="0.0">Sxm—c {Phrasep(m), Phraseai(m)}ceC,mec,mePred1(M), xe{sv, vs}</doubt><p>Figure 4: In order to turn NoWo-PCFG described in Figure 3 into the WO-PCFG described in the text,  substitute the first five rule-schemata with the schemata given here.     <i>WO </i>is the set of word order non-terminals <i>{SVO, SOV, OSV, OVS, VSO, VOS}, WOS </i>is the set of word order annotations <i>{v, sv, vs, svo, svo, ovs, osv, vso, vos}.</i><i> </i>We take <i>x </i><i>C</i><i> </i><i>wo </i>to mean that <i>x </i>is compatible with <i>wo, </i>where <i>v </i>is com­patible with all word orders, <i>sv </i>is compatible with SVO,SOV and OSV, and so on. For rule-schemata 4 and 5, the choice of x determines the order of the elements of the set on the right-hand side. All other symbols have the same meaning as explained in Figure 3.</p><p>more examples where the verb precedes the sub­ject, i.e. of the language being pre-dominantly VSO, VOS or OVS. Therefore, we allow VSO, <i>VOS </i>and <i>OVS </i>to be rewritten as <i>Svs_kick(pink</i><i>ny</i><i> </i>More gener­ally, every word order non-terminal can rewrite as any of the <i>Swo_m </i>non-terminals that are compatible with it. Adding this additional layer of word order abstraction leads to a grammar with 36,019 rules for English and a grammar with 33,715 rules for Ko­rean.</p></subsection><subsection number="4.2" title="Evaluation of WO-PCFG"><p>Training and evaluating WO-PCFG in exactly the same way as the previous grammar gives an F-measure of 0.860 for English and an F-measure of 0.829 for Korean. Those scores are, to our knowl­edge, the highest scores previously reported for this parsing task and establish our second main point: letting the model learn the language's word order in addition to learning the mapping from sentences to MR increases semantic parsing accuracy.<footnote anchor="14"/></p><p>An intuitive explanation for the increase in perfor­mance is that by allowing the model to learn word order, we are providing it with a new dimension along which it can generalize.</p><p>In this sense, we can look at our refinement as providing the model with abstract linguistic knowl­edge, namely that languages tend to have a canonical word order. The usefulness of this kind of in­formation is impressive - for English, it improves the accuracy of semantic parsing by almost 12% in F-measure and for Korean by 11.1%. In addition, our model correctly learns that English's predomi­nant word order is SVO and that Korean is predomi­nantly SOV, assigning by far the highest probability to the corresponding <i>Root </i>rewrite rule (0.91 for En­glish and 0.98 for Korean). This kind of information is useful in its own right and could, for example, be exploited by coupling word order with other linguis­tic properties, perhaps following Greenberg (1966)'s implicational universals.</p><footnote label="14">Liang et al. (2009)'s model can be seen as capturing some­thing similar to our word order generalization with the help of a Field Choice Model which primarily captures discourse co­herence and salience properties. It differs, however, in that it can only learn one generalization for each predicate type and no language wide generalization.</footnote><p>In this sense, the reduction of grounded learning problems to grammatical inference does not only make possible the application of a wide variety of tools and insights developed over years of research, it might also make it easier to bring abstract (and not so abstract) linguistic knowledge to bear on those tasks.</p><p>The overall slightly worse performance of our system on Korean data might stem from the fact that Korean, unlike English, has a rich morphology, and that our model does not learn anything about mor­phology at all. We plan on further investigating ef­fects like this in the future, as well as applying more advanced grammatical inference algorithms.</p></subsection></section><section number="5" title="Conclusion and Future Work"><p>We have shown that certain grounded learning tasks such as learning a semantic parser from semantically enriched training data can be reduced to a gram­matical inference problem over strings. This allows for the application of techniques and insights devel­oped for grammatical inference to grounded learn­ing tasks.<page local="10" global="1425"/> In addition, we have shown that letting the model learn the language's canonical word or­der improves parsing performance, beyond the top scores previously reported, thus illustrating the use-fullnes of linguistic knowledge for tasks like this.</p><p>In future research, we plan to address the limi­tation of our model to a finite set of meaning rep­resentations, in particular through the use of non-parametric Bayesian models such as the Infinite PCFG model of Liang et al. (2007) and the Infi­nite Tree model of Finkel et al. (2007); both allow for a potentially infinite set of non-terminals, hence directly addressing this problem. In addition, we are thinking about using an extension of the PCFG formalism that allows for some kind of 'feature-passing' which could lead to much smaller and more general grammars.</p></section><references><doubt alpha="62.7" length="51" tooSmall="False" monospace="0.0">N. C. Chang and T. V. Maia. 2001. Grounded learning</doubt><p>of grammatical constructions. In <i>2001 AAAI Spring Symposium on Learning Grounded Representations.</i></p><p>David L. Chen and Raymond J. Mooney. 2008. Learning to sportscast: A test of grounded language acquisition. In <i>Proceedings of the 25th International Conference on Machine Learning (ICML).</i></p><p>David L. Chen, Joohyun Kim, and Raymond J. Mooney. 2010. Training a multilingual sportscaster: Using per­ceptual context to learn language. <i>Journal of Artificial Intelligence Research, </i>37:397—135.</p><p>Jenny R. Finkel, Trond Grenager, and Christopher D. Manning. 2007. The infinite tree. In <i>Proceedings of the 45th Annual Meeting of the Association of Com­putational Linguistics, </i>pages 272-279.</p><p>Joseph H. Greenberg. 1966. Some universals of gram­mar with particular reference to the order of meaning­ful elements. In Joseph H. Greenberg, editor, <i>Univer­sals of Language, </i>chapter 5, pages 73-113. The MIT Press, Cambridge, Massachusetts.</p><p>Mark Johnson, Katherine Demuth, Michael Frank, and Bevan Jones. 2010. Synergies in learning words and their referents. In J. Lafferty, C. K. I. Williams, J. Shawe-Taylor, R.S. Zemel, and A. Culotta, editors, <i>Advances in Neural Information Processing Systems 23, </i>pages 1018-1026.</p><p>Joohyun Kim and Raymond J. Mooney. 2010. Genera­tive alignment and semantic parsing for learning from ambiguous supervision. In <i>Proceedings ofthe 23rd In­ternational Conference on Computational Linguistics</i> <i>(COLING 2010).</i><i></i></p><p>K. Lari and S.J. Young. 1990. The estimation of Stochas­tic Context-Free Grammars using the Inside-Outside algorithm. <i>Computer Speech and Language, </i>4(35-56).</p><p>Percy Liang, Slav Petrov, Michael Jordan, and Dan Klein. 2007. The infinite PCFG using hierarchical Dirichlet processes. In <i>Proceedings of the 2007 Joint Confer­ence on Empirical Methods in Natural Language Pro­cessing and Computational Natural Language Learn­ing (EMNLP-CoNLL), </i>pages 688-697.</p><p>Percy Liang, Michael I. Jordan, and Dan Klein. 2009. Learning semantic correspondences with less supervi­sion. In <i>Proceedings ofthe 47th Annual Meeting ofthe ACL and the 4th IJCNLP of the AFNLP.</i></p><p>Wei Lu, Hwee Tou Ng, Wee Sun Lee, and Luke S. Zettle-moyer. 2008. A generative model for parsing natu­ral language to meaning representations. In <i>Empirical Methods in Natural Language Processing (EMNLP),</i> pages 783-792.</p><p>Luke S. Zettlemoyer and Michael Collins. 2005. Learn­ing to map sentences to logical form: Structured clas­sification with probabilistic categorial grammars. In <i>Proceedings ofUAI 2005.</i></p></references></body></article>