Elamur Research

Guided Neural Language Generation for Automated Storytelling

Paper · 2019 · Prithviraj Ammanabrolu, Ethan Tien, Wesley Cheung et al.

Summary

An automated storyteller can decide what happens next and still lose that decision when it writes the sentence. This paper studies that gap. Its starting point is a storytelling system that represents each plot action as an event, a short record of the verb and its participants. These records make it easier to learn patterns across stories that describe similar actions in different words. They also leave out information needed to write a complete sentence. The challenge is to supply that information while preserving who did what. A conventional sequence-to-sequence system often writes a plausible sentence whose action or participants differ from the event it was given. This makes the handoff from plot planning to text generation consequential.

The authors respond with a cascade of sentence generators. It first tries to find a related event in the training corpus and edit the sentence that went with it. If the match inspires too little confidence, it tries filling a grammatical template around the event words. The next option samples possible continuations to see whether a promising beginning is likely to yield a sentence that uses the input. A further search tracks which event words have appeared and can accept an output that meets its coverage requirement. Ordinary beam search provides the last fallback. The methods offer different combinations of flexibility and fidelity, and the cascade accepts an answer as soon as a stage meets its own criterion.

On held-out events from science-fiction television episode summaries, the cascade reaches 0.0481 BLEU-4 and 70.179 perplexity. The ordinary sequence-to-sequence baseline reaches 0.0425 BLEU-4 and 103.176 perplexity on the same test set. Both metrics favor the cascade, although they capture different properties and neither directly judges whether the sentence preserves the plot action. The reported sentences still contain category labels for nouns and entities, so this evaluation concerns the intermediate wording produced by the BLEU score comparison with similarly generalized references.

The authors also connect the cascade to an existing plot generator and examine examples of the full pipeline. Retrieval supplies 94.91% of the cascade’s outputs when events come from held-out human-written summaries, and 55.71% when the plot generator supplies them. Search with sampled continuations accounts for much more of the output in the latter setting. The examples show the components working together, along with cases where a sentence keeps a character or object but changes the action. The evidence is strongest for the choice among sentence-generation methods on held-out events, with the full pipeline illustrating how the problem changes once the inputs are themselves generated.

Deep dive: Guided Neural Language Generation for Automated Storytelling

Guided neural language generation turns abstract plot events into sentences by combining retrieval, templates, and constrained search. · about 34 minutes to read

The problem and its context

Deciding what happens and deciding how to say it

A plot is a sequence of actions that must make sense across a story. The authors describe the demands of plot generation in terms of consistency, dependencies that extend over multiple sentences, and knowledge about what normally happens in a situation. Consider what the distinction between an action and its wording buys the storyteller. The same action can be described with a short clause or embedded in a longer account that also gives a motive, introduces a setting, or identifies a participant. A system that represents the action separately can work with what the descriptions have in common. It still needs a way to turn its decision back into a sentence. The paper places that separation in the wider context of data-to-document generation.

Earlier storytelling systems addressed the plot problem with symbolic planning or case-based reasoning. In the authors’ account, these approaches required people to encode useful actions as operators or turn example stories into symbolic cases. The representation gave the system something explicit to plan or reason with. Preparing that material took work, and the resulting systems generally operated in relatively narrow domains. Learning from a collection of finished stories offered another way to obtain information about a domain. A system could learn what tends to follow what from examples that were already written.

The neural approaches discussed in the paper predict a next unit from a history. The unit can be a character, a word, or a sentence. Some prior work used recurrent networks with sentence embeddings, and another approach trained on a specialized collection such as the work of a single author. The authors emphasize a difficulty that becomes clear at the sentence level. The same plot action can appear in very different sentences, and an individual sentence can occur only once. Frequent words can give the learner many examples of their use without giving it many repeated examples of a particular action expressed as a particular sentence.

Some of the earlier storytelling work already divided guidance from prose. Yao and colleagues first planned a storyline and then generated a story from it. Fan and colleagues used a generated premise to guide the production of a passage. A premise gives the generator a compact description of what the passage is about. In Ammanabrolu and colleagues’ setup, guidance also comes in compact form, but it is supplied as an explicit record of the current action and its arguments. The plot generator produces a succession of those records. The sentence generator therefore faces a local instruction at each step of a larger story, whereas a premise guides a passage in Hierarchical Neural Story Generation.

Why an event is easier to learn and hard to write out

The direct predecessor is the event representation developed by Martin and colleagues. An event in this sense describes something that changes the state of the story world. It records the main action and the participants or other information needed to distinguish it. By replacing particular words with more general categories, events let the learner treat some actions as related even when their original sentences use different words. A particular character name, for instance, can become a numbered person tag. The number helps distinguish that character from another person while the tag makes their common role as a person explicit.

Martin and colleagues split the task at the event representation. Event-to-event generation decides which action should follow. It is responsible for producing the sequence that constitutes the plot. Event-to-sentence generation takes each action and expresses it in ordinary grammatical form. That division puts the latter component in a position of trust. If a plot sequence arranges for one character to send another through a location, the sentence should preserve who sends whom and where. Otherwise someone reading the prose receives a different sequence of events from the one the plot generator produced.

