Neural Generation for Czech: Data and Baselines
Paper · 2019 · Ondřej Dušek and Filip Jurčíček
Summary
A restaurant assistant can know which neighborhood a customer asked about and still put its name into a sentence incorrectly. In Czech, the context can change both the form of a name and the words around it. The authors study this problem in text generation from structured data. Their generator receives a dialogue act, a record of what an utterance should do and which details it should communicate. A common way to handle names is to generate a sentence with placeholders and fill them in afterward. For Czech, that last step has to account for morphology, the way words change form to do different grammatical jobs.
The authors adapt an English restaurant dialogue dataset to Prague and have translators render the localized utterances in spoken-style Czech. They check that the translations express the required information and assemble an inventory of forms that can express each input value. The finished dataset contains 5,192 pairs of dialogue acts and utterances. The split keeps any particular dialogue act with its values replaced by placeholders in a single partition. A system tested on these data therefore has to handle combinations of dialogue information that it did not encounter in training in that same abstract form.
The experiments use TGen, a neural sequence-to-sequence generator. One extension homes in on the point where a placeholder becomes a real word or phrase. A recurrent language model looks at the surrounding sentence and scores the possible forms. The other extension changes what the generator predicts throughout the sentence. It emits a lemma, or base form, together with a grammatical tag, and a separate component turns those predictions into written Czech. A tag attached to a placeholder can also narrow down which forms are considered when filling it. A further comparison gives the generator either abstract placeholders or the actual values on the input side.
On the Czech test set, predicting lemmas and tags with abstract inputs and context-sensitive lexicalization gives the highest BLEU score, 21.96. That setting has a slot error rate of 01.85, compared with 00.70 for direct word generation with the same input representation and lexicalizer. In the manual analysis of 100 sampled sentences, the context-sensitive lexicalizer reduces errors in the forms chosen for placeholders. The manual analysis also shows why no overall ranking follows from the automatic scores alone. Giving the generator concrete input values can yield more fluent wording while increasing errors in the information conveyed. The authors release the Czech restaurant dataset and the TGen experimental code.
Deep dive: Neural Generation for Czech: Data and Baselines
A Czech restaurant dialogue dataset tests how neural generators choose inflected words and where gains in fluency come at the cost of missed information. · about 33 minutes to read
The problem and its context
From a dialogue act to a sentence
In the restaurant setting, a dialogue system may need to recommend a place, ask a question, or confirm a detail. The input to the generator specifies the job to do. It gives an act type, such as informing or confirming, and can attach attributes such as a name, an area, or a price range. The paper calls these attributes slots. The values of the slots supply the details for a particular turn. An informing act might carry the name Green Spirit, Turkish food, and an expensive price range. The generator must take those pieces of information and produce a sentence that a user could understand as an ordinary utterance.
The input supplies the requested content, but leaves the wording open. A description of a restaurant's cuisine can be part of a phrase describing the establishment or appear in a clause about what it serves. Both choices can communicate the same food type. They create different surroundings for the words that express it. Generating the sentence involves choosing a construction as well as expressing every relevant value. This distinction matters in the paper because a system can convey the right concept with the wrong ending, and it can produce an appropriately inflected sentence that misses a fact.
Why placeholders are useful and where Czech makes them harder
Restaurant names, addresses, and landmarks come from lists that can change. A collection of example utterances can illustrate common ways of referring to such entities, but a system may be asked to mention an entity whose name never appeared in those examples. Earlier generation systems cited by the authors handled this with delexicalization. A named value is replaced with a symbol identifying its role, such as X-name. An utterance can then teach the generator a way to introduce a restaurant without requiring it to learn that sentence separately for every name. When the system generates a new description, a later step puts the actual restaurant name in its place.
The paper also points to copying as another way to carry particular values from the input to the output. A copying mechanism and a placeholder followed by literal substitution address a similar problem. They give the system a way to use words that it would struggle to learn as ordinary output vocabulary. Both can run into trouble when the requested expression has to differ from the spelling supplied in the input. Earlier systems tested primarily on English could frequently proceed by inserting values as they stood. Czech made the cost of that assumption visible.
Consider the restaurant name Ananta. The paper treats it as a feminine noun and gives forms including Ananta, Ananty, Anantu, and Anantou. These forms refer to the same establishment. The construction in which the name occurs determines which grammatical case is needed, and the ending marks that case. For another name, BarBar, the range of endings is different. Café Savoy, in the dataset, is an example of a name that keeps its form across contexts. Knowing that a value belongs to the restaurant-name slot tells the generator which entity to mention. It leaves open whether the entity changes form and how it does so.
There are also effects outside the placeholder. The paper contrasts the Czech expressions for a location in Malá Strana and one in Karlín. The former takes na in the example, and the latter takes v. A sentence with a fixed preposition before an area placeholder can impose a poor choice before the area name has even been inserted. The authors describe a related problem for restaurant counts. The form of the counted noun depends on the numeral. In both cases, a lexicalizer, the component that fills a placeholder, can only do part of the work if the surrounding sentence has already been decided.
The research setting the authors describe
The authors place their work amid a shortage of non-English data for training and testing generators. They note that many neural architectures could in principle produce utterances in more than one language because their core machinery contains few explicit rules for a particular language. Experimental evidence was sparse. The authors knew of a small Korean sportscasting dataset, with a limited variety of named entities and a correspondingly smaller role for inflecting them. They describe the associated English and Korean sportscasting work as using a non-neural semantic parser in reverse to produce commentary from structured information.
The paper distinguishes generation from data from the related task of surface realization. In surface realization, a system starts with a linguistic representation and turns it into a sentence. Some decisions about structure may already be present in that representation. A dialogue act starts further back. It records what to communicate, leaving the generator to decide how the facts become a sentence. The authors describe multilingual surface realizers built with handwritten grammars, procedural realizers adapted across languages, and statistical or neural systems evaluated on realization tasks. They also discuss multilingual realization work in machine translation. These lines of research gave them ways to think about the final wording and its grammatical form.
Other research discussed in the paper covered partially overlapping tasks. A Portuguese data-to-text system was mostly rule-based. Neural work on Chinese poetry and responses in open-ended chatbots generated non-English text under different constraints. Work on character-level morphological inflection tackled the production of a correctly inflected word from a more specific input. The Czech restaurant task brings these concerns together. The system has to produce an utterance for an explicit communicative purpose, incorporate the values specified for that turn, and give those values forms that fit their places in the sentence.
The architecture starts from earlier TGen work on generation for spoken dialogue. That work compared directly generating tokens with generating a syntactic tree and sending it to a realizer. The Czech study explores an intermediate representation. The generator can predict information about how words should change form while still working with a linear sequence. Work on morphological generation for translation supplied a precedent for dividing the problem in this way. Czech was suitable for the experiment because its inflection makes the problem concrete and tools were available to analyze and generate the relevant forms.
The method, step by step
Localizing the restaurant records
The starting point was the English restaurant dataset from Wen and colleagues' work on spoken dialogue generation. It has 5,192 pairs of dialogue acts and utterances, with 8 act types and 12 slots. The authors wanted a dataset comparable in scale and subject matter. They describe finding too few Czech speakers on crowdsourcing platforms for their collection plan and finding it more practical to hire translators than to train people to annotate restaurant dialogue from scratch.
They first moved the setting from San Francisco to Prague. They replaced values for restaurant names, neighborhoods, cuisines, addresses, and landmarks in the act records and in the corresponding utterances. The choices were intended to make inflection a regular part of the task. A collection dominated by foreign names could let a Czech speaker keep many values unchanged or choose a construction that avoided declining them. The localized set includes some foreign restaurant names, reflecting the kinds of names that occur in Czechia. It also includes names that inflect in ways that exercise different grammatical patterns.
The list contains 15 restaurant names and a comparable number of items in several place-related categories. Ananta and BarBar show how the endings can vary with the name's grammatical class. The comparison between Café Savoy and Místo illustrates variation within names treated as neuter. Café Savoy remains unchanged in the examples, while Místo can appear as Místa, Místu, or Místem, among other forms. The localized utterances are meaningful restaurant descriptions. Their assertions about particular Prague establishments are largely inaccurate as real-world statements, since replacing entities was a way to produce linguistic material.
Translating and checking the utterances
The authors recruited six translators and gave them the unique utterances to translate in isolation. The translators saw the localized English utterance for each example. They were asked to preserve the facts while allowing differences in nuance, to write conversational Czech, and to choose varied, natural expressions. That freedom extended to ways of referring to a slot value, including a meal category or price range. Names were to be inflected as the sentence required.
Some language choices were standardized. Utterances addressing the user use formal address or the corresponding plural form. Where the system speaks about itself and Czech calls for gender marking, it uses feminine forms. These conventions make it possible for the same collection to vary in phrasing while keeping a consistent way of speaking to the customer and referring to the assistant. The authors believed the English utterances already supplied what the translators needed and that adding the dialogue acts could distract from producing fluent sentences.
After translation, the authors brought the Czech utterances and the dialogue acts back together for a consistency check. To do so, they first gathered potential surface forms, the actual expressions that can appear in a sentence, for the values in the records. They used Czech morphology tools to generate forms and checked the results by hand. A script then looked in each utterance for a listed realization of each value that the corresponding dialogue act required.
A flag from the script could have either of two explanations. The translator might have used a legitimate expression that the inventory lacked. In that case, the authors added the expression. Or the translation might have left out the information. In that case, they repaired the utterance. They repeated the checks after the repairs and additions until the script found the required values throughout the collection. The process gave the authors both better aligned examples and a broader inventory for generation.
That inventory stores grammatical tags along with the expressions. The authors obtained the tags with a tagger and corrected mistakes manually. They treated a multiword value as a single item in this inventory and assigned it a tag appropriate to the expression as a whole. A multiword noun phrase could thus receive a noun tag. This choice gives the later lexicalizer a whole phrase to put in a placeholder and a way to compare its broad grammatical properties with the generator's prediction. It also means that the inventory describes the phrase at the level at which the replacement will be made.
Expanding the set after translating unique texts
Many sentences in the English collection share the same wording after abstracting away from specific values. The paper reports 2,648 unique delexicalized instances in the original collection. Translating every occurrence would have increased the workload. The authors chose to translate the unique material and then expand it to recover the distribution and size of the English data. When distinct English utterances initially converged on the same Czech wording, they manually introduced variation, for example by substituting a synonym.
To expand the translated collection, they worked with groups of utterances that correspond to the same delexicalized act. For each group, they knew how many instances were needed to match its frequency in the original. They chose additional copies from available Czech translations using scores from a 5-gram system implemented with KenLM. An n-gram system gives a sequence a score based on patterns of nearby tokens. In this application, the tokens came from translations whose values had been replaced with placeholders and whose ordinary words had been reduced to their lemmas. This made the scores sensitive to the frequency of the phrasing with less dependence on whichever name or ending happened to appear in a particular translation.
The paper describes using softmax to convert the scores into sampling probabilities. In notation, that step is:
pᵢ = exp(sᵢ) / ∑ⱼ exp(sⱼ)
Here i is the index of the translation whose probability is being calculated. pᵢ is its probability and sᵢ is its score. The function exp exponentiates a score. The summation sign ∑ adds the resulting weights, and j indexes the translations in the same group, each with its own score sⱼ. Dividing by that total makes the weights a probability distribution over the choices for the group. A translation with a higher score is more likely to supply an additional copy. Sampling still allows other phrasing to appear.
The extra copies needed concrete values. The authors randomly changed the slot values in their records and replaced the corresponding expressions in the utterances with entries from the inventory. The replacement procedure looked for approximate grammatical compatibility. It could miss a feature such as noun or adjective gender, so the authors reviewed all of the relexicalized sentences and adjusted their wording or inflection where necessary. These corrections also account for the final Czech collection having more distinct delexicalized instances than the English original. The overall frequency of the abstract dialogue acts still follows the original distribution.
Making the data split test a new combination of information
The original English data used a sequential split in roughly 3:1:1 proportions. The authors describe substantial overlap between its partitions once dialogue acts were delexicalized. If an act with an identical arrangement of slots can occur in training and testing, a generator can succeed by reusing a familiar way of expressing precisely that arrangement. It may still have difficulty when familiar attributes must be expressed together in an unfamiliar combination.
The Czech split retains approximately the same proportions but assigns each distinct delexicalized act to a single partition. Delexicalization is important to this rule. A record about one restaurant and a record about another could still count as the same act for splitting if their type and abstract slot pattern are the same. Grouping them keeps such records together. At the same time, the authors represent most dialogue act types in every partition, so that the broad communicative roles remain familiar to the generator even when the exact combination of details is held out.
There are exceptions for goodbye turns and turns asking if the customer needs anything more. Each of those act types has a single act because it occurs without slots. The authors keep those instances in training. This preserves separation by delexicalized act and leaves the test focused on combinations for the act types that can vary. It also specifies the kind of novelty the split addresses. A test act's pattern can be unfamiliar while the names, individual slots, and ways of expressing parts of that pattern remain available from training or the form inventory.
Turning the act into output candidates
TGen uses an encoder and a decoder. The encoder reads the structured act, and the decoder produces a sequence representing the utterance. The authors present the encoder with triples consisting of the act type, a slot, and its value. The type is repeated for each slot and value pair. In the default condition, concrete values are replaced by their placeholder symbols for the generator. The binary slot that indicates whether children are allowed stays in its original form. In the lexicalized input condition, the main generator sees the actual values. Both conditions still produce output containing placeholders for the slots that will be filled afterward.
The encoder and decoder are recurrent networks with long short-term memory, or LSTM, cells. A recurrent network maintains a state as it moves through a sequence. The state at an encoder position represents information available from the input as processed there. The authors add bidirectional encoding to TGen for the generator and the reranker. A bidirectional encoder processes a sequence in both directions and joins the resulting representations, allowing the encoding at an input position to draw on material to either side.
The encoder provides an initial state for the decoder and a sequence of states for its attention component. Following earlier work on learning to align and translate, attention lets the decoder draw more strongly on particular input positions at different points in the utterance. For each output step, a fully connected network with a single layer computes the weights used to combine the encoder states. The decoder uses the resulting context and the preceding output token to produce its next token. Accordingly, it can use different parts of the dialogue act when it begins a sentence, mentions a name, or moves to another detail.
Generation uses beam search, which retains multiple candidate continuations instead of committing to every local choice immediately. TGen then reranks the resulting utterances with an additional check on content. An LSTM encodes each candidate, and a classifier predicts which act types and slot-value pairs are expressed in it. Disagreements with the input act produce a penalty. This gives the system a mechanism for favoring a candidate that preserves the requested information, based on what the classifier recognizes in the generated sequence.
The other general addition to TGen is dropout. During training, it disables randomly selected connections with a set probability, reducing reliance on particular connections. The authors apply it to the main generator. Bidirectional encoding and dropout are common to the relevant components across the reported configurations. They were selected after preliminary experiments, so the main comparison concerns the choices about representing input, producing words, and filling placeholders.
Choosing between words and lemma-tag pairs
In the direct generation mode, an ordinary output token can be an already inflected word form. The decoder learns to produce that form in a compatible context. Delexicalized slots appear as placeholders alongside the ordinary words, and their values are inserted later. Direct generation therefore assigns distinct inflections of the same ordinary word to distinct output tokens. In a morphologically rich corpus, the examples for one base word may be distributed over many such forms.
In the other mode, the training targets represent words as lemmas interleaved with grammatical tags. The lemma gives the base word. The tag describes the grammatical form, which can include properties such as part of speech, case, number, and gender. The system still predicts a sequence in order. Its output tokens now specify which word to use and what form it should take. A dictionary-based generator produces the inflected words from those predictions. The separation lets the decoder reuse a lemma across its different uses and reuse a tag across different words. It depends on learning sequences of lemmas and tags that make sense together.
The lemma-tag sequence gives placeholders their own tags as well. The paper illustrates this on a confirmation about breakfast. In such a sequence, the placeholder identifies the meal slot and the following tag carries information about how to express it in that utterance. Different ways of expressing a meal can involve a noun, an adjective, or a verb. A predicted tag can thus guide a choice that goes beyond picking an ending for a fixed word. Where the system produces an ordinary lemma, the morphology tool can realize it directly. Where it produces a placeholder, the system has to retrieve a suitable expression of the given value.
From a dialogue act to a Czech utterance
The steps in order.
Resolving the placeholders
All three lexicalizers use the inventory assembled during data preparation. The random baseline chooses an applicable form at random. The frequency baseline chooses the applicable form that occurs most often in training. It can exploit a dominant realization of a value, but it has no way to decide that the current sentence requires a less frequent realization. Both baselines make the choice within the range allowed by the generation mode and any tag prediction that applies.
The authors' context-sensitive lexicalizer uses a bidirectional recurrent network with LSTM cells. Its training task is to estimate which token belongs at a position given the tokens before and after it. The information runs in both directions for a practical reason. When the main generator has produced a sentence with a placeholder, words following that position are available. A later noun, for instance, may supply evidence about the form required of an adjective that precedes it. A predictor restricted to preceding tokens would miss that evidence at the point of choice.
The selection rule can be written as:
f* = argmax_{f ∈ A} P(f | C)
Here f denotes a candidate surface form and A is the set of applicable forms for the value being inserted. The symbol ∈ means that the comparison ranges over members of that set. C is the sentence context, and P(f | C) is the lexicalizer's predicted probability for form f given that context. The vertical bar indicates conditioning on the context. The operator argmax returns the candidate with the highest probability, and f* denotes that selected form.
How the system constructs the applicable set depends on the decoder. In direct word generation, it can consider the full list for that value. In lemma-tag generation, it first looks for forms with a tag that matches the prediction exactly. If that yields no usable candidates, it falls back to a coarse part-of-speech match and ultimately to all known forms for the value. Exact matches can remove choices whose grammatical properties conflict with the generated tag. The broader searches retain a path to filling a placeholder when the expected tag is missing from the inventory. The neural lexicalizer then uses the sentence context to rank the candidates it actually receives.
Giving the encoder concrete values
The input comparison tests whether the generator can make better decisions about the sentence when the actual slot values are visible from the start. The paper illustrates why this could help with counts. Czech cardinal numerals 2-4 behave like adjectives in the construction discussed, while higher numerals take the counted noun in the genitive. The example with 2 uses restaurace, and the one with 5 uses restaurací. A generator that sees only a count placeholder loses access to a distinction that matters for a word outside that placeholder.
The area example makes the same point about the choice of preposition. Seeing Karlín or Malá Strana gives the encoder information about whether the generated utterance should use v or na. The authors could test this approach with concrete values because the localized lists are small. They note that with a much larger set, classes grouping values by grammatical behavior would be needed. In the experiment, the comparison holds the output convention fixed. Concrete input values give the generator clues about the surrounding structure, and placeholders still leave the final insertion to the lexicalizer.
Experiments and results
What the dataset contains
The train partition has 3,569 instances and 144 distinct delexicalized dialogue acts. Development has 781 instances and 51 distinct acts. Test has 842 instances and 53 distinct acts. These are counts at different levels. An instance pairs an act with a particular utterance, while a distinct delexicalized act describes a pattern that can underlie multiple such pairs. The development partition is used to choose settings and training checkpoints. The test partition supplies the held-out comparisons.
The dataset statistics give a sense of the decisions a generator faces even after placeholders remove many specific values. The delexicalized English data contain 399 unique lemmas and 455 unique word forms. The corresponding Czech counts are 532 lemmas and 962 word forms. Both collections contain 248 unique delexicalized acts overall. The Czech set has 2,752 unique delexicalized instances, compared with 2,648 in English. These figures describe the prepared collections. Their values also reflect translation, the choice of language, and the manual changes made during expansion.
The authors separately count the different ways each slot value is realized. With numerals excluded, the English average is 1 lexicalization per value in the corpus and the Czech average is 3.84. A lexicalization in this calculation is an observed surface expression. The statistic measures the alternatives found in the dataset, including choices of wording as well as inflection. A single source value can therefore correspond to multiple pieces of text for the lexicalizer to choose among. The average does not specify how difficult the choice is for each value because some contexts strongly favor a particular form and some values admit very little variation.
Configurations, training, and validation
The authors cross the direct and lemma-tag generation modes with three lexicalizers and with delexicalized or lexicalized generator inputs. That produces 12 configurations. Direct generation with delexicalized inputs supplies the comparison closest to the usual placeholder-based TGen setup. Random substitution shows what happens when the system has a list of forms but little guidance for choosing among them. The frequency baseline adds evidence from the training set. The recurrent lexicalizer can use the local and wider sentence context in estimating a choice.
The trained components minimize cross-entropy using Adam. Cross-entropy penalizes the predictor for placing low probability on training targets. What counts as a target depends on the component. The main generator learns the output sequence, the reranker learns to recognize the act type and slot-value information in an utterance, and the recurrent lexicalizer learns to predict a token from its surroundings. The random lexicalizer only needs the inventory, while the frequency baseline records occurrence counts from training.
The validation criterion differs by component. The main generator is selected using BLEU. The reranker is selected using classification error, and the recurrent lexicalizer uses perplexity, a measure of how well its probabilities account for the validation targets. The reranker is evaluated on both the train and development partitions when selecting parameters. Its development classification error receives 10 times the weight of training error. The learned lexicalizer is validated on development data alone, beginning after its first training pass.
For the main generator, both the embedding size and LSTM cell size are 200. The learning rate is 0.005, the dropout rate is 0.5, and the batch size is 20. The generator trains for at least 50 and at most 1000 passes through the training data. The early stopping criterion checks whether the top 10 validation BLEU scores have remained unchanged for 50 passes. Decoding uses a beam size of 20. The reranker has embedding and LSTM cell sizes of 50, a learning rate of 0.001, and a batch size of 20, with dropout omitted. It trains for 100 passes, with validation beginning at pass 10. The recurrent lexicalizer uses the reranker's network and optimization settings, with a maximum of 50 training passes.
Automatic results are averaged over 5 runs with different random initializations. The authors coordinate the seeds so configurations differing only in lexicalizer use identical generators and rerankers. This matters because any change in candidate wording would change the problem faced by the lexicalizer and could also change the automatic overlap scores. With the upstream sequence fixed, comparisons between the frequency and recurrent choices concern different realizations of the same generated utterance.
What the metrics measure
The paper uses the word-overlap evaluation suite from the E2E generation challenge. In addition to BLEU, it reports NIST, METEOR, ROUGE-L, and CIDEr. These metrics compare a generated utterance with the human reference using different ways of assessing shared words or sequences. The authors report BLEU, METEOR, and ROUGE-L as percentages. NIST and CIDEr use their own scales. A stronger overlap score means that the output aligns more closely with the reference on the corresponding metric. Such a score can be affected by a single crucial word ending, or by a choice between different acceptable descriptions of the same fact.
The unit of evaluation is the individual dialogue act and sentence pair, which gives each instance a single reference utterance. The same abstract act can be associated with several different sentences in the collection. Their actual values may differ, and those values may call for differences in wording. Treating all sentences for an abstract act as interchangeable references would therefore ignore part of the reason for studying the Czech task in the first place. The chosen evaluation respects the concrete pair and gives the overlap metrics a narrow sample of acceptable wording for that pair.
The authors also report slot error rate, or SER. They compare placeholders in the generated utterance with slots in the input before filling the placeholders. The metric tracks missing and added content expressed through those placeholders. Its calculation leaves out the binary children-allowed slot, which is kept lexicalized. A sentence can have the expected slots and still choose bad Czech forms for the values. Conversely, a sentence with an omission can still fill its existing placeholders well. SER gives a separate measure of the coverage of delexicalized content.
Scores on the held-out test set
The strongest automatic overlap results come from the configuration with delexicalized input acts, lemma-tag generation, and the recurrent lexicalizer. Its scores on the Czech test split are BLEU 21.96, NIST 4.7720, METEOR 23.32, ROUGE-L 42.95, and CIDEr 2.1783. In the corresponding direct word-generation configuration, the scores are BLEU 20.74, NIST 4.5096, METEOR 22.61, ROUGE-L 40.72, and CIDEr 1.9924. In this comparison the encoder sees the same kind of input and the lexicalizer uses the same context-sensitive approach. The main change is whether the decoder produces words directly or uses the lemma-tag sequence, with the associated tag filtering at insertion time.
Lexicalizers and generation modes by BLEU on the Czech test split with delexicalized inputs
Lemma-tag generation leads within each lexicalizer, and context-sensitive selection gives the highest BLEU.
The numbers
| System or setting | BLEU |
|---|---|
| Direct words, random | 15.51 |
| Direct words, most frequent | 20.28 |
| Direct words, recurrent lexicalizer | 20.74 |
| Lemmas and tags, random | 19.66 |
| Lemmas and tags, most frequent | 21.21 |
| Lemmas and tags, recurrent lexicalizer (this paper) | 21.96 |
Under lexicalized inputs, direct word generation with the recurrent lexicalizer scores BLEU 20.48 and NIST 4.6060. Lemma-tag generation with the recurrent lexicalizer scores BLEU 20.42 and NIST 4.5460. In this setting, direct generation with the frequency baseline gives BLEU 19.73, and lemma-tag generation with that baseline gives 19.44. The automatic scores thus show a clearer advantage for lemma-tag generation when the input is abstracted. Lexicalized inputs also do not give a uniform change across the overlap metrics. For the recurrent lexicalizer in direct word mode, for instance, NIST is higher with concrete values while BLEU is lower.
The paper tests paired differences using bootstrap resampling and reports a threshold of p < 0.01. The results mark significant differences for BLEU and NIST comparisons. The recurrent lexicalizer improves BLEU significantly over the corresponding most frequent choice with each combination of input representation and generation mode. Its NIST comparison with the frequency baseline is marked significant for the delexicalized lemma-tag setting and for both lexicalized-input settings. For delexicalized input with direct word generation, the frequency baseline actually has a slightly higher NIST score, 4.5192 rather than 4.5096. The evidence for the learned lexicalizer is clearest when the metrics and the manual inspection are read together.
The Czech test SER has one reported value for each combination of input representation and generation mode. All lexicalizers share that value within the combination because the placeholders are evaluated before insertion. For delexicalized input, direct generation has SER 00.70 and lemma-tag generation has 01.85. For lexicalized input, direct generation has 02.30 and lemma-tag generation has 03.08. Giving the system more information about the values on the input side therefore accompanies worse measured slot coverage here. The configuration with the highest overlap scores occupies a different position from the direct delexicalized configuration on this measure.
What the ablations show
Context improves the choice of forms
The cleanest comparison changes only the lexicalizer. By keeping the generator and reranker identical within a pair of configurations, the experiment fixes the sentence and the places where forms have to be supplied. If the frequency baseline and the recurrent lexicalizer choose different versions of an adjective, the comparison can be traced to the way they select among the candidates. The BLEU results show a consistent benefit for context over frequency. The manual analysis makes the affected errors easier to identify.
The annotators examined a sample of 100 sentences produced under each evaluated system setting in the comparison. The random lexicalizer was excluded from that analysis. The paper describes a blind error annotation, with separate categories for semantic errors, repetition, fluency problems beyond lexicalization, contexts impossible to lexicalize correctly for the given value, and errors in the form the lexicalizer actually selected. The analysis counts errors. A sentence can contribute to several categories, so the total across categories should be read as a count of annotated problems.
With delexicalized inputs and direct word generation, the frequency baseline produces 57 lexicalization errors on the manual sample, and the recurrent lexicalizer produces 25. With the same inputs and the lemma-tag mode, the respective counts are 45 and 6. Under lexicalized input, the direct-word pair gives 34 and 10 lexicalization errors, and the lemma-tag pair gives 34 and 4. The reductions occur across all of the settings examined. The lowest counts occur when the learned lexicalizer receives candidates constrained by a tag predicted for the placeholder.
Lexicalization errors with delexicalized inputs on the Czech manual sample
Context-sensitive selection reduces form errors in both modes, with the lowest count for lemma-tag generation.
The numbers
| System or setting | lexicalization errors |
|---|---|
| Direct words, most frequent | 57 |
| Direct words, recurrent lexicalizer | 25 |
| Lemmas and tags, most frequent | 45 |
| Lemmas and tags, recurrent lexicalizer (this paper) | 6 |
The example involving the expensive Turkish restaurant Green Spirit shows the mechanism behind one of these improvements. In the generated sentences, the price description must agree with a feminine singular noun. The frequency baseline inserts drahé, the neuter form in the example. The recurrent lexicalizer chooses drahá, which agrees with the noun in context. The restaurant, the price range, and the food type are the same before and after that change. The advantage comes from realizing the price range in a form that fits the surrounding words.
The distinction between the manual categories for a bad choice and for an impossible context helps locate the corrective power of the lexicalizer. For delexicalized inputs, the impossible-context count is 11 under either lexicalizer in either generation mode. With lexicalized input, it is 6 for direct generation and 4 for lemma-tag generation, again independent of which lexicalizer is used. Selecting forms more intelligently reduces mistakes where the candidate set and sentence make a good choice possible. If the construction itself cannot accommodate the specified value, a better score for alternatives in the same placeholder cannot repair the necessary words elsewhere in the sentence.
Lemmas and tags improve fluency while coverage worsens
The comparison between word forms and lemma-tag sequences changes more than the output vocabulary. It introduces explicit grammatical predictions, a dictionary step for ordinary words, and tag filtering for slot values. The positive results establish the benefit of this package under the settings where it was tested. They do not identify the independent contribution of each part. In particular, the lower lexicalization counts could reflect the removal of incompatible candidates, better context for the recurrent lexicalizer, or the combination of those effects.
When the generator receives delexicalized input acts, the lemma-tag configurations improve BLEU and NIST over direct word generation for every matching lexicalizer. The random condition is informative because it lacks training-based preferences among the applicable forms. It achieves BLEU 19.66 with lemma-tag generation and 15.51 with direct generation on the Czech test partition. The tag filter gives even a random selector a better chance of landing on a suitable form. The conditions also differ in how ordinary words are generated, so this comparison leaves part of the cause unresolved.
Manual counts show why the paper describes lemma-tag generation as helping fluency overall. On the sample, with delexicalized inputs and the recurrent lexicalizer, the combined count for additional fluency problems, impossible contexts, and lexicalization errors is 22 in lemma-tag mode and 41 in direct word mode. The count for fluency problems outside lexicalization is 5 in each of these two settings. The impossible-context count is also shared. For this particular pair, the manual fluency advantage is visible in the realized forms rather than in a broad decline across all categories of grammatical trouble.
Content errors move in the other direction. In those same manual settings, there are 12 semantic errors with lemmas and tags and 8 with direct words. The direct mode has 0 repetitions in the sample and the lemma-tag mode has 2. The corresponding test SER values, 01.85 and 00.70, place the systems in the same order on automatic slot coverage. The explicit grammatical representation helps the generator and lexicalizer realize what they choose to express. It does not make the decoder more reliable at choosing all the necessary content in this study.
Concrete inputs change how sentences are built
Lexicalized input was intended to give the generator access to distinctions that can affect neighboring words. Automatic evaluation gives little evidence of an overall improvement from the change. The relationship is clearer in the manual inspection. With lemma-tag generation and the recurrent lexicalizer, the combined fluency count is 14 for lexicalized inputs and 22 for delexicalized inputs. The semantic-error count is 15 with lexicalized inputs and 12 with delexicalized inputs. Repetitions are also more frequent in the lexicalized pair. The richer input seems to help some decisions about how to express the facts while making it harder to preserve the requested set of facts consistently.
In direct word mode with the recurrent lexicalizer, both input conditions have a total of 49 annotated errors in the sample. The kind of error changes. With lexicalized inputs there are 10 lexicalization errors, 14 semantic errors, and 5 repetitions. With delexicalized inputs there are 25 lexicalization errors, 8 semantic errors, and 0 repetitions. A total could make these results look interchangeable. For a reader trying to understand what the system learned, the distribution of problems is more informative. A sentence can become easier to realize with its particular values and still become less reliable as a report of the input.
The paper's count example brings the two effects into the same utterance. The input includes a count of 218 alongside a restaurant type and several preferences that the customer has left open. With delexicalized input, the direct word generator uses restaurace after the numeral. The lemma-tag generator realizes restaurací, which suits that count, even though the input has abstracted away the numeral. The sentences in both settings leave out the area information. The lexicalized-input examples also use restaurací, but omit other pieces of the intended content, and the direct word example repeats the qualification about food type. Correct local grammar and coherent coverage are visible as distinct achievements within the example.
The paper describes the more difficult inputs as dialogue acts that are uncommon or markedly different from those seen in training. The count example shows what can go wrong when several conditions have to fit in one answer. The error analysis identifies where a particular system stumbled. It does not isolate frequency from novelty or quantify their separate effects. Likewise, the main comparisons do not remove bidirectional encoding, dropout, or the semantic reranker one at a time. The reported controls support conclusions about the chosen generation representation, input representation, and lexicalizer within the extended TGen system.
Limitations
Limits identified by the authors
The authors describe the lists of entities as much shorter than would be needed for a real restaurant application. They use the entries to cover common patterns of inflection and grammatical behavior. That is a different target from handling the full variety of names, streets, landmarks, and neighborhoods a deployed service would encounter. The explicit-value input experiment also depends on the lists being small. The paper suggests representing values by classes with shared grammatical behavior if their inventory becomes larger.
The translation strategy has its own limits. The authors acknowledge a quality cost from translating unique texts and then expanding the result. The original construction and the Czech generation process both contribute to the resulting repetition patterns. A high-scoring utterance is more likely to be copied in expansion, and copied utterances have values changed and their grammar repaired. The translations were made in isolation, with stylistic choices set for the system's voice. The dataset provides examples of how to verbalize a turn. It supplies limited evidence about how wording would vary across a longer interaction.
The authors also make clear that their strongest systems leave substantial errors. Their manual examples contain missing slots, repetitions, and flawed phrases even after context-sensitive lexicalization and morphological generation have done their work. They suspect that greater amounts of training data would help with difficult and infrequent acts. In the conclusion, they propose collecting unannotated material to pretrain the generator and consider using machine translation to obtain synthetic training examples. These are directions they identify for future investigation.
The authors account for shortcomings of automatic scoring by adding the manual analysis, drawing on earlier work on evaluation metrics for generation and the validity of BLEU. The manual study is an annotation of errors, with designated categories and a sample of outputs. It offers a more direct view of particular failures than reference overlap can provide. It does not supply a preference ordering from users or measure how people would respond to these utterances in dialogue.
Limits of what the setup establishes
The split is demanding along a particular axis. A test example can contain a new combination of an act type and abstract slots, while drawing on words, concepts, or entities known from elsewhere in the dataset. The study does not report a split that holds out entities as a separate test. Moreover, the form inventory is assembled from the dataset during preparation and is available at lexicalization time. The results therefore concern generation with access to a curated list of applicable forms. They leave open how a system would obtain a reliable list for a name introduced at deployment or settle a form for a name that the morphology tools cannot analyze.
There is also a distinction between faithful communication of a record and accuracy about a restaurant in the world. The task requires the output to reflect a particular input act. Since localization gives many establishments attributes that are inaccurate outside the dataset, semantic success means preserving those attributes in the utterance. It is evidence about the path from structured input to text. The experiment does not ask the generator to retrieve or verify restaurant facts.
The automatic metrics give different kinds of partial evidence. With a single reference, an acceptable paraphrase can share fewer words than a faulty sentence whose wording happens to resemble the reference. Slot error rate can detect a missing placeholder even when the visible sentence reads naturally. It cannot assess the inflected realization after insertion, and it omits the children-allowed slot. In some settings the manual results pick up a fluency benefit that the overlap scores do not favor. Treating either automatic measure as a complete account would obscure the tradeoff the experiments expose.
The scope of the manual analysis also matters when comparing the best settings. The absolute counts describe the sample of 100 sentences, and the categories can overlap in one utterance. The recurrent lexicalizer's reduction in form-selection errors is visible under every evaluated pairing. Smaller differences between individual configurations describe the inspected sample and cannot by themselves establish a dependable ranking over other dialogue domains, styles of Czech, or sources of input data. The kept-in-training goodbye and follow-up acts also mean the test results provide no separate evidence about how well the systems realize those act types.
Finally, predicting a lemma and a tag is a way to share evidence across word forms and make grammatical information explicit. The architecture still predicts a sequence whose decisions can conflict with one another or with the input. A dictionary can realize the form requested by the prediction. It cannot determine from that request alone whether the utterance has repeated itself or mentioned every slot. The strongest configuration on the overlap metrics still has a higher measured slot error rate than the best direct-word condition on that measure. The experiments establish gains in identifiable parts of generation, with the remaining quality depending on both the grammatical realization and the preservation of the input content.
What came after
The GEM Benchmark (2021) cites the Czech study in later work on evaluation and benchmarks for natural language generation. The connection is the treatment of generation as an experimental task with defined inputs, held-out data, and metrics whose scope matters. The Czech study provides a concrete case in which corpus design and evaluation choices affect the interpretation of a score. Its split tests previously unseen abstract acts, and its human error counts reveal changes in fluency that the overlap scores can miss. GEM's stated remit includes generation, evaluation, and metrics. The citation alone does not establish which Czech data, splits, or procedures GEM used.
PaLM (2022) also cites the Czech study. Its stated subject is scaling language modeling with Pathways. That places the citation in a line of research with a broader question about language generation than the restaurant task addresses. The Czech experiments specify an exact information-preservation requirement and distinguish the ability to produce a grammatical expression from the ability to communicate the full input. The citation does not establish that PaLM adopted TGen's morphology component, used its form inventory, or reported a directly comparable Czech restaurant result. The documented connection is that later work at both the benchmark level and the language-modeling level cites the study.
Cite
Cite as Ondřej Dušek and Filip Jurčíček. 2019. Neural Generation for Czech: Data and Baselines. Proceedings of the 12th International Conference on Natural Language Generation.
@inproceedings{dusek2019neural,
title = {{Neural Generation for Czech: Data and Baselines}},
author = {Ondřej Dušek and Filip Jurčíček},
booktitle = {Proceedings of the 12th International Conference on Natural Language Generation},
year = {2019},
doi = {10.18653/v1/w19-8670},
url = {https://doi.org/10.18653/v1/w19-8670}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dusek-2019-neural-generation-czech-data-baselines/