---
title: "Sentence Realisation from Bag of Words with Dependency"
description: "The paper tests how dependency links and part-of-speech tags help put unordered words back into sentences, using English Wall Street…"
canonical: "https://research.elamur.ai/free/en/papers/gali-2009-sentence-realisation-bag-words-dependency/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **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/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/gali-2009-sentence-realisation-bag-words-dependency/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2009](https://md.research.elamur.ai/free/en/papers/2009/) / Sentence Realisation from Bag of Words with Dependency Constraints

# Sentence Realisation from Bag of Words with Dependency Constraints

Paper · 2009 · Karthik Gali and Sriram Venkatapathy

**Authors:** Karthik Gali and [Sriram Venkatapathy](https://md.research.elamur.ai/free/en/authors/sriram-venkatapathy/) · **Year:** 2009 · **Venue:** Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Companion Volume: Student Research Workshop and Doctoral Consortium · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**7** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1978622157) · Cited by **2** papers in our library of more than 163,000 papers whose bibliographies we read · [Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Companion Volume: Student Research Workshop and Doctoral Consortium](https://aclanthology.org/volumes/N09-3/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/N09-3004/)
- [PDF](https://aclanthology.org/N09-3004.pdf)
- [DOI 10.3115/1620932.1620936](https://doi.org/10.3115/1620932.1620936)
- [OpenAlex](https://openalex.org/W1978622157)

Citations: OpenAlex, 2026-10-14.

## Summary

Given the words of a sentence in a jumble, how much grammar does a system need to put them back in order? Gali and Venkatapathy start with the words themselves and a set of links that say which word depends on which. The links supply a skeleton for the sentence. They leave open where each word goes and carry no labels for roles such as subject or object. Can sentences from the Penn Treebank’s Wall Street Journal section be reconstructed using only that limited information, with part-of-speech tags added in some experiments? That is what the authors ask. The task isolates an ordering problem that can arise in [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) and [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/).

The procedure works from the bottom of the dependency tree upward. A word and the material that depends on it form a block, which stays together when the procedure reaches the next level. At each node, the system tries every arrangement of the head word and its immediate dependents, then commits to the best arrangement at that node. The authors compare several ways of scoring these choices. They start with word sequences learned from full sentences, then train separate scorers for different kinds of subtree. Later variants represent each dependent by its head word or grammatical category. The strongest variant uses part-of-speech sequences that explicitly mark the head of the group being ordered. It uses word information to settle choices that the tags leave ambiguous.

On the Wall Street Journal test set, the head-marked variant scores 0.8156 with treebank-derived dependencies and 0.8027 with dependencies supplied by a parser, measured by [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/). The sentence-trained baseline scores 0.5472 and 0.5514 under the same respective conditions. The head-marked score with treebank-derived input also exceeds the earlier results assembled in the paper for the same test section, although those systems receive different kinds of input. The comparisons within the paper show that the way the ordering decision is represented matters even when the words and dependency links are held fixed.

In both test conditions the system receives the reference words. The parser experiment therefore measures how ordering fares when the links come from an automatic analysis, with vocabulary and word forms already supplied. The authors leave end-to-end translation for future work. They also identify a search tradeoff. Most branching in the test trees is small enough for local enumeration, but the cost increases sharply at highly branching nodes, and committing to a single arrangement at each node can discard a phrase that would fit better in the eventual sentence.

## Deep dive: Sentence Realisation from Bag of Words with Dependency Constraints

The paper tests how dependency links and part-of-speech tags help put unordered words back into sentences, using English Wall Street Journal text. · about 33 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

#### What the input leaves to decide

The paper studies sentence realisation as a problem of linear order. The input supplies a bag of words, meaning that the words are available for use but their positions have been removed. Treating the input as a bag also preserves repeated occurrences. If a word appears more than once, the realiser still has to place each occurrence. This definition puts the emphasis on arranging material that has already been selected. A target sentence emerges by placing those supplied words in a sequence.

A bare bag can leave several relationships unclear. A modifier may plausibly go with different nouns, and a set of words may lend itself to more than one division into phrases. The paper adds dependency links to give the ordering procedure a starting structure. A dependency identifies a head, the word that governs the relation, and a dependent, the word attached to it. A dependent can in turn head a group of its own. This is how head–dependent links define a tree in [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/).

The links are directed, so the realiser knows which word governs which. They are also unlabeled. A link joining a verb to a noun gives the system a structural connection, while the grammatical role of that noun remains unspecified. In the experiments that use [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), words also have category information, such as a noun or verb tag. A tag characterizes a word occurrence. A dependency label would characterize a relation between occurrences. This distinction matters because a system can benefit from knowing the categories of two linked words even when it receives no explicit account of their grammatical relationship.

The intended output is a well-formed sentence. For the experiments, the authors can compare each output with the original sentence because they begin with a corpus whose order is known. The system itself gets the unordered input. Recovering a reference lets the authors study ordering without having to trace mistakes back through a separate vocabulary-selection stage. This focus also defines the job sharply. The procedure can choose a position for each supplied word and use the tree to guide that choice. Decisions about which words or inflected forms belong in the sentence have already been made.

#### Where an ordering component could fit

The authors describe a transfer-based translation system as one setting for this problem. In their account, a parser first analyses the source sentence. A bilingual dictionary provides target-language lexical items. Transfer rules then help turn the result into a sentence by accounting for differences between the grammars. Rich source-side analyses give such rules more information to work with. Their usefulness depends on the accuracy of the analysis, including the reliability of dependency labels. The authors also note the work involved in crafting rules manually for language pairs they characterize as divergent, including English–Hindi and English–Japanese.

A realiser that accepts unlabeled links could take on part of the ordering work in that setting. The motivation is that a weak structural signal may still be useful even when detailed grammatical roles are difficult to obtain. The links identify related items that the realiser can keep together and order locally. Statistics learned from target-language text can then guide the placements the input leaves open. This design still relies on an earlier process to provide the target words and attachments. It changes what that earlier process must supply to the ordering component.

The paper also describes translation as a pipeline in which lexical transfer and sentence reconstruction are assigned to separate components. In the global lexical selection approach it discusses, the choice of target words draws on the source sentence as a whole. The resulting target-language bag can carry light syntactic information, including which words modify others. The authors see this as a possible source of input for their realiser. It is an especially direct fit to the paper’s experimental question because the distinction between choosing the words and arranging them is already part of the translation design.

A related use would begin with small pieces of a dependency tree. In the authors’ account of [Dependency Treelet Translation](https://md.research.elamur.ai/free/en/papers/quirk-2005-dependency-treelet-translation-syntactically-informed/), an ordering component could take an unordered collection of treelets associated through dependency links. A treelet is a local piece of a dependency tree. The unit available to the larger translation system can therefore be a piece of structure instead of a single isolated word. The connection to this paper is the need to impose order on material that arrives with some relationships already defined.

The motivation extends to generation in [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/). The authors describe a sequence in which text planning identifies concepts and their connections, then sentence planning turns that material into words with syntactic relationships. Surface realisation supplies the final sequence. Where a preceding stage provides lexical items and links, the job faced by the last stage resembles the paper’s reconstruction task. The range of examples explains why the authors settle on a small common input. The amount and kind of syntax available can vary across the applications they discuss.

#### What earlier realisers supplied themselves

In the related work, the authors describe FUF/SURGE, OpenCCG and XLE as examples of realisers built around grammars written by hand. Those grammars embody particular linguistic analyses and expect detailed input. The authors also point to work that acquires generation grammars partly or wholly automatically, including approaches associated with HPSG, LFG and CCG. Automatic grammar acquisition changes how a grammar is obtained. The paper’s concern is that the information the resulting realiser expects at generation time can still be richer than what some applications supply.

The authors also place their work in the tradition of probabilistic realisation ranking. One architecture first generates possible sentences and then ranks them. They discuss this division in connection with [Exploiting a Probabilistic Hierarchical Model for Generation](https://md.research.elamur.ai/free/en/papers/bangalore-2000-exploiting-probabilistic-hierarchical-model-generation/). A score in that architecture helps choose among available realisations. In the paper’s procedure, scores are also used before a whole sentence exists. They decide which arrangement of a subtree will be available to the next step. As a result, early rankings partly determine which full sentences the procedure can ever produce.

Guo and colleagues provide the closest comparison in the paper. They use statistics over short sequences to realise sentences from structures that Gali and Venkatapathy describe as comparable to labeled dependencies. In that account, grammatical role labels supply important evidence. The present paper asks what can be done with the links and, in some variants, with tags on the words. Both procedures commit to the best local string as they work through the tree. The paper distinguishes Guo’s use of Viterbi search from its own enumeration of every permutation at a node. These are choices about how to settle local order, alongside the separate choice about how much syntax to provide.

The authors also cite Chang and Toutanova for evidence that dependency constraints can help produce better-constructed sentences. Their own starting point is that links can do two jobs even without role labels. They can group words so that the realiser works on smaller units, and they can restrict the kinds of strings it considers possible. The paper then examines what information best guides the choices left within that restricted space.

### The method, step by step

#### Turn the tree into a sequence of local decisions

The first decision is to require projectivity with respect to the input tree. In this procedure, the words belonging to a subtree occupy a contiguous span in the output. A head can sit before, after or between its child blocks, and the blocks can trade places. The words of one child subtree travel together when that subtree is placed beside other material. This is the constraint that allows the system to handle a developed phrase as a single unit in a later ordering decision.

Consider a noun that heads a phrase inside a clause. The realiser first determines how the noun and its own dependents are arranged. When it reaches the verb above that noun, it can decide where the whole phrase goes. It does not have to distribute the noun’s dependents individually among the other words attached to the verb. This leaves real work for the verb-level decision. The noun phrase might have several possible positions relative to the verb and its siblings. The choices have become placements of whole units.

Projectivity is a restriction on the relation between the tree and the output string. It leaves the dependency links themselves intact. In a reference order where a subtree’s words are separated by material outside that subtree, a realiser with this constraint cannot reproduce that order from that tree. The authors expect this restriction to be acceptable for much of their English material. They connect departures from projectivity to long-distance dependencies and describe those cases as uncommon in English.

The traversal begins at the leaves, the words with no dependents of their own. A leaf already has its complete string. At a node above the leaves, the realiser considers the head word itself and the units corresponding to its children. The scoring variants differ in what they look at when evaluating those units. After selecting their local order, the procedure assembles the surface phrase for the node. Moving up the tree repeats this process until the phrase at the root becomes the output sentence.

Realising a sentence from an unordered dependency tree The steps in order.

#### How much the procedure enumerates

The paper uses a tree with five words to illustrate the saving. Permuting all its words as independent units would give the following search count.

```
5! = 120
```

The `5` counts the words in the illustration. The exclamation mark denotes factorial, the product of the positive integers up to the number it follows. The equals sign relates that factorial to `120`, the number of unrestricted permutations in the example.

For the illustrated bottom-up procedure, the authors count the permutations at the branching points where ordering decisions occur.

```
2! + 4! = 28
```

The `2` and `4` count the units to arrange at the respective local decisions in the example. The exclamation marks give the permutation counts at those decisions, and the plus sign adds the work of the separate enumerations. The equals sign gives the reported total of `28` local permutations. The sum describes the work of settling each local order and carrying its winner upward. Counting every complete projective output would require considering how alternative choices at different nodes combine.

For an arbitrary node, the same counting rule applies to the immediate decision.

```
(N + 1)!
```

Here `N` is the number of children of the current node. The plus sign adds `1` for the node’s own head word. The parentheses group the resulting number of units and the exclamation mark counts their permutations. A child subtree can contain many words while contributing just one unit to this enumeration. Thus the relevant size for this part of the search is the number of immediate choices at a node, alongside the work of evaluating the resulting candidates.

The paper uses the following expression to describe the growth of the search.

```
O(n!)
```

The `O` gives the order of growth, with the expression in parentheses specifying a factorial dependence. The lower-case `n` here stands for the width of the local reordering problem, which grows with the number of children. The exclamation mark denotes factorial. This use of `n` concerns complexity. The equations for phrase selection below use `n` as the name of a particular node.

Enumerating the available orders at a node is exhaustive for the units presented to that node. The term *locally greedy* concerns a different decision. After scoring those orders, the system keeps the winner and proceeds. In the variants that score full child phrases, an ancestor receives the chosen phrases with their internal orders fixed. An arrangement that ranked lower inside a child could connect more naturally to surrounding words, but the ancestor never sees it. The later variants reduce one source of this dependence by scoring shorter representations of the children. They still assemble the output using the local choices already made.

#### Establish the training material and the scoring rules

The experiments draw on the Wall Street Journal portion of the [Penn Treebank](https://md.research.elamur.ai/free/en/papers/marcus-1993-building-large-annotated-corpus-english/). The original sentences give the training procedure examples of words in order. To make the dependency structures, the authors use head-percolation rules from Magerman’s work. Head percolation identifies the word that serves as the head of a constituent, then passes that information upward through the phrase structure. It gives the authors a way to derive word-to-word attachments from the treebank analysis. They can then retain the attachments and discard the reference order when creating a test input.

In training, the order in the corpus is available to the sequence scorer. An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) is a sequence of consecutive items of a given length. The paper uses order 3 for its sequence statistics. Depending on the variant, the items can be words or part-of-speech tags, and the training sequence can come from a sentence or a piece of a dependency tree. The short window gives the system evidence about local pairings and contexts. The changing representation determines which items become neighbors within that window.

The paper reports Good–Turing smoothing for the order-3 training. Smoothing adjusts frequency-based estimates so that sparse events can receive usable scores. This is a separate choice from using part-of-speech tags. Smoothing concerns how to estimate a score given the events available in training. Replacing words by tags changes what counts as an event in the first place. A word sequence that the training material never exhibited may share a tag pattern with sequences it did exhibit.

Training and realisation use different aspects of the corpus. Training learns from ordered sequences and, for the subtree variants, from how those sequences relate to the dependency analysis. At test time, the rule for restricting the search comes from the unordered tree. The scores tell the procedure which of the allowed permutations resembles the patterns it learned. The paper’s variants keep this division between structure and scoring while changing both what goes into a candidate score and which training examples inform it.

#### Score the complete child phrases with a sentence-trained scorer

The baseline uses a scorer trained on complete sentences. At a node, it takes the head word and the best strings previously chosen for the children. It tries each order of those units and scores the resulting word sequence. Because each unit is a string, the score can reflect the way the end of one unit meets the beginning of the next. The internal order of a child phrase remains fixed during this calculation.

The paper expresses phrase selection at a node as follows, with the notation written for all its children.

```
p(n) = bestPhrase(perm(n, ∀ i p(cᵢ)) ∘ LM)
```

The `n` inside `p(n)` names the current node and also identifies its head word when passed to `perm`. The function `p` gives the selected surface phrase for a node. The equals sign assigns that phrase to `n`. The function `perm` forms permutations of the head word together with the already selected child phrases. The symbol `∀` means that the child phrase is included for every index `i`, and `cᵢ` denotes the child at that index. The subscript distinguishes which child is meant. The `∘` indicates applying the scorer to the resulting candidates. Here `LM` denotes the scorer trained on complete sentences. The function `bestPhrase` selects the candidate with the best score. Parentheses delimit the arguments to the functions, and the comma separates the head from the collection of child phrases.

This procedure uses the same scoring distribution at every level of the tree. A small noun-headed or preposition-headed fragment is scored with statistics learned from sentences, as is the assembled candidate at the root. The attraction of this baseline is that it asks how far general sequence statistics and projective grouping can go on their own. The next variant changes the source of the statistics while retaining the same local units.

#### Train a separate phrase scorer for each head category

The subtree-type variant groups training phrases by the part-of-speech tag of the word that heads them. The training sentences are parsed, and each subtree contributes the ordered material associated with its head category. The paper reports 44 separate scorers, each corresponding to a part-of-speech tag. It gives `of chaos` as an example of a sequence for the `IN` category and `never resumed` as a sequence for `VBD`. The grouping allows a phrase to be evaluated against other material headed by the same kind of word.

At realisation time, the node’s tag selects the scorer. The search still uses the full strings chosen for the children. In particular, a phrase’s tag class comes from its head even when some dependent supplies the first word of the realised phrase. The head is a structural position in the tree. It need not occur at either end of the string.

```
p(n) = bestPhrase(perm(n, ∀ i p(cᵢ)) ∘ LM₍POS(n)₎)
```

Here `p(n)` is the phrase selected for the node `n`, and the equals sign specifies how it is obtained. The function `perm` enumerates arrangements of the head word and the child phrases. The `∀` asks for `p(cᵢ)` for every child index `i`, with `cᵢ` the child identified by the subscript. The `∘` applies candidate scoring to those permutations. The term `POS(n)` gives the part-of-speech tag of `n`. The subscript on `LM` uses that tag to choose the scorer, and `bestPhrase` retains the highest-scoring candidate. The parentheses delimit the function arguments and the comma separates the current head from its child phrases.

The change in training has a practical consequence for the evidence available at a node. The comparison class for a preposition-headed group now consists of material with heads of that class. In the baseline, the same fragment would be judged using general sentence statistics. Holding the representation of the candidate fixed makes the comparison informative about training the scorer on the kind of phrase it will be asked to order.

#### Let the immediate heads stand for their subtrees

The head-word variant changes the sequence evaluated at each node. A child is represented in that sequence by its head word. The paper calls the local collection of the current head and its immediate children a treelet. Training now uses these local collections in their observed order. The classifier for a subtree type still draws on the head category, but the statistics concern sequences of immediate heads, with the material further down the tree removed from the scoring sequence.

The paper illustrates the distinction with a clause headed by *was*. The dependent phrase *The equity market* is represented by *market* in the local scoring sequence. The other units in the example are *illiquid* and the final full stop. The scorer judges arrangements of *was* and the immediate child heads. After it chooses one, the realiser puts the full phrase headed by *market* in the position assigned to that child. The article, modifier and noun are still present in the realised sentence.

This allows the system to learn relationships that would be separated by intervening material in a full word string. A local scorer can compare the position of *market* with that of *was* directly. A scorer looking at the full candidate has to work with whatever words fall within its short window after the noun phrase is expanded. The treelet representation concentrates the evidence on the heads whose positions the procedure is selecting at that moment.

It also gives some independence between ordering decisions. If the words internal to a dependent phrase have been arranged badly, the dependent still presents the same head to the parent scorer. The error stays in the surface phrase that will eventually be inserted. Its internal wording does not alter the treelet sequence used to place the phrase. The evidence lost through compression is equally concrete. An immediate-head sequence does not give the scorer access to every phrase-boundary word that could matter to the fit between adjacent blocks.

#### Order the treelet by tags, then use words to resolve ambiguity

The part-of-speech variant compresses the candidate again. The items used during the first scoring step are the tags of the current head and its immediate child heads. The training procedure learns ordered sequences of those tags. Many different words can share a category, so observations about how categories occur together can help when a word itself was unseen in training. This is the reason the authors give for replacing the primary lexical score with a tag score.

The *was* example shows why the system still needs words. The paper’s illustrative treelet assigns the same `NN` tag to *market* and *illiquid*. Switching those occurrences leaves the abstract sequence unchanged. From the tag sequence alone, the system can prefer positions occupied by those categories while having no basis for deciding which of the identically tagged words occupies each position. The phrase headed by *market* still has to end up in the right place as a unit.

The procedure first chooses the preferred tag ordering, then uses a word-based subtree-type scorer among the word arrangements consistent with that tag ordering. The lexical score therefore resolves ambiguity left by the categories within the selected pattern. This ordering of the steps matters. The tag stage narrows the available choices. The word stage makes a more specific decision among those choices. The authors also describe the tag-based procedure as faster than the preceding approaches, although the paper reports no timing measurements. The candidate representation is smaller, and its use leaves the general rule of local permutation search in place.

#### Give the head its own marker in the tag sequence

The last variant annotates the tag of the head of the treelet being ordered. This makes head status visible inside the candidate sequence. A category such as a noun tag can now represent either the central head of the current decision or an ordinary child with that category. Which use it has depends on the input tree and on the node currently being processed.

The paper depicts different treelets that lead the unmarked scorer to the same best tag sequence. If the sequence includes only plain categories, it can hide which item governs the others. Marking one item tells the scorer where the head appears in a proposed order and associates its position with the categories around it. The graph already identifies the head before this change. What changes is the representation of that information in the sequence the scorer sees.

The head marker addresses structural ambiguity while leaving some lexical ambiguity intact. Dependents with identical tags can still trade positions without changing the marked tag sequence. The authors test word-based ways of deciding among the surviving arrangements. Their preferred choice uses the head word together with its part-of-speech tag when making that lexical decision. The marked tag sequence and the lexical tie-break thus make different uses of the head. One identifies its structural status in the primary ordering score, and the other gives the lexical scorer category information about that same word.

The surface assembly stays the same across these changes. Once a local order is chosen, every child is realised by its full string. The root eventually yields a sentence of supplied words, with the grouping enforced by the tree. The succession of variants changes the evidence used to place the blocks. It goes from the words in each whole block, through the heads of those blocks, to category sequences in which the current head has a distinct representation.

### Experiments and results

#### The corpus splits and the paired input conditions

The paper lists and uses the standard splits for the Penn Treebank’s Wall Street Journal section. Training uses 39,832 sentences from sections 2-21. Section 22 supplies 1,700 development sentences, and section 23 supplies 2416 test sentences. The training split provides the ordered text and parsed material for the sequence statistics. The reported comparisons concern reconstruction of the section 23 sentences.

The test has a treebank-derived input condition, which the paper calls gold. The authors derive dependencies through the head rules and remove the reference order. The reference words are present as a bag. Part-of-speech tags supplied with the data are used where the variant calls for them. The task is to recover a plausible sequence using the lexical material and the structural information available in that condition.

In the parser condition, the authors first parse the test sentences with an unlabeled projective dependency parser, then discard order from the resulting analysis. The parser supplies the attachments used by the realiser, while the bag still contains the correct words. The label *noisy* consequently refers to the source of the dependency links. It does not describe a bag with errors in word selection, omissions or substitutions. In particular, this evaluation includes an automatic parser’s view of the attachments after seeing the ordered sentence.

The two conditions let the authors ask whether the same ordering methods work when the source of the dependency analysis changes. This change has more than one consequence. The automatically supplied links can differ from the treebank-derived links, and projectivity is guaranteed for the parser structures. For a method that requires subtree contiguity, the latter property creates a close fit between the parser’s output and the realiser’s search constraint.

#### Why local search was feasible on these trees

The authors tabulate the number of children per node on the test data. Nodes with no children account for 30,219 entries in the reported distribution. Among internal nodes, 13,649 have 1 child, and 5887 have 2. At the high end of the distribution, 119 nodes have more than 8 children. These counts describe the kinds of local ordering decisions encountered in the evaluation. A leaf has no child order to decide, and a node with few children presents a small set of units even when their full strings are substantial.

According to the paper, over 96% of internal nodes have at most five children. The authors use that reported characterization to motivate bottom-up enumeration. There is a discrepancy between the stated percentage and the counts in the branching table, so the statement is best read alongside the distribution rather than as an independently established proportion. The counts show that small local decisions are common and give concrete examples of comparatively wide ones. Branching also explains why the length of a whole sentence and the width of its largest local search are different properties.

#### What the metric captures

The authors compare the generated sentences with their references using BLEU. The metric rewards overlap between sequences of words in the output and in the reference. The particular input design makes word order important in that comparison. Since the vocabulary is supplied to the system, the same words can be arranged in a way that changes the neighboring sequences. An output that puts related words in the reference order will recover more of those patterns. The paper cites the original work on [BLEU evaluation](https://md.research.elamur.ai/free/en/papers/papineni-2002-bleu-method-automatic-evaluation-machine/).

The reported scores are BLEU values on the paper’s scale. They are distinct from counts of exact sentence matches. A system can get many word sequences right in a sentence whose full order differs from the reference. Conversely, an acceptable ordering with a different placement can lose credit when its sequences differ from the recorded sentence. The metric gives the authors a common measure for the reconstruction experiment and for the historical comparisons they reproduce.

#### Results with treebank-derived and parser-derived links

With the treebank-derived dependencies, the ordering of the systems by BLEU follows the progression of the method. The baseline uses the sentence-trained scorer. Training separate lexical scorers for subtree types yields a higher result, and the head-word treelet version improves on it. Representing the treelet by tags and resolving ambiguous positions with words improves the result again. The head-marked tag variant gives the highest BLEU in this condition.

Ordering variants on WSJ section 23 with treebank-derived links, measured by BLEU The head-marked tag variant gives the strongest reconstruction with treebank-derived links.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Sentence-trained scorer | 0.5472 |
| Subtree-type scorer | 0.6886 |
| Head-word treelet scorer | 0.7284 |
| Part-of-speech treelet scorer | 0.7890 |
| Head-marked part-of-speech treelet scorer (this paper) | 0.8156 |

The ordering by variant is the same when the links come from the parser. The better-performing methods therefore keep their advantage over the sentence-trained baseline under both input conditions. The head-marked variant leads the parser experiment at 0.8027 BLEU. Because the words remain correct, this shows that the leading ordering strategy can also make use of automatically derived attachments in this setup.

Ordering variants on WSJ section 23 with parser-derived links, measured by BLEU The head-marked tag variant retains the lead when a parser supplies the links.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Sentence-trained scorer | 0.5514 |
| Subtree-type scorer | 0.6870 |
| Head-word treelet scorer | 0.7227 |
| Part-of-speech treelet scorer | 0.7783 |
| Head-marked part-of-speech treelet scorer (this paper) | 0.8027 |

There is an exception to the general direction of the change between input conditions. The sentence-trained baseline scores 0.5514 with parser-derived links and 0.5472 with treebank-derived links. The authors suggest that the projective parser trees may help this variant. A treebank-derived tree can contain an attachment pattern that makes the reference order incompatible with the realiser’s contiguity requirement. The parser condition can therefore remove a kind of incompatibility even as it introduces uncertainty about which attachments are correct. The experiment compares the conditions as a whole, with no separate score for the effect of this compatibility.

The other variants score higher with the treebank-derived structures. For instance, the plain tag-based variant scores 0.7890 with treebank-derived links and 0.7783 with parser-derived links. The authors view the scores across both conditions as comparable. The important comparison for the design is that the source of the links does not reverse the ranking of the scoring variants on this test set.

#### How the earlier published results compare

The authors reproduce a comparison from Guo and colleagues for the same Wall Street Journal test section and add their best result. The earlier entries are results taken from the published comparison. They provide context for the absolute BLEU score alongside the baseline that the authors test under their own input conditions.

Published sentence realisation results on English WSJ section 23, measured by BLEU The head-marked system has the highest reported score in the comparison.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Langkilde | 0.757 |
| Nakanishi | 0.705 |
| Cahill | 0.6651 |
| Hogan | 0.6882 |
| White | 0.5768 |
| Guo | 0.7440 |
| Head-marked part-of-speech treelet scorer (this paper) | 0.8156 |

The strongest result in the paper is above every earlier entry in this table. The highest earlier number shown there is Langkilde’s 0.757. The authors caution that the information supplied at the start of realisation varies among the systems. Sharing a test section aligns the source of the reference sentences. It leaves open differences in the task each system has to solve from its particular representation. The internal baseline carries a different kind of evidence. Its input is drawn from the same experimental conditions as the other variants, so their scores can be interpreted in terms of the specific changes in training and scoring.

### What the ablations show

#### Matching the scorer to the unit of generation

The paper’s sequence of variants provides several controlled comparisons, with some stages changing more than one thing. The clearest first comparison keeps the full child phrases as the units and changes the material on which the scorer is trained. With treebank-derived links, the sentence-trained baseline gives 0.5472 BLEU, and the subtree-type scorer gives 0.6886. With parser-derived links, the respective scores are 0.5514 and 0.6870. In both conditions, scoring a candidate against phrases associated with its head category improves on using common sentence statistics everywhere.

This comparison tests a mismatch that follows from the traversal. Most scoring decisions are made before the system reaches the root. The candidate at that stage might be a fragment with a recognizable local function but an unusual distribution when judged as though it came from the same pool as every other fragment. Separate training by head category provides a more specific basis for ranking. Because the variants continue to permute the same kinds of surface blocks, the improvement supports that change in scoring context without needing to attribute it to a new search procedure.

#### What changes when the scorer sees only the heads

The next comparison moves from full subtree strings to head-word treelets. The treebank-derived result moves from 0.6886 to 0.7284 BLEU. The parser-derived result moves from 0.6870 to 0.7227. This intervention changes both the representation of a local candidate and the sequences used in training. The system now learns from immediate head configurations and evaluates immediate head configurations. The experiment supports that pairing. It does not separately measure how much comes from discarding descendant words at test time and how much comes from training on the shorter treelet sequences.

The improvement is consistent with the authors’ account of why heads matter. A subtree’s head can preserve evidence about its role in the local order when the rest of the subtree introduces intervening words. In a full-word sequence with a short scoring window, the information used to order a pair of blocks may depend on the exact child strings selected earlier. A treelet places the immediate heads within the representation that the parent scorer uses. Consequently, it can recover useful ordering preferences even when a child’s internal order differs from the preferred one.

This benefit has a particular scope. The representation can insulate the parent’s placement decision from an error inside a child. It still carries the child’s chosen string into the assembled sentence. The aggregate BLEU numbers therefore support better final reconstruction with the head-word approach as a whole. They leave the location of the corrected and remaining errors unspecified.

#### The role of category information and head identity

Comparing the head-word and tag-based variants tests ordering from POS patterns with lexical resolution of ambiguity. On treebank-derived links, their BLEU scores are 0.7284 and 0.7890, respectively. On parser-derived links they are 0.7227 and 0.7783. The tag-based procedure’s advantage holds even though its first scoring stage uses less lexical detail. Observations from several different words can inform the placement of a common category, and the later lexical step can distinguish words that share a tag.

The paper motivates this approach partly through unseen words. The aggregate test scores are consistent with a benefit from generalization across words. The experiments give no separate outcome for candidates involving unseen words, so they cannot assign a particular share of the improvement to that mechanism. The same scores are also consistent with stronger ordering preferences among tags on words already observed in training. What the comparison measures is the combined effect of ordering with tags and using words to resolve the ambiguity that remains.

Marking the head brings another improvement in both conditions. Plain tag sequences score 0.7890 on treebank-derived links and 0.7783 on parser-derived links. The head-marked procedure scores 0.8156 and 0.8027, respectively. This is evidence for the complete head-marked procedure. The authors also choose a head-tagged lexical scorer for settling the order among words compatible with the winning tag sequence. They do not give separate scores for all the lexical settings they tried. The reported comparison consequently leaves the contributions of the marker and the preferred lexical step coupled.

The structural reason for head marking is visible even without a breakdown of those contributions. The part-of-speech sequence supplies the categories of the local units in their candidate order. When the current head has an ordinary tag in that sequence, the category itself can be indistinguishable from that of a child. Marking the head lets the scorer learn regularities in the placement of head and dependents relative to one another. The result is a more informative representation of the same local tree, with the head of that treelet made visible at the point where ordering is decided.

#### What the search and input comparisons isolate

The paired input conditions show how the variants behave when dependency acquisition changes while word selection stays fixed. They reveal that the sentence-trained baseline responds differently from the others in the direction of the score change. They also show that all the successive changes to the scoring procedure preserve their ordering by BLEU when links come from the parser. This makes the comparison useful as a test of dependence on the source of the attachments.

The authors suggest that exhaustive permutation search is helpful. The branching distribution supports their account of why it is feasible to try on this data. Every variant in the main comparison uses the same general local enumeration strategy, however. There is no matched experiment that substitutes Viterbi search or another decoder while holding the scorer and the inputs fixed. There is also no reconstruction baseline that discards the tree and simply scores unrestricted word permutations on the test set. The example with five words explains the reduction in work at local decisions. The experiments quantify improvements among methods that already use the constraint.

Projectivity likewise enters through the design and through the difference in how the two sets of test links are obtained. The paper’s account of the baseline’s higher parser score offers a specific mechanism to investigate. The available results do not give projective and non-projective subsets of the same treebank-derived condition. They also provide no attachment-error breakdown for the parser inputs. The aggregate comparison therefore supports practical tolerance to a different source of links under the tested conditions, with the causes of particular changes left open.

### Limitations

#### Limits identified by the authors

The authors identify factorial search at wide nodes as the main computational constraint. The empirical branching counts explain why they can use enumeration on much of the test set. Those counts describe this corpus. A highly branching node still requires many candidate orders, and every candidate needs to be evaluated. The paper proposes trying Viterbi search and measuring any change in quality. The experiment would help assess how much of the observed reconstruction performance depends on inspecting all local orders. The paper leaves that quality and search tradeoff unmeasured.

The authors also identify the use of a single local winner as a restriction. A phrase chosen in isolation can be the best-scoring option at its node and still fit poorly beside material supplied by an ancestor. The proposed remedy is beam search, which would retain several promising phrases for a subtree. Carrying alternatives forward would allow a later decision to take some of those interactions into account. It would also require the system to compare combinations that the original procedure discards. The reported results reflect the procedure that commits to one choice at each stage.

The use of head words and tags changes the dependence between local decisions, but it does not remove this issue from the realised output. An ancestor that sees only the child’s head can choose a good position for that block without considering its exact wording. That same decision has limited access to evidence about how the assembled phrases will sound next to one another. The authors’ proposed beam is an avenue for retaining potentially useful internal choices. The experiments give no estimate of the additional search needed or of how frequently the extra choices would affect the final sentence.

The paper treats use in translation as future work. The proposed test would start from a target-language bag produced by a translation component, where the words and structure could both be uncertain. The authors also propose investigating a morphologically rich language such as Hindi, expanding the set of features, testing factored approaches, and using much larger training collections. The conclusions in the paper concern the English reconstruction experiment. These directions describe the kinds of evidence that would be needed to extend them.

#### Limits visible in the experimental setup

The evaluation starts after lexical choice has already succeeded. In both conditions the bag comes from the reference sentence, including the forms of the words. Real translation or generation may supply a different word inventory. Even a strong ordering component can only arrange what reaches it under the task defined here. The parser experiment tests automatically derived attachments with the lexical material held fixed. It gives no measured effect for missing words, extra words or inappropriate forms, and the resulting BLEU scores are insufficient to predict an effect on an end-to-end pipeline.

The parser also sees the original sentence in order before the input to the realiser is constructed. Any evidence from that order used to choose an attachment can influence the resulting tree. Removing the positions afterwards produces a genuinely unordered input for the realiser, while leaving it with the structural decisions of a parser that had access to the observed sequence. A translation component deriving links for target words before a target sentence exists would obtain its evidence differently. The paper’s parser condition shows what happens with that particular way of generating automatic input.

The derivation of the gold links depends on head rules. The gold condition supplies a consistent treebank-derived analysis, and it also ties the experiment to the particular heads and attachments selected by those rules. Changing a head can change the groups that the system must keep together, the category used to select a scorer, and the item that represents a child in a treelet. The head-marked variant makes this dependence especially direct because head identity has its own mark in the scoring sequence. The reported comparison tests variation in the source of the tree. It leaves variation across different head conventions and attachment patterns unmeasured.

Projectivity narrows what success can mean for an individual sentence. If the original order interleaves a subtree with outside material, the realiser cannot recover that order under the fixed constraint. In those cases the dependency analysis and the reference impose incompatible requirements on the search. Where the links are projective, there can still be a choice among many contiguous orders. The paper does not quantify how frequently the reference is excluded by the treebank-derived links or how much the remaining ambiguity contributes to the final score.

The results also come from a single portion of an English treebank. The vocabulary and tag patterns are learned from training material drawn from the same collection as the evaluation. The branching profile establishes how frequently certain kinds of local decisions arise in that setting. The paper gives no comparable profile or result for dialogue, for material produced by a translation system, or for Hindi. A different application could change both which dependencies are available and which tag sequences are good predictors of order. Both changes matter to the design.

BLEU measures agreement with the recorded sentences through word sequences. It gives the study a way to track reconstruction quality at scale, and it leaves other questions unanswered. An output can follow the reference closely while containing a serious local ordering mistake. Another output can differ from the reference and still be acceptable. The paper gives no separate human judgments, exact reconstruction rates, or error categories that would let a reader determine how frequently either case occurs. It also gives no uncertainty estimates for the scores. The measured ranking is therefore a result for the chosen metric and split.

Finally, the historical comparison places a high result in context while combining systems with different input representations. The authors explicitly note this difficulty. Differences in starting information can change which decisions a system must make, even when the final strings are compared with the same references. The clearest evidence for the paper’s specific design choices lies in its paired comparisons on the same word bags. Those comparisons show the value of the complete scoring variants under the stated constraints. They leave the effect of changing one component at a time unresolved where a variant changes several components together.

### What came after

The documented account ends with the authors’ proposed follow-up experiments. No later citing work is available to trace how the approach was adopted or altered. The paper itself leaves two related questions open. One is whether retaining more local alternatives or using a different search procedure would improve the balance between reconstruction quality and computational cost. The other is whether the head-marked ordering strategy would retain its advantage when a translation system has to supply the words as well as their dependencies. The measured results establish a starting point for those questions on Wall Street Journal reconstruction with the words already given.

## Cite

Cite as Karthik Gali and Sriram Venkatapathy. 2009. Sentence Realisation from Bag of Words with Dependency Constraints. Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Companion Volume: Student Research Workshop and Doctoral Consortium.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{gali2009sentence,
  title = {{Sentence Realisation from Bag of Words with Dependency Constraints}},
  author = {Karthik Gali and Sriram Venkatapathy},
  booktitle = {Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Companion Volume: Student Research Workshop and Doctoral Consortium},
  year = {2009},
  doi = {10.3115/1620932.1620936},
  url = {https://doi.org/10.3115/1620932.1620936}
}
```

> 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)