One way to treat event-to-sentence generation is as translation. The source is a sequence of event symbols, and the target is a sequence of sentence words. A recurrent encoder can read the source, and a recurrent decoder can predict the target one word at a time. This is the approach the paper uses as a baseline, following Martin and colleagues’ use of Sequence to Sequence Learning with Neural Networks.

The analogy to translation helps define the interface. It also raises the question of how much a sentence can recover from that interface. Event extraction discards details. A sentence saying that a character moved can specify a purpose or describe the place in several ways, all of which may collapse to the same event. A later component may reasonably supply different details from the original writer. Yet the discretion to choose those details is distinct from the discretion to replace the central action or exchange its participants. The paper asks how to give the generator enough freedom for the former while preserving the material the plot generator supplied.

The authors identify a further difficulty at deployment. Even after abstraction, relatively few training examples may share a given event. A plot generator can also assemble an event that never occurred in the sentence generator’s training set. Its subject, verb class, and object may all be familiar individually. Their particular combination can still be unfamiliar. A sentence predictor trained on paired examples then has to generalize both to the combination and to an appropriate way of expressing it. It can instead favor familiar prose from the training corpus, especially when the input offers a pattern it has rarely encountered.

This makes grammaticality and faithfulness separate evaluation questions. A fluent sentence can carry the wrong action. A sentence assembled around every required word can still fail to communicate the intended relation among them. And a sentence can preserve the action while differing from the human reference in vocabulary and structure. The paper’s design responds to all three possibilities by trying several ways of letting the event influence the sentence. Each method makes the input available at a different point, from retrieval of a training example to explicit constraints during decoding.

The method, step by step

From a plot summary to an event

The authors start with episode summaries and prepare them both as sequences of plot events and as examples of how to express individual events. They simplify alien names to make it easier to identify named entities. They also split sentences at subordinate clause boundaries and at conjunctions joining clauses, reinserting a subject where needed in the resulting sentences. The split follows part of the procedure used by Martin and colleagues. Its purpose is to make a sentence more likely to describe one event, giving the sentence generator a cleaner pairing between an action and the language used to express it. The treatment of names supports named entity recognition.

An event stores the following fields in order.

⟨s, v, p, o, m⟩

Here s is the subject of the verb, v is the verb, p is the preposition associated with the action, and o is the object. The field m can hold a modifier, the object of a preposition, or an indirect object. The angle brackets enclose the ordered record. Empty fields can appear, including an absent preposition or object. In the examples the paper uses ∅ for an empty field.

The words are stemmed and generalized, with the preposition exempt from this treatment. Named entities become numbered tags. Classes from VerbNet v3.3 replace verbs, and categories from WordNet v3.1 represent nouns. A noun category is represented as a synset, which identifies a word sense in the lexical resource. For the sentence-generation experiments, the authors also use sentence targets in which nouns are represented by synsets. As a consequence, translating an event into a generalized sentence means recovering the grammatical shape of a sentence while leaving some of its vocabulary abstract. The noun categories come from WordNet.

A sending event in the paper makes the arrangement concrete. Its subject and direct object are distinct numbered person tags. The verb belongs to a sending class, the preposition is through, and the last field holds a numbered location tag. The record tells the generator which person sends the other and which location is involved. A sentence still needs a suitable verb form and may need an article before the location. The human sentence associated with the event also includes a motive, an example of information the compact record leaves out.

Producing the event sequence

For the full storytelling demonstration, the paper adopts the event generator from Tambwekar and colleagues. It begins with a sequence-to-sequence network built from long short-term memory units, or LSTMs. These are recurrent units used to process sequences. The network learns on plot summaries represented as sequences of events, so its prediction concerns the next event in a plot.

The generator is then trained with a goal in mind using the REINFORCE policy-gradient algorithm. In this setup, an action taken by the generator receives a reward based on its relationship to a goal verb class, and that reward is used in updating the generator. The authors select goal classes that are suitable for the genre because they are often found near the ends of stories. They describe the reward as a product of a term based on the distance from a verb to the goal verb and a normalized frequency for the verb’s appearance before the goal in stories. They refer to Tambwekar and colleagues for the details of the calculation.

A starting sentence can thus be converted into an event, which the plot component uses to generate further events in pursuit of the goal. Each event can then be sent to the cascade for wording. The isolated evaluation of sentence generation can bypass the plot component by extracting its input events directly from held-out summaries. This is an important difference between the experiments. Both ask for sentences from event records, but only the full pipeline asks the sentence generator to handle actions proposed by a learned plot process.

From a starting sentence to generated story sentences

The steps in order.

From a starting sentence to generated story sentencesStep 1: Extract a generalized event from the starting sentence1. Extract a generalized event from the starting sentenceStep 2: Generate further events toward a goal verb class2. Generate further events toward a goal verb classStep 3: Pass each event to the sentence cascade3. Pass each event to the sentence cascadeStep 4: Try retrieval, templates, and search in order4. Try retrieval, templates, and search in orderStep 5: Accept the first candidate meeting its criterion5. Accept the first candidate meeting its criterionStep 6: Use ordinary beam search if earlier stages fail6. Use ordinary beam search if earlier stages fail

