Elamur Research

The DipInfo-UniTo system for SRST 2018

Paper · 2018 · Valerio Basile and Alessandro Mazzei

Summary

A dependency tree records how the words of a sentence fit together grammatically. Even with those relationships in hand, generating the sentence still requires deciding where the words go and what forms they take. A verb may be supplied in its dictionary form, for example, although the sentence needs a form that agrees with its subject. The DipInfo-UniTo paper describes a system for the shallow track of the 2018 Surface Realization Shared Task, where the input retained grammatical relationships but the original word order and inflected forms had been removed. The authors aimed to recover readable sentences from that information using the same basic procedure across languages. Dependency parsing · Word form

The system assigns word order and inflection to separate networks. Its ordering network takes a head and its immediate dependents, such as a noun and the words that modify it, and learns to arrange that group. It repeats the operation throughout the tree, then expands the groups into a sentence. The resulting order keeps each subtree together, which rules out some arrangements found in the original sentences. In parallel, a character-based network takes each word’s dictionary form and grammatical information and predicts its inflected form. The system brings the resulting forms and positions together and uses the treebanks’ annotations to help recover written conventions such as Italian della from di and la. Morphology · Treebanks

The authors trained and tested the system separately for English, Spanish, French, and Italian. The final submissions placed 6th out of 8 on both BLEU and NE DIST, and 5th out of 8 on NIST. On the shallow-track test sets, BLEU scores ranged from 23.12 for French to 26.90 for Spanish. The other metrics gave different pictures of relative performance across languages. English had the strongest reported NE DIST result, while Spanish had the highest NIST score among the submitted languages. The paper reports these as scores for the complete system, from tree input through final sentence formatting. BLEU score

The experiments show how far this division of labor can take a multilingual surface realizer. A ranker trained on small grammatical neighborhoods and a separately trained inflector produced competitive submissions covering several languages, with overall standings in the middle to lower part of the field. The design also makes a distinction between what the input leaves for the system to learn and what its architecture lets it express. A local ranking error can put a phrase in the wrong place, while a required order that breaks up a subtree may be outside the system’s reach even if every local decision is correct. The authors identify communication between the ordering and inflection components, along with further tuning, as directions for improvement.

Deep dive: The DipInfo-UniTo system for SRST 2018

The DipInfo-UniTo system turns unordered dependency trees into sentences by learning word order and inflection separately for four languages. · about 34 minutes to read

The problem and its context

What the input gives the realizer

Surface realization is the part of text generation that turns a structured representation into a sentence. The word surface refers to the actual words a reader encounters and their arrangement. In this task the structure already specifies which words are involved and gives much of their grammar. That narrows the generation problem considerably, while leaving decisions about ordering, inflection, and written presentation to the realizer. The target is a sentence close to the one from which the structure was drawn.

The input is a tree in the framework of Universal Dependencies. Each word occupies a node, and a dependency relation connects a dependent to the word that serves as its head. A noun can be the head of its modifiers while itself depending on a verb. The tree thus conveys which pieces belong together and the kind of grammatical relationship between them. A head can have several dependents, and a dependent can have dependents of its own. The hierarchy is still present after the sequence of words has been scrambled.

A lemma, the dictionary form used to identify a word, is also different from a word’s written realization in a sentence. The Italian example in the paper illustrates this distinction with the verb lemma contenere and the inflected verb contengono. The lemma gives the realizer the lexical material to work with. Information about the word’s grammatical features helps specify the form needed in context. The ordering component faces a separate question about where the verb and its dependents belong relative to one another. Lemma

The organizers derived the task inputs from annotated sentences. They removed the inflected forms and replaced the original sequence with a randomized order. If a noun happened to precede an adjective in that randomized input, their order in the file offered no reference for how the sentence should read. Their grammatical connection remained available. This is what makes the input usable for a local method. It gives the system a reason to consider the noun and adjective together even when they are far apart in the supplied sequence.

Recovering the intended arrangement also involves choosing the scope of each decision. A realizer could treat the whole sentence as a set of words to put in order. DipInfo-UniTo instead treats the tree as a collection of neighborhoods and learns an ordering decision for each neighborhood. The paper’s design question is whether these decisions contain enough information to reconstruct the sentence order. A dependency relation says that a modifier belongs with a noun, for example, but that fact alone leaves its position relative to the noun and other modifiers unresolved.

The resulting sentence has to be written in the conventions of the language. In a treebank, separate grammatical units may appear under a single written token. Italian della can contain a preposition and an article that occupy separate positions in the annotation. A realizer can place the two units correctly and choose appropriate forms, yet still need a final operation to turn them into the expected written token. Spacing around punctuation likewise belongs to the recovery of the sentence that the reader will see. Tokenization

Earlier ways of generating from a structure

