---
title: "Randomized Greedy Inference for Joint Segmentation, POS"
description: "Randomized greedy inference lets a parser reconsider word boundaries, part-of-speech tags, and syntactic links in Arabic and Chinese."
canonical: "https://research.elamur.ai/free/en/papers/zhang-2015-randomized-greedy-inference-joint-segmentation/"
---
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/zhang-2015-randomized-greedy-inference-joint-segmentation/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing

# Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing

Paper · 2015 · Yuan Zhang, Chengtao Li, Regina Barzilay et al.

**Authors:** [Yuan Zhang](https://md.research.elamur.ai/free/en/authors/yuan-zhang/), Chengtao Li, [Regina Barzilay](https://md.research.elamur.ai/free/en/authors/regina-barzilay/) and [Kareem Darwish](https://md.research.elamur.ai/free/en/authors/kareem-darwish/) · **Year:** 2015 · **Venue:** Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**39** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2296260950) · [Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies](https://aclanthology.org/volumes/N15-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/N15-1005/)
- [PDF](https://aclanthology.org/N15-1005.pdf)
- [DOI 10.3115/v1/n15-1005](https://doi.org/10.3115/v1/n15-1005)
- [OpenAlex](https://openalex.org/W2296260950)

Citations: OpenAlex, 2026-10-14.

## Summary

A parser can attach a word to the wrong part of a sentence because an earlier step gave it the wrong grammatical category. It can also start with the wrong set of words. Arabic writing can join several meaningful units within a single written token, while written Chinese leaves word boundaries unmarked by spaces. In a pipeline, [tokenization and segmentation](https://md.research.elamur.ai/free/en/topics/tokenization/), [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), and [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) make these decisions in sequence. The parser then has to work with whatever units and tags the earlier steps delivered. The authors ask how to let evidence from all these tasks influence the final answer without requiring an exact search over every possible analysis.

Their system starts from a lattice, a compact representation of alternative segmentations and tags. It samples a complete path through the lattice and draws a dependency tree for the resulting units. It then repeatedly revises the tags and the tree, keeping the segmentation fixed for that run. A fresh start can try different boundaries as well as different tags and attachments. The system compares the completed analyses using a score that can draw on evidence from individual words, groups of syntactic links, and patterns in the tree as a whole. Randomized starts make it possible to use that broad score with a search that improves one local decision at a time.

On the SPMRL Arabic test set, the joint system scores 93.87 on TedEval, the shared task’s joint evaluation measure, compared with 91.74 for the strongest published entry in its comparison. The authors report a 2.1% absolute gain on that measure. On the Chinese Penn Treebank, the joint system reaches 82.01 unlabeled dependency F-score, compared with 81.70 for the published comparison system. On classical Arabic, where training uses primarily Modern Standard Arabic, the joint system improves both segmentation and tagging over its pipeline counterpart. The classical Arabic experiment reports these preprocessing outcomes without a dependency score.

The comparisons by vocabulary status show where syntactic feedback can help and where it runs out of room. Words and morphemes absent from the training vocabulary frequently benefit from joint prediction, although the size of the improvement depends on the quality and coverage of the alternatives supplied by preprocessing. The search experiments reveal a separate limit. Most sentences in the convergence analysis reach the best score found by a much longer run within the usual restart budget. That result measures how reliably the search recovers a strong analysis under its own scoring function.

## Deep dive: Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing

Randomized greedy inference lets a parser reconsider word boundaries, part-of-speech tags, and syntactic links in Arabic and Chinese. · about 36 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

#### The parser inherits decisions about what it can attach

A dependency tree records which unit governs each other unit in a sentence. The governing unit is called the head, and the connection between the head and its dependent is an attachment. Before a parser can choose a head, it needs to know which units can take part in those relationships. A part-of-speech tag, or POS tag, gives it another kind of evidence by describing the grammatical category of a unit. The usefulness of a potential attachment can therefore depend on both the segmentation that created its endpoints and the tags assigned to them.

Arabic and Chinese put different decisions upstream of the tree. In the Arabic setting, spaces already give the system written tokens, but a token may need to be divided into morphemes, the units used for the paper’s analysis of [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/). An alternative split can change which elements appear as separate nodes in the dependency tree. In Chinese, the input consists of a character sequence whose word boundaries must be identified. Combining characters into a word rather than splitting them changes the units that receive tags and enter the tree. Both settings give the parser an uncertain inventory of nodes, despite their different starting points.

The effect of a boundary decision can reach beyond the token or character span where it was made. If a split introduces a unit, the tree needs an attachment for that unit, and it may also make that unit a possible head for something elsewhere in the sentence. A different tag can change the apparent plausibility of the attachments already under consideration. The paper cites earlier work by Li and colleagues that reported a gap of about 6% in dependency accuracy between using reference POS tags and automatically assigned tags. That observation motivates the idea that improving decisions made before attachment can matter substantially for the eventual parse.

A pipeline offers a straightforward division of work. The segmenter selects boundaries, the tagger assigns categories, and the parser attaches the resulting units. Each component can focus on a well-defined input. The cost of that division is that the best-looking decision at an early stage becomes a condition of all later decisions. Suppose an Arabic token has two plausible splits according to its morphological analysis. The parser might have strong syntactic evidence favoring the split ranked lower by the analyzer. If it receives only the analyzer’s top choice, that evidence has no route back to the discarded option. Joint prediction gives the system a way to let that evidence influence the selection.

This makes joint prediction a problem of search as much as a problem of representation. A system can describe the evidence it would like to use, but it still has to find an analysis that scores well under that evidence. There may be several candidate segmentations, many possible combinations of tags for their units, and many ways of assembling those units into a valid tree. A decision about boundaries changes the other decisions available. A search that ranks every fully specified alternative would have to account for those dependencies across the sentence.

#### Earlier work tied inference to the way it represented uncertainty

The paper places its approach alongside earlier efforts to combine decisions that pipelines treat separately. Some cover segmentation and tagging, as in work on Arabic tokenization and morphological disambiguation and in work on Arabic segmentation with a conditional random field classifier. Other work combines tagging with the construction of a dependency tree. These examples help locate the paper’s task. It addresses uncertainty over units and tags as well as over attachments. [Arabic tokenization and morphological disambiguation](https://md.research.elamur.ai/free/en/papers/habash-2005-arabic-tokenization-part-speech-tagging/) · [Joint Arabic segmentation and POS tagging](https://md.research.elamur.ai/free/en/papers/braham-2012-joint-segmentation-pos-tagging-arabic/) · [Joint POS tagging and dependency parsing](https://md.research.elamur.ai/free/en/papers/bohnet-2012-transition-based-system-joint-part/)

The authors describe lattices as a familiar way to handle morphological alternatives in work on languages such as Arabic and Hebrew. A lattice preserves a set of possible analyses in a form that can share pieces among alternatives. A transition-based parser can interleave moves through that lattice with moves that build the syntactic structure. In a more decoupled design described by the paper, the lattice supplies a preferred morphological analysis for each possible part of speech, and the parser works from those choices. In each case, the paper sees a connection between tractable inference and restrictions on the score the search can use.

In the Chinese work surveyed by the authors, character-level transitions were a common way to assemble a segmentation while making other predictions. The search can consider a large space of word boundaries, with features defined over the parts of the current search state available to it. The paper describes this in terms of access to a stack and a queue, structures that track material already taken up by the analysis and material awaiting processing. That design gives the system access to evidence as it builds the answer. Which configurations are visible at a particular decision depends on how the state is represented. [Joint Chinese word segmentation and POS tagging](https://md.research.elamur.ai/free/en/papers/zhang-2008-joint-word-segmentation-pos-tagging/)

The alternative in this paper is to begin with an entire analysis that can already be scored. If the scoring function asks about the tags at the ends of a dependency arc, those tags and the arc are available. If it asks about a group of attachments or a broader property of the tree, the relevant structure is also present. A search move changes a piece of that analysis and compares the resulting complete assignments. This is what loosens the connection between the feature design and the order in which an analysis is constructed. The score still has to be evaluated for the proposed assignments, and the search still needs an effective way of reaching them.

The authors had previously used randomized greedy inference for dependency trees over fixed units. Here they extend that idea to a problem where the units and categories are themselves uncertain. The extension raises a practical question. A local change to a tag or an attachment can leave the rest of a complete analysis in place, but a change to the segmentation can remove or introduce nodes. The paper’s inference procedure treats boundaries differently from tags and attachments for that reason.

### The method, step by step

#### Build a space of complete analyses

The easiest way to follow the method is to ask what the system knows at the beginning of a search run. It has a sentence, a collection of allowed segmentations, and a collection of possible tags for each resulting unit. The segmentation and tag alternatives are organized as a lattice. A complete path chooses a way to cover the input and a tag for every unit it produces. The lattice specifies the permissible answers for these decisions. A dependency tree over the units on a chosen path completes an answer.

The Arabic lattice illustrated in the paper makes the distinction concrete. The written token `wkAn` can be split as `w + kAn` or as `w + k + An`. In the first split, `w` itself admits more than one POS choice. The presence of several tags for `w` gives the system additional analyses even when it keeps the same split. The second segmentation changes which units have to be tagged and attached. A full candidate therefore specifies a split, a compatible tag for every piece, and a tree over those particular pieces. Counting the splits alone would miss the different syntactic analyses the search can consider.

A search run samples the segmentation, samples the tags compatible with it, and samples a tree. Sampling means that several admissible answers can be tried, with draws guided by scores. The resulting assignment supplies a starting point for a greedy procedure. The procedure visits the units, considers changing each tag, and then makes a pass over possible changes to their heads. It repeats those passes until a round leaves the assignment unchanged. The next start can take a different lattice path and draw a different tree.

Randomized search over complete sentence analyses The steps in order.

There are two sources of variation across runs. A fresh segmentation changes the set of nodes that the parser works with. A fresh assignment of tags and heads gives the greedy search another starting point even if the same segmentation is drawn again. This matters because a single plausible change may only become attractive after some other part of the analysis has changed. When every permitted move from the current state scores poorly, another start can open up a different sequence of moves.

#### Score the sentence as a whole

The notation starts with the Arabic case, in which the raw input already has written token boundaries. The sentence is `x`, and `xᵢ` is the token at position `i` in that sentence. The segmentation `s` chooses a split `sᵢ` for each token. The unit `sᵢ,ⱼ` is the piece at position `j` within the split of token `i`. The tag assignment is `t`, with `tᵢ` denoting the tags for the pieces of token `i` and `tᵢ,ⱼ` the tag on the individual piece. The tree is `y`, and `yᵢ,ⱼ` specifies the head of the same piece. In Chinese, the paper obtains analogous initial tokens by identifying confident boundaries before making the lattice.

The full score is a weighted combination of features, which are quantities or indicators extracted from the input and a proposed answer.

```
score(x, s, t, y) = θ · f(x, s, t, y)
```

Here `score` is the value assigned to the complete analysis of `x`. The arguments `s`, `t`, and `y` respectively give its segmentation, tags, and dependency tree. The vector `f(x, s, t, y)` records the feature values for that combination, and `θ` is the vector of learned weights. The dot `·` denotes a dot product, so each feature value is multiplied by its weight and the contributions are added. The equality says that this weighted combination defines the score. Higher-scoring complete analyses are preferred during decoding, the process of selecting an output for a sentence.

The candidate set `Sᵢ` supplies the available splits of token `xᵢ`. The set `Tᵢ,ⱼ` supplies the candidate tags for the resulting unit `sᵢ,ⱼ`, and `Tᵢ` groups the possible tag assignments for the units of a token. The paper uses `S`, `T`, and `Y` for the sentence-level segmentation, tagging, and tree spaces. Those spaces have to be read together. The contents of a compatible tag assignment and the nodes of a valid tree depend on which segmentation was chosen.

One benefit of working with complete assignments is that a tag can affect more than the part of the score dedicated to labeling the word. A feature may inspect the tags on both ends of an attachment, for example. If the parser considers a different tag for the dependent, it can see what that change does to the score of the current arc. If it considers a different head, it can compare two attachments using the currently assigned categories. The same feature can thus contribute evidence during both kinds of revision.

#### Use simpler scores to draw a starting point

Initialization uses first-order scores. In this part of the method, that means the segmentation sampler looks at a token and its proposed pieces, and the tag sampler looks at a piece and its candidate tag. These draws use the current learned weights. Because the candidate lists for an individual split or tag decision are small, the authors can enumerate them, compute their weights, and normalize those weights into probabilities for sampling.

```
p(sᵢ) ∝ exp{θ · f(x, sᵢ)}
```

The quantity `p(sᵢ)` is the sampling probability for split `sᵢ` of the token indexed by `i`. The input sentence is `x`, and here `f(x, sᵢ)` is the first-order feature vector for the split, using the token and its pieces. The weight vector is `θ`, and the dot `·` combines the features with their weights. The function `exp` exponentiates the expression in braces. The proportionality sign `∝` means that all candidate splits for the token receive weights of this form, which are then normalized over the list.

```
p(tᵢ,ⱼ) ∝ exp{θ · f(x, sᵢ,ⱼ, tᵢ,ⱼ)}
```

Here `p(tᵢ,ⱼ)` is the sampling probability of a tag for the unit at position `j` in token `i`. The unit is `sᵢ,ⱼ`, the proposed tag is `tᵢ,ⱼ`, and `x` is the sentence. In this equation `f` gives the first-order feature vector for the unit and tag. The `θ` weights and the dot `·` produce a score, `exp` turns the score into a positive sampling weight, and `∝` indicates normalization over the candidate tags for the unit. The segmentation draw therefore determines which tag draws have to be made.

The authors report that the sampling distributions become sharper after several passes through the training data. A sharper distribution concentrates more of the probability on a few candidates. That can reduce the diversity of starts, so the system smooths the distribution by scaling scores before sampling. The paper describes this adjustment for segmentation, tagging, and tree sampling.

After drawing the segmentation and initial tags, the parser uses Wilson’s algorithm to draw a valid dependency tree from a first-order distribution for the chosen units. The tree sampler gives the hill climb a complete structure from its first step. Its distribution uses simpler evidence than the complete score that the system uses to improve and compare assignments. That distinction lets a start be generated with one procedure and judged with features that take larger parts of the structure into account.

#### Improve the tags, then improve the attachments

Once a run has a segmentation, the greedy search holds it in place. It first works through the tags in bottom-up order, using the current dependency tree to determine the order of visits. A bottom-up pass attends to units below their heads before moving up the tree. At a particular unit, the system tests the candidate tags by substituting each one into the complete assignment. It keeps the rest of the tags and the tree fixed during that comparison.

```
tᵢ,ⱼ ← arg max over a ∈ Tᵢ,ⱼ  score(x, s, a, t₋₍ᵢ,ⱼ₎, y)
```

The arrow `←` updates the tag `tᵢ,ⱼ` for unit `j` of token `i`. The symbol `a` stands for a tag being tried, and `a ∈ Tᵢ,ⱼ` restricts the comparison to the candidate tag set for that unit. The notation `arg max` returns the candidate that gives the highest value. In `score`, the sentence `x`, segmentation `s`, and tree `y` stay fixed. The term `t₋₍ᵢ,ⱼ₎` denotes all currently assigned tags except the one being tested, so `a` and those remaining tags together form the full tagging for that score calculation.

This update can use the evidence of the whole assignment even though it changes just one variable. Suppose the morphological analysis favors one tag for `w` in `wkAn`. A different candidate may fit its current attachment and the surrounding tags better. The update compares their combined scores, which can include the preprocessor’s preference as well as those contextual features. A visit later in the same pass can then use the tag already chosen for `w`.

The next pass revises the tree, again in bottom-up order. Now the current tags are held fixed, and the system tests heads for one dependent at a time. Each permissible head substitution has to leave a valid dependency tree. This condition rules out changes such as choosing a head that would turn a chain of attachments into a cycle.

```
yᵢ,ⱼ ← arg max over h ∈ Yᵢ,ⱼ  score(x, s, t, h, y₋₍ᵢ,ⱼ₎)
```

The arrow `←` updates `yᵢ,ⱼ`, the head of unit `j` of token `i`. The variable `h` denotes a possible head. Membership `h ∈ Yᵢ,ⱼ` says that it belongs to the admissible candidate set for this update, including the requirement of tree validity. The expression `arg max` selects the head giving the greatest `score`. The sentence `x`, segmentation `s`, and tags `t` stay fixed. The notation `y₋₍ᵢ,ⱼ₎` refers to every attachment except the one being revised, so the score is evaluated on the tree with `h` substituted at the current position.

After an attachment pass, another tag pass can exploit the new tree. Similarly, tags chosen during that pass can make a different attachment attractive in the following tree pass. The alternation stops when neither pass changes the assignment in a round. This gives a local optimum with respect to the search’s moves, meaning the pass can find no individual change to take. A change involving several decisions together might still lead to a higher score. The authors refer to earlier work on the ability of their tree moves to reach a target tree through a finite sequence of steps. A sequence of allowable moves can exist even when a greedy procedure has no reason to follow it from its current state.

The restriction on segmentation is especially consequential here. With `w + kAn` already selected, the tree has a node for `kAn`. Changing to `w + k + An` would remove that node and introduce separate nodes for `k` and `An`. Tags and attachments involving the changed units would need to be chosen together. The authors judge such an update too expensive for the hill climb. A restart can instead draw the second segmentation and create the appropriate tags and tree directly. The higher-scoring result can win the sentence-level comparison even though the runs never move directly between the two segmentations.

The procedure keeps the highest-scoring assignment found across starts. Its adaptive stopping rule uses `K`, the number of successive starts allowed without improving the best score. In the experiments, the authors set `K = 300`. The rule lets the search continue when it is still finding better assignments. Within each restart the stopping condition is different. It depends on whether the alternating tag and tree passes have stopped making changes.

#### Describe boundaries, categories, and tree structure with features

The segmentation score can use the score from the system that proposed a candidate, together with the morphemes or words that the candidate contains. A preprocessor’s ranking therefore remains available to the joint system as evidence. Chinese segmentation also uses character-based features, including the initial and final characters of a candidate word and its length. These features let the scoring function distinguish candidate words on the basis of their internal form.

The POS features combine the tag under consideration with evidence from the word or morpheme being tagged and from its neighbors. Some templates pair the current tag with nearby word forms. Others combine the tags in a stretch of the sentence, or use a mixture of words and tags. The preprocessing tagger’s score is another feature. In the full analysis, changing one category can change the score of several overlapping contexts. The system can inspect these contexts because the path already supplies all its units and tags.

The paper adds Chinese features that pair a tag with word prefixes, suffixes, and characters at particular positions. There is also a word-length feature capped at 5 in the Chinese POS templates. A tag may then be supported by recurring parts of the word as well as by the surrounding context and the dependency structure. The Chinese features are motivated by earlier work on segmentation and tagging. The basic procedure that evaluates and revises a tag remains the same as in the Arabic experiments.

The dependency features range from first- through third-order templates, so they can use information about individual attachments and configurations that involve more of the tree. The paper also uses features for adjacent conjuncts in a coordination and for valency patterns by part of speech. Valency concerns the dependents associated with a head. These features can give a different score to trees that make similarly plausible choices when each arc is inspected in isolation. Many tree features also depend on the segmentation and tags. A feature looking at the word forms or categories at both ends of an arc is already using information from outside the set of attachment decisions.

The architectural distinction is between the score and the moves used to improve it. A feature can examine a configuration spanning several decisions even if each search step changes only one of them. The system can compare the feature values before and after a proposed substitution. Its ability to calculate the change gives it a way to exploit the feature. Whether a series of local substitutions reaches a configuration favored by that feature is a separate question about the search.

#### Adapt the lattice to Arabic and Chinese

For the SPMRL Arabic data, MADA supplies morphological analyses with scores and possible POS tags for each written token. The system assigns each retained segmentation or tag the highest MADA score from an analysis containing it. This matters when several analyses yield the same split or include the same tag. The candidate can carry forward its strongest support from the analyzer. The system also associates MADA information on gender, number, and person with the segmentation. The paper illustrates this conversion with the token `Emlyp`, showing how entries from a morphological analyzer supply options for the lattice.

The classical Arabic experiment changes the candidate sources. The authors report that MADA is chiefly trained for Modern Standard Arabic and performs poorly on classical Arabic. They therefore use the morphological analyzer developed by Darwish and colleagues for segmentation. For tags, they build a morpheme-level conditional random field, or CRF, tagger. Its marginal probabilities estimate support for each tag at an individual position. Applying a probability cutoff gives a list of candidates rather than just the highest-scoring category. The resulting lattice still provides the same kinds of choices to the joint decoder.

For the Chinese Penn Treebank, the Stanford Chinese word segmenter is retrained on CTB5 and produces a top-10 list for each sentence. The authors use 10-fold cross validation to generate training-set outputs without relying on predictions from a segmenter fitted on those same examples. Boundaries shared across all 10 candidates are treated as confident. The strings between those shared boundaries become the starting tokens. The lattice then represents the remaining segmentation alternatives within them. A CRF tagger with Chinese features supplies the tag candidates.

The Chinese example in the paper contains `新华社`, which can stay intact or be divided as `新华 + 社`. Once a region like this has been identified, the inference procedure treats it in much the same way as an Arabic token with several morphological segmentations. Its chosen units receive tags, the sampler draws a tree, and the alternating passes refine the tags and heads. Chinese character sequences and Arabic written tokens call for different ways of supplying the alternatives. Both yield the kind of complete lattice path that the randomized search needs.

#### Learn weights with annotated answers and costly mistakes

The training data contain sentences with reference segmentations, tags, and trees. The paper calls these reference answers ground truth and marks them with hats, as in `ŝ`, `t̂`, and `ŷ`. Training uses a max-margin objective. In this setting, the weights should give a sufficiently strong score to the reference analysis relative to competing analyses, especially those that make more errors. The update therefore needs a competitor that the current weights score too favorably given how far it departs from the annotations.

```
(s̃, t̃, ỹ) = arg max over s ∈ S, t ∈ T, y ∈ Y  {θ · f(x, s, t, y) + Err(s, t, y)}
```

The tuple `(s̃, t̃, ỹ)` denotes the competing segmentation, tags, and tree sought for an update. The equality defines this tuple by `arg max`, the choice that maximizes the objective in braces. The membership expressions restrict `s`, `t`, and `y` to compatible segmentations in `S`, tag assignments in `T`, and valid trees in `Y`. The term `θ · f(x, s, t, y)` is the usual feature score for sentence `x`. The plus sign adds `Err(s, t, y)`, the number of errors in the candidate when compared with the annotated analysis `(ŝ, t̂, ŷ)`. The added error count raises the augmented score of a wrong answer so that a serious error can expose a shortfall in the score assigned to the reference analysis.

The authors use online passive-aggressive updates, which adjust the weights as training examples reveal violations of the desired margin. The search for a competitor is approximate, just as decoding for a new sentence is. During training, if the search finds a violation in the first 50 iterations, the authors stop that search and update from the violation already found. A usable violation is enough to determine a direction for that update. After training, they average the parameter vectors over the learning iterations.

A first-order classifier also prunes the tree search. It uses a probability threshold of 0.05 and limits the candidate list to 20 heads. The paper reports 99.5% pruning recall on both the SPMRL and CTB5 development sets. Pruning recall describes how often the reference attachments survive this screening, which is a different question from how often the final decoder chooses them. The authors release the system’s source code as SegParser.

### Experiments and results

#### The three test settings answer different questions

The first Arabic experiment follows the official training, development, and test split of the SPMRL 2013 shared task. It uses a core inventory of 12 POS categories. The evaluation follows the shared-task practice of limiting test sentences to a length of 70. The reported segmentation, tagging, and dependency results for SPMRL thus refer to this restricted test evaluation. The shared task gives the authors a common joint evaluation measure and a published result against which to compare their system. [SPMRL 2013 shared task](https://md.research.elamur.ai/free/en/papers/seddah-2013-overview-spmrl-2013-shared-task/)

The classical Arabic experiment uses training data derived by converting the Arabic Treebank to dependencies. That training material is primarily in Modern Standard Arabic. The test text comes from the Comprehensive Islamic Library, and a native Arabic speaker with a background in computational linguistics annotated its morphological segmentation and POS tags. The paper describes this as a useful test because the varieties can differ substantially in vocabulary while retaining syntactic similarities. If the sentence structure helps select plausible boundaries and tags in less familiar vocabulary, it should matter in this setting. The authors evaluate all the test sentences and report results for segmentation and tags.

The Chinese experiment uses the Chinese Penn Treebank 5.0, or CTB5, with the split followed by earlier work. The evaluation covers all of its test sentences. Here the system has to decide where words begin and end within the uncertain parts of the character sequence, give those words grammatical categories, and produce their dependency attachments. This is a test of whether the same decoder can work with a lattice built from word segmentation rather than from a morphological analysis of written tokens.

The paper examines lattice quality on the SPMRL and CTB5 development sets and on the classical Arabic test set, because classical Arabic has no development set. For SPMRL the mean numbers of segmentation candidates per token and POS candidates per unit are 1.23 and 1.71. For CTB5 the corresponding means are 1.22 and 2.02. On the classical Arabic test set they are 1.16 and 3.01. These averages describe the choices made available to the decoder, before it combines them into paths and trees. In particular, classical Arabic has the highest mean number of tag candidates of the three settings, while its mean number of candidate splits per token is the lowest. The figures come from different splits for classical Arabic and the other datasets.

#### What counts as a correct prediction

The paper uses F-score to assess each of the component tasks. F-score balances precision, the share of predicted items judged correct, and recall, the share of reference items recovered. A segmentation assessment concerns the units recovered. The POS assessment also needs the corresponding tags to be right, and the dependency assessment considers the links between the units. The scores are at morpheme level for Arabic and word level for Chinese. Dependency performance is reported as unlabeled attachment F-score, which concerns the attachment to the correct head without requiring a dependency relation label.

F-score matters here because a system can predict a different number of units from the reference. If an early boundary decision removes a unit that should exist, the resulting tag and arc predictions cannot recover that reference analysis as it stands. The evaluations described in the paper follow the outputs of the complete systems from predicted segmentation onward. A dependency F-score can therefore reflect differences in segmentation as well as differences in head selection.

For SPMRL, the authors additionally report TedEval using the official evaluation tools. TedEval is the measure the shared task used for its official results on the joint prediction problem. The paper reproduces the best official value for its comparison system in the track using predicted information. It computes the comparison system’s component F-scores separately with its own evaluation procedure. The authors qualify the F-score comparison for Arabic because morphological analyses can involve changes to the stem that complicate matching. The SPMRL comparison system also uses a different POS tagset, which prevents treating the two tagging F-scores as a direct comparison.

#### Compare with published systems and with a pipeline

The matching pipeline takes its segmentations and tags from the same preprocessing systems used to supply candidates for the joint decoder. It passes their predicted analysis to a standard parser. This comparison asks what happens when preprocessing commits early rather than leaving alternatives available for use in the final analysis. The published comparisons have another purpose. They show how the full joint system performs relative to strong systems developed for SPMRL Arabic and CTB5 Chinese.

For SPMRL, the joint system attains a test segmentation F-score of 99.52 and a POS F-score of 97.43. Its unlabeled dependency F-score is 87.23. The corresponding pipeline values are 99.18 for segmentation, 95.76 for tagging, and 84.79 for dependency attachments. The strongest published comparison has a segmentation F-score of 96.42 and an unlabeled dependency F-score of 82.41 under the authors’ evaluation. Its different tag inventory is a reason to focus the published comparison on segmentation, dependencies, and the official TedEval measure.

Joint decoder, pipeline, and published entry on SPMRL test TedEval The joint decoder leads both the matching pipeline and the strongest published entry in the comparison.

**The numbers**

| System or setting | TedEval % |
| --- | --- |
| Best published shared-task entry | 91.74 |
| Matching pipeline | 92.86 |
| Randomized greedy joint decoder (this paper) | 93.87 |

The authors report a 2.1% absolute TedEval gain over the published SPMRL entry. The comparison with the matching pipeline also favors the joint system on TedEval. That comparison is useful because the pipeline itself exceeds the published entry on the official measure. The published result and the pipeline score establish different points of comparison. The published result gives the shared-task context, and the pipeline gives a closer view of the contribution of preserving and jointly selecting alternative analyses.

On classical Arabic, the pipeline obtains 92.37 segmentation F-score and 82.40 POS F-score on the test set. Joint prediction raises these to 94.35 and 84.44, respectively. This is evidence that the joint system can improve the overt preprocessing predictions under the vocabulary shift the authors describe. Its search uses dependency structure when making those predictions. The reported evaluation for this dataset gives the accuracy of the segmentation and tagging outputs. The authors were unaware of a published comparison for this test corpus.

Matching pipeline and joint decoder on classical Arabic test POS F-score Tagging improves when the decoder can reconsider categories alongside segmentation and syntax.

**The numbers**

| System or setting | POS F-score % |
| --- | --- |
| Matching pipeline | 82.40 |
| Randomized greedy joint decoder (this paper) | 84.44 |

On CTB5, the joint system reaches 98.04 segmentation F-score and 94.47 POS F-score on the test set. The pipeline has 97.45 and 93.42 on those measures. The published comparison is the arc-eager system of Zhang and colleagues, with reported values of 97.76 for segmentation and 94.36 for POS tagging. The joint system also improves unlabeled dependency F-score over both baselines in the main comparison. The pipeline comparison shows an improvement at each stage of the Chinese analysis, while the margins over the published system are smaller.

CTB5 test unlabeled dependency F-score across the main systems Joint decoding improves on the matching pipeline and edges ahead of the published arc-eager system.

**The numbers**

| System or setting | Unlabeled dependency F-score % |
| --- | --- |
| Matching pipeline | 79.46 |
| Published arc-eager system | 81.70 |
| Randomized greedy joint decoder (this paper) | 82.01 |

The Chinese results also have an annotation qualification. The authors cite a version of the published system that obtains 82.14 dependency F-score by using manually annotated internal word dependencies. They describe their own result as comparable without that additional word-structure annotation. The main chart compares the configuration used in the paper’s primary table. The higher published result helps clarify what supervision is involved when interpreting the comparison.

The authors report a Chinese processing speed of about 0.5 sentences per second. They describe it as approximately the speed reported for the transition-based system of Hatori and colleagues at beam size 64, the configuration that gave that system its best accuracy. A beam keeps several partial analyses active during search, and its size governs how many survive pruning. The joint decoder spends its search effort on local changes to complete analyses across repeated starts. The reported timing puts the two search styles in a similar range for those settings.

### What the ablations show

#### The pipeline comparison tests the full effect of joint decisions

Across the reported tasks, the joint system improves on its matching pipeline. The comparison is informative because the same preprocessing sources underlie both variants. The pipeline uses their predicted segmentations and tags, while joint decoding has access to the sources’ alternative analyses. In the latter setting, a tag can gain support through a plausible attachment, and a segmentation can win because a run using that segmentation produces a better complete assignment. The results show the effect of giving the decoder access to that broader set of decisions under its full score.

The classical Arabic result is especially relevant to the authors’ motivation. Vocabulary can differ from the variety that supplies most of the training material. The system can use syntactic relationships to help select an available tag or segmentation when the preprocessing evidence is less decisive. The experiment shows improved segmentation and tagging under this combination of training and test data. It measures the combined effect of the search and features used for joint prediction. The paper does not report a separate classical Arabic comparison that removes just the syntax features while keeping the rest of the joint decoder in place.

The comparison also helps explain why dependency F-score can move even when the greatest freedom seems to concern early decisions. A different split changes which reference attachments are even possible to recover. A new tag can change the ranking of competing heads. The pipeline and joint results allow both mechanisms to contribute. They give an aggregate test of the design without assigning a fraction of the dependency improvement to either mechanism.

#### Unseen units show the effect of baseline quality and candidate coverage

The vocabulary analysis distinguishes units the system has seen in training from out-of-vocabulary units, abbreviated OOV. An unseen word or morpheme can be harder for preprocessing to analyze because evidence associated with that unit in training is unavailable. Analyzing the two groups separately helps show where a fixed early prediction is most likely to cost the parser a usable analysis. The paper looks at both absolute F-score improvements and reductions in F-score error, which describe different aspects of the change.

An absolute gain shows how many points the measured output moved. Error reduction describes the improvement in relation to the error the pipeline had in the first place. A group that starts with lower performance has more room to add points. A group that starts with higher performance can remove a substantial share of its remaining errors even if the point gain is smaller. This distinction is important for interpreting the paper’s claim that unseen units often benefit more.

The authors report a tagging gain of 7% for Chinese OOV words alongside standalone tagger accuracy of 61.5% for those words. For SPMRL OOV morphemes, they report a gain of 3% alongside preprocessing accuracy of 82%. The Chinese tagger starts from a more difficult position on that group. On the error reduction measure, the joint system reduces Chinese OOV POS F-score error by 19.9%, compared with 15.0% for SPMRL OOV POS. The figures make it possible to distinguish the observed improvement in scores from the share of initial error removed.

On CTB5, the joint decoder’s segmentation error reduction is 20.3% for seen words and 25.7% for OOV words. The POS error reductions are 14.2% and 19.9% for the same respective groups. In classical Arabic, the segmentation error reductions are 13.8% on seen units and 34.8% on OOV units. The classical Arabic POS error reductions are 4.2% on seen units and 17.2% on OOV units. In these comparisons the OOV group shows the larger reduction relative to its initial error.

SPMRL shows a different pattern for segmentation and tagging. Its segmentation error reduction is 48.4% for seen units and 27.8% for OOV units. Its POS error reduction is 44.7% for seen units and 15.0% for OOV units. Attachment results give another pattern. On SPMRL the dependency error reductions are 15.9% for seen units and 17.5% for OOV units. On CTB5 the corresponding reductions are 13.0% and 15.6%. Thus the association between vocabulary status and improvement depends on the task and on the measure of improvement.

To investigate the SPMRL pattern, the authors examine an oracle, a diagnostic that selects the best available solution with knowledge of the reference answer. The oracle describes what the candidate set makes possible before asking whether the ordinary decoder can identify the useful option. The paper reports OOV oracle error reduction of 44% for SPMRL morphemes and 61% for classical Arabic morphemes. The authors use that difference to explain why the relative improvement for SPMRL OOV units is more limited. The strength of contextual evidence matters only among the choices the lattice preserves. If the useful split or tag is missing, rescoring the other choices cannot recover it.

#### Enlarging the lattice helps while useful alternatives are being added

The SPMRL lattice-size experiment varies how many of MADA’s highest-ranked analyses are used to construct the candidate sets. The rest of the question is held in place. Does giving the search access to a deeper list of preprocessing alternatives improve the output? The paper tracks segmentation, POS, and dependency F-scores as well as TedEval. For low values of the cutoff, increasing the number of analyses helps across the reported measures. The curves level off at around `k = 15`, where `k` is the number of MADA analyses admitted per token.

The result connects candidate coverage to the way joint decoding is supposed to help. When only a small part of the analyzer’s list is available, a plausible alternative can be lost before a tree gives evidence for it. Bringing more analyses into the lattice gives the search more ways to revise the analyzer’s original ranking. The observed plateau identifies the point at which additional MADA alternatives yield little visible benefit in this experiment. The paper does not establish a corresponding cutoff for the Chinese segmenter or classical Arabic analyzer.

This intervention is different from increasing the number of restarts. Adding analyses changes the space of outputs the decoder can reach. Restarting more often gives the decoder more attempts within the space it already has. The first change can supply a missing split or tag. The second can help the decoder find and improve an existing path that previous starts missed. The paper’s experiments probe these sources of improvement separately.

#### Restarts usually recover the score of a much longer search

To examine search quality, the authors need a reference against which to compare the score achieved after a given number of restarts. They use the highest score obtained for each sentence across 3,000 restarts as a proxy for the optimum. The convergence curve normalizes a sentence’s running best score by that reference score. The paper displays the curve through 1,000 restarts and describes it as reaching convergence after 500 restarts. It reports that more than 97% of the sentences in the convergence analysis reach the proxy score within the first 300 restarts.

This comparison uses the decoder’s own score, which is appropriate for asking how much a longer run improves the objective that search was meant to optimize. It separates that question from whether the output is correct under the manual annotations. A short run may recover the highest score found by a longer run even if that score favors an analysis with mistakes. In the other direction, a later start can improve the objective without necessarily improving every component metric for that sentence.

The authors also study the quality of the local optima returned by individual restarts on SPMRL. Their diagnostic uses the gap between a restart’s final score and the highest score found in the larger search.

```
scoreₘₐₓ − scoreₗₒ꜀ₐₗ
```

Here `scoreₘₐₓ` is the largest score for the sentence among 3,000 restarts, and `scoreₗₒ꜀ₐₗ` is the score of the local optimum obtained from a particular start. The minus sign expresses how far the run ended below the best available reference. A gap of 0 means that the scores match. The paper reports that about 30% of the local optima reach that best score, with most of the others close to it. This helps explain why repeated starts can produce a strong assignment without requiring most starting points to end at the very highest observed score.

The convergence and local-optimum analyses describe complementary views of the same search. The convergence curve asks how much longer one has to wait for the best result found so far to approach the reference. The distribution across individual starts asks how difficult it is to draw a start that succeeds. The former concerns the best member of a growing collection. The latter concerns the composition of that collection. The authors also observe slower convergence than in their earlier randomized greedy work on standard dependency parsing, where the search did not have to account for uncertain segmentation and tagging.

### Limitations

#### Limits the authors identify

The first limit concerns the moves available during a run. The authors explicitly leave segmentation out of hill climbing because a boundary change would require a costly simultaneous decision about the resulting tags and tree. Segmentation is joint with the other outputs at the level of the final score and the choice across starts. Within a start, the system can improve the tree and tags only for the segmentation it already sampled. A boundary favored by the full score may therefore require several restarts before the decoder even tries it.

The search is an approximation. The authors use an extended run to obtain a strong reference score because they lack the exact optimal answer for the convergence comparison. The observed convergence applies to the best score found within that extended run. It gives direct evidence about the practical behavior of this search on the sentences examined, under the candidate sets and score used there. A proof that the decoder had found the highest possible score in the full space would require a different kind of result.

The authors also qualify comparisons involving SPMRL. Arabic segmentation can alter stem forms, which makes component F-score comparisons approximate under their evaluation procedure. The POS categories of the strongest published comparison system differ from the authors’ categories. TedEval has particular value in this setting because it supplies the shared task’s official evaluation for predicted information. On Chinese, the authors separately acknowledge the higher attachment result from a published configuration with manually annotated internal dependencies. Those differences in measurement and supervision matter when reading the system rankings.

The classical Arabic evaluation has a narrower outcome. The dataset description and results document reference annotations for segmentation and tags, and the authors report performance on those tasks. They give no published baseline for the classical corpus. The available comparison shows that joint search improves these outputs over the matching pipeline while transferring from data primarily in Modern Standard Arabic. It leaves the accuracy of the classical Arabic dependency trees unresolved.

#### Limits visible in the experimental design

The practical search space is bounded before the decoder gets to rank complete assignments. Morphological analyzers and word segmenters supply candidates, taggers supply category lists, and a classifier prunes candidate heads. Chinese boundaries that all selected segmenter outputs share are fixed when the lattice is built. A correct word analysis that crosses such a boundary cannot be assembled from the resulting lattice. By the same reasoning, high pruning recall indicates that most reference attachments remain available on the measured development sets, while leaving room for losses. These restrictions are relevant to the claim of generality. The decoder accepts a flexible score over the candidates it receives, and the candidates determine where that score can have an effect.

The pipeline comparisons assess the complete system design. They do not isolate how much of the result comes from a particular segmentation, tagging, or dependency feature. The paper reports the effect of opening up the candidate set, the relationship with vocabulary coverage, and the behavior of randomized search. It gives no separate estimate of the contribution of coordination features, valency features, or each order of dependency feature. In particular, gains on unseen units are compatible with syntactic evidence helping, and the comparisons leave open which specific cues were most responsible for those gains.

The transfer experiment on classical Arabic gives the vocabulary question a concrete setting, but the candidate sources also differ from the ones used for SPMRL. Its morphological analyzer and tagging procedure were chosen to suit the corpus. Improvement over the matching pipeline is interpretable within the classical Arabic setup. Differences in gains between the Arabic datasets reflect multiple differences in their data, preprocessors, and candidate coverage. The absence of a classical Arabic development split also means the lattice statistics there come from the test set, while SPMRL and CTB5 lattice statistics come from development.

The speed example describes a particular Chinese configuration and compares it with a reported setting of another parser. It gives a sense of the cost incurred by repeated sampling and rescoring. Evidence about how runtime grows as candidate lists, sentence lengths, or feature costs change would require additional measurements. The SPMRL restriction on sentence length is pertinent here. Its headline evaluation covers sentences within the shared-task practice the authors follow. The Arabic and Chinese experiments establish that the approach can accommodate distinct segmentation tasks when supplied with suitable candidates and features.

### What came after

#### Joint prediction remained a question about representation and search

The citing work on stack-propagation concerns representation learning for syntax. Its stated emphasis is on how representations are learned, which places it alongside a different part of the problem tackled by randomized greedy inference. The 2015 paper uses dependencies among linguistic tasks to score and revise complete analyses. Stack-propagation puts the representation used for syntax in the foreground. The citation establishes a connection between the works, while the named contribution leaves its use of randomized restarts or lattice candidates unspecified. [Stack-propagation](https://md.research.elamur.ai/free/en/papers/zhang-2016-stack-propagation-improved-representation-learning/)

The graph-based lattice dependency parser addresses joint morphological segmentation and syntactic analysis. Its title identifies both the lattice and a graph-based parser, making it the closest of these works in how it frames the morphological problem. In the randomized greedy approach, a path through the lattice chooses the units, and a dependency tree then gives their syntactic relationships. The citing paper brings the same broad issue of morphological alternatives and dependency structure into a graph-based treatment. The shared use of a lattice identifies a common representation of uncertainty. The citation and topic do not establish that this system uses the same path sampling or local search procedure. [Graph-based lattice dependency parsing](https://md.research.elamur.ai/free/en/papers/seeker-2015-graph-based-lattice-dependency-parser/)

A further graph-based study addresses joint Chinese word segmentation and dependency parsing. It returns to the Chinese question the authors illustrate with `新华社`. A structural analyzer needs to choose what counts as a word while determining how the words depend on one another. The stated task pairs word segmentation with dependency parsing. In the 2015 system, tags are also explicit variables that the search repeatedly updates. The description of the citing work establishes its graph-based framing and named prediction tasks, while leaving its treatment of POS and its particular inference procedure unspecified. [Joint Chinese word segmentation and dependency parsing](https://md.research.elamur.ai/free/en/papers/yan-2020-graph-based-model-joint-chinese/)

#### The citation also reached other Arabic language tasks

The SAFAR paper describes and demonstrates a framework. Its citation places the earlier work in a project with a broader stated purpose than the design of a joint parser. A framework description is a different kind of contribution from an experiment comparing a joint decoder with a pipeline, and the record of the citation does not identify a particular parser integration or reuse of the search algorithm. [SAFAR framework](https://md.research.elamur.ai/free/en/papers/bouzoubaa-2021-description-demonstration-safar-framework/)

LAMAD addresses Arabic text diacritization with linguistic attention. Diacritization supplies marks for Arabic text, giving it a different target from the morpheme boundaries, categories, and attachments selected by randomized greedy inference. The named contribution connects linguistic information to that output task. The citation shows that the earlier work also reached research outside joint segmentation and dependency parsing. The precise place of the earlier algorithm in LAMAD’s design is unspecified. [LAMAD](https://md.research.elamur.ai/free/en/papers/sabri-2021-lamad-linguistic-attentional-model-arabic/)

## Cite

Cite as Yuan Zhang, Chengtao Li, Regina Barzilay and Kareem Darwish. 2015. Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing. Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.3115/v1/n15-1005](https://doi.org/10.3115/v1/n15-1005)

```bibtex
@inproceedings{zhang2015randomized,
  title = {{Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing}},
  author = {Yuan Zhang, Chengtao Li, Regina Barzilay and Kareem Darwish},
  booktitle = {Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
  year = {2015},
  doi = {10.3115/v1/n15-1005},
  url = {https://doi.org/10.3115/v1/n15-1005}
}
```

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