Defining the sentence-generation task

For each event, the sentence generator is to produce an ordered series of words. The target sequence is written as follows.

sᵗ = (sᵗ₀, sᵗ₁, …, sᵗₖ)

The superscript t identifies the current event’s position in the story sequence. The expression sᵗ denotes the entire sentence at that position. Each subscript identifies a word position within that sentence, beginning at 0 and ending at k. The ellipsis covers the intervening positions. Here sᵗ means the sentence as a whole. The s in the event tuple denotes its subject field.

The paper expresses the choice of a sentence as maximizing the following conditional probability over possible word sequences.

Pr(sᵗ ∣ eᵗ; θ)

Here Pr denotes probability, sᵗ is a possible sentence, and eᵗ is the current input event. The vertical bar says that the sentence is scored given that event. The symbol θ denotes the parameters of the generative system. This formulation allows several plausible sentences for an event. A practical decoder has to find a sufficiently good candidate among them, and the cascade supplements learned probabilities with checks or scores designed around what the input contributes.

Retrieve a similar event and edit its sentence

The first stage, called RetEdit, starts from a precedent in the training data. It learns to represent each event as a vector, or embedding, so that distance between vectors can serve as a measure of how similar events are for this task. To produce these representations, the authors train an encoder-decoder to reconstruct a sentence from its event. The event representation learned for that purpose becomes the basis of retrieval. The goal is to find a useful example for writing a sentence, which can involve relationships among event fields that would be missed by counting identical symbols.

A separate editor learns from the original input event and a retrieved example consisting of both an event and its associated sentence. In training, it maximizes the likelihood of the target sentence given these inputs. At generation time, the retriever finds the closest training event and passes its pair to the editor along with the event that needs wording. The editor can reuse a sentence structure from the example and alter the language where the two events differ. Its attention mechanism can emphasize relevant portions of the inputs while writing, and copying gives it a way to carry input material directly into the output. The architecture follows the approach in Incorporating Copying Mechanism in Sequence-to-Sequence Learning.

The authors initialize the word vectors with GloVe, assigning random initial vectors to words outside that vocabulary. Training pairs determine the weights of the retriever and editor. Validation data supply the confidence criterion used later in the cascade, and the test set is held for evaluation. These initialization settings concern the words read and produced by the system. The learned event embedding is the representation on which the nearest-neighbor search depends. The pretrained word vectors come from GloVe.

The editor decodes with beam search. A beam is a bounded set of promising partial sentences. After extending them with candidate next words, the decoder keeps only a limited number of possibilities for further expansion. The RetEdit confidence used in the cascade depends on the retrieval distance, with confidence proportional to the following quantity.

1 − d

In this expression d is the distance from the input event to the retrieved training event, and 1 is the constant from which that distance is subtracted. A nearby precedent gives a higher score. When the distance is 0, the system returns the retrieved sentence directly. This can happen even if there are several possible sentences for the same event, since the exact event match leaves a choice of wording unresolved.

Retrieval gives the generator access to kinds of sentences it has already seen. That can matter when a useful precedent has a structure more elaborate than a small grammar would produce. The dependence on a precedent is also the reason for placing a confidence check at this stage. A distant event can yield an example whose sentence structure and details are a poor fit, even if the editor can readily complete a sentence from it.

Build a sentence around the event words

The next stage uses an explicit template. Because each event field has a known function, the system can choose a grammatical frame from the fields that are present. A frame describes how a verb combines with its arguments. The authors use a simplified context-free grammar to express the main patterns.

S → NP v (NP) (PP)

Here S is a sentence, NP is a noun phrase, and PP is a prepositional phrase. The lower-case v is the verb from the event. The arrow means that the sentence can be expanded into the ordered sequence on its right. Parentheses indicate optional constituents. A subject noun phrase and the verb form the core, with an object noun phrase or a prepositional phrase available when the event calls for one.

NP → d n

Here NP again denotes a noun phrase, d is a determiner supplied by the system, and n is the noun supplied by an event field. The choice of noun depends on the phrase’s role. It may come from the subject s, the object o, or the field m.

PP → p NP

Here PP is the prepositional phrase, p is the preposition already present in the event, and NP is its noun phrase. The arrow gives the order in which these constituents appear.

The system chooses the most likely VerbNet frame from the combination of fields that are filled. With a subject noun, another noun, and a verb, the second noun can be realized as a direct object when the preposition is absent. If the event includes a preposition with that noun, the frame can place it in a prepositional phrase. In this procedure the grammar answers where the event words will go. A learned word predictor then fills in some of the words around them.

That predictor is a bidirectional LSTM trained on generalized sentences from the training corpus. It can generate words before and after a supplied word within a phrase. The system joins the resulting fragments to make a sentence. Its implementation uses the AWD-LSTM architecture described by Merity and colleagues in their work on regularizing and optimizing LSTMs.