The paper situates its task among approaches to natural language generation that take a formal structure as input. One example is SimpleNLG. The authors describe it as an English sentence generator that receives a tree-like representation with grammatical features. They also note that it had been used in a range of generation systems and adapted to other languages, including Italian. This example establishes that a structured description can supply the ingredients of a sentence and leave a realizer responsible for converting them to words in sequence.

Another example is Basile’s earlier work on generation from a Discourse Representation Structure. A representation of that kind starts with the meaning of a discourse, organized recursively. The earlier method transformed it into a directed graph whose elements could be aligned with the words of the resulting text. The current paper draws on the resemblance between such a graph and the trees in the shared task. The information represented is at a different level, but the graph-to-sentence setup offers a precedent for deciding how a structured input will be expressed.

DipInfo-UniTo borrows the division between ordering and inflection and makes a strong simplifying choice about their relationship. Both tasks can be addressed directly from the structured input. The ranker receives grammatical and lexical features of the nodes to be arranged. The inflector receives the lemma and its own set of grammatical features. Neither must wait for the other to produce a result. Their separate training files and prediction procedures reflect that choice, while a final merge gives every output word both a position and a form.

The paper also relates its extraction of local groups to work by Bohnet and colleagues. Each group consists of a head and its immediate dependents. What distinguishes the procedure here is the restriction imposed when those groups are assembled back into a sentence. The paper identifies earlier work on non-projective ordering, and its own reconstruction requires projectivity. In practical terms, the subtree under a word must be realizable as a continuous span. A method with that restriction can delegate much of the ordering to local choices, at the cost of excluding arrangements that interleave material from separate subtrees.

For scoring those local groups, the authors use ListNet, a supervised ranking algorithm. Its precedent in the paper is a ranking problem in which the objects to order are considered as a list. The alternative approaches the authors mention operate on individual items or pairs. Those units of training imply different ways of judging a prediction. The listwise approach compares the predicted arrangement with information derived from the reference arrangement of the group. By extracting small groups from a tree, the authors keep the amount of material involved in each such decision manageable.

Inflection has a different kind of structure. The order of letters in a lemma frequently gives a useful basis for constructing its inflected form. The paper adopts a character-based method with an attention pointer that advances along the input. Through that mechanism, the system can learn which material to retain or alter as it writes the output. This was an existing approach to morphological inflection. The contribution here is its use alongside local syntactic ranking in a system that must deliver complete sentences.

The shared task makes the combination testable under common output conditions. Entrants start with prepared dependency structures and submit written sentences for comparison with references. For this paper, the task also offers a way to investigate how much of the useful input can come from Universal Dependencies. The authors mostly draw on the treebanks, with an additional source of lexical information for the ranking component. The treebanks matter at several points. They define the input grammar, supply the supervised targets during training, and provide examples of how multiple grammatical units appear together in the written sentence.

The method, step by step

Two predictions for each sentence

The easiest way to follow the system is to trace what happens to a single word. In the ordering branch, the word participates in a decision about the arrangement of a head and its immediate dependents. In the inflection branch, the same word is represented by its lemma and grammatical characteristics and receives a predicted written form. Once the various local decisions have been assembled into a sentence order, the position supplied by the first branch is paired with the form supplied by the second. Final processing turns the completed tree into a string.

The branches divide the work by prediction target. The ranker can use information about a word’s morphology without receiving its predicted spelling. The inflector can use the word’s relation to its head without receiving the predicted sequence of surrounding words. That distinction matters when describing the components as independent. Both can draw on facts originally annotated for the same node, while each makes its prediction without consulting the result of the other.

From an unordered dependency tree to a sentence

The steps in order.

From an unordered dependency tree to a sentenceStep 1: Read lemmas, grammatical features, and dependency relations1. Read lemmas, grammatical features, and dependency relationsStep 2: Extract each head and its immediate dependents2. Extract each head and its immediate dependentsStep 3: Rank each group and expand the ordered subtrees3. Rank each group and expand the ordered subtreesStep 4: Predict inflected forms independently from lemmas and features4. Predict inflected forms independently from lemmas and featuresStep 5: Merge the predicted sequence and forms5. Merge the predicted sequence and formsStep 6: Recover contractions and detokenize the sentence6. Recover contractions and detokenize the sentence

The ordering branch has a local operation and a recursive operation. The local operation decides how the immediate members of a group should line up. The recursive operation uses those decisions to give all the descendants a place in the output. The inflection branch has its own input conversion and learns a character transformation from examples. The final conversion to text follows the merge, because a contraction depends on which realized tokens end up next to each other.

Extracting the groups to rank

A full dependency tree can be several layers deep. The system takes a head with dependents and makes a flat group containing that head and the nodes directly attached to it. The same operation is performed lower in the tree wherever another node has dependents of its own. A word can therefore have two roles in the procedure. It can compete for a position among the members of its parent’s group and serve as the head of its own group. Its descendants are considered when its own group is ordered.

