<?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="502"/><title>A Simple Domain-Independent Probabilistic Approach to Generation</title><pubinfo>Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing,pages 502-512, MIT, Massachusetts, USA, 9-11 October 2010. ©2010 Association for Computational Linguistics</pubinfo><author surname="Angeli" givenname="Gabor"><org  name="UC Berkeley" country="USA" city="Berkeley"/></author><author surname="Liang" givenname="Percy"><org  name="UC Berkeley" country="USA" city="Berkeley"/></author><author surname="Klein" givenname="Dan"><org  name="UC Berkeley" country="USA" city="Berkeley"/></author></firstpageheader><frontmatter><p><b>A Simple Domain-Independent Probabilistic Approach to Generation</b></p><p><b>Gabor Angeli Percy Liang Dan Klein</b></p><p>UC Berkeley UC Berkeley UC Berkeley</p><p>Berkeley, CA 94720 Berkeley, CA 94720 Berkeley, CA 94720</p><p>gangeli@berkeley.edu pliang@cs.berkeley.edu klein@cs.berkeley.edu</p></frontmatter><abstract>We present a simple, robust generation system which performs content selection and surface realization in a unified, domain-independent framework. In our approach, we break up the end-to-end generation process into a se­quence of local decisions, arranged hierar­chically and each trained discriminatively. We deployed our system in three different domains—Robocup sportscasting, technical weather forecasts, and common weather fore­casts, obtaining results comparable to state-of-the-art domain-specific systems both in terms of BLEU scores and human evaluation. </abstract></header><body><section number="1" title="Introduction"><p>In this paper, we focus on the problem of generat­ing descriptive text given a world state represented by a set of database records. While existing gen­eration systems can be engineered to obtain good performance on particular domains (e.g., Dale et al. (2003), Green (2006), Turner et al. (2009), Re­iter et al. (2005), <i>inter alia), </i>it is often difficult to adapt them across different domains. Further­more, <i>content selection </i>(what to say: see Barzilay and Lee (2004), Foster and White (2004), <i>inter alia) </i>and <i>surface realization </i>(how to say it: see Ratna-</p><doubt alpha="55.3" length="47" tooSmall="False" monospace="0.0">parkhi (2002), Wong and Mooney (2007), Chen and</doubt><p>Mooney (2008), Lu et al. (2009), etc.) are typically handled separately. Our goal is to build a simple, flexible system which is domain-independent and performs content selection and surface realization in a unified framework.</p><p>We operate in a setting in which we are only given examples consisting of (i) a set of database records (input) and (ii) example human-generated text de­scribing some of those records (output). We use the model of Liang et al. (2009) to automatically induce the correspondences between words in the text and the actual database records mentioned.</p><p>We break up the full generation process into a se­quence of local decisions, training a log-linear clas­sifier for each type of decision. We use a simple but expressive set of domain-independent features, where each decision is allowed to depend on the en­tire history of previous decisions, as in the model of Ratnaparkhi (2002). These long-range contextual dependencies turn out to be critical for accurate gen­eration.</p><p>More specifically, our model is defined in terms of three types of decisions. The first type chooses records from the database (macro content selection)—for example, wind speed, in the case of generating weather forecasts. The second type chooses a subset of fields from a record (micro con­tent selection)—e.g., the minimum and maximum temperature. The third type chooses a suitable tem­plate to render the content (surface realization)— e.g., <i>winds between </i>[min] <i>and </i>[max] <i>mph; </i>templates are automatically extracted from training data.</p><p>We tested our approach in three domains: ROBOCUP, for sportscasting (Chen and Mooney, 2008); SUMTIME, for technical weather forecast generation (Reiter et al., 2005); and WeatherGov, for common weather forecast generation (Liang et al., 2009). We performed both automatic (BLEU) and human evaluation.   On WeatherGov, we<page local="2" global="503"/></p><p>pass(arg1=purple6, arg2=purple3)</p><p>kick(arg1=purple3) badPass(arg1=purple3,arg2=pink9) turnover(arg1=purple3,arg2=pink9)</p><p><b>w: </b><i>purple3 made a bad pass that was picked off by pink9</i></p><p>(a) RoBQCUP</p><doubt alpha="63.3" length="330" tooSmall="False" monospace="0.0">temperature(time=5pm-6am,min=48,mean=53,max=61) windSpeed(time=5pm-6am,min=3,mean=6,max=11,mode=0-10) windDir(time=5pm-6am,mode=SSW) gust(time=5pm-6am,min=0,mean=0,max=0) skyCover(time=5pm-9pm,mode=0-25) skyCover(time=2am-6am,mode=75-100) precipPotential(time=5pm-6am,min=2,mean=14,max=20) rainChance(time=5pm-6am,mode=someChance)</doubt><p><b>w: </b><i>a 20 percent chance of showers after midnight . increasing clouds with a low around 48 southwest wind between 5 and 10 mph</i></p><p>(b) WeatherGov (c) SumTime</p><doubt alpha="57.8" length="185" tooSmall="False" monospace="0.0">wind10m(time=6am,dir=SW,min=16,max=20,gust_min=0,gust_max=-) wind10m(time=9pm,dir=SSW,min=28,max=32,gust_min=40,gust_max=-) wind10m(time=12am,dir=-,min=24,max=28,gust_min=36,gust_max=-)</doubt><doubt alpha="58.4" length="89" tooSmall="False" monospace="0.0">w:sw 16 - 20 backing ssw 28 - 32 gusts40by mid evening easing24- 28 gusts 36 late evening</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">s:</doubt><p>Figure 1: Example scenarios (a scenario is a world state s paired with a text w) for each of the three domains. Each row in the world state denotes a record. Our generation task is to map a world state s (input) to a text w (output). Note that this mapping involves both content selection and surface realization.</p><p>achieved a BLEU score of 51.5 on the combined task of content selection and generation, which is more than a two-fold improvement over a model similar to that of Liang et al. (2009). On Robocup and SumTime, we achieved results comparable to the state-of-the-art. most importantly, we obtained these results with a general-purpose approach that we be­lieve is simpler than current state-of-the-art systems.</p></section><section number="2" title="Setup and Domains"><p>Our goal is to generate a text given a world state. The <i>world state, </i>denoted s, is represented by a set of database records. Define t to be a set of record types, where each record type t g t is associated with a set of fields Fields(t). Each <i>record r </i>g s has a record type r.t g t and a <i>field value </i><i>r.v[f</i><i> </i>] for each field <i>f G </i>Fields (t). The <i>text, </i>denoted w, is represented by a sequence of tokenized words. We use the term <i>scenario </i>to denote a world state s paired with a text w.</p><p>in this paper, we conducted experiments on three domains, which are detailed in the following subsec­tions. Example scenarios for each domain are de­tailed in Figure 1.</p><subsection number="2.1" title="Robocup: Sportscasting"><p>A world state in the Robocup domain is a set of event records <i>(meaning representations </i>in the termi­nology of Chen and Mooney (2008)) generated by a robot soccer simulator. For example, the record pass(arg1=pink1,arg2=pink5) denotes a passing event; records of this type (pass) have two fields: arg1 (the agent) and arg2 (the recipient). As the game progresses, human commentators talk about some of the events in the game, e.g., <i>purple3 made a bad pass that was picked off by pink9.</i></p><p>We used the dataset created by Chen and Mooney (2008), which contains 1919 scenarios from the 2001-2004 Robocup finals. Each scenario con­sists of a single sentence representing a fragment of a commentary on the game, paired with a set of candidate records, which were recorded within five seconds of the commentary. The records in the Robocup dataset data were aligned by Chen and Mooney (2008). Each scenario contains on average |s| = 2.4 records and 5.7 words. See Figure 1(a) for an example of a scenario. Content selection in this domain is choosing the single record to talk about, and surface realization is talking about it.</p><page local="3" global="504"/></subsection><subsection number="2.2" title="SumTime: Technical Weather Forecasts"><p>Reiter et al. (2005) developed a generation system and created the SumTime-Meteo corpus, which consists of marine wind weather forecasts used by offshore oil rigs, generated by the output of weather simulators. More specifically, these forecasts de­scribe various aspects of the wind at different times during the forecast period.</p><p>We used the version of the SumTime-Meteo corpus created by Belz (2008). The dataset consists of 469 scenarios, each containing on average | s| = 2.6 records and 16.2 words. See Figure 1(c) for an example of a scenario. This task requires no content selection, only surface realization: The records are given in some fixed order and the task is to generate from each of these records in turn; of course, due to contextual dependencies, these records cannot be generated independently.</p></subsection><subsection number="2.3" title="WeatherGov: Common Weather Forecasts"><p>In the WeatherGov domain, the world state con­tains detailed information about a local weather forecast (e.g., temperature, rain chance, etc.). The text is a short forecast report based on this informa­tion.</p><p>We used the dataset created by Liang et al. (2009). The world state is summarized by records which ag­gregate measurements over selected time intervals. The dataset consists of 29,528 scenarios, each con­taining on average |s| =36 records and 28.7 words. See Figure 1(b) for an example of a scenario.</p><p>While SumTime and WeatherGov are both weather domains, there are significant differences between the two. SumTime forecasts are in­tended to be read by trained meteorologists, and thus the text is quite abbreviated. on the other hand, WeatherGov texts are intended to be read by the general public and thus is more English-like. Fur­thermore, SumTime does not require content selec­tion, whereas content selection is a major focus of WeatherGov. Indeed, on average, only 5 of 36 records are actually mentioned in a WeatherGov scenario. Also, WeatherGov is more complex: The text is more varied, there are multiple record types, and there are about ten times as many records in each world state.</p><p>Generation Process</p><p>for <i>i </i><i>= 1,</i>2,... : <b>choose </b>a record <i>ri </i>g <b>s </b>if <i>r</i><i>i = </i>stop: return <b>choose </b>a field set <i>Fi </i><i>c </i>Fields(ri.t) <b>choose </b>a template <i>T</i><i>i </i><i>G </i>Templates (ri.t, Fi)</p><p>Figure 2: Pseudocode for the generation process. The generated text w is a deterministic function of the decisions.</p></subsection></section><section number="3" title="The Generation Process"><p>To model the process of generating a text w from a world state s, we decompose the generation process into a sequence of local decisions. There are two as­pects of this decomposition that we need to specify: (i) how the decisions are structured; and (ii) what pieces of information govern the decisions.</p><p>The decisions are structured hierarchically into three types of decisions: (i) <i>record decisions, </i>which determine which records in the world state to talk about (macro content selection); (ii) <i>field set deci­sions, </i>which determine which fields of those records to mention (micro content selection); and (iii) <i>tem­plate decisions, </i>which determine the actual words to use to describe the chosen fields (surface realiza­tion). Figure 2 shows the pseudocode for the gen­eration process, while Figure 3 depicts an example of the generation process on a WeatherGov sce­nario.</p><p>Each of these decisions is governed by a set of feature templates (see Figure 4), which are repre­sented as functions of the current decision and past decisions. The feature weights are learned from training data (see Section 4.3).</p><p>We chose a set of generic domain-independent feature templates, described in the sections below. These features can, in general, depend on the current decision and <i>all </i>previous decisions. For example, re­ferring to Figure 4, <b>R2 </b>features on the record choice depend on all the previous record decisions, and <b>R5 </b>features depend on the most recent template deci­sion. This is in contrast with most systems for con­tent selection (Barzilay and Lee, 2004) and surface realization (Belz, 2008), where decisions must de­compose locally according to either a graph or tree. The ability to use global features in this manner is<page local="4" global="505"/></p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">World</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">state</doubt><p><b>Decisions</b> skyCoveri: skyCover(time=5pm-6am,mode=50-75) ri = skyCoveri r2 = temperaturei <b>Text </b><i>mostly cloudy , with a low around 45 .</i><i></i></p><doubt alpha="66.7" length="60" tooSmall="False" monospace="0.0">temperature^ temperature(time=5pm-6am,min=44,mean=49,max=60)</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">Record</doubt><doubt alpha="64.7" length="34" tooSmall="False" monospace="0.0">Field setFi= {mode}F2= {time, min}</doubt><doubt alpha="64.5" length="62" tooSmall="False" monospace="0.0">Template     Ti=(mostly cloudy ,)T2=(with a low around[min] .)</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">F2= {time, min}</doubt><doubt alpha="66.7" length="27" tooSmall="False" monospace="0.0">T2=(with a low around[min])</doubt><p><b>Specific active (nonzero) features for highlighted decisions</b></p><doubt alpha="60.0" length="60" tooSmall="False" monospace="0.0">(R1)[r2.t = temperature and (ri.t, rg.t) = (skyCover,start)]</doubt><doubt alpha="59.9" length="192" tooSmall="False" monospace="0.0">[r2.t = temperature and (ri.t) = (skyCover)](R2)[r2.t = temperature and {ri.t} = {skyCover}](R3)[r2.t = temperature andrj.t= temperatureVj &lt; 2](R4)[r2.t = temperature and r2.v[time] = 5pm-6am]</doubt><doubt alpha="60.0" length="40" tooSmall="False" monospace="0.0">[r2.t = temperature and r2.v[min] = low]</doubt><doubt alpha="61.0" length="41" tooSmall="False" monospace="0.0">[r2.t = temperature and r2.v[mean] = low]</doubt><doubt alpha="62.8" length="43" tooSmall="False" monospace="0.0">[r2.t = temperature and r2.v[max] = medium]</doubt><doubt alpha="42.9" length="21" tooSmall="False" monospace="0.0">(F1)[F2= {time, min}]</doubt><doubt alpha="48.3" length="87" tooSmall="False" monospace="0.0">(F2)[F2= {time, min} and r2.v[time] = 5pm-6am](F2)[F2= {time, min} and r2.v[min] = low]</doubt><doubt alpha="54.8" length="42" tooSmall="False" monospace="0.0">(W1)   [Base(T2)=(with a low around[min])]</doubt><doubt alpha="65.8" length="38" tooSmall="False" monospace="0.0">[Coarse(T2)=(with a[time]around[min])]</doubt><doubt alpha="53.7" length="67" tooSmall="False" monospace="0.0">(W2)   [Base(T2)=(with a low around[min]) and r2.v[time] = 5pm-6am]</doubt><doubt alpha="61.0" length="172" tooSmall="False" monospace="0.0">[Coarse(T2)=(with a[time]around[min]) and r2.v[time] = 5pm-6a[Base(T2)=(with a low around[min]) and r2.v[min] = low][Coarse^)=(with a[time]around[min]) and r2.v[min] = low]</doubt><doubt alpha="65.4" length="26" tooSmall="False" monospace="0.0">(W3)logî?lm(with|cloudy ,)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">r3= stop</doubt><p>Figure 3: The generation process on an example WeatherGov scenario. The figure is divided into two parts: The upper part of the figure shows the generation of text from the world state via a sequence of seven decisions (in boxes). Three of these decisions are highlighted and the features that govern these decisions are shown in the lower part of the figure. Note that different decisions in the generation process would result in different features being active (nonzero).</p><p><b>Feature Templates</b></p><p>Figure 4: Feature templates that govern the record, field set, and template decisions. Each line specifies the name, informal description, and formal description of a set of features, obtained by ranging * over possible values (for example, for <i>[ri.t = </i>*<i>]</i>, * ranges over all record types T). Notation: [e] returns 1 if the expression e is true and 0 if it is false. These feature templates are domain-independent; that is, they are used to create features automatically across domains. Feature templates marked with t are included in our baseline system (Section 5.2).</p><p>one of the principal advantages of our approach. <b>3.1   Record Decisions</b></p><p>Record decisions are responsible for macro content selection. Each record decision chooses a record ri from the world state s according to features of the following types:</p><p><b>R1 </b>captures the discourse coherence aspect of content selection; for example, we learn that windSpeed tends to follow windDir (but not always).<page local="5" global="506"/> <b>R2 </b>captures an unordered notion of coherence—simply which sets of record types are preferable; for example, we learn that rainChance is not generated if sleetChance already was men­tioned. <b>R3 </b>is a coarser version of <b>R2, </b>capturing how likely it is to propose a record of a type that has already been generated. <b>R4 </b>captures the important aspect of content selection that the records chosen depend on their field values;<footnote anchor="1"/> for example, we learn that snowChance is not chosen unless there is snow. <b>R5 </b>allows the language model to indicate whether a S ToP record is appropriate; this helps prevent sen­tences from ending abruptly.</p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Record</b></p></td><td class="cell"><p><b>Rlt</b></p></td><td class="cell"><p>list of last k record types</p></td><td class="cell"><p>\ri.t<i> </i>= * and <i>(ri-1.t,..., Ti-k.t) </i>= *]     for k G {1,2}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>R2</b></p></td><td class="cell"><p>set of previous record types</p></td><td class="cell"><p>[r^t = * and <i>{rj.t </i>: j <i>&lt; i} </i>= <i>*</i><i>]</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>R3</b></p></td><td class="cell"><p>record type already generated</p></td><td class="cell"><p>[rj.t = <i>ri.t </i>for some j &lt; i]</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>R4</b></p></td><td class="cell"><p>field values</p></td><td class="cell"><p>[r;.t = * and <i>ri.v[f\ </i>= *]     for <i>f </i><i>G </i>FlELDS(r;.t)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>R5t</b></p></td><td class="cell"><p>stop under language model (LM)</p></td><td class="cell"><p><i>[ri.t </i>= stop<b>] </b>x logplm<b>(</b>stop | previous two words generated)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Field set</b></p></td><td class="cell"><p><b>Fit</b></p></td><td class="cell"><p>field set</p></td><td class="cell"><p>[Fi = *]</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>F2</b></p></td><td class="cell"><p>field values</p></td><td class="cell"><p>[Fi = * and ri.v[f\ = *]    for f G Fi</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Template</b></p></td><td class="cell"><p><b>W1t</b></p></td><td class="cell"><p>base/coarse generation template</p></td><td class="cell"><p><i>[h(Ti) </i>= *]    for <i>h </i><i>G </i>{Base, Coarse}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>W2</b></p></td><td class="cell"><p>field values</p></td><td class="cell"><p><i>[h(Ti) </i>= * and ri.v[f \ = *]    for f G Fi, h G {Base, Coarse}</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>W3t</b></p></td><td class="cell"><p>first word of template under LM</p></td><td class="cell"><p>logpLM (first word in Ti | previous two words)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><subsection number="3.2" title="Field Set Decisions"><p>Field set decisions are responsible for micro con­tent selection, i.e., which fields of a record are men­tioned. Each field set decision chooses a subset of fields Fi from the set of fields FlELDS(ri.t) of the record ri that was just generated. These decisions are made based on two types of features:</p><p><b>F1 </b>captures which sets of fields are talked about together; for example, we learn that {mean} and {min, max} are preferred field sets for the windSpeed record. By defining features on the en­tire field set, we can capture any correlation structure over the fields; in contrast, Liang et al. (2009) gen­erates a sequence of fields in which a field can only depend on the previous one.</p><p><b>F2 </b>allows the field set to be chosen based on the values of the fields, analogously to <b>R4.</b></p></subsection><subsection number="3.3" title="Template Decisions"><p>Template decisions perform surface realization. A template is a sequence of elements, where each ele­ment is either a word (e.g., <i>around) </i>or a field (e.g., [min]). Given the record ri and field set Fi that we are generating from, the goal is to choose a template Ti (Section 4.3.2 describes how we define the set of possible templates). The features that govern the choice of Ti are as follows:</p><p><b>W1 </b>captures a priori preferences for generation templates given field sets. There are two ways to control this preference, BASE and COARSE.</p><footnote label="1">We map a numeric field value onto one of five categories (very-low, low, medium, high, or very-high) based on its value with respect to the mean and standard deviation of values of that field in the training data.</footnote><p>BASE(Ti) denotes the template Ti itself, thus allow­ing us to remember exactly which templates were useful. To guard against overfitting, we also use COARSE(Ti), which maps Ti to a coarsened version of Ti, in which more words are replaced with their associated fields (see Figure 5 for an example).</p><p><b>W2 </b>captures a dependence on the values of fields in the field set, and is analogous to <b>R4 </b>and <b>F2. </b>Fi­nally, <b>W3 </b>contributes a language model probability, to ensure smooth transitions between templates.</p><p>After Ti has been chosen, each field in the tem­plate is replaced with a word given the correspond­ing field value in the world state. In particular, a word is chosen from the parameters learned in the model of Liang et al. (2009). In the example in Fig­ure 3, the [min] field in T2 has value 44, which is rendered to the word <i>45 </i>(rounding and other noisy deviations are common in the WEATHERGOV do­main).</p></subsection></section><section number="4" title="Learning a Probabilistic Model"><p>Having described all the features, we now present a conditional probabilistic model over texts w given world states s (Section 4.1). Section 4.2 describes how to use the model for generation, and Section 4.3 describes how to learn the model.</p><subsection number="4.1" title="Model"><p>Recall from Section 3 that the generation process generates ri, Fi, Ti, r2, F2, T2,..., STOP. To unify notation, denote this sequence of decisions as d =</p><p>(db ..., d|d|).Our probability model is defined as follows:</p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">|d|</doubt><doubt alpha="25.0" length="28" tooSmall="False" monospace="0.0">p(d | s; 0)=FJ| d&lt;j ;0), (1)</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">j=i</doubt><p>where d&lt;j = ..., <i>d</i><i>j-i)</i><i> </i>is the history of de­cisions and 0 are the model parameters (feature weights). Note that the text w (the output) is a de­terministic function of the decisions d. We use the features described in Section 3 to define a log-linear model for each decision:</p><doubt alpha="37.9" length="58" tooSmall="False" monospace="0.0">| d&lt;j, s; 0) =veXP{^;d&lt;ds)T0}T01, (2)Eexp{^j(dj,d&lt;j, s)10}</doubt><p>where 0 are all the parameters (feature weights), is the feature vector for the j-th decision, and Dj is the domain of the j-th decision (either records, field sets, or templates).<page local="6" global="507"/></p><p>This chaining of log-linear models was used in Ratnaparkhi (1998) for tagging and parsing, and in Ratnaparkhi (2002) for surface realization. The abil­ity to condition on arbitrary histories is a defining property of these models.</p></subsection><subsection number="4.2" title="Using the Model for Generation"><p>Suppose we have learned a model with parameters 0 (how to obtain 0 is discussed in Section 4.3). Given a world state s, we would like to use our model to generate an output text w via a decision sequence d.</p><p>in our experiments, we choose d by sequentially choosing the best decision in a greedy fashion (until the stop record is generated):</p><p>which can be solved by maximize the (conditional) likelihood of the training data:</p><p>dj = argmaxp(dj | d&lt;j, s; 0).</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(3)</doubt><p>Alternatively, instead of choosing the best decision at each point, we can sample from the distribution: dj ~ p(dj | d&lt;j, s; 0), which provides more diverse generated texts at the expense of a slight degradation in quality.</p><p>Both greedy search and sampling are very effi­cient. Another option is to try to find the Viterbi decision sequence, i.e., the one with the maximum joint probability: d = argmaxd, p(d' | s; 0). How­ever, this computation is intractable due to features depending arbitrarily on past decisions, making dy­namic programming infeasible. We tried using beam search to approximate this optimization, but we ac­tually found that beam search performed worse than greedy. Belz (2008) also found that greedy was more effective than viterbi for their model.</p></subsection><subsection number="4.3" title="Learning"><p>Now we turn our attention to learning the parame­ters 0 of our model. We are given a set of N sce­narios {(s(i), w(i))}N=i as training data. Note that our model is defined over the decision sequence d which contains information not present in w. in Sec­tions 4.3.1 and 4.3.2, we show how we fill in this missing information to obtain d(i) for each training scenario i.</p><p>Assuming this missing information is filled, we end up with a standard supervised learning problem,</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">max</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">|dW|</doubt><p>Yllog p(d</p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">(i)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">j</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">d&lt;j ;0)</doubt><doubt alpha="7.7" length="13" tooSmall="False" monospace="0.0">-A||0||2, (4)</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">i=i</doubt><p>where A &gt; 0 is a regularization parameter. The ob­jective function in (4) is optimized using the stan­dard L-BFGS algorithm (Liu and Nocedal, 1989).</p><subsubsection number="4.3.1" title="Latent Alignments"><p>As mentioned previously, our training data in­cludes only the world state s and generated text w, not the full sequence of decisions d needed for train­ing. intuitively, we know <i>what </i>was generated but not <i>why </i>it was generated.</p><p>We use the model of Liang et al. (2009) to im­pute the decisions d. They introduce a generative model p(a, w|s), where the latent <i>alignment </i>a spec­ifies (1) the sequence of records that were chosen, (2) the sequence of fields that were chosen, and (3) which words in the text were spanned by the chosen records and fields. The model is learned in an unsu­pervised manner using EM to produce a observing only w and s.</p><p>An example of an alignment is given in the left part of Figure 5. This information specifies the record decisions and a set of fields for each record. Because the induced alignments can be noisy, we need to process them to obtain cleaner template de­cisions. This is the subject of the next section.</p></subsubsection><subsubsection number="4.3.2" title="Template Extraction"><p>Given an aligned training scenario (Figure 5), we would like to extract two types of templates.</p><p>For each record, an aligned training scenario specifies a sequence of fields and the text that is spanned by each field. We create a template by abstracting fields—that is, replacing the words spanned by a field by the field itself. We call the resulting template Coarse. The problem with us­ing this template directly is that fields can be noisy due to errors from the unsupervised model.</p><p>Therefore, we also create a Base template which only abstracts a subset of the fields. In particular, we define a <i>trigger pattern </i>which specifies a simple condition under which a field should be abstracted. For WeatherGov, we only abstract fields that<page local="7" global="508"/></p><p><b>Aligned training scenario</b></p><p>skyCover temperature COARSE     {[mode]) <i>{with a </i>[time] [min] [mean])</p><p>BASE <i>{most cloudy </i>,)     <i>{with a low around </i>[min] .) <b>Templates extracted</b></p><p>Figure 5: An example of template extraction from an imperfectly aligned training scenario. Note that these alignments are noisy (e.g., [mean] aligns to a period). Therefore, for each record (skyCover and temperature in this case), we extract two templates: (1) a Coarse template, which takes the text spanned by the record and abstracts away all fields in the scenario ([mode], [time], [min], and [mean] in the example); and (2) a Base template, which only abstracts away fields whose spanned text matches a simple pattern (e.g., numbers in WeatherGov, corresponding to [min] in the example).</p><p>span numbers; for SUMTIME, fields that span num­bers and wind directions; and for Robocup, fields that span words starting with <i>purple </i>or <i>pink.</i></p><p>For each record ri, we define Ti so that BASE(Ti) and COARSE(Ti) are the corresponding two ex­tracted templates. We restrict Fi to the set of ab­stracted fields in the Coarse template</p></subsubsection></subsection></section><section number="5" title="Experiments"><p>We now present an empirical evaluation of our sys­tem on our three domains—ROBOCUP, SUMTIME, and WeatherGov.</p><subsection number="5.1" title="Evaluation Metrics"><p><b>Automatic Evaluation </b>To evaluate surface real­ization (or, combined content selection and surface realization), we measured the BLEU score (Papineni et al., 2002) (the precision of 4-grams with a brevity penalty) of the system-generated output with respect to the human-generated output.</p><p>To evaluate macro content selection, we measured the Fi score (the harmonic mean of precision and recall) of the set of records chosen with respect to the human-annotated set of records.</p><p><b>Human Evaluation </b>We conducted a human eval­uation using Amazon Mechanical Turk. For each domain, we chose 100 scenarios randomly from the test set. We ran each system under consideration on each of these scenarios, and presented each resulting output to 10 evaluators.<footnote anchor="2"/> Evaluators were given in­structions to rank an output on the basis of English fluency and semantic correctness on the following scale:</p><p>Score <b>I </b>English Fluency <b>I </b>Semantic Correctness</p><footnote label="2">To minimize bias, we evaluated all the systems at once, randomly shuffling the outputs of the systems. The evaluators were not necessarily the same 10 evaluators.</footnote></subsection></section><section number="5" title="Flawless Perfect"></section><section number="4" title="Good Near Perfect"></section><section number="3" title="Non-native Minor Errors"></section><section number="2" title="Disfluent Major Errors"></section><section number="1" title="Gibberish Completely Wrong"><p>Evaluators were also given additional domain-specific information: (1) the background of the domain (e.g., that SumTime reports are techni­cal weather reports); (2) general properties of the desired output (e.g., that SumTime texts should mention every record whereas WEATHERGOV texts need not); and (3) peculiarities of the text (e.g., the suffix <i>ly </i>in SumTime should exist as a separate to­ken from its stem, or that <i>pink goalie </i>and <i>pink1 </i>have the same meaning in ROBOCUP).</p><subsection number="5.2" title="Systems"><p>We evaluated the following systems on our three do­mains:</p><p>• Human is the human-generated output.</p><p>• OurSystem uses all the features in Figure 4 and is trained according to Section 4.3.</p><p>• Baseline is OurSystem using a subset of the features (those marked with f in Fig­ure 4). In contrast to OURSYSTEM, the in­cluded features only depend on a local con­text of decisions in a manner similar to the generative model of Liang et al. (2009) and the pCRU-greedy system of Belz (2008). Baseline also excludes features that depend on values of the world state.</p><p>• The existing state-of-the-art domain-specific system for each domain.</p></subsection><subsection number="5.3" title="Robocup Results"><p>Following the evaluation methodology of Chen and Mooney (2008), we trained our system on three<page local="8" global="509"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Records:</p></td><td class="cell"><p>skyCoveri</p></td><td class="cell"><p></p></td><td class="cell"><p>temperaturei</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Fields:</p></td><td class="cell"><p>mode=50-75</p></td><td class="cell"><p></p></td><td class="cell"><p>time= 17-30</p></td><td class="cell"><p>min=44j [mean=49</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Text:</p></td><td class="cell"><p><i>mostly cloudy ,</i></p></td><td class="cell"><p><i>with a</i></p></td><td class="cell"><p>low <i>around</i></p></td><td class="cell"><p><i>45 .</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Records:</p><p>Baseline</p><p>OurSystem</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Human</doubt><p>Table 1: Robocup results. WASPER-GEN is described in Chen and Mooney (2008). The BLEU is reported on systems that use fixed human-annotated records (in other words, we evaluate surface realization given perfect content selection).</p><p>Table 2: SumTime results. The SumTime-Hybrid system is described in (Reiter et al., 2005); pCRU-greedy, in (Belz, 2008).</p><p>Records: passi Fields: arg1=purple10 <b>^^^H </b>arg2=purple9</p><p>Text:       <i>purplelO       passes back to purple9</i></p><p>Fields: Text:</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">passi</doubt><p>arg1=purple10j arg2=purple9 <i>purplelO       kicks to purple9</i> <i>purplelO       <u>passes </u></i><u>to|| <i>purple9</i></u></p><doubt alpha="57.1" length="35" tooSmall="False" monospace="0.0">arg1=purple10       XI[arg2=purple9</doubt><p>WASPER-GEN^BText: <i>purplelO passes to purple9</i></p><p>Figure 6: Outputs of systems on an example Robocup sce­nario. There are some minor differences between the outputs. Recall that OurSystem differs from Baseline mostly in the addition of feature <b>W2, </b>which captures dependencies be­tween field values (e.g., purplelO) and the template chosen (e.g., [arg1] <i>passes to </i>[arg2]). This allows us to capture value-dependent preferences for different realizations (e.g., <i>passes to </i>over <i>kicks to). </i>Also, Human uses <i>passes back to, </i>but this word choice requires knowledge of passing records in previous sce­narios, which none of the systems have access to. it would nat­ural, however, to add features that would capture these longer-range dependencies in our framework.</p><p>Robocup games and tested on the fourth, averaging over the four train/test splits. We report the average test accuracy weighted by the number of scenarios in a game. First, we evaluated macro content selec­tion. Table 1 shows that OurSystem significantly outperforms BASELINE and WASPER-GEN on Fi.</p><p>To compare with Chen and Mooney (2008) on surface realization, we fixed each system's record decisions to the ones given by the annotated data and enforced that all the fields of that record are chosen. Table 1 shows that OurSystem sig­nificantly outperforms Baseline and is compara­ble to WASPER-GEN on BLEU. On human eval­uation, OURSYSTEM outperforms BASELINE, but WASPER-GEN outperforms OURSYSTEM. See Figure 6 for example outputs from the various sys­tems.</p></subsection><subsection number="5.4" title="SumTime Results"><p>The SUMTIME task only requires micro content se­lection and surface realization because the sequence of records to be generated is fixed; only these as­pects are evaluated. Following the methodology of Belz (2008), we used five-fold cross validation.</p><p>We found that using the unsupervised model of Liang et al. (2009) to automatically produce aligned training scenarios (Section 4.3.1) was less effec­tive than it was in the other two domains due to two factors: (i) there are fewer training examples in SUMTIME and unsupervised learning typically works better with a large amount of data; and (ii) the alignment model does not exploit the temporal structure in the SumTime world state. Therefore, we used a small set of simple regular expressions to produce aligned training scenarios.</p><p>Table 2 shows that OURSYSTEM signif­icantly outperforms Baseline as well as SUMTIME-Hybrid, a hand-crafted system, on BLEU. Note that OURSYSTEM is domain-independent and has not been specifically tuned to SumTime. However, OurSystem is outper­formed by the state-of-the-art statistical system pCRU-greedy.</p><p><b>Custom Features </b>One of the advantages of our feature-based approach is that it is straightforward to incorporate domain-specific features to capture spe­cific properties of a domain. To this end, we define the following set of feature templates in place of our generic feature templates from Figure 4:</p><doubt alpha="63.2" length="19" tooSmall="False" monospace="0.0">• F1':Value of time</doubt><p><b>• F2':  </b>Existence of gusts/wind direction/wind speeds</p><p><b>• W1':  </b>Change in wind direction (clockwise, counterclockwise, or none)</p><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>System</p></td><td class="cell"><p>Fi</p></td><td class="cell"><p>BLEU*</p></td><td class="cell"><p>English Fluency</p></td><td class="cell"><p>Semantic Correctness</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Baseline</p></td><td class="cell"><p>78.7</p></td><td class="cell"><p>24.8</p></td><td class="cell"><p>4.28 ± 0.78</p></td><td class="cell"><p>4.15 ± 1.14</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>OurSystem</p></td><td class="cell"><p>79.9</p></td><td class="cell"><p>28.8</p></td><td class="cell"><p>4.34 ± 0.69</p></td><td class="cell"><p>4.17 ± 1.21</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WASPER-GEN</p></td><td class="cell"><p>72.0</p></td><td class="cell"><p>28.7</p></td><td class="cell"><p>4.43 ± 0.76</p></td><td class="cell"><p>4.27 ± 1.15</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Human</p></td><td class="cell"><p>—</p></td><td class="cell"><p>—</p></td><td class="cell"><p>4.43 ± 0.69</p></td><td class="cell"><p>4.30 ± 1.07</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>BLEU</p></td><td class="cell"><p>English Fluency</p></td><td class="cell"><p>Semantic Correctness</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Baseline</p></td><td class="cell"><p>32.9</p></td><td class="cell"><p>4.23</p></td><td class="cell"><p>±</p></td><td class="cell"><p>0.71</p></td><td class="cell"><p>4.26</p></td><td class="cell"><p>±</p></td><td class="cell"><p>0.85</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>OurSystem</p></td><td class="cell"><p>55.1</p></td><td class="cell"><p>4.25</p></td><td class="cell"><p>±</p></td><td class="cell"><p>0.69</p></td><td class="cell"><p>4.27</p></td><td class="cell"><p>±</p></td><td class="cell"><p>0.82</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>OurSystem-Custom</p></td><td class="cell"><p>62.3</p></td><td class="cell"><p>4.12</p></td><td class="cell"><p>±</p></td><td class="cell"><p>0.78</p></td><td class="cell"><p>4.33</p></td><td class="cell"><p>±</p></td><td class="cell"><p>0.91</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>pCRU-greedy</p></td><td class="cell"><p>63.6</p></td><td class="cell"><p>4.18</p></td><td class="cell"><p></p></td><td class="cell"><p>0.71</p></td><td class="cell"><p>4.49</p></td><td class="cell"><p></p></td><td class="cell"><p>0.73</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SumTime-Hybrid</p></td><td class="cell"><p>52.7</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>Human</p></td><td class="cell"><p>—</p></td><td class="cell"><p>4.09 ± 0.83</p></td><td class="cell"><p>4.37 ± 0.87</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></tr></table><page local="9" global="510"/><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">Text:</doubt><p>Baseline</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Human</doubt><p>OurSystem-Custom pCRU-greedy</p><p>Records: windDir<b>i </b>^ I windDir2</p><doubt alpha="50.0" length="80" tooSmall="False" monospace="0.0">Fields: |dir=nne||min=18|r~||max=22||gust-min=30 min=10|r~||max=14    time=12amI</doubt><doubt alpha="47.4" length="78" tooSmall="False" monospace="0.0">gusts 30     gradually decreasing      10      -       14      by late evening</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">18</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">22</doubt><p>Records: windDir1 11 windDir2 I windDir<b>2</b></p><doubt alpha="51.5" length="66" tooSmall="False" monospace="0.0">Fields: dir=nne min=18|r~||max=22||gust-min=30 ||min=10jr~||max=14</doubt><doubt alpha="44.4" length="117" tooSmall="False" monospace="0.0">Records: windDir1Fields: dir=nne|[min=18|H|[max=22 gust-min=30 Text:     nne   ||18    ||-||     22    \\    gusts 30</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">10</doubt><doubt alpha="54.8" length="31" tooSmall="False" monospace="0.0">^ Ifmin=10HIfmax=141time=12am \</doubt><doubt alpha="53.3" length="60" tooSmall="False" monospace="0.0">gradually decreasing10    ||-||     14    \\by late evening]</doubt><doubt alpha="55.4" length="56" tooSmall="False" monospace="0.0">Text:nne 18 - 22 gusts 30 easing 10 - 14 by late evening</doubt><p>Figure 7: Outputs of systems on an example SumTime scenario. Two notable differences between OurSystem-Custom and Baseline arise due to OurSystem-Custom's value-dependent features. For example, OurSystem-Custom can choose whether to include the time field (windDir2) or not (windDir<b>i), </b>depending on the value of the time <b>(F1'), </b>thereby improving content selection. OurSystem-Custom also improves surface realization, choosing <i>gradually decreasing </i>over Baseline's <i>increasing. </i>Interestingly, this improvement comes from the joint effort of two features: <b>W2' </b>prefers <i>decreasing </i>over <i>increasing </i>in this case, and <b>W5' </b>adds the modifier <i>gradually. </i>An important strength of log-linear models is the ability to combine soft preferences from many features.</p><p><b>• W2': </b>Change in wind speed</p><p><b>• W3': </b>Change in wind direction and speed</p><p><b>• W4': </b>Existence of gust min and/or max</p><p><b>• W5': </b>Time elapsed since last record</p><doubt alpha="65.5" length="55" tooSmall="False" monospace="0.0">• W6':Whether wind is a cardinal direction (N, E, S, W)</doubt><p>The resulting system, which we call OurSystem-Custom, obtains a BLEU score which is comparable to pCRU-greedy.</p><p>An important aspect of our system that it is flexi­ble and quick to deploy. According to Belz (2008), SumTime-Hybrid took twelve person-months to build, while pCRU-greedy took one month. Having developed OurSystem in a domain-independent way, we only needed to do simple reformatting upon receiving the SumTime data. Furthermore, it took only a few days to develop the custom features above to create OurSystem-Custom, which has BLEU performance comparable to the state-of-the-art pCRU-greedy system.</p><p>We also conducted human evaluations on the four systems shown in Table 2. Note that this evalua­tion is rather difficult for Mechanical Turkers since SumTime texts are rather technical compared to those in other domains. interestingly, all systems outperform Human on English fluency; this result corroborates the findings of Belz (2008). On se­mantic correctness, all systems perform comparably to Human, except pCRU-greedy, which performs slightly better. See Figure 7 for a comparison of the outputs generated by the various systems.</p><p>Table 3: WeatherGov results. The BLEU score is on joint content selection and surface realization and is modified to not penalize numeric deviations of at most 5.</p></subsection><subsection number="5.5" title="WeatherGov Results"><p>We evaluate the WeatherGov corpus on the joint task of content selection and surface realization. We split our corpus into 25,000 scenarios for train­ing, 1,000 for development, and 3,528 for testing. In WeatherGov, numeric field values are often rounded or noisily perturbed, so it is difficult to gen­erate precisely matching numbers. Therefore, we used a modified BLEU score where numbers dif­fering by at most five are treated as equal. Fur­thermore, WeatherGov is evaluated on the joint content selection and surface realization task, un­like Robocup, where content selection and surface realization were treated separately, and SumTime, where content selection was not applicable.</p><p>Table 3 shows the results. We see that OurSystem substantially outperforms Baseline, especially on BLEU score and semantic correctness. This difference shows that taking non-local context into account is very important in this domain. This result is not surprising, since WeatherGov is the most complicated of the three domains, and this complexity is exactly where non-locality is neces-<page local="10" global="511"/></p><doubt alpha="36.8" length="38" tooSmall="False" monospace="0.0">Text:nne 18      -       22 gusts 30ll</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Fi</p></td><td class="cell"><p>bleu*</p></td><td class="cell"><p>English Fluency</p></td><td class="cell"><p>Semantic Correctness</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Baseline</p></td><td class="cell"><p>22.1</p></td><td class="cell"><p>22.2</p></td><td class="cell"><p>4.07 ± 0.59</p></td><td class="cell"><p>3.41 ± 1.16</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>OurSystem</p></td><td class="cell"><p>65.4</p></td><td class="cell"><p>51.5</p></td><td class="cell"><p>4.12 ± 0.74</p></td><td class="cell"><p>4.22 ± 0.89</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Human</p></td><td class="cell"><p>—</p></td><td class="cell"><p>—</p></td><td class="cell"><p>4.14 ± 0.71</p></td><td class="cell"><p>3.85 ± 0.99</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Records:</p><p>OurSystem</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Human</doubt><p>Fields: Text:</p><p>Records: Fields: Text:</p><p>skyCover<b>i    </b>II temperature<b>i </b>11 windDir<b>i </b>11 windSpeed<b>i</b> <i>mostly cloudy ,  with a low around      57      .</i><i>      south      wind between      5      and      10      mph .</i></p><doubt alpha="47.5" length="61" tooSmall="False" monospace="0.0">cover=50-75 |time=5pm-6am| min=59     mode=sse min=7 max=15||</doubt><p>skyCoveri temperaturei windDiri windSpeedi <i><u>mostly cloudy ,\\with a low around</u>      59      .</i><i>  south wind between      7      and      <u>15    </u></i><u>||mph <i>.</i></u></p><doubt alpha="50.0" length="34" tooSmall="False" monospace="0.0">■^■JHHx min=59 x x min=7T~max=15l|</doubt><p>Figure 8: Outputs of systems on an example WeatherGov scenario. Most of the gains of OurSystem over Baseline come from improved content selection. For example, Baseline chooses rainChance because it happens to be the most common first record type in the training data. However, since OurSystem has features that depend on the value of rainChance (noChance in this case), it has learned to disprefer talking about rain when there is no rain. Also, OurSystem has additional features on the entire history of chosen records, which enables it to choose a better sequence of records.</p><p>sary. Interestingly, OurSystem even outperforms Human on semantic correctness, perhaps due to generating more straightforward renderings of the world state. Figure 8 describes example outputs for each system.</p></subsection></section><section number="6" title="Related Work"><p>There has been a fair amount of work both on con­tent selection and surface realization. in content se­lection, Barzilay and Lee (2004) use an approach based on local classification with edge-wise scores between local decisions. Our model, on the other hand, can capture higher-order constraints to enforce global coherence.</p><p>Liang et al. (2009) introduces a generative model of the text given the world state, and in some ways is similar in spirit to our model. Although that model is capable of generation in principle, it was de­signed for unsupervised induction of hidden align­ments (which is exactly what we use it for). Even if combined with a language model, generated text was much worse than our baseline.</p><p>The prominent approach for surface realization is rendering the text from a grammar. Wong and Mooney (2007) and Chen and Mooney (2008) use synchronous grammars that map a logical form, rep­resented as a tree, into a parse of the text. Soricut and Marcu (2006) uses tree structures called WiDL-expressions (the acronym corresponds to four opera­tions akin to the rewrite rules of a grammar) to repre­sent the realization process, and, like our approach, operates in a log-linear framework. Belz (2008) and Belz and Kow (2009) also perform surface realiza­tion from a PCFG-like grammar. Lu et al. (2009) uses a conditional random field model over trees. Other authors have performed surface realization us­ing various grammar formalisms, for instance CCG (White et al., 2007), HPSG (Nakanishi et al., 2005), and LFG (Cahill and van Genabith, 2006).</p><p>in each of the above cases, the decomposable structure of the tree/grammar enables tractability. However, we saw that it was important to include features that captured long-range dependencies. Our model is also similar in spirit to Ratnaparkhi (2002) in the use of non-local features, but we operate at three levels of hierarchy to include both content se­lection and surface realization.</p><p>One issue that arises with long-range dependen­cies is the lack of efficient algorithms for finding the optimal text. Koller and Striegnitz (2002) perform surface realization of a flat semantics, which is NP-hard, so they recast the problem as non-projective dependency parsing. Ratnaparkhi (2002) uses beam search to find an approximate solution. We found that a greedy approach obtained better results than beam search; Belz (2008) found greedy approaches to be effective as well.</p></section><section number="7" title="Conclusion"><p>We have developed a simple yet powerful generation system that combines both content selection and sur­face realization in a domain independent way. De­spite our approach being domain-independent, we were able to obtain performance comparable to the state-of-the-art across three domains. Additionally, the feature-based design of our approach makes it easy to incorporate domain-specific knowledge to increase performance even further.</p><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Records:</p></td><td class="cell"><p>rainChance<b>2</b></p></td><td class="cell"><p>none</p></td><td class="cell"><p><b>gusti</b></p></td><td class="cell"><p></p></td><td class="cell"><p>precipPotentiali</p></td><td class="cell"><p>x</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Baseline</p></td><td class="cell"><p>Fields:</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p><b>^^^^^H </b>||max=21</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x ||max=10</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Text:</p></td><td class="cell"><p><i>a chance of showers ,\</i></p></td><td class="cell"><p></p></td><td class="cell"><p><i>with gusts as high as 20</i></p></td><td class="cell"><p><i>mph .</i></p></td><td class="cell"><p><i>\ chance of precipitation is\\     10 \</i></p></td><td class="cell"><p><i>%.</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="11" global="512"/></section><references><p>R. Barzilay and L. Lee. 2004. Catching the drift: Prob­abilistic content models, with applications to genera­tion and summarization. In <i>Human Language Tech­nology and North American Association for Computa­tional Linguistics (HLT/NAACL).</i></p><p>A. Belz and E. Kow. 2009. System building cost vs. output quality in data-to-text generation. in <i>European Workshop on Natural Language Generation, </i>pages 16-24.</p><p>A. Belz. 2008. Automatic generation of weather forecast texts using comprehensive probabilistic generation­space models. <i>Natural Language Engineering, </i>14(4):1-26.</p><p>Aoife Cahill and Josef van Genabith. 2006. Robust pcfg-based generation using automatically acquired LFG approximations. in <i>Association for Computational Linguistics (ACL), </i>pages 1033-1040, Morristown, NJ, USA. Association for Computational Linguistics.</p><p>D. L. Chen and R. J. Mooney. 2008. Learning to sportscast: A test of grounded language acquisition.</p><p>in <i>International Conference on Machine Learning (ICML), </i>pages 128-135.</p><p>R. Dale, S. Geldof, and J. Prost. 2003. Coral: using natu­ral language generation for navigational assistance. in</p><p><i>Australasian computer science conference, </i>pages 35­44.</p><p>M. E. Foster and M. White. 2004. Techniques for text planning with XSLT. In <i>Workshop on NLP and XML:</i></p><p><i>RDF/RDFS and OWL in Language Technology, </i>pages 1-8.</p><p>N.Green. 2006. Generation of biomedical arguments for lay readers. in <i>International Natural Language Gen­eration Conference, </i>pages 114-121.</p><p>A. Koller and K. Striegnitz. 2002. Generation as de­pendency parsing. in <i>Association for Computational Linguistics (ACL), </i>pages 17-24.</p><p>P. Liang, M. i. Jordan, and D. Klein. 2009. Learning semantic correspondences with less supervision. in</p><p><i>Association for Computational Linguistics and Inter­national Joint Conference on Natural Language Pro­cessing (ACL-IJCNLP).</i></p><p>D. C. Liu and J. Nocedal. 1989. On the limited mem­ory method for large scale optimization. <i>Mathemati­cal Programming B, </i>45(3):503-528.</p><p>W. Lu, H. T. Ng, and W. S. Lee. 2009. Natural lan­guage generation with tree conditional random fields.</p><p>in <i>Empirical Methods in Natural Language Process­ing (EMNLP), </i>pages 400-409.</p><p>Hiroko Nakanishi, Yusuke Miyao, and Jun'ichi Tsujii. 2005. Probabilistic models for disambiguation of an</p><p>HPSG-based chart generator. In <i>Parsing '05: Pro­ceedings of the Ninth International Workshop on Pars­ing Technology, </i>pages 93-102, Morristown, NJ, USA. Association for Computational Linguistics. K. Papineni, S. Roukos, T. Ward, and W. Zhu. 2002. BLEU: A method for automatic evaluation of machine translation. in <i>Association for Computational Linguis­tics (ACL).</i></p><p>A. Ratnaparkhi. 1998. <i>Maximum entropy models for nat­ural language ambiguity resolution. </i>Ph.D. thesis, Uni­versity of Pennsylvania.</p><p>A. Ratnaparkhi. 2002. Trainable approaches to surface natural language generation and their application to conversational dialog systems. <i>Computer, Speech &amp; Language, </i>16:435-455.</p><p>E. Reiter, S. Sripada, J. Hunter, J. Yu, and I. Davy. 2005. Choosing words in computer-generated weather fore­casts. <i>Artificial Intelligence, </i>167:137-169.</p><p>R. Soricut and D. Marcu. 2006. Stochastic language generation using WiDL-expressions and its applica­tion in machine translation and summarization. in <i>As­sociation for Computational Linguistics (ACL), </i>pages 1105-1112.</p><p>R. Turner, Y. Sripada, and E. Reiter. 2009. Gener­ating approximate geographic descriptions. In <i>Eu­ropean Workshop on Natural Language Generation, </i>pages 42-49.</p><p>Michael White, Rajakrishnan Rajkumar, and Scott Mar­tin. 2007. Towards broad coverage surface realization with CCG. In <i>In Proceedings of the Workshop on Us­ing Corpora for NLG: Language Generation and Ma­chine Translation (UCNLG+MT).</i></p><p>Y. W. Wong and R. J. Mooney. 2007. Learning syn­chronous grammars for semantic parsing with lambda calculus. In <i>Association for Computational Linguis­tics (ACL), </i>pages 960-967.</p></references></body></article>