Phrase generation ends when it reaches the length limit or produces a word indicating the start of a different phrase. A verb appearing during noun-phrase generation is an example of such a signal. The authors also observed that high-frequency words such as the and and came up very often. They sample from the top k candidates at a generation step, where k specifies how many likely next words participate in the sample. They also apply simple grammar rules, such as blocking adjacent determiners or adjacent nouns. These procedures make some variation possible within the frame.

For confidence, the authors add the losses incurred during token generation, divide by sentence length, and subtract the resulting average from 1. The loss expresses how poorly the predictor accounts for a generated token under its learned probabilities. Higher average loss therefore means lower confidence. The event words themselves are present by construction. The confidence score addresses how the system completed the frame, while variations in structure remain limited by the available frames. In the experimental setup, this stage fills the verb class with an appropriately conjugated verb during post-processing. The other sentence generators perform that substitution automatically.

Look ahead with sampled continuations

The Monte Carlo stage also learns to turn an event into a generalized sentence from paired training examples. Its special operation happens during decoding. Ordinary beam search keeps partial sentences that currently look promising. Monte Carlo beam search asks how those partial sentences might finish, using several sampled completions to inform which prefixes it keeps.

At a timestep, the decoder supplies likely next words for the active prefixes. Each new word ends a candidate prefix and provides a starting point for a playout, the procedure’s name for a sampled continuation. At each subsequent step, the system samples from the decoder’s softmax distribution over words. This distribution assigns probabilities to the vocabulary for the next position. Sampling continues until the end marker, called the end-of-story tag in the paper. The existing prefix and this completion together form the string scored by the playout.

The score compares the string with the event using overlapping units of up to 4-grams, where an n-gram is a sequence of adjacent tokens. It also gives individual event items weighted 1-gram scores, so some input words can matter more than others when assessing a completion. During validation, the weight for an event word increases when that word is missing from the generated sequence. This makes the search pay more attention to terms that tend to disappear. Contiguous groups of words and individual event terms thus contribute separately to the score used by the decoder. The local units are n-grams.

The score propagated along a partial sentence is updated as follows.

sₜ = α × sₜ₋₁ + (1 − α) × AVG(playoutₜ)

Here sₜ is the score associated with the candidate at decoding step t, and sₜ₋₁ is the inherited score from the preceding step. The constant α determines how much weight to give that inherited score. The complement 1 − α weights the term from the new playouts. playoutₜ stands for the sampled continuations at the current step, and AVG takes the mean of their scores. The multiplications weight the two contributions before addition.

The procedure keeps the k best partial sentences according to the resulting scores, with k denoting the beam width for this description. The highest-scoring completed sequence supplies the sentence, and its score supplies the confidence used by the cascade. The sampled continuations allow the same input to yield different outputs on different runs. They also let a prefix benefit from the coverage it might achieve later, after more of the sentence has been written. A high-scoring completion can still omit a supplied item, because coverage contributes to the score and is traded against other contributions.

Track which required words have appeared

The finite-state stage treats event words as constraints to track during beam search. Its design adapts a method for producing image captions that contain words associated with image tags. In storytelling, the required words come from a plot event. The shared search problem is that a decoder needs to find a well-formed sequence that also accounts for specified items. The adaptation comes from Guided Open Vocabulary Image Captioning with Constrained Beam Search.

The authors describe the machine for an event with the following input tokens.

{t₁, t₂, t₃, …, tₙ}

Here each t with a subscript is a token the machine can track, and n is the number of input tokens. The braces surround the collection of constraints. The ellipsis stands for the intervening tokens. A state records the subset already matched by a candidate sentence. One state therefore represents the empty subset, and another represents the subset containing every required item.

2ⁿ

This is the number of states in the full construction. The exponent n is the number of input tokens, and the base 2 corresponds to the choices of having matched or having yet to match each item. A decision about one item can be combined with the possible decisions about the other items, so the machine tracks subsets even when the words appear in different orders.

Each state keeps its own beam. In the notation used by the paper, Bₛ is the beam associated with the state, s identifies its configured beam size, and b denotes the maximum number of sequences retained. When a candidate emits a tracked word, it can move to a state that includes that word among the matches. The receiving state retains the most probable candidates it receives up to its capacity. For instance, paths that first match different words can converge once they have both matched the same pair. Once a finished candidate reaches the state for the whole set, its coverage is guaranteed by the route it took through the machine.

That guarantee applies to a successful search under the full constraint. The authors found it difficult to complete sentences within a fixed horizon as more words had to be covered. They also encountered candidates that satisfied the word requirements but combined them awkwardly. Their implementation therefore permits an output with at least three out of five event tokens matched. The relaxation distinguishes this stage from the template, which retains the specified words by putting them directly into a prepared structure. The finite-state method searches for a sentence around sufficient coverage and can fail to find one in the allowed length.

Decide when a sentence is ready