The paper illustrates this with an Italian sentence about works containing toxic chemicals. The verb identified by the lemma contenere organizes the main group. The noun opera is part of the larger verb-centered structure and heads a group with the items that describe the works. The noun prodotto also participates in the larger structure and heads a group containing chimico and tossico. From the ranker’s perspective, the immediate decision involving prodotto and those two adjectives is a small ordering problem in its own right.

The nested structure gives the two appearances of a noun different jobs. In the verb-centered decision, the noun represents where its part of the sentence belongs relative to the verb and the other members of that group. In the noun-centered decision, the ranker decides which items precede and follow the noun within that part. Once the noun’s subtree is expanded, its phrase occupies the place assigned at the higher level. During the higher-level comparison, the ranker deals with the child node as a single member of the list.

This conversion is where the input tree becomes a set of training or prediction instances that ListNet can handle. There is no need to search through all complete sentences built from the words. Each instance contains the features of the members of one neighborhood. For training, the original sentence provides the order of those members. For prediction, the tree supplies their identities and relationships, and the learned ranker supplies their order. A node with no descendants requires no internal ordering before it can be included in a larger group.

The word head has a local meaning when used as a ranking feature. A noun that is a dependent in the verb’s group is the designated head in its own group. Its lexical identity and grammatical properties can stay the same in both uses. The feature that records its status tells the ranker what role the item has in the current list. Without that distinction, the feature representation would lose a direct indication of which item the flat group is organized around.

Representing the members of a group

The ranker receives vectors of numerical features. Several components are one-hot encodings, meaning that a categorical choice is represented by activating the entry assigned to its value. The authors include the universal part-of-speech tag and the tag specific to the source treebank. A part-of-speech tag identifies a grammatical category such as noun or verb. The universal tag and treebank-specific tag give the ranker information from both the common annotation scheme and the source’s own classification. Part-of-speech tagging

The vectors also encode the available morphological features and the item’s status as head or dependent in the extracted group. This allows the ranker to use both the category of a word and its role in the particular decision. An item’s relative position can depend on more than its identity. For instance, the fact that a noun is the organizing member of a list conveys information absent from the bare fact that its lemma is opera. The paper presents the features as inputs to the same scoring procedure.

Lexical information is represented differently for content words and function words. For an open-class lemma, the authors add a pretrained, language-specific vector from Polyglot. Such a word embedding supplies a numerical representation of lexical identity in which the entries are learned. For closed-class words, the authors use one-hot lexical features. A function word’s identity can therefore contribute directly through its own entry. The features for content and function words differ, while both kinds of item are ranked inside the same groups. Word embeddings

The Polyglot vectors are the paper’s stated exception to its reliance on information drawn mostly from Universal Dependencies. They are used for the ordering branch. The morphology branch instead starts from the lemma, the annotations for that word, and the dependency relation to its head. The paper mentions an implementation of the ordering feature conversion and identifies the previously used ListNet implementation on which the ranker is based. These implementation details distinguish the feature preparation from the learning algorithm that consumes its output.

At training time, the information needed to establish the correct order is kept distinct from the information presented as predictive features. The original treebank can tell the training procedure where a word occurred and what its surface form was. Those values provide supervision for the two branches. They cannot be ordinary input features if the procedure is to operate on a test tree that has had exactly those values removed. The authors accordingly ignore original order and inflected forms when converting nodes into the ranker’s feature representation.

Learning a ranking with ListNet

For a newcomer, the ranker can be understood as a learned scoring rule. It gives each item in a group a score based on its features and turns the scores into an order. During training, groups come with reference orders. The system adjusts the scoring rule so that the scores it assigns give more support to the desired arrangement. The cost is computed for the group, which lets the training procedure compare how much weight the rival items receive within the same list.

ListNet’s starting point is a probability distribution over possible permutations of a list. A permutation is a complete arrangement of its objects, with each object appearing once. Considering all such arrangements directly is expensive as lists get longer. The paper describes the approximation ListNet uses. For each object, the method considers the probability that it occupies the first position, collecting the probability of every complete permutation in which it comes first.

Pₛ(j) = ∑{π ∈ Ωₙ, π(1) = j} Pₛ(π)

Here s is the sequence of scores associated with the items in the list, and n is the number of items. The paper denotes the scores for the individual items by s₁ through sₙ. The symbol j identifies the item whose top-position probability is being computed. The set Ωₙ contains the permutations of the n items, and π is one such permutation. The expression π(1) identifies the item placed first by that permutation. The summation ranges over arrangements that meet both conditions below the sum, so Pₛ(j) collects the probability mass Pₛ(π) allotted to those arrangements under the scores s.

The distribution gives a probability for each item to occupy the top position. A score that puts more weight on one item as the first choice affects that item’s standing relative to the others in the same list. The training procedure uses this distribution as a tractable way to encode information about a proposed ranking. It still returns an entire local order at test time. There is no separate stage that predicts just the first item and leaves the rest of the group unresolved.

