---
title: "NILC-SWORNEMO at the Surface Realization Shared Task:"
description: "NILC-SWORNEMO restores word order and inflection from shuffled dependency trees by ordering short fragments and assembling them into…"
canonical: "https://research.elamur.ai/free/en/papers/cabezudo-2018-nilc-swornemo-surface-realization-shared/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cabezudo-2018-nilc-swornemo-surface-realization-shared/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / NILC-SWORNEMO at the Surface Realization Shared Task: Exploring Syntax-Based Word Ordering using Neural Models

# NILC-SWORNEMO at the Surface Realization Shared Task: Exploring Syntax-Based Word Ordering using Neural Models

Paper · 2018 · Marco Antonio Sobrevilla Cabezudo and Thiago Pardo

**Authors:** [Marco Antonio Sobrevilla Cabezudo](https://md.research.elamur.ai/free/en/authors/marco-antonio-sobrevilla-cabezudo/) and [Thiago Pardo](https://md.research.elamur.ai/free/en/authors/thiago-pardo/) · **Year:** 2018 · **Venue:** Proceedings of the First Workshop on Multilingual Surface Realisation · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**11** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2893800606|W6920694102) · [Cited by **7** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/cabezudo-2018-nilc-swornemo-surface-realization-shared/cited-by/) · [Proceedings of the First Workshop on Multilingual Surface Realisation](https://aclanthology.org/volumes/W18-36/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W18-3608/)
- [PDF](https://aclanthology.org/W18-3608.pdf)
- [DOI 10.18653/v1/w18-3608](https://doi.org/10.18653/v1/w18-3608)
- [OpenAlex](https://openalex.org/W6920694102)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence’s grammatical structure can survive even when its words have been shuffled. A verb may still be marked as having a subject, for example, although the input gives no reliable indication of where the subject should appear. The 2018 Surface Realization Shared Task asked systems to turn such structures back into readable sentences. In Track 1, the Shallow Track, the input preserved the grammatical relations and inflection features from [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/), but represented each word by its [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the base form used to identify it. A system had to work out both where each word belonged and which [word form](https://md.research.elamur.ai/free/en/concepts/word-form/) the sentence required.

NILC-SWORNEMO, the University of São Paulo team’s entry, divides the ordering problem along the branches of the dependency tree. An encoder–decoder with attention receives a small group consisting of a head and its immediate dependents. It sees each member’s lemma, grammatical category and dependency relation, then generates a sequence of lemmas in the predicted order. The system combines these local sequences from the bottom of the tree upward. When a group has already been ordered, the system expands its head into the entire group at the corresponding position in the next fragment. A [3-gram language model](https://md.research.elamur.ai/free/en/concepts/n-gram/) helps place words left out during generation and proper names whose positions still need to be found.

The authors train the ordering component with shared-task data and roughly 70,000 Europarl sentences per language. They use shuffled variants of each training fragment so that a single correct order can be learned from different input arrangements. Replacing the lemmas of proper nouns with a common marker reduces the number of rare names the network has to handle. At the end of generation, language-specific lexicons built by processing Europarl with UDPipe map lemmas and inflection features to surface forms.

The system exceeded the participant average on every reported test metric in [English](https://md.research.elamur.ai/free/en/topics/english/), Portuguese and Spanish. In Portuguese it had the highest reported NIST score, with no statistical difference from the runner-up according to the authors, and ranked second on [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/) and normalized edit distance, reported as DIST. The results show that ordering by syntactic group can support a competitive multilingual submission. The examples also reveal where the approach runs into trouble. A head with many dependents can produce an incomplete local sequence, whole-fragment insertion rules out non-projective realizations, and a bad lexicon entry can put the wrong form into a sentence even when its position has already been settled.

## Deep dive: NILC-SWORNEMO at the Surface Realization Shared Task: Exploring Syntax-Based Word Ordering using Neural Models

NILC-SWORNEMO restores word order and inflection from shuffled dependency trees by ordering short fragments and assembling them into sentences. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### From grammatical relations to a sentence

Surface realization is the part of [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) that turns a structured representation into text a reader can read. The structured input in this experiment already specifies much of what is to be said. It contains the words in base form, information about their grammatical properties and a tree specifying which words depend on which others. The system’s job is to make the decisions that the representation leaves open. A dependency can connect a modifier to a noun without prescribing a position for the modifier in the printed sentence. An inflection feature can identify a verb as past tense without supplying the spelling of its past form.

The tree comes from [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/). In a dependency tree, words are represented as nodes. A head governs another node, called its dependent, and the relation between them identifies the dependent’s grammatical role. An edge therefore answers a question about attachment. A sentence needs a linear arrangement as well. If a node has several dependents, the tree describes how they are connected to the head, while the realizer must decide where they appear relative to the head and to each other. That distinction between attachment and position makes it possible to give a system quite detailed syntax while still posing a substantial ordering problem.

The other part of the task concerns [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), the structure and forms of words. The paper’s example uses the English verb `run`. Its lemma identifies the verb, whereas the morphological bundle can say that the occurrence is indicative, past and finite. The visible form in the authors’ example is `ran`. A system that outputs the lemma in the correct position has resolved the ordering decision but still owes the reader the past-tense form. Conversely, correct inflection can leave a sentence with its words in the wrong order. The format of the task makes these judgments separable in the design of the system, even though a reader encounters them together in the final sentence.

The organizers built the shallow input by scrambling the words and replacing their original spellings with lemmas. The random order is significant. A realizer cannot assume that neighboring rows were neighboring words, or that a dependent listed before its head was originally on the left. The other fields still matter. The same token carries a grammatical category, the available information about inflection and its dependency relation. The system can use those fields as evidence for an arrangement even though the row order has lost its value as a record of the sentence.

The Shallow Track is the scope of the submission. The event also offered a Deep Track, where systems had to add missing function words and supply morphological information as well as establish word order. In the shallow setting, the recovery of a word omitted by the system’s own decoder is a different matter from supplying a word withheld by the task. The first is a repair to a predicted sequence when the system has the omitted word in its input. The second requires deciding that a word absent from the representation belongs in the text. NILC-SWORNEMO’s repairs are described for the first situation.

#### Why use a shared syntactic representation?

The authors introduce the task as part of a continuing effort to develop surface realizers and evaluate them on common data. They point to an earlier surface realization shared task as evidence that word ordering was an established research problem. The setting in this paper makes a specific line of research practical. With [treebanks](https://md.research.elamur.ai/free/en/topics/treebanks/) using Universal Dependencies, an ordering procedure can take the same kinds of fields as input across languages. The paper mentions freely available treebanks for about 50 languages at the time. This availability motivates the use of attachment and grammatical category as common inputs to a realizer.

The common representation gives a way to ask similar questions of different languages while leaving the answers open. A part-of-speech category can mark a word as a noun in each language, and a dependency relation can indicate that it modifies another word. The realizer still needs evidence about where dependents of that kind tend to appear, and it needs forms appropriate to the language it is generating. The authors’ approach uses the same decomposition and assembly procedure across its submissions, while obtaining the ordering data and lexical resources for each language separately. The shared syntax specifies how to frame the problem. The training sentences supply observed realizations.

The paper places its approach next to work on ordering through statistical language modeling, work that uses syntactic information and earlier neural sequence-to-sequence approaches. It identifies Hasler and colleagues and Zhang and Clark as particular influences. The connection to the latter is the treatment of syntax as evidence for word ordering. The connection to the former is the use of a neural sequence method in an area where earlier experiments had already compared neural approaches. The paper draws on these lines of work to design an orderer that operates on the dependency tree’s local groups.

A full sentence can contain several decisions that have little reason to be made in a single sequence. The words making up a modifier may have their own internal arrangement, while the position of the completed modifier belongs to the phrase it modifies. The authors exploit this distinction. They learn how to order the head and dependents at a given location in the tree. They then let the tree determine how the predictions at different locations are combined. The appeal is that many sequences sent to the orderer can be shorter than the sentence that will eventually contain them.

That choice has consequences even before any examples are scored. A system that builds a sentence by expanding an ordered slot into a complete lower fragment is committing to keep the fragment together. Its output space comes from the orderings it can assign inside a group and the positions at which those groups can be expanded. This is a useful way to understand the study’s question. The authors investigate whether these local choices, backed up by repairs and reliable forms where available, are enough to produce good realizations on the shared task.

### The method, step by step

#### Finding the groups to order

The method starts with a head and the nodes directly attached to it. The authors call the resulting group a subtree, with the head serving as its local root. In this use of the term, the group contains the head and its immediate children. A grandchild is handled with its own parent in a lower group. This narrower scope is what gives the orderer a shorter input. A group can still be large when a particular head has many children, which makes the width of the tree at a node important to the operation of the system.

A word may participate in different groups in different roles. As a child in an upper group, it occupies a position relative to its head and siblings. As the root of a lower group, it anchors the ordering of its own dependents. The repeated occurrence refers to the same token in the tree. This connection is preserved for assembly, even though the representations passed to the neural orderer need only encode the role of the token in the current group.

The paper illustrates the setup with a tree for a sentence about a judicial appointment. The sample group headed by `term` includes `for`, `judge`, `year` and `a`. At this stage the system can order those words with respect to one another without simultaneously deciding where the numeral and hyphen attached lower down will appear. It can defer those decisions to the group for `year`. The same separation applies to the material grouped with `judge`. The larger sentence advances in stages because the positions assigned to heads become positions for whole expressions after expansion.

The authors obtain a sequence for each local group by a breadth-wise traversal. In practical terms, the traversal supplies the group root first, then visits the immediate children. A child’s position in that input series can depend on its position in the CoNLL data, the row-based format in which the annotation is represented. Hence, the traversal supplies a consistent way to start with the local root, but the following sequence may differ when the children happen to be listed in another order.

The input token representation has the following form.

```
lemma|POS-Tag|dep
```

`lemma` is the base form supplied for the word. `POS-Tag` is its part-of-speech tag, the category that says, for instance, that a token is a noun, determiner or adposition. `dep` names its dependency relation within the group. The vertical bars separate the fields of the representation. The first token has `root` in the relation field to indicate the head of the current group. The marker applies locally and can therefore occur on a word below the root of the full sentence.

In the `term` example, `year` arrives as a noun with the relation marking it as a compound dependent. The representation gives the encoder more than the lexical identities of `year` and `term`. It makes available their categories and the reason `year` belongs in the group. Other children have different roles. The word `a` is a determiner and has a determiner relation, while `for` is marked as an adposition with a case-marking relation. The sequence model has access to these cues in each training pair and can learn how they coincide with positions in realized text.

#### Building examples from text with known order

The authors use the shared task’s training data and a portion of Europarl. For each of English, Portuguese and Spanish, the Europarl portion comprises roughly 70,000 sentences. The paper identifies UDPipe as the means of obtaining lemmas, grammatical categories and dependency relations in the data preparation. These are the fields the orderer needs to construct the groups and encode their members. The original word order gives the training procedure a way to determine the target sequence for a group.

For each group, the source side presents the annotated tokens in an input arrangement. The target side consists of the same words represented by their lemmas and placed in their observed order. The target is local in the same sense as the source. It contains the members of the current group even when other parts of the sentence occur between those members in the full text. This makes the learning problem an ordinary input-to-output sequence task. The annotations help describe the source, and the target gives a direct example of the ordering decision the system is expected to make.

The `term` group illustrates why the format calls for augmentation. Depending on the rows in the input, the breadth-wise sequence might present `for` before `judge` or present `judge` before `for`. These input sequences still refer to the same group. The desired arrangement of its members stays the same, but the encoder sees them at different positions. A network trained on just the first arrangement could respond differently to the second because an ordinary sequence encoder processes its input as an ordered series. The training set therefore includes rearranged versions to expose this variation during learning.

The authors consider generating every possible arrangement, then adopt a smaller set of permutations for each initial example. They report trying 5, 10 and 15 instances per example. This process augments the choices of input order while preserving the relationships encoded in the token fields and the observed order on the target side. A new ordering of the source tokens consequently supplies training variation of a specific kind. The learners still see the same group membership and the same correct output. They gain practice recovering it from different presentations.

Proper nouns are another source of variability. A particular name may occur infrequently in the training sentences, and a fragment containing a new name can still follow a familiar ordering pattern. During preparation, the authors replace the lemma of a [proper noun](https://md.research.elamur.ai/free/en/concepts/upos-propn/) with `PROPN`. This makes the lemma field carry a recurring placeholder, while the method’s usual category and dependency fields can still convey grammatical information. The original names remain available to the system so that it can return them to the text after ordering.

These transformations serve different purposes. The permutations vary the presentation of a known group so that the orderer has experience with different scramblings. The name placeholder makes groups with different names look more similar in one field. Dependency grouping determines which tokens are ever presented together in the first place. All of these choices influence what the network has to learn from the original sentence data, and they take effect before the network produces its first test prediction.

#### Predicting an order from annotated tokens

The authors implement the orderer in OpenNMT as a sequence-to-sequence encoder–decoder. The encoder reads the annotated group and produces a representation of the input. The decoder uses this representation to generate the lemmas of an ordered fragment. In this setting, the task resembles converting between two ways of expressing the same content. The input spells out grammatical labels and presents the members in an arbitrary order. The output expresses the placement decision directly through the order of the lemmas.

An input token has three [embedding](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) components. An embedding represents a word or label as a vector of numbers that the network can process. For the lemma, the authors use [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) vectors of 300 dimensions. They use resources for English and Portuguese and vectors built using the corpus identified for Spanish. The other components represent the grammatical category and the dependency relation. The authors set the sizes of these feature embeddings using the number of values available for the respective feature. The final input vector is made by concatenating the components, putting them end to end to represent one annotated token.

This representation gives distinct places in the input for a word’s identity, its category and its role in the current group. For example, the same category can appear on both the group head and one of its dependents, while the relation distinguishes their functions. Likewise, the lemma helps distinguish examples with otherwise similar category and relation labels. The encoder can use all of these fields together. The experiments evaluate the resulting system as a whole, so the input description specifies what evidence was made available to it.

The recurrent cells are Long Short-Term Memory cells, or LSTMs. A recurrent encoder updates its representation as it moves through an input sequence, retaining information from tokens it has already processed. The bidirectional encoder reads across the input in both directions. Its representation of a token can therefore draw on material encountered from either end. Because the input is scrambled, those directions describe how the group was presented to the encoder. They carry no guarantee about whether a particular dependent belongs before or after the head in the realized phrase.

The decoder has two layers and uses [Bahdanau attention](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/). Attention lets the decoder draw on the encoded source positions as it selects the next output. Its relevance here comes from the relation between the two orders. The first token the decoder should produce may be located later in the input, and the next output may come from somewhere else in the group. The decoder can consult the source throughout generation, using the collection of encoded tokens as context for each choice.

The output consists of lemmas. Word formation has its own later step, and the grammatical fields that describe each source token remain relevant to it. This division lets the neural component concentrate on ordering. The target gives a desired sequence during training, but the decoder generates a sequence as its prediction. The architecture description gives no requirement that every input member occupy a slot in that prediction. The need to insert omitted words after decoding is a practical consequence of this setup.

#### Training and decoding settings

The authors use Adam, with an initial learning rate of 0.001. The learning rate governs the scale of parameter updates during training. They set dropout to 0.3. Dropout temporarily masks part of the computation during training, reducing the network’s reliance on particular activations. The reported network setting is 500 hidden units, referring to the size of its hidden representation. The training run uses 15 epochs, where an epoch is a pass through the training data. The authors say the settings worked during training and identify the epoch count as a choice for which they tried no alternatives.

At generation time the decoder uses beam search of size 10. Beam search keeps a set of promising partial outputs while advancing the prediction, so a candidate can survive even if its next word would have lost to another choice at that step alone. The value 10 determines the size of that set. This search selects among sequences proposed by the decoder. The later checks for omitted words address the coverage of the predicted group once that search has returned an order.

The system’s progression from an annotated tree to realized words is as follows.

How NILC-SWORNEMO realizes a sentence The steps in order.

#### Repairing and joining the local orders

Once the group orders have been predicted, the system brings them together through the tokens they share. If a word appears as a child in an upper fragment and as the head of a completed lower fragment, the system can replace the child’s position with the lower fragment. The position itself comes from the upper prediction, while the sequence inserted there comes from the lower one. Repeated from the lowest groups up to the tree root, this process produces a sentence-sized order.

In the authors’ example, the lower group around `year` provides the fragment `15 - year`. The higher fragment contains `year` in a position before `term`, with `for` and `a` earlier in that fragment. Expanding the slot for `year` puts the numeral and hyphen before it at the location determined by the upper prediction. The numeral consequently gets its position from two decisions. The lower group determines its placement within the expression, and the upper group places that expression relative to the surrounding words.

The token that connects the groups matters because its role changes between levels. In the higher prediction, `year` represents a single position. At the lower level, it represents a word that has its own dependents and therefore contributes a longer string once expanded. That gives the system a way to preserve local orders as it grows the sentence. When the complete expression is used in the next step, the words inside it keep the order that was already assigned. The paper also points to `as associate judge` as an example of a coherent lower fragment that is useful when constructing the larger one.

A decoded name placeholder can be replaced with the proper noun from the original fragment. If the decoder fails to provide a usable place for a name, the system searches for a position. It makes a similar repair when a prediction omits another member of the input group. The authors describe this happening especially when the group presented to the decoder has many tokens. The input tree tells the system which words still belong in the fragment, allowing it to recover their presence even if their positions are uncertain.

For placement, the paper uses a 3-gram [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) for each language. An n-gram is a run of neighboring tokens. Here the local statistical evidence comes from groups of three. Moving a missing word changes which words neighbor it and which short combinations appear in the fragment. The language model supplies evidence about where the resulting combinations fit better. The paper identifies separate resources for the three languages, in keeping with the fact that the neighborhood patterns it needs to assess depend on the language.

The placement component and the tree supply different information. The tree indicates the group to which a missing member belongs and the token through which that group joins an upper one. The language model helps choose a plausible position within the fragment available for repair. The authors motivate bottom-up assembly in part through this dependence on the context that smaller, completed expressions provide. A short sequence containing the already formed expression can give a more informative local neighborhood than one in which the expression is represented by its head alone.

The ordering and repair stages therefore have distinct ways to use lexical context. The neural orderer can attend across the encoded group and use the explicit grammatical labels when proposing an order. The insertion procedure has the words in the current fragment and evidence based on short token sequences. A repaired fragment becomes part of the text supplied to higher levels, just as a fragment the decoder completed on its own does. By the time the assembly reaches the root, local ordering decisions and repair decisions contribute to the same linear sequence.

#### Turning lemmas into inflected forms

For the final step, the authors construct a lexicon for each language by processing Europarl with UDPipe. From the analysis of words in the corpus, the procedure associates the observed form with the lemma and its morphological description. The central example is the past form `ran`. The corresponding record identifies the lemma `run` and includes `Mood=Ind`, `Tense=Past` and `VerbForm=Fin`. `Mood` marks the grammatical mood and `Ind` indicates indicative. `Tense` marks tense and `Past` specifies past tense. `VerbForm` classifies the form of the verb, and `Fin` identifies a finite form. The combination gives the lexicon information with which to recover the observed spelling.

For nouns, pronouns, adjectives, determiners, verbs and auxiliary verbs, the authors gather data on inflection. These are categories for which they expect relevant inflection features. The resulting English lexicon has 44,667 entries, the Portuguese one has 143,058 and the Spanish one has 155,482. The counts measure the size of the generated inventories. Each inventory is used for lookup in its own language.

After sentence assembly, the system examines a token’s lemma and its morphological information and consults the appropriate lexicon for the form. It treats the lexicon as a hash table, a data structure built for lookup by key. The paper describes no preference among competing forms beyond finding the lemma and the accompanying information. Thus, the form decision is governed by the content of the lexicon and the supplied features. A correct lookup can replace a well-placed lemma with the intended inflection without making another ordering decision.

Finally, the authors apply rules to deal with contractions and problems such as comma use. This leaves a pipeline with separate sources of decisions. The shared-task input provides the grammatical analysis and features. The neural orderer provides predicted local arrangements. The tree and the placement procedure turn those arrangements into a continuous sequence. The language-specific lexicon and the final rules determine how that sequence appears as surface text.

### Experiments and results

#### What is being compared?

The results are for the Shallow Track test data in English, Portuguese and Spanish. The ordering component is trained with the task’s training data and the additional Europarl material. At evaluation, NILC-SWORNEMO receives the shuffled, lemmatized representation and its accompanying annotations, then produces text through the complete pipeline. The test scores therefore reflect decisions made in local ordering, assembly, repair, inflection and final cleanup. They are measurements of the delivered strings.

The comparison the authors give for every language and published metric is the average result of systems participating in the track. That average provides a point of comparison within the event. The paper also reports the submission’s ranking in Portuguese on the published metrics. The combination answers two questions about the shared-task setting. The average indicates how the submission fared against the field collectively, while the rank identifies its position relative to other entries on a particular Portuguese score.

There is no isolated reference system in that comparison whose architecture differs in just one respect. A shared-task average puts systems with different approaches into a common evaluation. The comparison can establish that the submitted combination of stages achieved higher scores than the reported average. To identify a cause of that advantage, a reader would need comparisons designed around the components of NILC-SWORNEMO, such as a whole-sentence ordering variant or a variant with a different inflection procedure. The paper’s available controlled evidence is narrower.

#### What the scores measure

BLEU measures precision of matching n-grams against reference text. A consecutive sequence of generated words contributes to the match when the reference supports that sequence. The metric takes the geometric mean of the precisions across the orders being considered, so success at matching individual words and success at matching longer runs both affect the score. It also applies a brevity penalty to short outputs. This matters because a system could otherwise produce a short string containing only words it is confident will match and avoid many opportunities to make an error.

The paper describes its BLEU evaluation as smoothed and names the following n-gram orders.

```
n = 1, 2, 3, and 4
```

`n` is the number of tokens in a contiguous sequence being compared. The equals sign introduces the orders covered by the evaluation description, and the commas separate those orders. The shared-task results table presents a BLEU score for each system and language comparison. It gives no separate test score for each of the listed orders, so the reported values can be read as BLEU results without inferring which order contributed most.

NIST also compares n-grams from the output and reference, with higher weight given to less frequent sequences. The idea is that an uncommon match may convey more information than a match on an expression that occurs repeatedly. A result can therefore be strong on NIST even though the distribution of its matching sequences leads to a different standing on BLEU. For this paper, NIST provides a separate view of sequence overlap that pays particular attention to informative matches.

DIST measures similarity at the character level. Its starting point is the smallest number of character insertions, deletions and substitutions required to change the output into the single reference. Each operation has cost 1. The published score is inverse and normalized, which means that higher DIST values represent closer strings. This gives credit at a finer scale than treating a whole word as unmatched whenever its form differs. A changed letter and a displaced phrase can both affect DIST, through the edits needed to recover the reference.

The authors also describe CIDEr as part of the evaluation. Originally designed for image descriptions, it reflects the frequency of n-grams in relation to the reference texts, using [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) weighting to reduce the influence of common sequences. The paper says that only BLEU, NIST and DIST results had been released when it reported the evaluation. Its quantitative comparison accordingly concerns those published scores.

All of the available metrics concern the output compared with a reference. A missed inflection can reduce overlap, as can an alternative arrangement, an omitted word or a problematic comma. The measures respond to these differences according to their respective units and weighting. The test scores indicate how closely the finished strings match the evaluation references. The individual examples help clarify what kinds of output can lie behind such a comparison.

#### Scores on the shared-task test sets

On English test data, NILC-SWORNEMO obtained BLEU 50.74 against the track average of 41.30, NIST 10.62 against 10.15, and DIST 77.56 against 67.86. Each comparison favors the submission against the participant average for the same English test metric. The DIST result, in particular, belongs to a character-based evaluation of the realized sentence and includes the effects of the surface forms and punctuation that the system produced.

On Portuguese test data, the submission scored BLEU 27.12 against the average of 24.71, NIST 7.56 against 7.36, and DIST 57.43 against 55.30. The authors report the highest Portuguese NIST score for NILC-SWORNEMO and say it was statistically indistinguishable from the second-place entry. They report second place on Portuguese BLEU and DIST. Those ranks describe the submission’s position among the participating systems for that language. The significance qualification concerns the NIST comparison with the runner-up.

On Spanish test data, the submission reached BLEU 51.58 against the participant average of 33.66, NIST 11.17 against 9.01, and DIST 53.78 against 35.65. The Spanish scores extend the above-average pattern to every metric reported for that language. They also show that judging the result requires a within-metric comparison. A BLEU score and a DIST score represent different computations, and the meaningful benchmark in each chart is the average on the same language and metric.

NILC-SWORNEMO and the participant average on Shallow Track test BLEU The submission has higher BLEU than the participant average in each language.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| English participant average | 41.30 |
| English NILC-SWORNEMO (this paper) | 50.74 |
| Portuguese participant average | 24.71 |
| Portuguese NILC-SWORNEMO | 27.12 |
| Spanish participant average | 33.66 |
| Spanish NILC-SWORNEMO | 51.58 |

NILC-SWORNEMO and the participant average on Shallow Track test NIST Weighting rarer matching sequences also places the submission above the participant average in each language.

**The numbers**

| System or setting | NIST |
| --- | --- |
| English participant average | 10.15 |
| English NILC-SWORNEMO (this paper) | 10.62 |
| Portuguese participant average | 7.36 |
| Portuguese NILC-SWORNEMO | 7.56 |
| Spanish participant average | 9.01 |
| Spanish NILC-SWORNEMO | 11.17 |

NILC-SWORNEMO and the participant average on Shallow Track test DIST The submission also exceeds the participant average under character-based comparison in each language.

**The numbers**

| System or setting | DIST |
| --- | --- |
| English participant average | 67.86 |
| English NILC-SWORNEMO (this paper) | 77.56 |
| Portuguese participant average | 55.30 |
| Portuguese NILC-SWORNEMO | 57.43 |
| Spanish participant average | 35.65 |
| Spanish NILC-SWORNEMO | 53.78 |

The direction of the comparison is consistent across the different ways of assessing similarity. That is a stronger descriptive result than an advantage confined to a single metric in one language. The comparisons still share the same underlying outputs. An effective local arrangement can produce many matching n-grams and reduce the character edits at the same time. A frequent surface error can likewise influence several scores. Agreement among these metrics describes several properties of the submission’s resemblance to the references, without assigning responsibility to individual stages.

The language-by-language averages also matter more for this purpose than the raw ordering of the submission’s scores across languages. The Portuguese BLEU score is lower than the English and Spanish BLEU scores, yet the authors report a second-place Portuguese ranking and an advantage over the Portuguese average. A language’s raw score summarizes matches on its own test data. The runner-up statement is evidence about the systems competing on Portuguese. It does not follow from a direct comparison between the Portuguese number and an English or Spanish number.

#### Examples behind the aggregate scores

The paper displays references and generated sentences to give a closer look at the output. The English example concerning Iran and nuclear energy matches its reference. The Spanish example about samples checked by the IMIM also matches. Both demonstrate that the ordering, name handling and surface generation stages can together yield the recorded wording. The authors associate successful realizations in this part of the table with relatively short sentences, and point out that the Spanish case is longer than their general description might suggest.

The corresponding Portuguese claim requires care. The discussion calls the first Portuguese example an exact match, but the displayed reference begins with `Vivo` and the displayed output with `vivia`. Capitalization elsewhere in the example also differs. The reported test scores are separate from this example. The example itself illustrates a close realization with a form mismatch, and the table supports exact-match status for the displayed English and Spanish cases.

The longer English example about a fish tank shows what partial ordering success looks like. The generated sentence gives the subject of the discussion a recognizable wording near the beginning, establishing the stocking and its relation to the tank. Later, the sentence has difficulty arranging portions of the account of the upgrade and the list of fish. The example lets the reader distinguish a coherent fragment from an effective realization of the entire reference. A local ordering can put several related words in an intelligible arrangement while the longer sequence still needs extensive edits.

The Spanish examples include sentences whose main events remain understandable despite problems with order, forms or punctuation. In the example about the woman who went to file a complaint, the output places the phrase about the preceding event later than the reference does. It still conveys the movement to the police station, and it retains the actions involving the ambulance and hospital. The output also has stray punctuation and a changed verb form. This kind of result explains why the authors discuss intelligibility alongside string comparison. Preserving the main sequence of events is compatible with several scored differences in how those events are expressed.

The example involving European countries in Portuguese shows the opposite distribution of success within a sentence. The list near the beginning is poorly arranged, while the later clause about the numbers is recognizable. Within one output, dependency groups can give rise to useful strings and badly formed strings. That variation motivates examining the structure of the individual groups, including cases where the decoder leaves a large share of the repair to later processing.

### What the ablations show

#### How much permutation augmentation helped

The paper gives a controlled comparison of how many rearranged inputs to generate for each original group. It tries 5, 10 and 15 instances per training example. The authors report that 5 permutations already gave good performance and that moving to 10 or 15 brought no improvement. The comparison concerns different amounts of the same type of augmentation. In each case, the extra inputs vary the presentation order of a known group, with the observed order kept as the target.

The practical implication is that the tested increases in permutation count yielded no reported gain for the authors’ configuration. The paper gives no numerical scores for these variants, identifies no evaluation split for the comparison and reports no condition that omits permutation augmentation altogether. The comparison therefore answers a limited question about how much of this augmentation the authors found useful. It leaves the benefit of adding permutations in the first place, the effect of smaller counts and the degree of sensitivity to input order undetermined.

The motivation for the experiment is visible in the `term` example. The same children can follow the group’s root in a different row order, sending different sequences to the encoder. Presenting multiple arrangements with the same target encourages the same output across those arrangements. A benefit from more arrangements would have suggested that the learner still needed more exposure to variation under the tested settings. The authors’ observation instead indicates that the extra arrangements they tried provided no additional measurable benefit in their experiment, with the magnitude of the underlying differences unreported.

#### What the examples diagnose

Beyond the permutation comparison, the paper analyzes where the generated sentences work and break down. The authors’ comparison of relatively short successes with more difficult cases is observational. The examples come from different sentences, each with its own syntax, lexical items and formatting. They can identify what a particular failure looks like and suggest where to inspect the pipeline. Their role differs from that of a paired experiment in which the system makes predictions on the same inputs with a component removed.

The Portuguese country list is the clearest example linking a failure to the size of a particular local group. The discussion identifies a group headed by Holland. It includes other country names as well as punctuation, a conjunction and a preposition. These tokens take part in related placement decisions. The system must establish the order of the names and put the coordinating material in positions that make the list intelligible in the containing clause. The generated beginning shows failures in that arrangement. The paper connects such cases with incomplete sequences from the decoder and declining effectiveness when the remaining processing has more words to place.

The width of a group and the length of a sentence are distinct aspects of this analysis. A long sentence can divide into groups that are individually manageable. A shorter sentence can still place many children under one head. The country list helps explain why the local design can suffer from long decoder inputs even when it generally reduces the size of the ordering problem. The Spanish sample that matches its reference also suggests why a simple judgment based on sentence length alone would miss part of the behavior.

The English `v` example and the Portuguese `levá` example diagnose a different stage. The first is produced where the authors identify `have` as the intended form. The second appears where `levar` is expected. These examples trace errors to the automatically built lexical resources in the authors’ discussion. A fragment order can leave slots in plausible places while lookup supplies inappropriate surface forms. That failure has little to do with how many arrangements of the source group the orderer saw during training.

Punctuation and names create another kind of interaction. The authors point to a Spanish case in which punctuation, omitted words and proper nouns together created difficulty. A decoder omission gives the insertion stage another placement decision, and a misplaced punctuation mark can alter the local context in which subsequent material is read. The example shows multiple points of failure operating within one realization. It does not isolate a contribution from any one of them.

The paper gives no component removal study for the POS and relation fields, the attention mechanism, the GloVe embeddings, the 3-gram insertion procedure or the lexical lookup. It also gives no paired comparison between tree-based local ordering and a version trained to order whole sentences. The examples establish where the stages can help produce coherent text and where errors become visible. The test-set scores establish the performance of the combined submission. Taken together, these measurements support a judgment about the feasibility of the pipeline and leave causal credit among its components open.

### Limitations

#### Limits identified by the authors

The authors flag non-projective tree structures as a limitation of the realizations their method allows. A projective order permits the material belonging to a subtree to form a continuous span. A non-projective order can separate parts of that material with words from elsewhere in the tree. Bottom-up expansion in this system takes a whole local fragment and inserts it at the slot for its head. Once expanded, that material stays together. The orderer can change where the head’s group appears, but the assembly mechanism gives it no way to split that group across the containing order. A reference that requires such a split is therefore beyond what the described assembly can recreate.

This restriction follows from the design, independently of how well the neural decoder ranks candidate sequences. A local order could be correct as an ordering of the head and immediate children while the continuous expansion of one child still makes the full reference order unreachable. Better accuracy on the short sequences would improve those local decisions. It would leave the span constraint imposed by composition in force.

A second limit concerns heads with many children. The authors report that the decoder can return incomplete orders in these cases. They also report that the later processing typically performs poorly when it must do more of the work. Once several words have been omitted, repair has to recover their positions from fragments with less information supplied by the neural prediction. The paper illustrates this with the Portuguese coordination example. It provides no overall rate of omissions or breakdown by number of children, so the example and the accompanying discussion describe a recurring problem without quantifying how frequently it affected the test scores.

The authors also identify errors in the lexicons and say that some entries required review and correction. Their use of automatically analyzed text is central to obtaining lexical resources for each language. It also means the inflection step depends on the quality of that analysis. The entries yielding `v` and `levá` show how the final output can retain such a problem. The authors propose further review of the lexicons and consider a better inflection generator as future work.

They also want to improve punctuation handling. The system already applies rules after lexical lookup, and the ordering and insertion procedures deal with punctuation present in the input. The outputs show how comma or quotation placement can still go wrong. Punctuation helps signal the structure of the sentence that has been assembled, so such errors matter even when many of the words occur in a recognizable order. In examples where punctuation problems occur alongside rearrangements, it can also become harder for a reader to recover the intended grouping.

#### Limits of what the evaluation establishes

The shared-task test results apply to the shallow input representation. The system starts with dependency relations and morphological features supplied in that representation. Producing readable words from those inputs demonstrates surface realization under that condition. Building the same relations and features from a less specified representation would introduce decisions for which the reported test provides no evidence. The description of the Deep Track makes that boundary especially clear because that track explicitly changes what information is available at the start.

Transfer also has a specific scope. English, Portuguese and Spanish show that the same general procedure can be applied with language-specific training material and lexical resources. Other treebanks mentioned by the authors make the prospect of reuse plausible because they supply similar grammatical fields. The experiment gives no test results for other languages and gives no resource-free transfer condition. In the demonstrated setup, each new language requires locally suitable ordering examples, lexical data and a resource for the placement procedure. How well the method works with less material or less reliable analysis remains an empirical question.

The comparison with the participant average measures aggregate performance. It gives neither the full distribution of participant scores nor a comparison under a shared set of components. The paper’s qualification about statistical indistinguishability applies specifically to the top Portuguese NIST comparison. The other results establish the stated numerical standing against the averages and the ranks the authors report. There is no basis in those aggregates for assigning a probability that the observed advantages would persist under a new sample or a different set of participants.

The evaluation also gives limited leverage on the distinctions that motivate the pipeline. The same output scores combine lexical choice, inflection, token order and punctuation. A character-level distance can respond differently to a misspelling and a reordered phrase, but its final value gives no tally of either category. A sequence measure can reward a coherent phrase even when it is embedded in an awkward sentence. Numbers for local ordering accuracy, missing-token recovery and inflection accuracy could show which parts of the system accounted for its final performance. The paper reports no separate scores for those stages.

The example table is useful for identifying discrepancies and inspecting them against their references. The prose’s exact-match claim about Portuguese and the displayed `Vivo` versus `vivia` difference show the importance of treating the paired strings as evidence in their own right. The examples also provide only particular observations about fluency and preservation of meaning. The paper describes understandable outputs and gives instances to illustrate them. It reports no systematic assessment by readers, so the extent to which its reference-based scores track intelligibility is unresolved.

Some implementation details would matter for reproducing the method precisely. The paper specifies the lexical lookup by lemma and features but gives no account of how competing forms for the same lookup key are resolved, or how often a requested form is missing. For the 3-gram placement, it identifies the purpose and the language-specific resources without laying out a full procedure for ties or simultaneous omissions. A reimplementation would have to resolve such cases, and its behavior could differ when a fragment gives the repair procedure several plausible positions.

Finally, the training settings and permutation finding describe a configuration that the authors used successfully. The authors explicitly did not vary the epoch count. The evidence about augmentation concerns the variants they name, without numerical results that would show how close those variants were. The conclusion that shorter sequences can make ordering more tractable has a direct structural basis in the group definition and qualitative support in the examples. The reported evaluation leaves the size of that advantage over full-sentence ordering unmeasured.

### What came after

[NILC at SR'20: Exploring Pre-Trained Models in Surface Realisation](https://md.research.elamur.ai/free/en/papers/cabezudo-2020-nilc-sr-20-exploring-pre/) (2020) cites the NILC-SWORNEMO paper and returns to surface realization. Its title identifies pretrained models as the focus of the later investigation. This establishes continuity in the research problem and a further line of inquiry into how to supply a realizer with learned language information. In the 2018 system, pre-existing GloVe vectors provide lexical representations, while the encoder–decoder learns the ordering of local groups from the task examples and Europarl. The later paper’s stated focus concerns pretrained models in surface realization.

The citation establishes a connection between the papers. The later work’s title leaves open how it treated the dependency tree and whether it retained local decoding, bottom-up assembly, lexical lookup or language-model repair. Those details determine whether a later result bears directly on a particular design choice in NILC-SWORNEMO. The documented connection is a return to the same generation problem through an exploration of pretrained models.

## Cite

Cite as Marco Antonio Sobrevilla Cabezudo and Thiago Pardo. 2018. NILC-SWORNEMO at the Surface Realization Shared Task: Exploring Syntax-Based Word Ordering using Neural Models. 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-3608](https://doi.org/10.18653/v1/w18-3608)

```bibtex
@inproceedings{cabezudo2018nilc,
  title = {{NILC-SWORNEMO at the Surface Realization Shared Task: Exploring Syntax-Based Word Ordering using Neural Models}},
  author = {Marco Antonio Sobrevilla Cabezudo and Thiago Pardo},
  booktitle = {Proceedings of the First Workshop on Multilingual Surface Realisation},
  year = {2018},
  doi = {10.18653/v1/w18-3608},
  url = {https://doi.org/10.18653/v1/w18-3608}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