The cascade tries RetEdit first. If the retrieval-based confidence clears its threshold, it immediately returns that sentence. If confidence is low, the template stage gets a chance. The paper places this stage before Monte Carlo beam search to give priority to retaining the event words. When the template score is too low, the sampled search gets its turn. Each of these stages has a confidence quantity tailored to the method, so acceptance means clearing the threshold for that particular stage.

If the Monte Carlo score also falls short, the cascade tries finite-state beam search. Its decision comes from finding an acceptable completed sentence under the coverage and length constraints. If that search fails, ordinary sequence-to-sequence generation with standard beam search returns the fallback. Ordinary beam search also serves as the baseline in the isolated evaluation.

The authors choose the confidence thresholds by running the generators on validation examples and trying combinations from a limited grid. They choose the combination that yields the best validation BLEU-4 for the cascade and keep it fixed during test evaluation. The cascade therefore makes its final decisions in an order established before testing. An early acceptance avoids running the later stages, and a particular event is assigned to one generator even though other methods could also have produced a candidate for it.

Experiments and results

The corpus and the two sources of test events

The corpus comprises episode plot summaries collected from a fandom wiki for long-running science-fiction television shows. The authors chose this genre for the experiments and preferred these summaries because they were longer and more detailed than those used in the earlier work supplying the event generator. Across the collection’s 11 shows, there are 2,276 episode summaries, and each show averages 207 stories with a mean story length of 89.23 sentences. Doctor Who, Futurama, and The X-Files are examples of the shows represented. After preprocessing and converting sentences into events, the authors form training, validation, and test sets in an 8:1:1 ratio.

In the isolated experiment, input events come from the held-out summaries. The researchers can compare each generated sentence against the generalized human sentence associated with its event. The individual generators are trained on the science-fiction training set, and the cascade’s threshold settings are fixed using validation data before this comparison. The baseline uses a beam size of 5. The authors also report results for the individual cascade stages when they are run independently on the test data. Those rows reveal how each stage fares across the test set, while usage within the cascade measures what happens when earlier stages are allowed to accept candidates first.

The full-pipeline experiment starts from events extracted from the first sentences of test stories. From each seed, the plot generator proposes a succession of events and stops when it reaches the designated goal verb class, discover-84. The sentence cascade processes the generated events. These events have no paired human sentences describing the system’s chosen continuation. The paper presents stage usage and sample outputs for this setting. The two experiments thus offer different kinds of evidence. The isolated test supports a comparison with human wording under shared input, and the full pipeline shows the behavior of the same cascade on a new source of events.

How the scores read

BLEU-4 rewards overlap with the reference using sequences of words through 4-grams. The comparison in the isolated experiment is between generalized output and generalized references, taken at the intermediate stage before replacing the remaining slots with ordinary words. The authors expect low scores for the task because an event can be expressed in substantially different ways. A candidate that preserves the plot action may add different details from the reference or express the verb and arguments with different words. A candidate that borrows reference wording can also miss an important part of the action. Overlap is useful for comparing systems under a fixed protocol, and its interpretation depends on what the protocol takes as its target.

The paper writes perplexity as follows.

Perplexity = 2^(−∑ₓ p(x) log₂ p(x))

Here x is a token type and p(x) is its probability in the token distribution used by the calculation. The summation ∑ₓ ranges over token types. The symbol log₂ means the base-2 logarithm. The negative sum in the exponent is the entropy of the distribution, and the outer base 2 converts it to perplexity. The authors report lower perplexity as preferable.

The probability in that expression is defined through counts.

p(x) = count(x) / ∑ᵧ∈Y count(y)

Here count(x) is the number of occurrences of token x, Y is the vocabulary, and y ranges over the entries of Y. The summation in the denominator counts the tokens across that vocabulary. The slash divides the count for x by that total. This is the definition given in the paper, using observed token counts. In reading the results it matters that the displayed formula concerns the distribution of tokens. It contains no term for whether a word is the appropriate action or participant for a particular input event.

The held-out sentence comparisons

The cascade has the highest reported BLEU-4 on the held-out sentence task. Among the individual methods, Monte Carlo beam search scores highest. The retrieval method’s standalone score is close to that of ordinary sequence-to-sequence decoding, even though retrieval accounts for most of the cascade’s test outputs. That difference between overall score and stage usage reflects the role of the confidence threshold. The cascade can take retrieval outputs from inputs for which the retrieved precedent is close and let later stages handle other inputs.

Event-to-sentence systems on the science-fiction test set by BLEU-4

The cascade has the highest reference overlap, followed by Monte Carlo beam search.

Event-to-sentence systems on the science-fiction test set by BLEU-4Sequence-to-sequence baseline: 0.0425Sequence-to-sequence baseline0.0425Retrieve-and-edit: 0.041Retrieve-and-edit0.041Sentence templates: 0.0034Sentence templates0.0034Monte Carlo beam search: 0.0453Monte Carlo beam search0.0453Finite-state constrained beam search: 0.0125Finite-state constrained beam search0.0125Cascade ensemble (this paper): 0.0481Cascade ensemble (this paper)0.0481
The numbers
System or settingBLEU-4
Sequence-to-sequence baseline0.0425
Retrieve-and-edit0.041
Sentence templates0.0034
Monte Carlo beam search0.0453
Finite-state constrained beam search0.0125
Cascade ensemble (this paper)0.0481