The next step is to measure how far the distribution associated with a prediction departs from the one associated with the reference. ListNet uses cross-entropy for this comparison. Each item’s contribution depends on how much reference probability it has and how much probability the prediction assigns to it. This makes the comparison sensitive to the assignment of probability within a group, even though the downstream output is the ordering of the items.

L(y, z) = −∑ⱼ₌₁ⁿ Pᵧ(j) log(P_z(j))

In this expression L denotes the listwise loss. The symbols y and z designate the reference and predicted scoring or ranking descriptions, respectively, for the same items. There are n items, and the summation uses j to visit each of them. The factor Pᵧ(j) is item j’s top-position probability under the reference, while P_z(j) is its top-position probability under the prediction. The function log takes the logarithm of the latter probability, and the leading minus sign makes low predicted probabilities costly where the reference gives an item weight.

The paper plugs that loss into a linear neural network. The input to learning is a collection of ordered lists of feature vectors. For a list, the network produces scores, and the loss supplies a signal for adjusting the weights by gradient descent. The updates are iterative. After a weight adjustment, the network can score later lists differently, and the training procedure can judge those predictions against their reference ranks. The implementation includes a regularization parameter intended to restrain overfitting to the training material.

The choice of a listwise loss fits the way examples are extracted. The relevant comparison is between the words attached to the same head and the head itself. ListNet is described as a generalization of RankNet, the pairwise ranking approach cited in the paper. Here the small size of the extracted lists makes the listwise calculation practical. The ordering network learns from relationships among the scores in such lists, while the eventual order of a long sentence is generated by applying the local ranker throughout its tree.

Expanding the local orders into a sentence

Suppose a head’s local ranking puts one child before it and another after it. Each of those children can stand for an entire subtree. The reconstruction keeps the position assigned by the local ranking and places the child’s realized subtree there. The position before the head can thus contain a phrase whose internal sequence was determined in a separate decision. The same reasoning applies to the position after the head. Once all the children have been expanded, the local sequence has become an ordered span containing every descendant of the head.

The restriction that makes this expansion possible is projectivity. In the reconstruction, the descendants associated with a child have to fit in its region of the parent’s order. Consider two children of a verb whose subtrees each contain additional words. Once the ranker has put one child before the other, the first subtree’s material is emitted as a unit before the second subtree’s material. A word from the second subtree cannot interrupt the first and then be followed by more of the first subtree.

The paper describes the recursion in terms of a global ordering operation and a local ordering operation. In the recursive case, the notation below makes explicit that expanding a child uses the position already chosen for that child.

O(Tₕᵏ) =
  h                                                      if k = 0
  Oₗₙ(h, c₁, …, cₘ)                                     if k = 1
  Oₗₙ(h, O(T_{c₁}ᵏ⁻¹), …, O(T_{cₘ}ᵏ⁻¹))                 if k > 1

Here Tₕᵏ represents a tree at recursion level k with root h. Its immediate children are c₁ through cₘ, with m giving their number. The operation O returns the output order for a tree, and Oₗₙ denotes the order learned by ListNet for the group consisting of the head and the immediate children. The expression T_{c₁}ᵏ⁻¹ stands for the child tree rooted at c₁ in the next level of the recursion, with the same interpretation for the other children. At k = 0, the tree contributes its root alone. At k = 1, the local ranking is already the complete order for that group. For larger k, each child slot in the local order contains the result of ordering its subtree.

In the last line, ListNet still scores the head and the child nodes using their features. The ordered subtree in a child slot is the material emitted when that slot is expanded. Treating it as a fresh item to score on the basis of a new phrase vector would be a different procedure. This distinction explains why the operation can be recursive while its learned part continues to operate on flat lists.

The paper also writes the local operation as a learned permutation parameterized by the group’s feature representation.

Oₗₙ(h, c₁, …, cₘ) = P_ListNet^F(h,c₁,…,cₘ)

The left-hand side is the local order for head h with children c₁ through cₘ. On the right, P_ListNet stands for the permutation obtained from the trained ListNet ranker, and the superscript F(h,c₁,…,cₘ) marks its dependence on the features extracted for those items. The superscript indicates parameterization by those features. In this formula P_ListNet denotes an ordering, while Pₛ in the loss calculation denotes a probability.

The paper illustrates the consequence with an English sentence about giving a talk. The temporal adverb yesterday occurs after a talk and before about generation. The dependency structure attaches the latter material with the noun phrase, so the observed sequence interrupts a subtree with a word from outside it. The realizer can put yesterday before the complete phrase a talk about generation. That preserves the contiguity required by the reconstruction and changes where the adverb appears relative to the noun.

This case draws a practical boundary around the learning problem. If the reference order lies within the class of projective reconstructions, ranking the local groups well can in principle recover it. If the reference needs an interruption of the kind in the example, that sequence is unavailable under the reconstruction rule. Training can still affect which permitted ordering the system chooses. The restriction itself follows from how the child slots are expanded.

