<?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="324"/><title>Deriving lexical and syntactic expectation-based measures for psycholinguistic modeling via incremental top-down parsing</title><author surname="Roark" givenname="Brian"><org  name="Oregon Health &amp; Science University" country="USA"/></author><author surname="Bachrach" givenname="Asaf"><org  name="INSERM" country="France" city="Villejuif"/></author><author surname="Cardenas" givenname="Carlos"><org  name="INSERM" country="France" city="Villejuif"/></author><author surname="Pallier" givenname="Christophe"><org  name="INSERM" country="France" city="Villejuif"/></author></firstpageheader><frontmatter><p><b>Deriving lexical and syntactic expectation-based measures for psycholinguistic modeling via incremental top-down parsing</b></p><p><b>Brian Roark* Asaf Bachrach* Carlos Cardenas<footnote anchor="0"/> and Christophe Pallier*</b></p><p>^Center for Spoken Language Understanding, Oregon Health &amp; Science University t INSERM-CEA Cognitive Neuroimaging Unit, Gif sur Yvette, France °MIT</p><p>roark@cslu.ogi.edu asafbac@gmail.com cardenas@mit.edu christophe@pallier.org</p></frontmatter><abstract>A number of recent publications have made use of the incremental output of stochastic parsers to derive measures of high utility for psycholinguistic modeling, following the work of Hale (2001; 2003; 2006). In this paper, we present novel methods for calculating separate lexical and syntactic surprisal measures from a single incremental parser using a lexical-ized PCFG. We also present an approx­imation to entropy measures that would otherwise be intractable to calculate for a grammar of that size. Empirical results demonstrate the utility of our methods in predicting human reading times. </abstract></header><body><section number="1" title="Introduction"><p>Assessment of linguistic complexity has played an important role in psycholinguistics and neu-rolinguistics for a long time, from the use of mean length of utterance and related scores in child language development (Klee and Fitzgerald, 1985), to complexity scores related to reading dif­ficulty in human sentence processing studies (Yn-gve, 1960; Frazier, 1985; Gibson, 1998). Opera­tionally, such linguistic complexity scores are de­rived via deterministic manual (human) annotation and scoring algorithms of language samples. Nat­ural language processing has been employed to automate the extraction of such measures (Sagae et al., 2005; Roark et al., 2007), which can have high utility in terms of reduction of time required to annotate and score samples. More interest­ingly, however, novel data driven methods are be­ing increasingly employed in this sphere, yield­ing language sample characterizations that <i>require</i><i> </i>NLP in their derivation. For example, scores derived from variously estimated language mod­els have been used to evaluate and classify lan­guage samples associated with neurodevelopmental or neurodegenerative disorders (Roark et al., 2007; Solorio and Liu, 2008; Gabani et al., 2009), as well as within general studies of human sen­tence processing (Hale, 2001; 2003; 2006). Lhese scores cannot feasibly be derived by hand, but rather rely on large-scale statistical models and structured inference algorithms to be derived. Lhis is quickly becoming an important application of NLP, making possible new methods in the study of human language processing in both typical and impaired populations.</p><p>Lhe use of broad-coverage parsing for psy­cholinguistic modeling has become very popular recently. Hale (2001) suggested a measure (sur­prisal) derived from an Earley (1970) parser us­ing a probabilistic context-free grammar (PCFG) for psycholinguistic modeling; and in later work (Hale, 2003; 2006) he suggested an alternate parser-derived measure (entropy reduction) that may also account for some human sentence pro­cessing performance. Recent work continues to advocate surprisal in particular as a very use­ful measure for predicting processing difficulty (Boston et al., 2008a; Boston et al., 2008b; Dem-berg and Keller, 2008; Levy, 2008), and the mea­sure has been derived using a variety of incre­mental (left-to-right) parsing strategies, includ­ing an Earley parser (Boston et al., 2008a), the Roark (2001) incremental top-down parser (Dem-berg and Keller, 2008), and an n-best version of the Nivre et al. (2007) incremental dependency parser (Boston et al., 2008a; 2008b). Deriving such measures by hand, even for a relatively lim­ited set of stimuli, is not feasible, hence parsing plays a critical role in this developing psycholin­guistic enterprise.</p><p>Lhere is no single measure that can account for all of the factors influencing human sentence pro­cessing performance, and some of the most recent work on using parser-derived measures for psy­cholinguistic modeling has looked to try to de­rive multiple, complementary measures. One of</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">324</doubt><p><i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, </i>pages 324—333, Singapore, 6-7 August 2009. ©2009 ACL and AFNLP<page local="2" global="325"/></p><p>the key distinctions being looked at is syntactic versus lexical expectations (Gibson, 2006). For example, in Demberg and Keller (2008), trials were run deriving surprisal from the Roark (2001) parser under two different conditions: fully lex-icalized parsing, and fully unlexicalized parsing (to pre-terminal part-of-speech tags). Boston et al. (2008a) capture a similar distinction by mak­ing use of an unlexicalized PCFG within an Ear-ley parser and a fully lexicalized unlabeled depen­dency parser (Nivre et al., 2007). As Demberg and Keller (2008) point out, fully unlexicalized gram­mars ignore important lexico-syntactic informa­tion when deriving the "syntactic" expectations, such as subcategorization preferences of particular verbs, which are generally accepted to impact syn­tactic expectations in human sentence processing (Garnsey et al., 1997). Demberg and Keller argue, based on their results, for unlexicalized surprisal instead of lexicalized surprisal. Here we present a novel method for deriving separate syntactic and lexical surprisal measures from a fully lexicalized incremental parser, to allow for rich probabilistic grammars to be used to derive either measure, and demonstrate the utility of this method versus that of Demberg and Keller in empirical trials.</p><p>The use of large-scale lexicalized grammars presents a problem for using an Earley parser to derive surprisal or for the calculation of entropy as Hale (2003; 2006) defines it, because both meth­ods require matrix inversion of a matrix with di­mensionality the size of the non-terminal set. With very large lexicalized PCFGs, the size of the non­terminal set is too large for tractable matrix in­version. The use of an incremental, beam-search parser provides a tractable approximation to both measures. Incremental top-down and left-corner parsers have been shown to effectively (and effi­ciently) make use of non-local features from the left-context to yield very high accuracy syntactic parses (Roark, 2001; Henderson, 2003; Collins and Roark, 2004), and we will use such rich mod­els to derive our scores.</p><p>In addition to teasing apart syntactic and lexical surprisal (defined explicitly in §3), we present an approximation to the full entropy that Hale (2003; 2006) used to define the entropy reduction hypoth­esis. Such an entropy measure is derived via a pre­dictive step, advancing the parses independently of the input, as described in §3.3. We also present syntactic and lexical alternatives for this measure, and demonstrate the utility of making such a distinction for entropy as well as surprisal.</p><p>The purpose of this paper is threefold. First, to present a careful and well-motivated decompo­sition of lexical and syntactic expectation-based measures from a given lexicalized PCFG. Sec­ond, to explicitly document methods for calculat­ing these and other measures from a specific in­cremental parser. And finally, to present some em­pirical validation of the novel measures from real reading time trials. We modified the Roark (2001) parser to calculate the discussed measures<footnote anchor="1"/>, and the empirical results in §4 show several things, including: 1) using a fully lexicalized parser to calculate syntactic surprisal and entropy provides higher predictive utility for reading times than these measures calculated via unlexicalized pars­ing (as in Demberg and Keller); and 2) syntactic entropy is a useful predictor of reading time.</p></section><section number="2" title="Notation and preliminaries"><p>A probabilistic context-free grammar (PCFG) <i>G = (V,T, </i>5*, <i>P, p) </i>consists of a set of non­terminal variables <i>V; </i>a set of terminal items (words) t; a special start non-terminal 5* g <i>V; </i>a set of rule productions <i>P </i>of the form <i>A </i><b>—&gt; </b><i>a </i>for <i>A </i>g <i>V, a </i>g <i>(V </i>u t)*; and a function <i>p </i>that assigns probabilities to each rule in <i>P </i>such that for any given non-terminal symbol <i>X </i>g <i>V,</i></p><p>For a given rule <i>A </i><b>—&gt; </b><i>a </i>g <i>P, </i>let the func­tion RHS return the right-hand side of the rule, i.e., RHS(A —&gt; <i>a) = a. </i>Without loss of generality, we will assume that for every rule <i>A </i><b>—&gt; </b><i>a </i>g <i>P, </i>one of two cases holds: either RHS(A —&gt; <i>a) </i>g <i>T </i>or RHS (A -&gt;■ <i>a) </i>g <i>V*. </i>That is, the right-hand side sequences consist of either (1) exactly one termi­nal item, or (2) zero or more non-terminals.</p><p>Let <i>W </i>g <i>Tn </i>be a terminal string of length <i>n, </i>i.e., <i>W = W\... </i><i>Wn</i><i> </i>and <i>\ W\ = n. </i>Let <i>W[i,j] </i>denote the substring beginning at word <i>Wi</i><i> </i>and ending at word <i>Wj </i>of the string. Then <i>W\w\</i><i> </i>is the last word in the string, and <i>W[l, \W\] </i>is the string as a whole. Adjacent strings represent concate­nation, i.e., <i>W[l, i]W[i+l,j] = W[l,j\. </i>Thus <i>W[l, i]w </i>represents the string where <i>Wi+\</i><i> = w.</i></p><p>We can define a "derives" relation (denoted =&gt;g for a given PCFG <i>G) </i>as follows: <i>ßA^</i><i> </i>=&gt;g <i>ßa^</i><i> </i>if and only if <i>A a </i>g <i>P. </i>A string <i>W </i>g t* is in the language of a grammar <i>G </i>if and only if 5* 4&gt;g <i>W, </i>i.e., a sequence of one or more derivation steps yields the string from the start</p><p>lrThe parser version will be made publicly available.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">325</doubt><page local="3" global="326"/><p>non-terminal. A <i>leftmost</i><i> </i>derivation begins with 5* and each derivation step replaces the leftmost non-terminal <i>A </i>in the yield with some <i>a </i>such that <i>A</i><i> </i><i>—&gt;</i><i> </i><i>a</i><i> </i>g <i>P.</i><i> </i>For a leftmost derivation 5* =&gt;g a, where a; g (F U T)*, the sequence of deriva­tion steps that yield <i>a </i>can be represented as a tree, with the start symbol 5* at the root, and the "yield" sequence <i>a </i>at the leaves of the tree. A <i>complete</i><i> </i>tree has only terminal items in the yield, i.e., <i>a</i><i> </i>g T*; a <i>partial</i><i> </i>tree has some non-terminal items in the yield. With a leftmost derivation, the yield <i>a = </i>partitions into an initial sequence of terminals <i>ß </i>g T* followed by a sequence of non-terminals 7 e P. For a complete derivation, 7 = e; for a partial derivation 7 g F+, i.e., one or more non-terminals. Let <i>T(G, W[l,i])be </i>the set of complete trees with <i>W[l, i] </i>as the yield of the tree, given PCFG <i>G.</i></p><p>A leftmost derivation <i>D </i>consists of a sequence of <i>\D\ </i>steps. Let <i>Di</i><i> </i>represent the <i>i'h</i><i> </i>step in the derivation <i>D, </i>and <i>D[i,j] </i>represent the subse­quence of steps in <i>D</i><i> </i>beginning with <i>Di</i><i> </i>and end­ing with <i>Dj. </i>Note that <i>D\D\</i><i> </i>is the last step in the derivation, and <i>D[l, \D\] </i>is the derivation as a whole. Each step <i>Di</i><i> </i>in the derivation is a rule in <i>G, </i>i.e., <i>Di</i><i> </i>g <i>P</i><i> </i>for all %. The probability of the derivation and the corresponding tree is:</p><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">P{D)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>Let <i>V(G, W[l, i]) </i>be the set of all possible left­most derivations <i>D </i>(with respect to <i>G) </i>such that RHS(-Dp|) = <i>Wi.</i><i> </i>These are the set of partial left­most derivations whose last step used a production with terminal <i>Wi</i><i> </i>on the right-hand side. The pre­fix probability of <i>W[l, i] </i>with respect to <i>G </i>is</p><doubt alpha="50.0" length="28" tooSmall="False" monospace="0.0">PrefixProbG(^[M])   =p(D)(2)</doubt><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">DeV(G,W[l,i])</doubt><p>From this prefix probability, we can calculate the conditional probability of each word <i>w </i>g <i>T </i>in the terminal vocabulary, given the preceding sequence <i>W[l, i] </i>as follows:</p><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">PG{wIW[l,i]) =</doubt><p><u>PrefixProbG(W[l,</u></p><p><i>T,w,eT</i><i> </i>PreflxProbc <i>(W</i><i>[l</i><i>,i]w&gt;) </i>PrefixProbG(W[M]w) PrefixProbG(W[M])</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(3)</doubt><p>This, in fact, is precisely the conditional proba­bility that is used for language modeling for such applications as speech recognition and machine translation, which was the motivation for various syntactic language modeling approaches (Jelinek and Lafferty, 1991; Stolcke, 1995; Chelba and Je­linek, 1998; Roark, 2001).</p><p>As with language modeling, it is important to model the end of the string as well, usually with an explicit end symbol, e.g., &lt;/s&gt;. For a string <i>W[l, i], </i>we can calculate its prefix probability as shown above. To calculate its complete probabil­ity, we must sum the probabilities over the set of complete trees <i>T(G, W[l, i}). </i>In such a way, we can calculate the conditional probability of ending the string with &lt;/s&gt; given <i>W[l, i] </i>as follows:</p><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">PG(&lt;/s&gt; IW[l,i\) =</doubt><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">DeT(G,W[l,i])</doubt><p>PrefixProbG(^[M])</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><subsection number="2.1" title="Incremental top-down parsing"><p>In this section, we review relevant details of the Roark (2001) incremental top-down parser, as configured for use here. As presented in Roark (2004), the probabilities in the PCFG are smoothed so that the parser is guaranteed not to fail due to garden pathing, despite following a beam search strategy. Hence there is always a non­zero prefix probability as defined in Eq. 2.</p><p>The parser follows a top-down leftmost deriva­tion strategy. The grammar is factored so that ev­ery production has either a single terminal item on the right-hand side or is of the form A <b>—</b>&gt; B A-B, where A,B g <i>V </i>and the factored A-B category can expand to any sequence of children categories of A that can follow B. This factorization of n-ary productions continues to miliary factored pro­ductions, i.e., the end of the original production A <b>—</b>&gt; Bi... Bra is signaled with an empty produc­tion A-Bi-... -Bra <b>—</b>&gt; e.</p><p>The parser maintains a set of possible connected derivations, weighted via the PCFG. It uses a beam search, whereby the highest scoring derivations are worked on first, and derivations that fall out­side of the beam are discarded. The reader is re­ferred to Roark (2001; 2004) for specifics about the beam search.</p><p>The model conditions the probability of each production on features extracted from the par­tial tree, including non-local node labels such as parents, grandparents and siblings from the left-context, as well as c-commanding lexical items. Hence this is a lexicalized grammar, though the incremental nature precludes a general head-first strategy, rather one that looks to the left-context for c-commanding lexical items.</p><p>To avoid some of the early prediction of struc­ture, the version of the Roark parser that we used<page local="4" global="327"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">326</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">P{D)</doubt><p>PrefixProbG(^[M]) performs an additional grammar transformation beyond the simple factorization already described - a selective left-corner transform of left-recursive productions (Johnson and Roark, 2000). In the transformed structure, slash categories are used to avoid predicting left-recursive structure until some explicit indication of modification is present, e.g., a preposition.</p><p>The final step in parsing, following the last word in the string, is to "complete" all non-terminals in the yield of the tree. All of these open non­terminals are composite factored categories, such as S-NP-VP, which are "completed" by rewriting to e. The probability of these e productions is what allows for the calculation of the conditional prob­ability of ending the string, shown in Eq. 4.</p><p>One final note about the size of the non-terminal set and the intractability of exact inference for such a scenario. The non-terminal set not only includes the original atomic non-terminals of the grammar, but also any categories created by gram­mar factorization (S-NP) or the left-corner trans­form (NP/NP). Additionally, however, to remain context-free, the non-terminal set must include categories that incorporate non-local features used by the statistical model into their label, includ­ing parents, grandparents and sibling categories in the left-context, as well as c-commanding lexical heads. These non-local features must be made lo­cal by encoding them in the non-terminal labels, leading to a very large non-terminal set and in­tractable exact inference. Heavy smoothing is re­quired when estimating the resulting PCFG. The benefit of such a non-terminal set is a rich model, which enables a more peaked statistical distribu­tion around high quality syntactic structures and thus more effective pruning of the search space. The fully connected left-context produced by top-down derivation strategies provides very rich fea­tures for the stochastic parsing models. See Roark (2001; 2004) for discussion of these issues.</p><p>We now turn to measures that can be derived from the parser which may be of use for psycholin­guistic modeling.</p></subsection></section><section number="3" title="Parser and grammar derived measures 3.1 Surprisal"><p>The <i>surprisal</i><i> </i>at word <i>Wi</i><i> </i>is the negative log prob­ability of <i>Wi</i><i> </i>given the preceding words. Using prefix probabilities, this can be calculated as:</p><p>Substituting equation 2 into this, we get</p><doubt alpha="42.9" length="28" tooSmall="False" monospace="0.0">a  /w\l^DeV(G,W[l,i])P(D) ,„</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">E</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">DeV(G,W[l,i-l\)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">P(D)</doubt><p>If we are using a beam-search parser, some of the derivations are pruned away. Let <i>B(G, W[l, </i><i>i})</i><i> </i>ç <i>V(G, W[l, i]) </i>be the set of derivations in the beam. Then the surprisal can be approximated as</p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">SG(Wt</doubt><doubt alpha="47.1" length="17" tooSmall="False" monospace="0.0">log^D^G&lt;W^A)P^(7)</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">DeB(G,W[l,i-l])</doubt><p>Any pruning in the beam search will result in a <i>de­</i><i></i><i>ficient</i><i> </i>probability distribution, i.e., a distribution that sums to less than 1. Roark's thesis (2001) showed that the amount of probability mass lost for this particular approach is very low, hence this provides a very tight bound on the actual surprisal given the model.</p><subsection number="3.2" title="Lexical and Syntactic surprisal"><p>High surprisal scores result when the prefix proba­bility at word <i>Wi</i><i> </i>is low relative to the prefix prob­ability at word <i>Wi-\.</i><i> </i>Sometimes this is due to the identity of <i>Wi,</i><i> </i>i.e., it is a surprising word given the context. Other times, it may not be the lexical identity of the word so much as the syntactic struc­ture that must be created to integrate the word into the derivations. One would like to tease surprisal apart into "syntactic surprisal" versus "lexical sur­prisal", which would capture this intuition of the lexical versus syntactic dimensions to the score. Our solution to this has the beneficial property of producing two scores whose sum equals the origi­nal surprisal score.</p><p>The original surprisal score is calculated via sets of partial derivations at the point when each word <i>Wi</i><i> </i>is integrated into the syntactic structure, <i>V(G, W[l, i]). </i>We then calculate the ratio from point to point in sequence. To tease apart the lexi­cal and syntactic surprisal, we will consider sets of partial derivations <i>immediately</i><i> </i><i>before</i><i> </i>each word <i>Wi</i><i> </i>is integrated into the syntactic structure, i.e., <i>D[l,\D\-l] îoxD </i>g <i>V(G,W[l,i\). </i>Recall that the last derivation move for every derivation in the set is from the POS-tag to the lexical item. Hence the sequence of derivation moves that excludes the last one includes all structure except the word <i>Wi.</i><i> </i>Then the syntactic surprisal is calculated as:</p><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">SG(Wi) =-log</doubt><doubt alpha="57.1" length="21" tooSmall="False" monospace="0.0">PrefixProbG(!^[M -1])</doubt><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">(5)SynSG(Wi)</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">DEV(G,W[l,i-l])</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">327</doubt><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">SG{Wi)=-log^</doubt><doubt alpha="14.3" length="7" tooSmall="False" monospace="0.0">-i- (6)</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">■ log -</doubt><doubt alpha="15.4" length="13" tooSmall="False" monospace="0.0">-—-~7~Fv\-(8)</doubt><page local="5" global="328"/><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">P(D)</doubt><p>and the lexical surprisal is calculated as:</p><doubt alpha="50.0" length="12" tooSmall="False" monospace="0.0">EV(G,W[l,i])</doubt><doubt alpha="58.8" length="17" tooSmall="False" monospace="0.0">hexSa (Wi)= - log</doubt><doubt alpha="41.2" length="17" tooSmall="False" monospace="0.0">2~2d ev(g,W[l,i])</doubt><doubt alpha="38.5" length="13" tooSmall="False" monospace="0.0">p(D[l,\D\-l])</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(9)</doubt><p>Note that the numerator of <i>SynSciWi)</i><i> </i>is the de­nominator of <i>LexSciWi),</i><i> </i>hence they sum to form total surprisal <i>Sc(Wi). </i>As with total surprisal, these measures can be defined either for the full set <i>V(G, W[l, </i><i>i})</i><i> </i>or for a pruned beam of deriva­tions <i>B{G, W[l, i}) </i>ç <i>V(G, W[l, i}).</i></p><p>Finally, we replicated the Demberg and Keller (2008) "unlexicalized" surprisal by replacing ev­ery lexical item in the training corpus with its POS-tag, and then parsing the POS-tags of the lan­guage samples rather than the words. This differs from our syntactic surprisal by having no lexical conditioning events for rule probabilities, and by having no ambiguity about the POS-tag of the lex­ical items in the string. We will refer to the result­ing surprisal measure as "POS surprisal" to distin­guish it from our syntactic surprisal measure.</p></subsection><subsection number="3.3" title="Entropy"><p>Entropy scores of the sort advocated by Hale (2003; 2006) involve calculation over the set of complete derivations consistent with the set of par­tial derivations. Hale performs this calculation efficiently via matrix inversion, which explains the use of relatively small-scale grammars with tractably sized non-terminal sets. Such methods are not tractable for the kinds of richly condi­tioned, large-scale PCFGs that we advocate using here. At each word in the string, the Roark (2001) top-down parser provides access to the weighted set of partial analyses in the beam; the set of com­plete derivations consistent with these is not im­mediately accessible, hence additional work is re­quired to calculate such measures.</p><p>Let <i>H(V) </i>be the entropy over a set of deriva­tions <i>V, </i>calculated as follows:</p><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">"lD)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(10)</doubt><p>If the set of derivations <i>V = V(G,W[l,i]) </i>is a set of partial derivations for string then <i>H(V) </i>is a measure of uncertainty over the partial derivations, i.e., the uncertainty regarding the correct analysis of what has already been pro­cessed. This can be calculated directly from the existing parser operations. If the set of derivations are the complete derivations <i>consistent</i><i> </i>with the set of partial derivations - complete derivations that could occur over the set of possible continuations of the string - then this is a measure of the un­certainty about what is yet to come. We would like measures that can capture this distinction be­tween (a) uncertainty of what has already been processed ("current ambiguity") versus (b) uncer­tainty of what is yet to be processed ("predictive entropy"). In addition, as with surprisal, we would like to tease apart the syntactic uncertainty versus lexical uncertainty.</p><p>To calculate the predictive entropy after word sequence we modify the parser as follows: the parser extends the set of partial deriva­tions to include all possible next words (the entire vocabulary plus &lt;/s&gt;), and calculates the entropy over that set. This measure is calculated from just one additional word beyond the current word, and hence is an approximation to Hale's conditional entropy of grammatical continuations, which is over complete derivations. We will denote this as <i>HG(W[1, i]) </i>and calculate it as follows:</p><doubt alpha="37.8" length="45" tooSmall="False" monospace="0.0">HG(W[l,i]) = H((JV(G,W[l,i]w))(11) »eTu{&lt;/s&gt;}</doubt><p>This is performing a predictive step that the base­line parser does not perform, extending the parses to all possible next words.</p><p>Unlike surprisal, entropy does not decompose straightforwardly into syntactic and lexical com­ponents that sum to the original composite mea­sure. To tease apart entropy due to syntactic un­certainty versus that due to lexical uncertainty, we can define the set of derivations up to the pre­terminal (POS-tag) non-terminals as follows. Let <i>S(V) = {D[l,</i>\D\-1<i>] </i>: <i>D </i>g <i>V}, </i>i.e., the set of derivations achieved by removing the last step of all derivations in <i>V. </i>Then we can calculate a "syn­tactic" <i>H</i><i>q </i>as follows:</p><doubt alpha="41.5" length="41" tooSmall="False" monospace="0.0">Syr\HG(W[l,i]) = H(\JS(V(G,W[l,i]w)))(12)</doubt><doubt alpha="36.4" length="11" tooSmall="False" monospace="0.0">t»£Tu{&lt;/s&gt;)</doubt><p>Finally, "lexical" <i>HG</i><i> </i>is defined in terms of the conditional probabilities derived from prefix prob­abilities as defined in Eq. 3.</p><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">LexHG(W[l,i]) =</doubt><doubt alpha="47.6" length="42" tooSmall="False" monospace="0.0">-pa(wIW[l,i])\ogPG(wIW[l,i])(13)»ëtu{&lt;;s&gt;}</doubt><p>As a practical matter, these values are calculated within the Roark parser as follows. A "dummy" word is created that can be assigned every POS-tag, and the parser extends from the current state to this dummy word. (The beam threshold is greatly expanded to allow for many possible extensions.<page local="6" global="329"/>) Then every word in the vocabulary is substituted for the word, and the appropriate probabilities cal­culated over the beam. Finally, the actual next word is substituted, the beam threshold is reduced to the actual working threshold, and the requisite number of analyses are advanced to continue pars­ing the string. This represents a significant amount of additional work for the parser - particularly for vocabulary sizes that we currently use, on the or­der of tens of thousands of words.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">328</doubt><p>As with surprisal, we can calculate an "unlex­icalized" version of the measure by training and parsing just to POS-tags. We will refer to this sort of entropy as "POS entropy".</p></subsection></section><section number="4" title="Empirical validation"><subsection number="4.1" title="Subjects and stimuli"><p>In order to test the psycholinguistic relevance of the different measures produced by the parser, we conducted a word by word reading experiment. 23 native speakers of English read 4 short texts (mean length: 883.5 words, 49.25 sentences). The texts were the written versions of narratives used in a parallel fMRI experiment making use of the same parser derived measures and whose results will be published in a different paper (Bachrach et al., 2009). The narratives contained a high density of syntactically complex structures (in the form of sentential embeddings, relative clauses and other non-local dependencies) but were constructed so as to appear highly natural. The modified version of the Roark parser, trained on the Brown Cor­pus section of the Penn Treebank (Marcus et al., 1993), was used to parse the different narratives and produce the word by word measures.</p></subsection><subsection number="4.2" title="Procedure"><p>Each narrative was presented line by line (cer­tain sentences required more than one line) on a computer screen (Dell Optiplex 755 running Win­dows XP Professional) using Linger 2.88<footnote anchor="2"/>. Each line contained 11.5 words on average. Each word would appear in its relative position on the screen. The subject would then be required to push a key­board button to advance to the next word. The original word would then disappear and the fol­lowing word appear in the subsequent position on the screen. After certain sentences a comprehen­sion question would appear on the screen (10 per narrative). This was done in order to encourage subjects to pay attention and to provide data for a post-hoc evaluation of comprehension. After each narrative, subjects were instructed to take a short break (2 minutes on average).</p><footnote label="2">http://tedlab.mit.edu/~dr/Linger/readme.html</footnote></subsection><subsection number="4.3" title="Data analysis"><p>The log (base 10) of the reaction times were ana­lyzed using a linear mixed effects regression anal­ysis implemented in the language R (Bates et al., 2008). Reaction times longer than 1500 ms and shorter than 150 ms (raw) were excluded from the analysis (4.8% of total data). Since button press la­tencies inferior to 150 ms must have been planned prior to the presentation of the word, we consid­ered that they could not reflect stimulus driven ef­fects. Data from the first and last words on each line were discarded.</p><p>The combined data from the 4 narratives was first modeled using a model which included or­der of word in the narrative<footnote anchor="3"/>, word length, parser-derived lexical surprisal, unigram frequency, bi-gram probability, syntactic surprisal, lexical en­tropy, syntactic entropy and mean number of parser derivation steps as numeric regressors. We also included the unlexicalized POS variants of syntactic surprisal and entropy, along the lines of Demberg and Keller (2008), as detailed in § 3. Table 1 presents the correlations between these mean-centered measures.</p><p>In addition, we modeled word class (open/closed) as a categorical factor in order to assess interaction between class and the vari­ables of interest, since such an interaction has been observed in the case of frequency (Bradley, 1983). Finally, the random effect part of the model included intercepts for subjects, words and sentences. We report significant effects at the threshold <i>p </i>&lt; .05.</p><p>Given the presence of significant interactions between lexical class (open/closed) and a number of the variables of interests, we decided to split the data set into open and closed class words and model these separately (linear mixed effects with the same numeric variables as in the full model).</p><p>In order to evaluate the usefulness of splitting total surprisal into lexical and syntactic compo­nents we compared, using a likelihood ratio test, a model where lexical and syntactic surprisal are modeled as distinct regressors to a model where a single regressor equal to their sum (total surprisal)<page local="7" global="330"/></p><footnote label="3">This is a regressor to control for the trend of subjects to read faster later in the narrative.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">329</doubt><p>Table 1: Correlations between (mean-centered) predictors. Note that unigram frequencies were represented as logs, other scores as negative logs, hence the sign of the correlations.</p><p>was included. If the larger model provides a sig­nificantly better fit than the smaller model, this provides evidence that distinguishing between lex­ical and syntactic contributions to surprisal is rel­evant. Since total entropy is not a sum of syntactic and lexical entropy, an analogous test would not be valid in that case.</p></subsection><subsection number="4.4" title="Results"><p>All subjects successfully answered the com­prehension questions (92.8% correct responses, S.D.=5.1). In the full model, we observed signifi­cant main effects of word class as well as of lexical surprisal, bigram probability, unigram frequency, syntactic entropy, POS entropy and of order in the narrative. Syntactic surprisal, lexical entropy and number of steps had no significant effect. Word length also had no significant main effect but inter­acted significantly with word class (open/closed). Word class also interacted significantly with lexi­cal surprisal, unigram frequency and syntactic sur­prisal.</p><p>The presence of these interactions led us to construct models restricted to open and closed class items respectively. The estimated parame­ters are reported in Table 2. Reading time for open class words showed significant effects of unigram frequency, syntactic surprisal, syntactic entropy, POS entropy and order within the narrative. The positive effect of length approached significance. Reading time for closed class words exhibited sig­nificant effects of lexical surprisal, bigram prob­ability, syntactic entropy and order in the narra­tive. Length had a non-significant negative effect, thus explaining the interaction observed in the full model.</p><p>The models with separate lexical and syntac­tic surprisal performed better than models includ­ing combined surprisal. For open class words, the Akaike's information criterion (AIC) was -54810 for the combined model and -54819 for the inde­pendent model (likelihood ratio test comparing the</p><p>Table 2: Estimated effects from mixed effects models on open and closed items (stars denote significance at p&lt;,05) two, nested, models: %<footnote anchor="2"/>(l)=10.7,p&lt;.001). For closed class items, combined model's AIC was -61467 and full model's AIC was -61469 (likeli­hood ratio test: %<footnote anchor="2"/>(l)=3.54,p=0.06).</p></subsection><subsection number="4.5" title="Discussion"><p>Our results demonstrate the relevance of model­ing psycholinguistic processes using an incremen­tal probabilistic parser, and the utility of the novel measures presented here. Of particular interest are: the significant effects of our syntactic en­tropy measure; the independent contributions of lexical surprisal, bigram probability and unigram frequency; and the differences between the pre­dictions of the lexicalized parsing model and the unlexicalized (POS) parsing model.</p><p>The effect of entropy, or uncertainty regarding the upcoming input independent of the surprise of that input, has been observed in non-linguistic tasks (Hyman, 1953; Bestmann et al., 2008) but to our knowledge has not been quantified before in the context of sentence processing.<page local="8" global="331"/> The use­fulness of computational modeling is particularly evident in the case of entropy given the absence of any subjective procedure for its evaluation<footnote anchor="4"/>. The results argue in favor of a predictive parsing archi­tecture (Van Berkum et al., 2005). The approach to entropy here differs from the one described in Hale (2006) in a couple of ways. First, as dis­cussed above, the calculation procedure is differ­ent - we focus on extending the derivations with just one word, rather than to all possible complete derivations. Second, and most importantly, Hale emphasizes entropy reduction (or the gain in in­formation, given an input, regarding the rest of the sentence) as the correlate of cognitive cost while here we are interested in the amount of entropy it­self (and not the size of change).</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">330</doubt><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><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>Predictor</p></td><td class="cell"><p>SynH</p></td><td class="cell"><p>LexH</p></td><td class="cell"><p>SynS</p></td><td class="cell"><p>LexS</p></td><td class="cell"><p>Freq</p></td><td class="cell"><p>Bgrm</p></td><td class="cell"><p>PosS</p></td><td class="cell"><p>PosH</p></td><td class="cell"><p>Step</p></td><td class="cell"><p>WLen</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Syntactic Entropy (SynH)</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>-0.26</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.24</p></td><td class="cell"><p>-0.24</p></td><td class="cell"><p>0.20</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>0.55</p></td><td class="cell"><p>-0.05</p></td><td class="cell"><p>0.18</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Entropy (LexH)</p></td><td class="cell"><p>-0.26</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>-0.40</p></td><td class="cell"><p>0.43</p></td><td class="cell"><p>-0.38</p></td><td class="cell"><p>-0.03</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>0.11</p></td><td class="cell"><p>-0.29</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Syntactic Surprisal (SynS)</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>-0.12</p></td><td class="cell"><p>0.08</p></td><td class="cell"><p>0.18</p></td><td class="cell"><p>0.77</p></td><td class="cell"><p>0.21</p></td><td class="cell"><p>0.38</p></td><td class="cell"><p>-0.03</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Surprisal (LexS)</p></td><td class="cell"><p>0.24</p></td><td class="cell"><p>-0.40</p></td><td class="cell"><p>-0.12</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>-0.81</p></td><td class="cell"><p>0.87</p></td><td class="cell"><p>-0.10</p></td><td class="cell"><p>-0.20</p></td><td class="cell"><p>-0.35</p></td><td class="cell"><p>0.64</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Unigram Frequency (Freq)</p></td><td class="cell"><p>-0.24</p></td><td class="cell"><p>0.43</p></td><td class="cell"><p>0.08</p></td><td class="cell"><p>-0.81</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>-0.69</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>0.18</p></td><td class="cell"><p>0.31</p></td><td class="cell"><p>-0.72</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Bigram Probability (Bgrm)</p></td><td class="cell"><p>0.20</p></td><td class="cell"><p>-0.38</p></td><td class="cell"><p>0.18</p></td><td class="cell"><p>0.87</p></td><td class="cell"><p>-0.69</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>0.11</p></td><td class="cell"><p>-0.11</p></td><td class="cell"><p>-0.16</p></td><td class="cell"><p>0.56</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS Surprisal (PosS)</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>-0.03</p></td><td class="cell"><p>0.77</p></td><td class="cell"><p>-0.10</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>0.11</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>0.22</p></td><td class="cell"><p>0.32</p></td><td class="cell"><p>0.02</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS Entropy (PosH)</p></td><td class="cell"><p>0.55</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>0.21</p></td><td class="cell"><p>-0.20</p></td><td class="cell"><p>0.18</p></td><td class="cell"><p>-0.11</p></td><td class="cell"><p>0.22</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>0.16</p></td><td class="cell"><p>-0.11</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Derivation steps (Step)</p></td><td class="cell"><p>-0.05</p></td><td class="cell"><p>0.11</p></td><td class="cell"><p>0.38</p></td><td class="cell"><p>-0.35</p></td><td class="cell"><p>0.31</p></td><td class="cell"><p>-0.16</p></td><td class="cell"><p>0.32</p></td><td class="cell"><p>0.16</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>-0.24</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Word Length (WLen)</p></td><td class="cell"><p>0.18</p></td><td class="cell"><p>-0.29</p></td><td class="cell"><p>-0.03</p></td><td class="cell"><p>0.64</p></td><td class="cell"><p>-0.72</p></td><td class="cell"><p>0.56</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>-0.11</p></td><td class="cell"><p>-0.24</p></td><td class="cell"><p>1.00</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Estimate</p></td><td class="cell"><p>Std. Error</p></td><td class="cell"><p>t-value</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Open-class</i></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>(Intercept)</p></td><td class="cell"><p>2.40 x</p></td><td class="cell"><p>10H</p></td><td class="cell"><p><b>-00</b></p></td><td class="cell"><p>2.39x10"</p></td><td class="cell"><p><b>-02</b></p></td><td class="cell"><p>100.4*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Surprisal</p></td><td class="cell"><p>-1.99X</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>7.28x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>-0.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Word Length</p></td><td class="cell"><p>8.97 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>4.62x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>1.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Bigram</p></td><td class="cell"><p>4.18x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>5.27x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>0.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Unigram Freq</p></td><td class="cell"><p>-2.43 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>1.20x10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>-2.0*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Derivation Steps</p></td><td class="cell"><p>-1.17X</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>9.02x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>-1.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Syntactic Entropy</p></td><td class="cell"><p>2.55 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>6.19x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>4.1*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Entropy</p></td><td class="cell"><p>3.96x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>6.68x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>0.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Syntactic Surprisal</p></td><td class="cell"><p>3.28x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>9.71x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>3.4*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Order in narrative</p></td><td class="cell"><p>-1.43X</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-05</b></p></td><td class="cell"><p>4.34x10"</p></td><td class="cell"><p><b>-06</b></p></td><td class="cell"><p>-3.3*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS Surprisal</p></td><td class="cell"><p>-6.84X</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>8.11x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>-0.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS Entropy</p></td><td class="cell"><p>1.47x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>6.05x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>2.4*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Closed-class</i></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>(Intercept)</p></td><td class="cell"><p>2.42x</p></td><td class="cell"><p>10H</p></td><td class="cell"><p><b>-00</b></p></td><td class="cell"><p>2.32x10"</p></td><td class="cell"><p><b>-02</b></p></td><td class="cell"><p>104.3*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Surprisal</p></td><td class="cell"><p>2.02x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>7.84x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>2.6*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Word Length</p></td><td class="cell"><p>-1.87X</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>1.13x10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>-1.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Bigram</p></td><td class="cell"><p>1.19x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>4.94x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>2.4*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Unigram Freq</p></td><td class="cell"><p>1.69x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>2.67x10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>0.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Derivation Steps</p></td><td class="cell"><p>3.01 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>5.09x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>0.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Syntactic Entropy</p></td><td class="cell"><p>3.15x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-03</b></p></td><td class="cell"><p>5.05x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>6.2*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Entropy</p></td><td class="cell"><p>1.83 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>8.63x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>0.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Syntactic Surprisal</p></td><td class="cell"><p>3.00x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>8.35x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>0.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Order in narrative</p></td><td class="cell"><p>-1.33X</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-05</b></p></td><td class="cell"><p>3.99x10"</p></td><td class="cell"><p><b>-06</b></p></td><td class="cell"><p>-3.3*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS Surprisal</p></td><td class="cell"><p>-6.46 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>6.81x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>-0.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS Entropy</p></td><td class="cell"><p>6.63 x</p></td><td class="cell"><p>10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>5.04x10"</p></td><td class="cell"><p><b>-04</b></p></td><td class="cell"><p>1.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Interestingly, we observed only an effect of syn­tactic entropy, not lexical entropy. Recent ERP work has demonstrated that subjects do form spe­cific lexical predictions in the context of sentence processing (Van Berkum et al., 2005; DeLong et al., 2005) and so we suspect that the absence of lexical entropy effect might be partly due to sparse data. Lexical surprisal and entropy were calcu­lated using the internal state of a parser trained on the relatively small Brown corpus. Lexical en­tropy showed no significant effect while lexical surprisal affected only closed class words. This pattern of results might be due to the sparseness of the relevant information in such a small corpus (e.g., verb/object preferences) and the relevance of extra-textual dimensions (world knowledge, con­textual information) to lexical-specific prediction. Closed class words are both more frequent (and hence better sampled) and are less sensitive to world knowledge, yet are often determined by the grammatical context.</p><p>Demberg and Keller (2008) made use of the same parsing architecture used here to compute a syntactic surprisal measure, but used an unlexical­ized parser (down to POS-tags rather than words) for this score. Their "lexicalized" surprisal is equivalent to our total surprisal (lexical surprisal + syntactic surprisal), while their POS surprisal is derived from a completely different model. In con­trast, our approach achieves lexical and syntactic measures from the same model. In order to eval­uate the difference between the two approaches we added unlexicalized POS surprisal calculated along the lines of that paper to our model, along with an unlexicalized POS entropy from the same model. We found no effect of unlexicalized POS surprisal<footnote anchor="5"/> and a significant (but relatively small) effect of unlexicalized POS entropy. While syn­tactic surprisal was correlated with POS surprisal (see Table 1) and syntactic entropy correlated with POS entropy, the fact that our syntactic measures still had a significant effect suggests that lexical information contributes towards the formation of syntactic expectations.</p><footnote label="4">The Cloze procedure (Taylor, 1953) is one way to derive probabilities that could be used to calculate entropy, though this procedure is usually conducted with lexical elicitation, which would make syntactic entropy calculations difficult.</footnote><p>While the effect of surprisal calculated by an incremental top down parser has been already demonstrated (Demberg and Keller, 2008), our re­sults argue for a distinction between the effect of lexical surprisal and that of syntactic surprisal without requiring unlexicalized parsing of the sort that Demberg and Keller advocate. It is important to keep in mind that this distinction between types of prediction (and as a consequence, prediction er­ror) is not equivalent to the one drawn in the tradi­tional cognitive science modularity debate, which has focused on the source of these predictions. We found a positive effect of syntactic surprisal in the case of open class words. The absence of an effect for closed class words remains to be explained.</p><p>We quantified word specific surprisal using 3 sources: the parser's internal state (lexical sur­prisal); probability given the preceding word (neg­ative log bigram probability); and the unigram fre­quency of the word in a large corpus<footnote anchor="6"/>. As can be observed in Table 1, these three measures are highly correlated<footnote anchor="7"/>. This is the consequence of the smoothing in the estimation procedure but also re­lates to a more general fact about language use: overall, more frequent words are also words more expected to appear in a specific context (Anderson and Schooler, 1991). Despite these strong corre­lations, the three measures produced independent effects.<page local="9" global="332"/> Unigram frequency had a significant effect for open class words while bigram probability and lexical surprisal each had an effect on reading time of closed class items. Bigram probability has been often found to affect reading time using eye move­ment measures. This is the first study to demon­strate an additional effect of contextual surprisal given the preceding sentential context (lexical sur­prisal). Demberg and Keller found no effect for surprisal once bigram and unigram probabilities were included in the model but, importantly, they did not distinguish lexical and syntactic surprisal, rather "lexicalized" and "unlexicalized" surprisal.</p><footnote label="5">We also ran the model including unlexicalized POS sur­prisal without our syntactic surprisal or syntactic entropy, and in this condition the unlexicalized POS surprisal measure had a nearly significant effect (t  = 1.85), which is consistent with the results in Boston et al. (2008a) and Demberg and Keller (2008).</footnote><footnote label="6">The unigram frequencies came from the HAL corpus (Lund and Burgess, 1996). All other statistical models were estimated from the Brown Corpus.</footnote><footnote label="7">Unigram frequencies were represented as logs, the others as negative logs, hence the sign of the correlations.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">331</doubt></subsection></section><section number="5" title="Summary"><p>We have presented novel methods for teasing apart syntactic and lexical surprisal from a fully lexi­calized parser, as well as for extending the oper­ation of a predictive parser to capture novel en­tropy measures that are also shown to be rele­vant to psycholinguistic modeling. Such auto­matic methods provide psycholinguistically rele­vant measures that are intractable to calculate by hand. The empirical validation presented here demonstrated that the new measures - particularly syntactic entropy and syntactic surprisal - have high utility for modeling human reading time data. Our approach to calculating syntactic surprisal, based on fully lexicalized parsing, provided sig­nificant effects, while the POS-tag based (unlexi­calized) surprisal - of the sort used in Boston et al. (2008a) and Demberg and Keller (2008) - did not provide a significant effect in our trials. Fur­ther, we showed an effect of lexical surprisal for closed class words even when combined with uni­gram and bigram probabilities in the same model. This work contributes to the important, develop­ing enterprise of leveraging data-driven NLP ap­proaches to derive new measures of high utility for psycholinguistic and neuropsychological studies.</p></section><section title="Acknowledgments"><p>Thanks to Michael Collins, John Hale and Shravan Vasishth for valuable discussions about this work. This research was supported in part by NSF Grant #BCS-0826654. Any opinions, findings, conclu­sions or recommendations expressed in this publi­cation are those of the authors and do not neces­sarily reflect the views of the NSF.</p></section><references><p>J.R. Anderson and L.J. Schooler. 1991. Reflections of the environment in memory. <i>Psychological Science, </i>2(6):396^K)8.</p><p>A. Bachrach, B. Roark, A. Marantz, S. Whiffield-Gabrieli, C. Cardenas, and J.D.E. Gabrieli. 2009. Incremental prediction in naturalistic language pro­cessing: An fMRI study. <i>In preparation.</i></p><p>D. Bates, M. Maechler, and B. Dai, 2008. <i>Ime4: Linear mixed-effects models using S4 classes. </i>R package version 0.999375-20.</p><p>S. Bestmann, L.M. Harrison, F. Blankenburg, R.B. Mars, R Haggard, and K.J. Friston. 2008. Influence of uncertainty and surprise on human corticospinal excitability during preparation for action. <i>Current Biology, </i>18:775-780.</p><p>M. Ferrara Boston, J.T. Hale, R. Kliegl, U. Patil, and S. Vasishth. 2008a. Parsing costs as predictors of reading difficulty: An evaluation using the Pots­dam sentence corpus. <i>Journal of Eye Movement Re­search, </i>2(1): 1-12.</p><p>M. Ferrara Boston, J.T. Hale, R. Kliegl, and S. Va­sishth. 2008b. Surprising parser actions and read­ing difficulty. In <i>Proceedings ofACL-08:HLT, Short Papers, </i>pages 5-8.</p><p>D.C. Bradley. 1983. <i>Computational Distinctions of Vocabulary Type. </i>Indiana University Linguistics Club, Bloomington.</p><p>C. Chelba and F. Jelinek. 1998. Exploiting syntactic structure for language modeling. In <i>Proceedings of ACL-COLING, </i>pages 225-231.</p><p>M.J. Collins and B. Roark. 2004. Incremental parsing with the perceptron algorithm. In <i>Proceedings of ACL, </i>pages 111-118.</p><p>K.A. DeLong, T.P Urbach, and M. Kutas. 2005. Prob­abilistic word pre-activation during language com­prehension inferred from electrical brain activity. <i>Nature Neuroscience, </i>8(8): 1117-1121.</p><p>V. Demberg and F. Keller. 2008. Data from eye-tracking corpora as evidence for theories of syntactic processing complexity. <i>Cognition, </i>109(2): 193-210.</p><p>J. Earley. 1970. An efficient context-free parsing algo­rithm. <i>Communications of the ACM, </i>6(8):451^155.</p><p>L. Frazier. 1985. Syntactic complexity. In D.R. Dowty, L. Karttunen, and A.M. Zwicky, editors, <i>Natural Language Parsing. </i>Cambridge University Press, Cambridge, UK.</p><p>K. Gabani, M. Sherman, T. Solorio, and Y. Liu. 2009. A corpus-based approach for the prediction of language impairment in monolingual English and Spanish-English bilingual children. In <i>Proceedings ofNAA CL-HLT.</i></p><p>S.M. Garnsey, N.J. Pearlmutter, E. Myers, and M.A. Lotocky. 1997. The contributions of verb bias and plausibility to the comprehension of temporarily am­biguous sentences. <i>Journal of Memory and Lan­guage, </i>37(l):58-93.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">332</doubt><page local="10" global="333"/><p>E. Gibson. 1998. Linguistic complexity: locality of syntactic dependencies. <i>Cognition, </i>68(1): 1-76.</p><p>E. Gibson. 2006. The interaction of top-down and bottom-up statistics in the resolution of syntactic category ambiguity. <i>Journal of Memory and Lan­guage, </i>54(3):363-388.</p><p>J.T. Hale. 2001. A probabilistic Earley parser as a psycholinguistic model. In <i>Proceedings of the 2nd meeting ofNAACL.</i></p><p>J.T. Hale. 2003. The information conveyed by words in sentences. <i>Journal of Psycholinguistic Research, </i>32(2): 101-123.</p><p>J.T. Hale. 2006. Uncertainty about the rest of the sen­tence. <i>Cognitive Science, </i>30(4):643-672.</p><p>J. Henderson. 2003. Inducing history representations for broad coverage statistical parsing. In <i>Proceed­ings ofHLT-NAACL, </i>pages 24-31.</p><p>R. Hyman. 1953. Stimulus information as a determi­nant of reaction time. <i>Journal of Experimental Psy­chology: General, </i>45(3): 188-96.</p><p>F. Jelinek and J. Lafferty. 1991. Computation of the probability of initial substring generation by stochastic context-free grammars. <i>Computational Linguistics, </i>17(3):315-323.</p><p>M. Johnson and B. Roark. 2000. Compact non-left-recursive grammars using the selective left-corner transform and factoring. In <i>Proceedings of COL-ING, </i>pages 355-361.</p><p>T. Klee and M.D. Fitzgerald. 1985. The relation be­tween grammatical development and mean length of utterance in morphemes. <i>Journal of Child Lan­guage, </i>12:251-269.</p><p>R. Levy. 2008. Expectation-based syntactic compre­hension. <i>Cognition, </i>106(3): 1126-1177.</p><p>K. Lund and C. Burgess. 1996. Producing high-dimensional semantic spaces from lexical co­occurrence. <i>Behavior Research Methods, Instru­ments, &amp; Computers, </i>28:203-208.</p><p>M.P. Marcus, B. Santorini, and M.A. Marcinkiewicz. 1993. Building a large annotated corpus of En­glish: The Penn Treebank. <i>Computational Linguis­tics, </i>19(2):313-330.</p><p>J. Nivre, J. Hall, J. Nilsson, A. Chanev, G. Eryigit, S. Kiibler, S. Marinov, and E. Marsi. 2007. Malt-parser: A language-independent system for data-driven dependency parsing. <i>Natural Language En­gineering, </i>13(2):95-135.</p><p>B. Roark, M. Mitchell, and K. Hollingshead. 2007. Syntactic complexity measures for detecting mild cognitive impairment. In <i>Proceedings of BioNLP Workshop at ACL, </i>pages 1-8.</p><p>B. Roark. 2001. Probabilistic top-down parsing and language modeling. <i>Computational Linguistics, </i>27(2):249-276.</p><p>B. Roark. 2004. Robust garden path parsing. <i>Natural Language Engineering, </i>10(1): 1-24.</p><p>K. Sagae, A. Lavie, and B. MacWhinney. 2005. Au­tomatic measurement of syntactic development in child langugage. In <i>Proceedings of ACL, </i>pages 197-204.</p><p>T. Solorio and Y. Liu. 2008. Using language models to identify language impairment in Spanish-English bilingual children. In <i>Proceedings of BioNLP Work­shop at ACL, </i>pages 116-117.</p><p>A. Stolcke. 1995. An efficient probabilistic context-free parsing algorithm that computes prefix proba­bilities. <i>Computational Linguistics, </i>21(2): 165-202.</p><p>W.L. Taylor. 1953. Cloze procedure: A new tool for measuring readability. <i>Journalism Quarterly, </i>30:415^133.</p><p>J.J.A. Van Berkum, CM. Brown, P. Zwitserlood, V.Kooijman, and P. Hagoort. 2005. Anticipat­ing upcoming words in discourse: Evidence from ERPs and reading times. <i>Learning and Memory, </i>31(3):443^167.</p><p>V.H. Yngve. 1960. A model and an hypothesis for lan­guage structure. <i>Proceedings of the American Philo­sophical Society, </i>104:444^166.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">333</doubt></references></body></article>