The perplexity ranking puts the cascade first as well. The strongest individual scores by this measure come from retrieval and Monte Carlo search. The much higher perplexity of templates accompanies their especially low overlap with reference sentences. Templates were designed to fit the event words into a small number of structures. That target helps explain why an apparently direct realization of the action can score poorly on the sentence metrics used here.

Event-to-sentence systems on the science-fiction test set by perplexity

The cascade has the lowest reported perplexity, with retrieval and Monte Carlo search close behind.

Event-to-sentence systems on the science-fiction test set by perplexitySequence-to-sequence baseline: 103.176Sequence-to-sequence baseline103.176Retrieve-and-edit: 71.354Retrieve-and-edit71.354Sentence templates: 203.629Sentence templates203.629Monte Carlo beam search: 71.385Monte Carlo beam search71.385Finite-state constrained beam search: 104.775Finite-state constrained beam search104.775Cascade ensemble (this paper): 70.179Cascade ensemble (this paper)70.179
The numbers
System or settingPerplexity
Sequence-to-sequence baseline103.176
Retrieve-and-edit71.354
Sentence templates203.629
Monte Carlo beam search71.385
Finite-state constrained beam search104.775
Cascade ensemble (this paper)70.179

The test-set sentence lengths help characterize the outputs. Templates average 5.43 tokens per sentence, compared with 6.59 for the baseline and 7.91 for Monte Carlo search. RetEdit averages 9.27, close to the cascade’s 9.22. Finite-state search produces the longest sentences on average, at 10.98. The authors relate that length to the need to fit the required words into a candidate. Sentence length says little on its own about grammaticality or faithfulness. Here it illustrates how differently the methods expand the same input format, from short template realizations to searches that can extend a sequence to accommodate the constraints.

Which stages supply sentences

The validation grid search sets the thresholds for RetEdit and templates at 0.8 and for Monte Carlo search at 0.1. These thresholds apply to different scores. A value of 0.8 for retrieval concerns proximity to a training event, while the same value for templates concerns loss incurred during phrase completion. The finite-state stage uses its success condition without a numerical confidence threshold. The ordinary baseline has no threshold because it provides the final fallback.

On events extracted from the science-fiction test summaries, RetEdit supplies 94.91% of the cascade’s sentences and Monte Carlo search supplies 4.29%. Templates account for 0.22%, finite-state search for 0.15%, and the final baseline for 0.43%. These are acceptance shares under the fixed order. For example, the template share can be small because most test events already received an acceptable response from RetEdit. It measures when templates are chosen within the cascade, while the standalone template row measures their reference overlap when applied across the test set.

On events from the full pipeline, the RetEdit share is 55.71% and the Monte Carlo share is 41.10%. Templates supply 0.91%, finite-state search 0.68%, and ordinary beam search 1.60%. The authors attribute retrieval’s prominence on the held-out corpus to similarities between the training and test distributions. They suggest that the events assembled by the plot generator can be farther from the corpus examples. The stage shares are consistent with that account, and show how much more often sampled search is used when the generator supplies the events.

RetEdit and Monte Carlo search by cascade utilization on test and pipeline events

Retrieval accounts for the largest share in both settings, while sampled search takes a larger share on pipeline events.

RetEdit and Monte Carlo search by cascade utilization on test and pipeline eventsTest events, RetEdit (this paper): 94.91Test events, RetEdit (this paper)94.91Test events, Monte Carlo: 4.29Test events, Monte Carlo4.29Pipeline events, RetEdit: 55.71Pipeline events, RetEdit55.71Pipeline events, Monte Carlo: 41.10Pipeline events, Monte Carlo41.10
The numbers
System or settingUtilization %
Test events, RetEdit (this paper)94.91
Test events, Monte Carlo4.29
Pipeline events, RetEdit55.71
Pipeline events, Monte Carlo41.10

What the full pipeline produces

The paper shows continuations seeded from sentences about Jabba the Hutt and Boba Fett. In the first case, the source describes an inspection of a barge and the extracted event retains an assessment verb class and a vessel category. The sentence cascade’s realization keeps the vessel category but introduces an inability to scan it. Later, the plot generator proposes an escape event involving a music category. Its sentence casts the music as arriving, changing the action while preserving an input noun. The sequence eventually reaches the discovery goal in event form, and the corresponding sentence expresses finding something while adding details about a person and a craft.

In the Boba Fett case, the seed event abstracts a pursuit involving a bounty. The corresponding sentence describes the person entering the bounty, an awkward interpretation of the object and a different action from pursuit. Later generated events culminate in discovery. The final sentence describes seeing a change and telling someone about it. It carries a recognizable connection to discovery while leaving the participants and object in generalized form. These continuations show that the plot generator can pass events to the sentence cascade through to the goal. Reading the intermediate records alongside the sentences also makes it possible to locate specific changes introduced during realization.

What the ablations show