Learning to write inflected forms

The inflection branch starts from a word’s lemma and the grammatical features associated with it. The paper uses all the morphological features available from the original dependency annotation, plus the relation linking that word to its head. The training target is the attested inflected form. Thus the branch sees the lemma as the base sequence and the features as information about which transformation the context calls for.

The authors adopt an encoder–decoder architecture with hard monotonic attention. The encoder represents the input, and the decoder constructs the output in character-sized steps. Hard refers to attention through an explicit pointer to an input state. Monotonic means that advancing the pointer takes it forward along the input. At a step the procedure can write an output symbol or move to the next input state. The mechanism expresses the idea that a lemma and its inflected form frequently have characters that correspond in the same relative order.

The ability to write a symbol and the ability to advance are separate. Following the input from left to right still allows the output to differ in length and spelling. Conditioning is also broader than a rule that sees only the character at the pointer. As the paper explains, the architecture lets information from the entire input sequence inform the output. The pointer determines the current step in the alignment, while the input representation can carry broader context for that transformation. Morphological Inflection Generation with Hard Monotonic Attention

That input context is the lemma and supplied features for the word, with the grammatical relation included as a feature. The inflector does not look at a sequence produced by the ranker. For the Italian verb example, the branch’s job is to choose the form associated with contenere under its features, whether that word is ultimately placed before or after another constituent. The local ranking branch likewise has no access to the resulting contengono when it chooses the verb’s position.

The authors use the existing implementation of the inflection architecture and train it on the shared-task training material without special parameter tuning. In the training pipeline, each example pairs the combination of a lemma and its features with the observed written form. At test time, the trained network predicts the form for the corresponding combination in the test file. The pipeline gathers these outputs into a mapping that can be used when filling in the forms of the ordered tree.

This separate formulation makes the data requirements clear. The ranker needs reference arrangements of the nodes in its local groups. The inflector needs examples of how annotated lemmas were realized. The original treebank ties both kinds of information to particular word occurrences. The network implementations solve different problems on different views of those occurrences, even though the final system must put their answers back together.

Preparing training and test inputs

For each language, the authors prepare two training files from the original annotated trees. One file contains the local ordering examples and their numerical features. The other contains the inflection examples with their target word forms. Keeping these files separate reflects what each learner has to predict. The authors run the training pipeline separately for the languages they submit, so that the common architecture can use the vocabulary, annotations, and training examples of the language concerned.

The test pipeline prepares the two corresponding kinds of input from the organizers’ files. The ranker receives the feature vectors arranged by local group. It supplies the local orders, and the recursive procedure supplies the sentence order. The inflector receives the lemma and features of each item and supplies the inflected form. The pipeline then merges the output of these processes in a completed tree in CoNLL format. The tree still makes the grammatical units explicit while also carrying their predicted positions and surface forms.

Doing the merge at the tree level preserves the correspondence between words and their predictions. A form produced for a noun is associated with that noun’s place in the tree. Its final location comes from the ranking branch, which may have positioned the noun as part of a larger subtree. Only after the predictions have been combined is the result flattened into sentence text. This gives the last phase access to the ordered sequence of realized forms.

Recovering the written sentence

The authors handle a class of contractions through examples already marked in the treebanks. An annotation can give an entry spanning a range of token indices for the written multiword unit, followed by separate entries for the grammatical tokens it contains. In the Italian example, della covers di and la. The two components can therefore be processed as grammatical units earlier in the system, while the written form is restored after ordering and inflection.

The same annotation mechanism covers certain combinations of a verb and a clitic. A clitic is a grammatical element that can be written attached to another word. The paper’s Italian example contains Dammi, with the verb and pronoun represented separately in the analysis. Recovering this written unit depends on producing the component tokens and bringing them together in the sequence. The procedure uses the training annotations to derive replacement patterns for these combinations.

The replacements are extracted as regular expressions, which describe text patterns to match and substitute. The Italian pattern discussed in the paper recognizes the separate words di and la and joins them in the written form della. The approach reuses the relation between the multiword entry and the individual token entries. The counts are uneven across languages. From the training files, the authors extract 0 expressions for English, 923 for Spanish, 9 for French, and 920 for Italian. These numbers describe the postprocessing resources derived from the annotations. They give no score for how often the replacements are needed or correct on test sentences.

After contractions, the authors use the Moses detokenizer to deal with the spaces between the resulting units and with punctuation. The script supplies settings for English, French, and Italian. For Spanish the system uses the Italian configuration as an approximation. The postprocessing therefore combines patterns induced from each language’s available annotations with an existing detokenization procedure. The end product submitted to the organizers is the sentence string that results from both phases.

Experiments and results

Data and training conditions

