<?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="430"/><title>Language Models Based on Semantic Composition</title><author surname="Mitchell" givenname="Jeff"><org  name="University of Edinburgh" country="United Kingdom" city="Edinburgh"/></author><author surname="Lapata" givenname="Mirella"><org  name="University of Edinburgh" country="United Kingdom" city="Edinburgh"/></author></firstpageheader><frontmatter><p><b>Language Models Based on Semantic Composition</b></p><p><b>Jeff Mitchell </b>and <b>Mirella Lapata</b></p><p>School of Informatics, University of Edinburgh Edinburgh EH8 9LW, UK jeff.mitchell@ed.ac.uk, mlap@inf.ed.ac.uk</p></frontmatter><abstract>In this paper we propose a novel statistical language model to capture long-range se­mantic dependencies. Specifically, we ap­ply the concept of semantic composition to the problem of constructing predictive his­tory representations for upcoming words. We also examine the influence of the un­derlying semantic space on the composi­tion task by comparing spatial semantic representations against topic-based ones. The composition models yield reductions in perplexity when combined with a stan­dard n-gram language model over the n-gram model alone. We also obtain per­plexity reductions when integrating our models with a structured language model. </abstract></header><body><section number="1" title="Introduction"><p>Statistical language modeling plays an important role in many areas of natural language process­ing including speech recognition, machine trans­lation, and information retrieval. The prototypi­cal use of language models is to assign proba­bilities to sequences of words. By invoking the chain rule, these probabilities are generally es­timated as the product of conditional probabili­ties <i>P(wi\hi) </i>of a word w, given the history of preceding words <i>hi = w\x. </i>In theory, the history could span any number of words up to W; such as sentences or even a paragraphs. In practice, how­ever, it has proven challenging to deal with the combinatorial growth in the number of possible histories which in turn impacts reliable parame­ter estimation. A simple and effective strategy is to truncate the chain rule to include only the <i>n-l </i>preceding words <i>(n </i>is often set within the range of 3-5). The simplification reduces the number of free parameters. However, low values of <i>n </i>impose an artificially local horizon to the language model, and compromise its ability to capture long-range dependencies, such as syntactic relationships, se­mantic or thematic constraints.</p><p>The literature offers many examples of how to overcome this limitation, essentially by allowing the modulation of probabilities by dependencies which extend to words beyond the n-gram horizon. Cache language models (Kuhn and de Mori, 1992) increase the probability of words observed in the history, e.g., by some factor which decays expo­nentially with distance. Trigger models (Rosen-feld, 1996) go a step further by allowing arbi­trary word pairs to be incorporated into the cache. Structured language models (e.g., Roark (2001)) go beyond the representation of history as a lin­ear sequence of words to capture the syntactic con­structions in which these words are embedded.</p><p>It is also possible to build representations of history which are semantic rather than syntactic (Bellegarda (2000; Coccaro and lurafsky (1998; Gildea and Hofmann (1999)). In this approach, es­timates for the probabilities of upcoming words are derived from a comparison of their semantic content with the content of the history so far. The semantic representations, in this case, are vectors derived from the distributional properties of words in a corpus, based on the insight that words which are semantically similar will be found in similar contexts (Harris, 1968; Firth, 1957). Although the the construction of a semantic representation for the history is crucial to this approach, the under­lying vector-based models are primarily designed to represent isolated words rather than word se­quences. Ideally, we would like to <i>compose </i>the meaning of the history out of its constituent parts. This is by no means a new idea. Much work in lin­guistic theory (Partee, 1995; Montague, 1974) has been devoted to compositionality, the process of determining the meaning of complex expressions from simpler ones. Previous work either ignores this issue (e.g., Bellegarda (2000)) or simply com-</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">430</doubt><p><i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, </i>pages 430-439, Singapore, 6-7 August 2009. ©2009 ACL and AFNLP<page local="2" global="431"/></p><p>putes the centroid of the vectors representing the history (e.g., Coccaro and Jurafsky (1998)). This is motivated primarily by mathematical convenience rather than by empirical evidence.</p><p>In our earlier work (Mitchell and Lapata, 2008) we formulated composition as a function of two vectors and introduced a variety of models based on addition and multiplication. In this paper we apply vector composition to the problem of con­structing predictive history representations for lan­guage modeling. Besides integrating composition with language modeling, a task which is novel to our knowledge, our approach also serves as a valu­able testbed of our earlier framework which we originally evaluated on a small scale verb-subject similarity task. We also investigate how the choice of the underlying semantic representation inter­acts with the choice of composition function by comparing a spatial model that represents words as vectors in a high-dimensional space against a probabilistic model that represents words as topic distributions.</p><p>Our results show that the proposed composi­tion models yield reductions in perplexity when combined with a standard n-gram model over the n-gram model alone. We also show that with an appropriate composition function spatial mod­els outperform the more sophisticated topic mod­els. Finally, we obtain further perplexity reduc­tions when our models are integrated with a struc­tured language model, indicating that the two ap­proaches to language modeling are complemen­tary.</p></section><section number="2" title="Background"><subsection number="2.1" title="Distributional Models of Semantics"><p>The insight that words with similar meanings will tend to be distributed in similar contexts has given rise to a number of approaches that construct semantic representations from corpora. Broadly speaking, these models come in two flavors. <i>Se­mantic space </i>models represent the meaning of words in terms of vectors, with the vector compo­nents being derived from the distributional statis­tics of those words. Essentially, these models pro­vide a simple procedure for constructing spatial representations of word meaning. <i>Topic models, </i>in contrast, impose a probabilistic model onto those distributional statistics, under the assumption that hidden topic variables drive the process that gener­ates words. Both approaches represent the meanings of words in terms of an n-dimensional series of values, but whereas the semantic space model treats those values as defining a vector with spatial properties, the topic model treats them as a proba­bility distribution.</p><p>A simple and popular (McDonald, 2000; Bul-linaria and Levy, 2007; Lowe, 2000) way to con­struct a semantic space model is to associate each vector component with a particular context word, and assign it a value based on the strength of its co-occurrence with the target (i.e., the word for which a semantic representation is being con­structed). For example, in Mitchell and Lapata (2008) we used the 2,000 most frequent content words in a corpus as their contexts, and defined co-occurrence in terms of the context word be­ing present in a five word window on either side of the target word. We calculated the ratio of the probability of the context word given the target word to the overall probability of the context word and use these values as their vector components. This procedure has the benefits of simplicity and also of being largely free of any additional the­oretical assumptions over and above the distribu­tional approach to semantics. This is not to say that more sophisticated approaches have not been de­veloped or that they are not useful. Much work has been devoted to enriching semantic space mod­els with syntactic information (e.g., Grefenstette (1994; Pado and Lapata (2007)), selectional pref­erences (Erk and Padö, 2008) or with identifying optimal ways of defining the vector components (e.g., Bullinaria and Levy (2007)).</p><p>The semantic space discussed thus far is based on word co-occurrence statistics. However, the statistics of how words are distributed across the documents also carry useful semantic informa­tion. Latent Semantic Analysis (LSA, Landauer and Dumais (1997) utilizes precisely this distribu­tional information to uncover hidden semantic fac­tors by means of dimensionality reduction. Singu­lar value decomposition (SVD, Berry et al. (1994)) is applied to a word-document co-occurrence ma­trix which is factored into a product of a number of other matrices; one of them represents words in terms of the semantic factors and another repre­sents documents in terms of the same factors. The algebraic relation between these matrices can be used to show that any document vector is a linear combination of the vectors representing the words it contains. Thus, within this paradigm it is natural to treat multi-word structures as a "pseudo-document" and represent them via linear combi­nations of word vectors.<page local="3" global="432"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">431</doubt><p>Due to its generality, LSA has proven a valuable analysis tool with a wide range of applications. However, the SVD procedure is somewhat ad-hoc lacking a sound statistical foundation. Probabilis­tic Latent Semantic Analysis (pLSA, Hofmann (2001)) casts the relationship between documents and words in terms of a generative model based on a set of hidden topics. Documents are represented by distributions over topics and topics are distri­butions over words. Thus the mixture of topics in any document determines its vocabulary. Maxi­mum likelihood estimation of these distributions over a word-document matrix has a comparable effect to SVD in LSA: a set of hidden semantic factors, in this case topics, are extracted and docu­ments and words are represented by these topics.</p><p>Latent Dirichlet Allocation (Griffiths et al., 2007; Blei et al., 2003) enhances further the math­ematical foundation of this approach. Whereas pLSA treats each document as a separate, inde­pendent mixture of topics, LDA assumes that the topic distributions of documents are generated by a Dirichlet distribution. Thus, LDA is a probabilis­tic model of the whole document collection. In this model the process of generating a document can be described as follows:</p><p>1. draw a multinomial distribution 0 from a Dirichlet distribution parametrized by a</p></subsection></section><section number="2." title="for each word in a document:"><p>(a) draw a topic <i>Zk </i>from the multinomial distribution characterized by 0</p><p>(b) draw a word from a multinomial distri­bution conditioned on the topic <i>Zk </i>and word probabilities ß</p><p>Under this model, constructing a representation for a multi-word sequence amounts to estimating the topic proportions for that sequence.<footnote anchor="1"/> Struc­ture here arises from the mathematical form of the model, as opposed to any linguistic assumptions.</p><p>Without anticipating our results too much, we should point out that several features of the LDA model are likely to affect the representation of</p><p>Estimating the posterior distribution P(0,z|w,a,ß) of the hidden variables given an observed collection of docu­ments w is intractable in general; however, a variety of ap­proximate inference algorithms have been proposed in the literature (e.g., Blei et al. (2003; Griffiths et al. (2007)).</p><p>multi-word sequences. Firstly, it is a top-down generative model (the topic proportions for a doc­ument are first selected and then this drives the generation of words) as opposed to a bottom-up constructive process (words modulate each other to produce a complex representation of their com­bination). Secondly, the top level Dirichlet distri­bution is likely to lead to documents being dom­inated by a small number of topics, producing sparse vectors. And lastly, the assumption that words are generated independently means the in­teraction between them is not modeled.</p><subsection number="2.2" title="Language Modeling using Semantic Representations"><p>A common approach to embedding semantic rep­resentations within language modeling is to mea­sure the semantic similarity between an upcoming word and its history and use it to modify the prob­abilities from an n-gram model. In this way, the n-gram's sensitivity to short-range dependencies is enriched with information about longer-range semantic coherence. Much of previous work has taken this approach (Bellegarda, 2000; Coccaro and lurafsky, 1998; Wandmacher and Antoine, 2007), whilst relying on LSA to provide seman­tic representations for individual words. Some au­thors (Coccaro and lurafsky, 1998; Wandmacher and Antoine, 2007) use the geometric notion of a vector centroid to construct representations of history, whereas others (Bellegarda, 2000; Deng and Khundanpur, 2003) use the idea of a "pseudo-document", which is derived from the algebraic relation between documents and words assumed within LSA. They all derive <i>P(wi \ hi)</i>, the probabil­ity of an upcoming word given its history, from the cosine similarity measure which must be somehow normalized in order to yield well-formed probabil­ity estimates.</p><p>The approach of Gildea and Hofmann (1999) overcomes this difficulty by using representations constructed with pLSA, which have a direct prob­abilistic interpretation. As a result, the probabil­ity of an upcoming word given the history can be derived naturally and directly, avoiding the need for ad-hoc transformations. In constructing their representation of history, Gildea and Hofmann (1999) use an online Expectation Maximization process, which derives from the probabilistic basis of pLSA, to update the history with new words.</p><p>Extensions on the basic semantic language models sketched above involve representing the history by multiple LSA models of varying granu­larity in an attempt to capture topic, subtopic, and local information (Zhang and Rudnicky, 2002); in­corporating syntactic information by building the semantic space over words and their syntactic an­notations (Kanejiya et al., 2004); and treating the LSA similarity as a feature in a maximum entropy language model (Deng and Khundanpur, 2003).<page local="4" global="433"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">432</doubt></subsection></section><section number="3" title="Composition Models"><p>The problem of vector composition has re­ceived relatively little attention within natural lan­guage processing. Attempts to use tensor products (Smolensky, 1990; Clark et al., 2008; Widdows, 2008) as a means of binding one vector to another face major computational difficulties as their di­mensionality grows exponentially with the num­ber of constituents being composed. To overcome this problem, other techniques (Plate, 1995) have been proposed in which the binding of two vectors results in a vector which has the same dimension­ality as its components. Crucially, the success of these methods depends on the assumption that the vector components are randomly distributed. This is problematic for modeling language which has regular structure.</p><p>Given the above considerations, in Mitchell and Lapata (2008) we introduce a general framework for studying vector composition, which we formu­late as a function / of two vectors <b>u </b>and <b>v:</b></p><doubt alpha="23.1" length="13" tooSmall="False" monospace="0.0">h = /(u,v)(1)</doubt><p>where <b>h </b>denotes the composition of <b>u </b>and <b>v. </b>Dif­ferent composition models arise, depending on how / is chosen. Our earlier work (Mitchell and Lapata, 2008) explored two broad classes of mod­els based on additive and multiplicative functions.</p><p>Additive models are the most common method of vector combination in the literature. They have been applied to a wide variety of tasks includ­ing document coherence (Foltz et al., 1998), es­say grading (Landauer and Dumais, 1997), mod­eling selectional restrictions (Kintsch, 2001), and notably language modeling (Coccaro and Jurafsky, 1998; Wandmacher and Antoine, 2007):</p><doubt alpha="40.0" length="15" tooSmall="False" monospace="0.0">hi = ui + vi(2)</doubt><p>Vector addition (or averaging, which is equivalent under the cosine similarity measure) is a computa­tionally efficient composition model as it does not increase the dimensionality of the resulting vector. However, the idea of averaging is somewhat coun­terintuitive from a linguistic perspective. Compo­sition of simple elements onto more complex ones must allow the construction of novel meanings which go beyond those of the individual elements (Pinker, 1994).</p><p>In Mitchell and Lapata (2008) we argue that composition models based on multiplication ad­dress this problem:</p><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">hi = Ui- Vi(3)</doubt><p>Whereas the addition of vectors 'lumps their con­tent together', multiplication picks out the content relevant to their combination by scaling each com­ponent of one with the strength of the correspond­ing component of the other. This argument is ap­pealing, especially if one is interested in explain­ing how the meaning of a verb is modulated by its subject. Here, we also develop a complemen­tary, probabilistic argument for the validity of this model.</p><p>Let us assume that semantic vectors are based on components defined as the ratio of the condi­tional probability of a context word given the tar­get word to the overall probability of the context word.</p><p><b><i>p(contexti\target)</i></b> <b><i>pycontexti)</i></b></p><doubt alpha="23.5" length="17" tooSmall="False" monospace="0.0">Vi=       t-,f(4)</doubt><p>These vectors represent the distributional proper­ties of a given target word in terms of the strength of its co-occurrence with a set of context words. Dividing through by the overall probability of each context word prevents the vectors being dominated by the most frequent context words, which will of­ten also have the highest conditional probabilities.</p><p>Let us assume vectors <b>u </b>and <b>v </b>represent tar­get words wi and <b><i>w2. </i></b>Now, when we compose these vectors using the multiplicative model and the components definition in (4), we obtain:</p><doubt alpha="46.2" length="26" tooSmall="False" monospace="0.0">hi=vrui = ^p-^(5)p{a) Pia)</doubt><p>And by Bayes' theorem:</p><doubt alpha="46.7" length="15" tooSmall="False" monospace="0.0">p(w1\a)p(w2\ci)</doubt><doubt alpha="13.3" length="15" tooSmall="False" monospace="0.0">hi =-7—^7—7—(6)</doubt><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">p{wi)p(w2)</doubt><p>Assuming <b><i>w\ </i></b>and <b><i>w2 </i></b>are independent and apply­ing Bayes' theorem again, <b><i>hi </i></b>becomes:</p><doubt alpha="42.1" length="38" tooSmall="False" monospace="0.0">h_p{w\w2\a)_p{ci\w\w2)1~ p(w\w2) p{ci)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">433</doubt><page local="5" global="434"/><p>By comparing to (4), we can see that the expres­sion on the right hand side gives us something akin to the vector components we would expect when our target is the co-occurrence of <b><i>w\ </i></b>and <b><i>w2. </i></b>Thus, for the multiplicative model, the combined vec­tor <b><i>hi </i></b>can be thought of as an approximation to a vector representing the distributional properties of the phrase <b><i>w\w2.</i></b></p><p>If multiplication results in a vector which is something like the representation of <b><i>w\ and w2, </i></b>then addition produces a vector which is more like the representation of <b><i>w\ or w2. </i></b>Suppose we were unsure whether a word token <i>x </i>was an instance of wi or of <b><i>w2. </i></b>It would be reasonable to express the probabilities of context words around this to­ken in terms of the probabilities for <b><i>w\ </i></b>and <b><i>w2, </i></b>assuming complete uncertainty between them:</p><doubt alpha="40.0" length="30" tooSmall="False" monospace="0.0">p{ci\x) =^p(q\wi)+^p(ci\w2)(8)</doubt><p>Therefore, we could represent <i>x </i>with a vector, based on these probabilities, having the compo­nents:</p><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">1p{ci\w\)</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">2p{a)</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">+</doubt><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">1p{ci\w2)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(9)</doubt><p>Which is exactly the vector averaging approach to semantic composition. As more vectors are com­bined, vector addition will lead to greater general­ity rather than greater specificity. The multiplica­tive approach, on the other hand, picks out the components of the constituents that are relevant to the combination, and represents more faithfully the properties of their conjunction.</p><p>As an aside, we should point out that our earlier work (Mitchell and Lapata, 2008) introduced sev­eral other models, additive and multiplicative, be­sides the ones discussed here. We selected the ad­ditive model as a baseline and also due to its over­whelming popularity in the language modeling lit­erature. The multiplicative model presented above performed best in our evaluation study (i.e., pre­dicting <b><i>verb-subject </i></b>similarity).</p></section><section number="4" title="Language Modeling"><p><b>Estimating Probabilities </b>In language modeling our aim is to derive probabilities, <b><i>p(w\h), </i></b>given the semantic representations of word, <b><i>w, </i></b>and its history, <b><i>h, </i></b>based on the assumption that probable words should be semantically coherent with the history. Semantic coherence is commonly mea­sured via the cosine of the angle between two vec­tors:</p><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">Iwllhl</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">w h =\wih</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(11)</doubt><p>where <b>w h </b>is the dot product of <b>w </b>and <b>h. </b>Coc­caro and lurafsky (1998) utilize this measure in their approach to language modeling. Unfortu­nately, they find it necessary to resort to a number of ad-hoc mechanisms to turn the cosine similari­ties into useful probabilities. The primary problem with the cosine measure is that, although its values lie between 0 and 1, they do not sum to 1, as prob­abilities must. Thus, some form of normalization is required. A further problem concerns the fact that such a measure takes no account of the under­lying frequency of <b><i>w, </i></b>which is crucial for a proba­bilistic model. For example, <b><i>encephalon </i></b>and <b><i>brain </i></b>are roughly synonymous, and may be equally sim­ilar to some context, but <b><i>brain </i></b>may nonetheless be much more likely, as it is generally more common.</p><p>An ideal measure would take account of the un­derlying probabilities of the elements involved and produce values that sum to 1. Our approach is to modify the dot product (equation (11)) on which the cosine measure is based. Assuming that our vector components are given by equation (4), the dot product becomes:</p><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">w h = £</doubt><doubt alpha="56.0" length="25" tooSmall="False" monospace="0.0">p{ci\w)p(cj\h)P{ci) P{Ci)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(12)</doubt><p>which we modify to derive probabilities as fol­lows:</p><p><b><i>/ ,n     /      p</i></b><i>{ci\w) </i><b><i>p</i></b><b><i>{ci</i></b><b><i>\h) .</i></b></p><doubt alpha="57.1" length="28" tooSmall="False" monospace="0.0">p{w\h)=p{W)Ydp[ci)p{ci)P{ci,</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(13)</doubt><p>This expression now weights the sum with the in­dependent probabilities of the context words and the word to be predicted. That this is indeed a valid probability can be seen by the fact it is equiva­lent to <b><i>Y,i</i></b><i>P(w\cÙP(ci</i><b><i>\h)- </i></b>However, in constructing a representation of the history <b><i>h, </i></b>it is more conve­nient to work with equation (13) as it is based on vector components and can be readily used with the composition models presented in Mitchell and Lapata (2008).</p><p>Equation (13) allows us to derive probabilities from vectors representing a word and its prior his­tory. We must also construct a representation of the history up to the nth word of a sentence.<page local="6" global="435"/> To do this, we combine, via some (additive or multiplica­tive) function /, the vector representing that word with the vector representing the history up to <b><i>n — </i></b>1 words:</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">434</doubt><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">sim(w,h) = -</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(10)</doubt><doubt alpha="23.5" length="17" tooSmall="False" monospace="0.0">h„=/(w„,h„_i)(14)</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">hi = wi</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(15)</doubt><p>One issue that must be resolved in implement­ing equation (14) is that the history vector should remain correctly normalized. In other words, the products <i>hi</i><i> </i><b><i>■ p</i></b><i>{ci) </i>must themselves be a valid dis­tribution over context words. So, after each vec­tor composition the history vector is normalized as follows:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">k</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">hi=</doubt><p><i>Lhj-p(ci j</i></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(16)</doubt><p>Equations (13)—(16) define a language model that incorporates vector composition. To generate probability estimates, it requires a set of word vec­tors whose components are based on the ratio of probabilities described by equation (4).</p><p>Our discussion thus far has assumed a spatial semantic space model similar to that employed in Mitchell and Lapata (2008). However, there is no reason why the vectors should not be constructed by some other means. As mentioned earlier, in the LDA topic model, words are represented as dis­tributions over topics. These distributions are es­sentially components of a vector <b>v </b>corresponding to the target word for which we wish to construct a semantic representation. Analogously to equa­tion (4), we convert these probabilities to ratios of probabilities:</p><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">Vi =</doubt><p><b><i>p{topiCi\target) p(topiCi)</i></b></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(17)</doubt><p><b>Integrating with Other Language Models </b>The models defined above are based on little more than semantic coherence. As such they will be only weakly predictive, since they largely ignore word order, which n-gram models primarily exploit. The simplest means to integrate semantic information with a standard language model involves combin­ing two probability estimates as a weighted sum:</p><doubt alpha="36.1" length="36" tooSmall="False" monospace="0.0">p(w\h) = llPl(w\h) +(1-X)p2(w\h)(18)</doubt><p>Linear interpolation is guaranteed to produce valid probabilities, and has been used, for exam­ple, to integrate structured language models with n-gram models (Roark, 2001). However, it will work best when the models being combined are roughly equally predictive and have complemen­tary strengths and weaknesses. If one model is much weaker than the other, linear interpolation will typically produce a model of intermediate strength (i.e., worse than the better model), with the weaker model contributing a form of smooth­ing at best.</p><p>Therefore, based on equation (13), we express our semantic probabilities as the product of the unigram probability, <i>p(w), </i>and a semantic com­ponent, A, which determines the factor by which this probability should be scaled up or down given the context in which it occurs.</p><doubt alpha="33.3" length="24" tooSmall="False" monospace="0.0">p(w\h) = p(w)-A(w,h)(19)</doubt><p>Thus, it seems reasonable to integrate the n-gram model by replacing the unigram probabilities with the n-gram versions.<footnote anchor="2"/></p><doubt alpha="44.8" length="29" tooSmall="False" monospace="0.0">p(wn) = p(wn\wnn_\) ■ A(wn,h)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(21)</doubt><p>To obtain a true probability estimate we normalize <i>p{wn) </i>by dividing through the sum of all word probabilities:</p><doubt alpha="38.5" length="13" tooSmall="False" monospace="0.0">P(Wn\K-2&gt;h) =</doubt><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">P{wn)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(22)</doubt><p>In integrating our semantic model with an n-gram model, we allow the latter to handle short range dependencies and have the former handle the longer dependencies outside the n-gram window. For this reason, the history <i>h </i>used by the semantic model in the prediction of <i>wn </i>only includes words up to w„_3 (i.e., only words outside the n-gram).</p><p>We also integrate our models with a structured language model (Roark, 2001). However, in this case we use linear interpolation (equation (18)) because the models are roughly equally predic­tive and also because linear interpolation is widely used when structured language models are com­bined with n-grams and other information sources. This approach also has the benefit of allowing the</p><footnote label="2">Equation (21) can also be expressed as p{w„\w n n _ 2 ,h) ;</footnote><p>, Which is equivalent to assuming that <i>h </i>is conditionally independent of <i>wnnz\ </i>(Gildea and Hofmann, 1999).</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">435</doubt><page local="7" global="436"/><p>models to be combined without out the need to renormalize the probabilities. In the case of the structured language model, normalizing across the whole vocabulary would be prohibitive.</p></section><section number="5" title="Experimental Setup"><p>In this section we discuss our experimental design for assessing the performance of the models pre­sented above. We give details on our training pro­cedure and parameter estimation, and present the methods used for comparison with our approach.</p><p><b>Method </b>Following previous work (e.g., Belle­garda (2000)) we integrated our compositional language models with a standard n-gram model (see equation (21)). We experimented with addi­tive and multiplicative composition functions, and two semantic representations (LDA and the sim­pler semantic space model), resulting in four com­positional models. In addition, we compared our models against a state of the art structured lan­guage model in order to assess the extent to which the information provided by the semantic repre­sentation is complementary to syntactic structure. Our experiments used Roark's (2001) grammar-based language model. Similarly to standard lan­guage models, it computes the probability of the next word based upon the previous words of the sentence. This is done by computing a subset of all possible grammatical relations for the prior words and then estimating the probability of the next grammatical structure and the probability of see­ing the next word given each of the prior gram­matical relations. When estimating the probability of the next word, the model conditions on the two prior heads of constituents, thereby using informa­tion about word triples (like a trigram model).</p><p>All our models were evaluated by computing perplexity on the test set. Roughly, this quanti­fies the degree of unpredictability in a probabil­ity distribution, such that a fair &amp;-sided dice would have a perplexity of <i>k. </i>More precisely, perplexity is the reciprocal of the geometric average of the word probabilities and a lower score indicates bet­ter predictions.</p><p><b>Parameter Estimation </b>The compositional lan­guage models were trained on the BLLIP corpus, a collection of texts from the Wall Street lournal (years 1987-89). The training corpus consisted of 38,521,346 words. We used a development corpus of 50,006 words and a test corpus of similar size.</p><p>All words were converted to lowercase and num­bers were replaced with the symbol (num). A vo­cabulary of 20,000 words was chosen and the re­maining tokens were replaced with (unk).</p><p>Following Mitchell and Lapata (2008), we con­structed a simple semantic space based on co­occurrence statistics from the BLLIP training set. We used the 2,000 most frequent word types as contexts and a symmetric five word window. Vec­tor components were defined as in equation (4). Contrary to our earlier work, we did not lemma-tize the corpus before constructing the vectors as in the context of language modeling this was not appropriate. We also trained the LDA model on BLLIP, using Blei et al.'s (2003) implementation.<footnote anchor="3"/>We experimented with different numbers of topics on the development set (from 10 to 200) and re­port results on the test set with 100 topics. In our experiments, the hyperparameter a was initialized to 0.5, and the ß word probabilities were initial­ized randomly.</p><p>We integrated our compositional models with a trigram model which we also trained on BLLIP. The model was built using the SRILM toolkit (Stolcke, 2002) with backoff and Good-Turing smoothing. Ideally, we would have liked to train Roark's (2001) parser on the same data as that used for the semantic models. However, this would require a gold standard treebank several times larger than those currently available. Following previous work on structured language modeling (Roark, 2001 ; Charniak, 2001 ; Chelba and Jelinek, 1998), we therefore trained the parser on sections 2-21 of the Penn Treebank containing 936,017 words. Note that Roark's (2001) parser produces prefix probabilities for each word of a sentence which we converted to conditional probabilities by dividing each current probability by the previous one.</p></section><section number="6" title="Results"><p>Table 1 shows perplexity results when the com­positional models are combined with an n-gram model. With regard to the simple semantic space model (SSM) we observe that both additive and multiplicative approaches to constructing history are successful in reducing perplexity over the n-gram baseline, with the multiplicative model outperforming the additive one. This confirms the<page local="8" global="437"/></p><footnote label="3">Available from http://www.cs.princeton.edu/ ~ble if Ida-c/index.html.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">436</doubt><p>Table 1 : Perplexities for n-gram, composition and structured language models, and their combina­tions; subscripts ssm and lsa refer to the semantic space and LDA models, respectively.</p><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">1401-</doubt><p><b>— Additive </b>jjq     <b>- - Multiplicative</b></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">120</doubt><doubt alpha="0.0" length="11" tooSmall="False" monospace="0.0">0     20 40</doubt><doubt alpha="0.0" length="44" tooSmall="False" monospace="0.0">60     80    100   120   140   160   180 200</doubt><p><b>Number of Topics</b></p><p>Figure 1 : Perplexity versus Number of Topics for the LDA models using additive and multiplicative composition functions.</p><p>hypothesis that for this type of semantic space the multiplicative vector combination function pro­duces representations which have a sounder prob­abilistic basis.</p><p>The results for the LDA model are also reported in the table. This model reduces perplexity with an additive composition function, but performs worse than the n-gram with a multiplicative function. For comparison, Figure 1 plots the perplexity of the combined LDA and n-gram models against the number of topics. Increasing the number of top­ics produces higher dimensional representations which ought to be richer, more detailed and there­fore more predictive. While this is true for the additive model, a greater number of topics actu­ally increases the perplexity of the multiplicative model, indicating it has become less predictive.</p><p>We compared these perplexity reductions against those obtained with a structured lan­guage model. Following Roark (2001), we com­bined the structured language model with a trigram model using linear interpolation (the weights were optimized on the development set). This model (n-gram + parser) performs comparably to our best compositional model (n-gram + MultiplyssM)- While both models in­corporate long range dependencies, the parser is trained on a hand annotated treebank, whereas the compositional model uses raw text, albeit from a larger corpus. Interestingly, when interpolating the trigram with the parser <b><i>and</i></b><b><i> </i></b>the compositional models, we obtain additional perplexity reduc­tions. This suggests that the semantic models are encoding useful predictive information about long range dependencies, which is distinct from and po­tentially complementary to the parser's syntactic information about such dependencies. Note that the semantic space multiplicative model yields the highest perplexity reduction in this suite of exper­iments followed by the LDA additive model.</p></section><section number="7" title="Conclusions"><p>In this paper we advocated the use of vector composition models for language modeling. Us­ing semantic representations of words outside the n-gram window, we enhanced a trigram model with longer range dependencies. We compared composition models based on addition and multi­plication and examined the influence of the under­lying semantic space on the composition task. Our results indicate that the multiplicative composition function produced the most predictive representa­tions with a simple semantic space. Interestingly, its effect in the LDA setting was detrimental. In­creasing the representational power of the LDA model, by using a greater number of topics, ren­dered the multiplicative model less predictive.</p><p>These results, together with the basic mathe­matical structure of the LDA model, suggest that it may not be well suited to forming represen­tations for word sequences. In particular, the as­sumption that words are generated independently within documents prevents the interactions be­tween words being modeled. This assumption, along with the Dirichlet prior on document distri­butions tends to lead to highly sparse word vectors, with a typical word being strongly associated with only one or two topics.<page local="9" global="438"/> Multiplication of a number of these vectors generally produces a vec­tor in which most of these associations have been obliterated by the sparse components, resulting in a representation with little predictive power.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">437</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">70</doubt><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Model</p></td><td class="cell"><p>Perplexity</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram</p></td><td class="cell"><p>78.72</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram+AddssM</p></td><td class="cell"><p>76.65</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram + MultiplyssM</p></td><td class="cell"><p>75.01</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram+AddLDA</p></td><td class="cell"><p>76.60</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram+MultiplyLDA</p></td><td class="cell"><p>123.93</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>parser</p></td><td class="cell"><p>173.35</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram + parser</p></td><td class="cell"><p>75.22</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram + parser + AddssM</p></td><td class="cell"><p>73.45</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram + parser + MultiplyssM</p></td><td class="cell"><p>71.32</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram + parser + AddLDA</p></td><td class="cell"><p>71.58</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-gram + parser + MultiplyLDA</p></td><td class="cell"><p>87.93</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>These shortcomings arise from the mathemati­cal formulation of LDA, which is not directed at modeling the semantic interaction between words. An interesting future direction would be to opti­mize the vector components of the probabilistic model over a suitable training corpus, in order to derive a vector model of semantics adapted specif­ically to the task of composition. We also plan to investigate more sophisticated composition mod­els that take syntactic structure into account. Our results on interpolating the compositional mod­els with a parser indicate that there is substantial mileage to be gained by combining syntactic and semantic dependencies.</p><p><b>Acknowledgements </b>We are grateful to Brian Roark for making his parser available to us. Thanks to Frank Keller and Victor Lavrenko for insightful comments and suggestions. This work was supported by the Economic and So­cial Research Council [grant number PTA-030-2006-00341] and the Engineering and Physi­cal Sciences Research Council [grant number GR/T04540/01].</p></section><references><p>Jerome R. Bellegarda. 2000. Exploiting latent se­mantic information in statistical language modeling. <i>Proceedings of the IEEE, </i>88(8): 1279-1296.</p><p>Michael W. Berry, Susan T. Dumais, and Gavin W. O'Brien. 1994. Using linear algebra for intelligent information retrieval. <i>SIAMReview, </i>37(4):573-595.</p><p>David M. Blei, Andrew Y. Ng, and Michael I. Jordan. 2003. Latent Dirichlet allocation. <i>Journal of Ma­chine Learning Research, </i>3:993-1022.</p><p>J.A. Bullinaria and J.P. Levy. 2007. Extracting seman­tic representations from word co-occurrence statis­tics: A computational study. <i>Behavior Research Methods, </i>39:510-526.</p><p>Eugene Charniak. 2001. Immediate-head parsing for language models. In <i>Proceedings of 35th Annual Meeting of the Association for Computational Lin­guistics and 8th Conference of the European Chap­ter of the Association for Computational Linguistics, </i>pages 116-123, Toulouse, France.</p><p>Ciprian Chelba and Frederick Jelinek. 1998. Exploit­ing syntactic structure for language modeling. In <i>Proceedings of the 17th International Conference on Computational Linguistics and 36th Annual Meet­ing of the Association for Computational Linguis­tics, </i>pages 225-231, Montréal, Canada.</p><p>Stephen Clark, Bob Coecke, and Mehrnoosh Sadrzadeh. 2008. A compositional distribu­tional model of meaning. In <i>Proceedings of the 2nd Symposium on Quantum Interaction, </i>pages 133-140, Oxford, UK. College Publications.</p><p>Noah Coccaro and Daniel Jurafsky. 1998. Towards better integration of semantic predictors in satistical language modeling. In <i>Proceedings of the 5th Inter­national Conference on Spoken Language Process­ing, </i>pages 2403-2406, Sydney, Australia.</p><p>Yonggang Deng and Sanjeev Khundanpur. 2003. La­tent semantic information in maximum entropy lan­guage models for conversational speech recognition.</p><p>In <i>Proceedings of the 2003 Human Language Tech­nology Conference of the North American Chapter of the Association for Computational Linguistics, </i>pages 56-63, Edmonton, AL.</p><p>Katrin Erk and Sebastian Pado. 2008. A structured vector space model for word meaning in context.</p><p>In <i>Proceedings of the 2008 Conference on Empiri­cal Methods in Natural Language Processing, </i>pages 897-906, Honolulu, Hawaii.</p><p>J. R. Firth. 1957. A synopsis of linguistic theory 1930-1955. In <i>Studies in Linguistic Analysis, </i>pages 1-32. Philological Society, Oxford.</p><p>Peter Foltz, Walter Kintsch, and Thomas Landauer. 1998. The measurement of textual coherence with latent semantic analysis. <i>Discourse Process, </i>15:285-307.</p><p>Daniel Gildea and Thomas Hofmann. 1999. Topic-based language models using EM. In <i>Proceedings of the 6th European Conference on Speech Commut­ation and Technology, </i>pages 2167-2170, Budapest, Hungary.</p><p>Gregory Grefenstette. 1994. <i>Explorations in Auto­matic Thesaurus Discovery. </i>Kluwer Academic Pub­lishers, Norwell, MA, USA.</p><p>Thomas L. Griffiths, Mark Steyvers, and Joshua B. Tenenbaum. 2007. Topics in semantic representa­tion. <i>Psychological Review, </i>114(2):211-244.</p><p>Zellig Harris. 1968. <i>Mathematical Structures of Lan­guage. </i>Wiley, New York.</p><p>Thomas Hofmann. 2001. Unsupervised learning by probabilistic latent semantic analysis. <i>Machine Learning, </i>41(2): 177-196.</p><p>Dharmendra Kanejiya, Arun Kumar, and Surendra Prasad. 2004. Statistical language modeling with performance benchmarks using various levels of syntactic-semantic information.<page local="10" global="439"/> In <i>Proceedings of the 20th International Conference on Computational Linguistics, </i>pages 1161-1167, Geneva, Switzerland.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">438</doubt><p>Walter Kintsch. 2001. Predication. <i>Cognitive Science, </i>25(2): 173-202.</p><p>Roland Kuhn and Renate de Mori. 1992. A cache based natural language model for speech recogni­tion. <i>IEEE Transactions on Pattern Analysis and Machine Intelligence, </i>(14):570-583.</p><p>T. K. Landauer and S. T. Dumais. 1997. A solution to Plato's problem: the latent semantic analysis the­ory of acquisition, induction and representation of knowledge. <i>Psychological Review, </i>104(2):211-240.</p><p>Will Lowe. 2000. <i>Topographic Maps of Semantic Space. </i>Ph.D. thesis, University of Edinburgh.</p><p>Scott McDonald. 2000. <i>Environmental Determinants of Lexical Processing Effort. </i>Ph.D. thesis, Univer­sity of Edinburgh.</p><p>Jeff Mitchell and Mirella Lapata. 2008. Vector-based models of semantic composition. In <i>Proceedings of ACL-08: HLT, </i>pages 236-244, Columbus, OH.</p><p>R. Montague. 1974. English as a formal language. In R. Montague, editor, <i>Formal Philosophy. </i>Yale Uni­versity Press, New Haven, CT.</p><p>Sebastian Pado and Mirella Lapata. 2007. Dependency-based construction of semantic space models. <i>Computational Linguistics, </i>33(2): 161-199.</p><p>B. Partee. 1995. Lexical semantics and compositional-ity. In Lila Gleitman and Mark Liberman, editors, <i>Invitation to Cognitive Science Part I: Language, </i>pages 311-360. MIT Press, Cambridge, MA.</p><p>S. Pinker. 1994. <i>The Language Instinct: How the Mind Creates Language. </i>HarperCollins, New York.</p><p>Tony A. Plate. 1995. Holographic reduced represen­tations. <i>IEEE Transactions on Neural Networks, </i>6(3):623-641.</p><p>Brian Roark. 2001. Probabilistic top-down parsing and language modeling. <i>Computational Linguistics, </i>27(2):249-276.</p><p>Roni Rosenfeld. 1996. A maximum entropy approach to adaptive statistical language modeling. <i>Computer Speech and Language, </i>10:187-228.</p><p>Paul Smolensky. 1990. Tensor product variable bind­ing and the representation of symbolic structures in connectionist systems. <i>Artificial Intelligence, </i>46:159-216.</p><p>Andreas Stolcke. 2002. SRILM - an extensible lan­guage modeling toolkit. In <i>Proceedings of the Inter­national Conference on Spoken Language Process­ing, </i>pages 901-904, Denver, CO.</p><p>Tonio Wandmacher and Jean-Yves Antoine. 2007. Methods to integrate a language model with seman­tic information for a word prediction component.</p><p>In <i>Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Process­ing and Computational Natural Language Learning (EMNLP-CoNLL), </i>pages 506-513, Prague, Czech Republic.</p><p>Dominic Widdows. 2008. Semantic vector products: Some initial investigations. In <i>Proceedings of the 2nd Symposium on Quantum Interaction, </i>Oxford, UK. College Publications.</p><p>Rong Zhang and Alexander I. Rudnicky. 2002. Im­prove latent semantic analysis based language model by integrating multiple level knowldege. In <i>Pro­ceedings of the 7th International Conference on Spo­ken Language Processing, </i>pages 893-897, Denver, CO.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">439</doubt></references></body></article>