The paper reports no formal ablation that removes a stage and retunes the cascade. It offers standalone comparisons, a comparison of stage usage across two input sources, and examples in which several methods write from the same event. These analyses answer different questions. The standalone scores show how broadly a method works under the shared evaluation. The usage figures show how frequently it is selected in the ordered cascade. The examples let a reader examine what is being preserved or changed even when reference overlap offers little explanation.

Retrieval depends on the usefulness of the precedent

Retrieval illustrates the difference between a method’s behavior over all events and its value when selectively used. As a standalone generator, RetEdit sits below Monte Carlo search and the baseline on test BLEU-4. Yet the cascade accepts its output on most events extracted from human-written test summaries. Since retrieval goes first, it sees every event in this setting and has an opportunity to accept any for which a sufficiently close precedent exists. Higher usage is therefore evidence that the distance criterion is often satisfied under this ordering. The standalone score averages over difficult retrievals as well as close ones.

An example from the paper shows what a close structural match can deliver. For the sending event with two person tags and a location tag, RetEdit produces a short sentence that places the sender, the sent person, and the location in their expected roles. The reference contains a motive and more elaborate wording. The retrieved realization remains faithful to the core event even with those differences. That distinction is especially clear because the event itself gives no motive for the author to recover.

Other examples reveal what can slip through the editing process. For the event involving movement towards a destination, the retrieval output keeps a movement construction but adds a participant and further material about the destination. For the event with an admiration-class verb, it expresses belief while retaining the two people. Those cases show separate dimensions of fidelity. A sentence can keep the general kind of action while altering who is involved, or preserve the arguments while changing what happens between them. Retrieval distance is a criterion for selecting a precedent, so it offers a reason to trust the procedure without directly checking either of those outcomes.

The same fixed cascade selects retrieval less often for generated events than for corpus-derived events. That is compatible with the authors’ explanation that unusual combinations are harder to match. It also shows the practical role of having later stages available under this experimental design. A large share of pipeline sentences come from Monte Carlo search, even though it is reached only when the preceding stages pass over the event. The paper leaves open how frequently a similarly tuned cascade would choose retrieval if it appeared later, or what would happen if the system chose from a pool of candidates after running every stage.

Templates and searches preserve different things

The template examples demonstrate how a stage can retain the supplied items and still struggle as a writer. For the sending event, the template keeps both person tags, the direction encoded by the preposition, and the location. Its realization is short and exposes a verb-class label before the verb is filled during post-processing. For the admiration event, the template also keeps the class and both participants, but the resulting string gives them an awkward construction. Since the method begins with an allocation of words to frame positions, it is particularly good at making the input visible. The resulting examples also show how much depends on the quality of the frame and the fragments added around it.

The sampled search tends to produce longer, more varied continuations than the templates. Its average sentence length sits between that of the templates and retrieval in the held-out comparison. The sending example illustrates the price of the flexibility. A Monte Carlo sentence involving the first person tag describes passing something undercover and then collapsing, losing the sending action and the other supplied participant. The continuation is recognizable as story prose and includes an action sequence. Its relationship to the event is weak because those actions were filled in where the input had already specified the central one.

The admiration example shows another difficulty in judging fidelity. The generalized reference includes language about hatred even though its extracted event uses an admiration-class verb. The sampled-search output also expresses hatred, with its own added explanation. In this case, seemingly close agreement with the reference on the emotion does not cleanly settle whether the candidate followed the abstract input. The example illustrates how evaluating against the original sentence and evaluating against the extracted event can lead to different judgments. The event is a compact input derived from the sentence, and the correspondence between its verb class and a reader’s interpretation of the original wording can itself be imperfect.

The finite-state examples give an independent view of search success. In the sending case the paper shows no output for the finite-state generator. In another case it produces a long and difficult sentence with repeated participant tags. Tracking words creates an explicit condition for search, and the condition can still be hard to satisfy with a good sentence in the allowed horizon. Repetition or an increase in length can accompany attempts to combine the required material. Accepting partial coverage makes it easier to return a candidate, at the cost of allowing relevant fields to be absent.

What the comparison can explain

The paper’s quantitative comparison supports a narrow account of the cascade’s advantage. With thresholds selected on validation data, its output as a whole scores better on the held-out references than the output of any one method used across the test set. The examples illustrate a plausible reason to combine methods. Retrieval can reuse a useful structure, templates can secure the inclusion of event words, sampled search can explore different endings, and finite-state search can explicitly track which constraints have been satisfied. Each advantage is visible under some conditions, and each has an associated failure.

The evaluation does not assign a measured portion of the overall gain to any of those mechanisms. A late stage is evaluated independently on the whole test set but used inside the cascade only for events left by earlier stages. Its utility on those residual cases could differ substantially from what its standalone score suggests. Similarly, frequent selection of a stage does not show what an alternative could have written for the same events. The paper’s analyses distinguish behavior across techniques and input sources. A controlled estimate of the contribution of order, individual stages, or the separate terms in the lookahead score would require comparisons beyond those reported.

Limitations

Limits identified by the authors