The shallow track offered ten languages. The organizers supplied ten training files and ten development files derived from Universal Dependencies version 2.1, along with ten files of original sentence text. The modified trees contained the lemmas and grammatical structure, with the original positioning and surface forms removed. The evaluation used test inputs from the organizers, which the authors converted into the two views required by the ordering and inflection branches.

The separate files of sentence text were insufficient for the authors’ training procedure in cases where the same lemma occurred more than once. A shuffled structure identifies distinct grammatical occurrences, but the lemma on its own may give no unique way to connect each occurrence to a position in the original sentence. Supervised local ranking requires the correct original placement of the particular node. Supervised inflection requires the correct form for that occurrence. The authors therefore used the original version 2.1 treebank files, where the order and realized form are attached to the annotated words.

For English the training material came from the English treebank, for Spanish from Spanish-AnCora, and for French from the main French treebank. The Italian training file was assembled from four sources. It combines the main Italian treebank with Italian-PUD, Italian-ParTUT, and Italian-PoSTWITA. The setup thus shares an annotation framework while allowing the underlying training material to differ by language. The paper identifies the files used, but gives no sentence or token counts for the training sets. English · French

The task allowed entrants to use any resource for training. The authors chose to work chiefly with information from Universal Dependencies to see how useful its annotations were for generation. Polyglot’s lexical vectors were the additional resource used for open-class words in the ranker. The test pipeline also includes the Moses detokenizer. The data decision underlying the experiment is therefore a broad preference for treebank information, with the external lexical representations and the existing postprocessing script playing specific roles.

The authors initially intended to cover every language offered. Time constraints narrowed the submission to English, Spanish, French, and Italian. For English, French, and Italian, the paper reports training times of around 36 hours for ordering and 24 hours for inflection. It describes training for Spanish as taking roughly twice as long and notes the larger Spanish training file. The runs used two multi-core GNU/Linux PCs with GPU capability. The reported times describe these runs and are tied to the authors’ choice of submission coverage.

Scoring the completed sentences

The evaluation reported by the paper is the organizers’ scoring of final outputs on the shallow-track test sets. Those outputs include ordering, inflection, contractions, and the removal of spaces according to the detokenizer. The scores therefore apply to complete sentence realization. They are not labeled as scores of the intermediate ordered trees or of isolated inflection predictions.

The paper reports BLEU, NIST, and a measure labeled NE DIST. BLEU compares units of consecutive words between output and reference, so copying the words into a different sequence can reduce the matches even when many individual words survive. The authors cite earlier work to motivate an interpretation of BLEU as more sensitive to word order and NIST as more sensitive to lexical choice. In their evaluation both metrics operate on the finished sentence and consequently reflect decisions made by both branches. N-gram · Interpreting BLEU/NIST Scores: How Much Improvement do We Need to Have a Better System?

The reported external comparison is the set of other shared-task entrants. UniTo comes 6th out of 8 by BLEU, 6th out of 8 by NE DIST, and 5th out of 8 by NIST. The paper gives these standings without scores for individual competing systems. It also gives no separate baseline for either component, such as a different ranker evaluated with the same inflector. The results can be read as a comparison of final standings and as a comparison across the language settings of UniTo.

The language-level results

The BLEU table has its highest reported language score for Spanish, at 26.90 on the Spanish test set. Italian scores 24.61, English 23.20, and French 23.12 on their respective test sets. The authors characterize BLEU performance as similar across the languages. That characterization concerns scores measured against each language’s own references. The data, training preparation, and orthographic conventions vary across these settings.

UniTo BLEU by language on the shallow-track test sets

Spanish leads on BLEU, with French and English close to each other.

UniTo BLEU by language on the shallow-track test setsUniTo English: 23.20UniTo English23.20UniTo Spanish (this paper): 26.90UniTo Spanish (this paper)26.90UniTo French: 23.12UniTo French23.12UniTo Italian: 24.61UniTo Italian24.61
The numbers
System or settingBLEU
UniTo English23.20
UniTo Spanish (this paper)26.90
UniTo French23.12
UniTo Italian24.61

The NIST results place Spanish first among the submitted language settings, with 9.58 on its test set. English follows with 8.86, Italian with 8.25, and French with 7.72. English and Italian therefore switch their relative places between BLEU and NIST. The ordering of the language settings depends on the metric used to compare the completed sentences. The ranking across teams also differs between BLEU and NIST.

UniTo NIST by language on the shallow-track test sets

Spanish leads on NIST, followed by English.

UniTo NIST by language on the shallow-track test setsUniTo English: 8.86UniTo English8.86UniTo Spanish (this paper): 9.58UniTo Spanish (this paper)9.58UniTo French: 7.72UniTo French7.72UniTo Italian: 8.25UniTo Italian8.25
The numbers
System or settingNIST
UniTo English8.86
UniTo Spanish (this paper)9.58
UniTo French7.72
UniTo Italian8.25

NE DIST gives a different pattern. The paper presents the English test result of 51.87 as the strongest for this measure. The result is 36.11 on the Italian test set, 24.53 on the Spanish test set, and 18.04 on the French test set. The authors say that an English advantage on this measure was also observed for other participants. They suggest the different morphological profiles of English and the Romance languages as a possible explanation.

The table includes an average row of 9.78 for BLEU, 13.06 for NE DIST, and 3.44 for NIST. According to the caption, that row covers the ten languages put forward for the shallow track. The language rows are results for the languages UniTo submitted, so the table’s average has a different scope from the charts above. The paper leaves the treatment of the remaining languages in that average implicit. The individual test-set rows are the direct account of the results for the submitted configurations.

Taken together, the scores place the system within the operational range of the shared task while showing that a single metric gives only part of the comparison. Spanish leads among the UniTo settings on BLEU and NIST, whereas English leads on NE DIST as interpreted by the authors. The test sets support observations about how each complete system performed against its own references. To attribute those patterns to decisions made by a particular branch would require measurements holding the other parts of the pipeline fixed.

What the ablations show

The paper reports no ablation experiments and instead offers a comparison across languages and metrics, a reference order excluded by projective reconstruction, and an interpretation of the final standings.

What changes across the test sets

The cross-language comparison shows a relatively close grouping of the BLEU scores in the authors’ reading of the results, together with a more pronounced distinction for English on NE DIST. Since the authors observe a similar distinction in other teams’ results, they suggest that it may reflect a property shared across systems. In particular, they mention the grammatical differences between English and the Romance languages. This is an explanation proposed for the observed pattern. There is no measurement in the paper of inflection errors broken down by language or by morphological feature.

Several parts of the experimental setting change with the language. The learned weights come from different treebanks, the amount of training material differs, and the sets of extracted contraction patterns have different sizes. The test sentences and their references change as well. The language comparison consequently gives an end-to-end picture of the same architecture applied to several settings. It cannot identify which difference between those settings accounts for a particular score.

Spanish illustrates the difficulty of assigning a cause. Its training file is described as larger, its runs took longer, and it gives the highest BLEU and NIST of the submitted settings. The paper has no Spanish training run with another data size that would isolate the effect of the training file. English gives the strongest NE DIST result in a different set of language and evaluation conditions. These observations establish what happened in the submitted runs and leave the effect of any one training choice open.

What the metrics say about the branches

The authors use the differing emphases of BLEU and NIST to interpret the contribution of their two components. They take BLEU to put more weight on order and NIST to put more weight on lexical choice, and suggest that ordering and inflection contribute comparably to the final result. The paper’s evidence for this suggestion consists of sentence-level metric patterns. There is no run in which one predicted component is replaced by its reference counterpart while the other prediction and the remaining processing steps stay fixed.

A single output can change on both metrics if a verb has the wrong ending. The mismatch concerns form, and any sequence spanning that word can also fail to match the reference. Moving a correctly inflected verb can have a similar effect on the sequences that surround it. Detokenization can change the way units appear in the string being compared. These dependencies make the metrics useful descriptions of completed outputs, while leaving the magnitude of each branch’s contribution unresolved.

The paper’s most direct finding about a design choice comes from the non-projective English example. The example traces a reference mismatch to the permitted output structure before any scores from the learned ranker are considered. If the adverb has to interrupt the noun subtree, then even a well-trained local ranker cannot recover that sequence under the stated expansion procedure. The example identifies an architectural cause for that case. The paper gives no count of how often this issue occurs on the test sets and no comparison with a reconstruction that allows such interruptions.

The distinctions matter when considering what helped the system work. The final standings describe what the submitted pipeline achieved. The projectivity example shows one condition under which that pipeline must choose a different order from the reference. The metric and language comparisons give the authors grounds for hypotheses about morphology and ordering. The reported evidence leaves the benefits of the individual feature groups, external embeddings, regularization, and contraction patterns unmeasured in isolation.

Limitations

Limits the authors identify

The authors explicitly identify the restriction to projective word orders. The reconstruction emits a subtree in a continuous span, so a reference arrangement that requires interleaving creates a structural mismatch. In the example with yesterday, the system can preserve the noun phrase or preserve the location of the adverb within the original sequence only by departing from one of the required conditions. Its stated reconstruction preserves the phrase’s continuity and chooses a compatible position for the adverb. That can yield a readable sentence whose order differs from the reference.

The conclusion identifies the independence of inflection and ordering as a point for future improvement. Once the predicted order is known, adjacent and nearby words could supply features to the inflection process. The authors also envisage information passing in the opposite direction. The submitted system relies on features derivable directly from the input and merges the predictions afterwards. It provides evidence for that parallel design as implemented. The proposed use of sequential information or reciprocal conditioning remains an open experimental question in the paper.