The authors identify information loss at the event boundary as a basic limit. Event extraction preserves selected parts of a sentence while discarding others. There can be several sentences that correspond to the same event, including alternatives with different background details or degrees of specificity. An event record cannot determine which one the original author used. This affects what a reference score can establish. The paper explicitly expects low BLEU-4 because a reasonable candidate can share little of the original wording even when it realizes the same event.

Sparse coverage remains a problem after generalization. The plot generator can assemble events outside the experience of the sentence generator, and the resulting event may be distant from any useful retrieval example. RetEdit benefits from proximity and can perform poorly when the precedent is distant. The authors describe the other stages in terms of similar tradeoffs. Templates secure the input words within a limited repertoire of structures. Monte Carlo search has latitude to produce different completions and sometimes drops central details. Finite-state search can return awkward prose or fail to finish within the horizon. Its relaxed coverage rule also allows it to succeed with some fields unmatched.

The authors frame the work as balancing interesting language against preservation of event content. Their examples show why they consider both goals important. They also describe the experiment as operating on generalized sentences. This places the evaluation at a useful intermediate point, where one can inspect what the sentence generator made of the input before asking how well a later stage would render entity names and ordinary noun choices.

Limits visible in the evaluation

The numerical results compare text against references and report a count-based perplexity. The paper does not give a corpus-wide human judgment of fluency or interest, an event-role accuracy score, or a separate measure of story coherence. Consequently, the observed advantage on the two reported sentence metrics cannot tell a reader how frequently the cascade correctly preserves the action and each participant, or how often its sentences are more engaging. Examples can demonstrate the existence of both successes and failures. They do not establish their prevalence.

The distinction between word presence and role preservation matters most for methods that enforce coverage. A sentence might contain a subject tag, an object tag, and a verb while assigning the two people different roles or placing them in unrelated clauses. Conversely, a sentence could convey a relation with different words and miss a literal constraint. Templates use the event structure to place the words, which gives their coverage a grammatical interpretation. A finished sequence from the finite-state decoder has passed a lexical check, and reading it is still necessary to establish what the sentence says about those participants.

The corpus and partition also limit how broadly to interpret the numbers. The evaluation concerns science-fiction episode summaries from the chosen shows. The paper reports a train, validation, and test split, with no separate test holding out an entire genre or a group of shows. The topic, vocabulary, recurring plot structures, and preprocessing all help define the distribution for which thresholds were selected. The fall in retrieval usage on generated inputs is informative within the study. It supplies no separate estimate of how the cascade would behave on stories from a different domain, with new kinds of entity names, or with a different way of extracting clauses and events.

The interpretation of the full pipeline is narrower than that of the held-out sentence test. Its seeds are derived from real opening sentences, and the resulting plots are generated towards discover-84. With no matching human continuation for the chosen plot events, the examples show integration and give material for close reading. Reaching the discovery class demonstrates attainment of the chosen event-level stopping criterion. It gives no direct measure of whether the resulting story presents a satisfying discovery, is coherent across the continuation, or consistently refers to the same characters in the same roles. A displayed sentence can even change the action associated with an event that was successfully generated.

Finally, the sentence-generation objective conditions each sentence on its current event. The plot generator carries responsibility for producing a coherent event sequence, and the sentence methods supply local realizations. The experiments do not separately measure how sentence-level additions interact across those realizations. A newly mentioned participant, an invented motive, or a change in action could matter several sentences later. The pipeline examples make such changes visible when the event and output are printed together. They leave the effect on the reader’s understanding of the whole story unmeasured.

What came after

The paper closes by proposing that future sentence-generation methods could be added to the cascade. Its design gives each stage a defined place to intervene. A stage can accept an event when its own score indicates a promising realization, leaving subsequent stages to deal with inputs for which that judgment is weaker. The proposal follows from the paper’s results on how differently corpus-derived and generated events are handled. A future stage would need to be assessed both on the sentences it writes and on the events it ends up receiving within the cascade.

The authors place the work in the line of research begun by Martin and colleagues’ division of plot generation into event prediction and sentence realization. The contribution demonstrated here is a working connection between those parts and an evaluation of alternatives for the realization step. No later study is documented for comparison, so the consequences of extending or replacing those stages remain open.

Cite

Cite as Prithviraj Ammanabrolu, Ethan Tien, Wesley Cheung, Zhaochen Luo, William Ma, Lara J. Martin and Mark O. Riedl. 2019. Guided Neural Language Generation for Automated Storytelling. Proceedings of the Second Workshop on Storytelling.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w19-3405

@inproceedings{ammanabrolu2019guided,
  title = {{Guided Neural Language Generation for Automated Storytelling}},
  author = {Prithviraj Ammanabrolu, Ethan Tien, Wesley Cheung, Zhaochen Luo, William Ma, Lara J. Martin and Mark O. Riedl},
  booktitle = {Proceedings of the Second Workshop on Storytelling},
  year = {2019},
  doi = {10.18653/v1/w19-3405},
  url = {https://doi.org/10.18653/v1/w19-3405}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ammanabrolu-2019-guided-neural-language-generation-automated/