The authors also call for more experimentation with hyper-parameters, the settings that govern learning. The inflection architecture was adopted without particular tuning for the task. The reported scores therefore correspond to the configuration used for the submission, with no systematic comparison across alternative training settings. The paper gives an account of learning and run times, but does not establish which settings would deliver the best results within the architecture.

Time constrained the range of languages the authors tried. The language-independent claim concerns the basic realization approach, whose learning procedure and representation can be applied across languages. The demonstrated application covers the languages submitted. It involves separate training runs, language-specific embeddings, language-specific contraction patterns, and detokenization settings. The authors expressly identify the use of Italian spacing settings for Spanish as an approximation. These details clarify how a common design still depends on resources prepared for a language.

Limits of the evidence

The shallow-track input already supplies the content words, grammatical features, and dependency relations from an annotated sentence. Success in this setting measures the reconstruction of text from that structured input. A generator starting with a meaning representation would also have to make decisions about how that meaning is expressed in the dependency structure. A system receiving unreliable syntactic or morphological annotations would face different input conditions. The present evaluation gives no measurement under those conditions.

The original training files resolve a practical supervision problem, but they also set the conditions under which the learners acquire their targets. The system has access during training to token-level associations among a lemma, its features, its position, and its realized form. The authors chose those files because an alignment through the organizers’ separate shuffled and text files could be ambiguous. The experiment therefore shows what can be learned given the original annotated trees and how those learned predictions transfer to prepared test inputs with the target fields removed.

The inference about which component contributes how much is limited by the choice of outcomes. The paper reports metrics on final sentences. It gives no separate word-form accuracy or local ranking accuracy and no comparison using reference forms with predicted order or reference order with predicted forms. An error in inflection might lower sequence overlap, and an error in order might alter the measured contribution of words that were inflected correctly. The experiment does not quantify how frequently either type of error occurs or how much the errors interact at the sentence level.

The language findings require similar care. The datasets are independently prepared, and the Italian training corpus uses a combination of sources that differs from the training arrangements for the other languages. A score difference could reflect how well the training examples represent the test sentences, how regular a set of learnable transformations is, or how the final strings compare under a metric. The paper reports no matched analysis that controls for these possibilities. The proposed connection between English morphology and its NE DIST performance therefore stays at the level of a hypothesis.

Contraction and spacing introduce additional decisions after the two learned components have finished. The number of extracted patterns shows that the resources are very different in size across languages. It does not show the frequency with which each pattern applies, the proportion of test contractions covered, or the effect of the Spanish detokenization approximation on the submission. A final score can contain mismatches from these stages alongside those from inflection and ordering. The reported results leave the source of any particular mismatch to be determined case by case.

The paper compares sentence strings with reference sentences. In the non-projective example, the authors offer an alternative arrangement that the system can represent. Such an alternative can preserve the intended subject matter and still differ in the sequence of units used for scoring. The reported evaluation gives no independent judgment of how acceptable these alternative realizations are to readers or how frequently they occur. A score for reference matching therefore describes one outcome of realization, with grammatical acceptability left unevaluated in the reported results.

The paper also gives the team’s ranks without a competitor-by-competitor breakdown or an uncertainty analysis. A rank can show where the submission stood on a metric, while the size and stability of the gaps between entrants would require further information. Similarly, similar BLEU scores across languages do not establish that the system is equally reliable for each construction. The measured outcome is the complete submission on each test set, within the scope of the organizers’ assessment.

What came after

The citing work identified here is Neural Surface Realization for Italian, dated 2018. Its title narrows the scope to Italian, one of the languages evaluated in the DipInfo-UniTo submission. That is the identifiable connection between the studies. DipInfo-UniTo demonstrated an Italian setup within a common architecture for several languages, while the citing work takes Italian surface realization as its named subject. Neural Surface Realization for Italian

The citation establishes a relationship between the studies, and the title identifies the shared research problem. The specific technical inheritance is undocumented here. It is unclear whether the Italian work adopted the local ListNet ranker, reused character-based inflection, or changed the relationship between the two tasks. The ideas the DipInfo-UniTo authors themselves put forward for further study are more specific. They suggest allowing information about order to influence inflection, or allowing inflection to inform order, and investigating training settings more thoroughly. Those proposals describe the questions left open by the shared-task system.

Cite

Cite as Valerio Basile and Alessandro Mazzei. 2018. The DipInfo-UniTo system for SRST 2018. Proceedings of the First Workshop on Multilingual Surface Realisation.

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

@inproceedings{basile2018dipinfo,
  title = {{The DipInfo-UniTo system for SRST 2018}},
  author = {Valerio Basile and Alessandro Mazzei},
  booktitle = {Proceedings of the First Workshop on Multilingual Surface Realisation},
  year = {2018},
  doi = {10.18653/v1/w18-3609},
  url = {https://doi.org/10.18653/v1/w18-3609}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/basile-2018-dipinfo-unito-system-srst-2018/