---
title: "Joshua 3.0 — paper by Weese et al. (2011) — summary and ideas"
description: "Joshua 3.0 uses Thrax to extract translation grammars at scale and compares hierarchical and syntax-augmented rules on WMT 2011 news."
canonical: "https://research.elamur.ai/free/en/papers/weese-2011-joshua-3-0-syntax-based/"
---
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/weese-2011-joshua-3-0-syntax-based/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2011](https://md.research.elamur.ai/free/en/papers/2011/) / Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor

# Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor

Paper · 2011 · Jonathan Weese, Juri Ganitkevitch, Chris Callison-Burch et al.

**Authors:** [Jonathan Weese](https://md.research.elamur.ai/free/en/authors/jonathan-weese/), [Juri Ganitkevitch](https://md.research.elamur.ai/free/en/authors/juri-ganitkevitch/), [Chris Callison-Burch](https://md.research.elamur.ai/free/en/authors/chris-callison-burch/), [Matt Post](https://md.research.elamur.ai/free/en/authors/matt-post/) and [Adam Lopez](https://md.research.elamur.ai/free/en/authors/adam-lopez/) · **Year:** 2011 · **Venue:** Proceedings of the Sixth Workshop on Statistical Machine Translation · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**26** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W93515796) · [Proceedings of the Sixth Workshop on Statistical Machine Translation](https://aclanthology.org/volumes/W11-21/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/W11-2160/)
- [PDF](https://aclanthology.org/W11-2160.pdf)
- [OpenAlex](https://openalex.org/W93515796)

Citations: OpenAlex, 2026-10-14.

## Summary

A translation system can learn that a stretch of words in one language often corresponds to a particular stretch in another. It also needs to know how to put those stretches together when it meets a sentence it has never seen. Joshua 3.0 studies a way to learn both kinds of information from paired sentences. Its rules can translate fixed words, leave slots for material to be translated separately, and move that material into a different order. The paper asks what happens when those slots carry grammatical labels, and how to make the comparison fair in a field where different extraction programs use different settings. The broader task is [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/).

The paper introduces Thrax, an open-source extractor that builds two kinds of translation grammar. Hiero uses a general-purpose label for its slots. Syntax-Augmented Machine Translation, or SAMT, draws labels from sentence parse trees, giving a rule more information about the kind of material that can fill a slot. Thrax gives both grammars the same configurable extraction and scoring machinery. It uses Hadoop to gather rule counts across the training corpus and to calculate features that depend on those counts. Feature calculations can run in parallel once the counts are ready. The paper also introduces CachePipe, which lets Joshua reuse work from previous pipeline runs by checking whether the command or its declared file dependencies have changed.

The authors compared Hiero and SAMT with the same set of scoring features on the WMT 2011 news test set. SAMT scored higher in every direction for which the paper reports both systems. On single-reference [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/), Czech to English went from 21.1 with Hiero to 21.7 with SAMT, and English to Czech went from 16.8 to 16.9. German to English went from 18.9 to 19.5, and English to German went from 14.3 to 14.9. The French directions have Hiero scores only. The authors report that the size of those SAMT grammars prevented them from decoding in the runs behind the table.

These experiments establish that the full syntax-augmented configuration can improve the reported scores under a common scoring setup. They leave open which labels or extraction choices account for the gains. The paper's engineering contribution is to make that distinction easier to investigate. A common extractor reduces the number of incidental differences between grammars, while a reusable pipeline makes it practical to rerun the stages affected by a change.

## Deep dive: Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor

Joshua 3.0 uses Thrax to extract translation grammars at scale and compares hierarchical and syntax-augmented rules on WMT 2011 news. · about 35 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

#### Learning rules that can translate new combinations

A parallel corpus pairs sentences with their translations. Word alignment adds links between words judged to correspond across each pair. Those links let an extractor find recurring translations of words and phrases. But a new sentence can use familiar expressions in a combination absent from the training corpus. A rule that memorizes a complete string is useful only where that string fits. A rule that leaves part of the string open can still be useful when the material inside the opening changes. The extractor must decide which portions to preserve as words, which to turn into openings, and how an opening on one side corresponds to an opening on the other.

The use of openings also changes how a translation can handle word order. Suppose aligned sentences show a recognisable expression surrounding some other material, and that material appears in a different position in the translation. A rule can preserve the recognisable words and record the change in position, while leaving the translation of the intervening material to another rule. The same pattern can then accommodate a different filler. A collection of such rules supplies the decoder with ways to assemble a much longer result from smaller pieces of bilingual evidence.

The paper places this approach in the tradition of hierarchical phrase-based translation. Hiero represents the openings with a common symbol. A rule can ask for a fragment in a certain position without distinguishing, by that symbol, whether the fragment is a verb phrase or some other grammatical unit. A general category gives rules broad opportunities to combine. It also gives the grammar little leverage to prefer combinations on the basis of grammatical category. Joshua began as a reimplementation of the Hiero system and later added support for richer grammar formalisms. The earlier work describes the underlying approach in [Hierarchical Phrase-Based Translation](https://md.research.elamur.ai/free/en/papers/chiang-2007-hierarchical-phrase-based-translation/).

SAMT puts distinctions in the places where Hiero uses its common symbol. A sentence parse groups words and gives the groups labels. Some boundaries supported by the bilingual alignment coincide with a group in the parse, and some cut across groups. SAMT accommodates both cases. It can take a label directly from a constituent, or construct a category for a span that combines adjacent constituents or corresponds to a constituent with material missing at an edge. This permits rules to retain the parts of useful bilingual phrases that a stricter requirement for constituent boundaries could exclude. The earlier formulation is described in [Syntax Augmented Machine Translation via Chart Parsing](https://md.research.elamur.ai/free/en/papers/zollmann-2006-syntax-augmented-machine-translation-chart/).

This choice is consequential at extraction time and at translation time. An extractor that distinguishes categories can produce several labeled versions of patterns that a more general grammar would put together. When the decoder fills a slot, the category restricts which fragments can enter it. That restriction can help steer the decoder toward compatible pieces, but its usefulness depends on the distinctions the parser supplies and on the evidence available for each kind of rule. The question in Joshua 3.0 is how best to compare a grammar with those distinctions to a grammar that shares a label widely. In the paper, the two are cases of a synchronous [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/).

#### Why extraction made comparisons difficult

The relevant comparison begins before the decoder translates any sentences. A grammar extractor decides how far a phrase can extend, how many gaps a rule may contain and whether words with no alignment links can appear at the edge of a phrase. Even when two programs purport to extract the same kind of grammar, their settings can produce different rule inventories. A score difference between complete systems can consequently reflect choices that have little to do with whether the grammar uses syntax.

The extraction programs that the authors describe also differed in which features they could calculate. Joshua's earlier built-in Hiero extractor supplied lexical weights in both directions and a phrasal probability in one direction. The paper gives a concrete reason the converse phrasal probability was omitted. Calculating it would require another sort. The available set of features therefore reflected the cost of implementing and running the extractor as well as the intended definition of the grammar. The original toolkit is described in [Joshua: An Open Source Toolkit for Parsing-Based Machine Translation](https://md.research.elamur.ai/free/en/papers/li-2009-joshua-open-source-toolkit-parsing/).

Different sorts are needed because different features group rules in different ways. To ask which target expressions compete for a particular source expression, the scoring code needs the rules that share that source side together. To ask which source expressions compete for a target expression, it needs a different grouping. A grammar small enough to hold in memory can be organised directly for these lookups. For a large grammar, the paper describes the usual alternative of sorting the rules on disk and reading through the sorted output. A workflow that sorts, calculates a feature and then sorts again puts each added feature on the critical path of the process.

Memory presented a related difficulty. The paper describes the older Joshua extractor as a single Java process whose host needed enough space to retain its rules. It describes a similar practical constraint for the extractor supplied with cdec. The SAMT implementation already had a Hadoop option for handling large data, so distributed extraction itself was an established approach. The difference the authors sought was to make grammar choice and feature choice configurable within the same distributed framework. Their comparison of existing tools includes the extractor in [cdec](https://md.research.elamur.ai/free/en/papers/dyer-2010-cdec-decoder-alignment-learning-framework/).

There was also a problem of repeatability across the full translation workflow. Data preparation, grammar extraction, weight tuning, decoding and output processing all depend on earlier choices and intermediate files. The authors cite Experiment.perl, the Makefile workflow from Joshua 2.0, and LoonyBin as systems that already helped organise such work and reuse its products. They question the reliability of treating an existing file or a timestamp as sufficient evidence that an old result is current. Their proposed distinction is between the fact that a step ran sometime in the past and the evidence that it ran with the command and file contents relevant to the current experiment.

Thrax and CachePipe address different parts of that problem. Thrax supplies a common path from aligned sentences to scored rules. CachePipe supplies a way to decide which commands in the wider experiment need to run again. The grammatical comparison depends most directly on the first contribution. The second helps preserve the conditions of an experiment when an investigator changes a configuration, prepares different data or revisits the same run.

### The method, step by step

#### From aligned sentences to rules

Thrax starts with a sentence and its translation, together with links between corresponding words. It examines spans on the two sides and asks whether each candidate phrase pair respects those links. A pair is consistent when no word in either chosen span is linked to a word beyond the chosen span on the other side. Imagine picking out a target phrase and finding that it includes the translation of a source word immediately outside the proposed source phrase. The links in that example cross the proposed boundary. Extending or moving the boundary can change whether the pair qualifies.

The consistency test concerns correspondences between spans, including correspondences in which the words have different positions. Choices about words without links require an additional rule. A word with no link cannot by itself create a crossing link, so the alignment criterion leaves room for more than one boundary in such cases. Thrax lets the user choose whether an unaligned word is allowed at the edge of an extracted phrase pair. Changing that choice changes how many possible phrases the extractor accepts from the same aligned sentences.

A consistent phrase pair can itself become a translation rule, with words explicitly present on both sides. To obtain a hierarchical rule, the extractor looks for a smaller consistent phrase pair inside a larger one. It removes the smaller pair's words from the larger pattern and puts a matched slot in their place. The slots correspond across languages even if the words they replace occupy different positions. During decoding, a separate rule can contribute material at those slots. In this way, one training example can offer both evidence for a particular expression and evidence for a reusable arrangement around that expression.

The worked training example pairs German `sehr` with English `very much`. Thrax can retain that translation as a lexical rule. With a larger span that contains other material alongside the expression, it can also produce a rule whose fixed part includes `sehr` and `very much` while a slot accounts for the rest. The relation between the rules matters more than the individual translation. The bare phrase contributes a translation for certain words, and the larger one captures an arrangement of words and an independently translatable fragment. The paper's example also includes `begrüße` paired with `welcome`.

Hiero labels the reusable parts of these rules with `X`. SAMT obtains categories by examining parse trees. A parse represents groupings within a sentence and names their grammatical roles or types. The experiment supplied parses on the English side. In its description of the labeling rule, the paper considers a phrase on the target side and asks how its extent relates to the parsed constituents. The operation being used is [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/).

From aligned training sentences to a scored translation grammar The steps in order.

#### Giving slots grammatical categories

For a phrase whose boundaries match those of a single constituent, SAMT uses that constituent's label. The example gives the `sehr` and `very much` rule an `ADVP` label. Thus, the same observed alignment can yield a rule that translates the same words in both grammars while assigning a different category to the result. The category matters later, when the decoder tries to use that result as the filler of another rule's slot.

A phrase can be consistent in the bilingual alignment without being a single constituent. SAMT has extended categories for several such relationships to a parse. The paper writes the alternatives with combinations of constituent labels and signs showing the relation between them.

```
C₁ + C₂
```

`C₁` and `C₂` are constituent categories. The subscripts distinguish the labels of the constituents, and `+` denotes a span covering the adjacent constituents in that order. In the worked example, the pattern containing a slot for a pronoun alongside the fixed expression receives a combined `PRP + ADVP` label. The category says something about the parts whose spans the rule covers.

```
C₁ / C₂
```

`C₁` denotes the encompassing constituent category and `C₂` the category of material absent from the span. The slash `/` places that missing material to the right. The label can therefore describe a span in terms of the larger constituent it would complete given material of the specified kind on that edge.

```
C₂ \ C₁
```

`C₂` denotes the category of the missing material and `C₁` the encompassing constituent category. The backslash `\` places the missing material to the left. The order of the labels follows the paper's convention. Together, the extended categories let alignment-supported rules carry structural information even when the spans reach beyond, or fall short of, a constituent boundary.

The example of a rule with `ich sehr .` on the German side shows how labeling interacts with reordering. A variable occurs before those fixed words in the source pattern and between `very much` and the final punctuation on the English side. The Hiero rule makes that variable general. The SAMT rule labels it `VP` and assigns the enclosing pattern the category `S`. In both rules the slot's change in position is recorded explicitly. SAMT adds a specification of what category the slot accepts. This is a restriction the decoder can use even for a filling phrase different from the one seen in the example.

The paper's derivation figure illustrates how rules with words and slots can participate in a larger translation. It distinguishes words supplied directly by a rule that also contains variables from words appearing immediately under a nonterminal. A lexicalised portion can contribute an expression at a particular place within a broader pattern. Other words can arrive when a lower rule fills one of the slots. Reading the derivation this way helps separate a property of a rule, such as its fixed words and the order of its slots, from a property of the full translation assembled from many rules.

#### The formal grammar and the decoder's choices

A synchronous grammar specifies pairs of strings. Its productions describe how to expand corresponding source and target fragments together. The source string is fixed during translation. The decoder seeks rule applications whose source expansion accounts for that input and whose target expansion supplies a candidate translation. Different choices of productions can offer different expressions, different structural analyses and different orderings.

```
(N, S, Tσ, Tτ, G)
```

`N` is the set of nonterminal symbols, the categories that stand for fragments subject to further expansion. `S` is a member of `N` and is the goal symbol, the category the complete derivation must reach. `Tσ` is the vocabulary of source terminals and `Tτ` the vocabulary of target terminals. The markers `σ` and `τ` distinguish the source side from the target side. A terminal is a symbol that appears in a yielded string, such as a word or punctuation mark, and does not need further expansion. `G` is the set of productions. The parentheses and commas group these components in the specified order.

```
X → ⟨α, γ, ∼⟩
```

`X` is the left-hand nonterminal, drawn from `N`. The arrow `→` introduces the pair of patterns for its expansion. `α` is the source pattern, a sequence drawn from the nonterminals and source terminals. `γ` is the target pattern, drawn from the nonterminals and target terminals. The correspondence `∼` links nonterminal occurrences in `α` to those in `γ` one to one. The angle brackets enclose the source pattern, target pattern and correspondence. Here `X` stands for a general left-hand category in the definition. In the Hiero examples it also serves as the actual name of the common category.

The correspondence is important if multiple slots have the same category. The categories alone tell the decoder what kind of fragment each slot accepts. The correspondence tells it where the particular material chosen for a source slot belongs on the target side. Even rules that share their terminal words and nonterminal labels can express different reorderings if their slot correspondences differ.

For an input denoted by `f`, the paper considers a target string `e` a candidate when the grammar licenses the ordered pair `(f, e)`. A sequence of applied productions supplies a derivation. A lexical rule can give that derivation a content word or an entire local expression. A hierarchical rule can combine such material with other fragments and determine their relative order. The grammar defines what the system can construct. Scores help the decoder choose among constructions that meet those requirements.

```
w(X → ⟨α, γ⟩) = ∏ᵢ φᵢ(X → ⟨α, γ⟩)^λᵢ
```

`w` is the score the paper associates with applying a rule. `X`, `→`, `α` and `γ` retain their roles from the production definition. The shorter pair in angle brackets leaves the correspondence implicit. `i` indexes the feature functions used for scoring, and `φᵢ` is the value of feature `i` on that production. `λᵢ` is the weight given to that feature. The caret `^` raises the feature value to the associated weight, and `∏ᵢ` multiplies the resulting terms across the features. The equality sign assigns that product as the rule's score.

The contribution of the grammar to a candidate's score is the product over the productions used in its derivation. This is the step at which the scores attached to individual rules influence an entire sentence. Joshua also uses other information to score a candidate, including a score based on sequences of words in the output language. A rule with strong evidence from the alignments can thus support a derivation whose eventual rank also depends on the target string it yields.

#### Choosing the rules the extractor will admit

Thrax exposes several constraints in a configuration file. Some concern the size of the underlying phrases. A limit on the span of consistent phrase pairs controls which regions of the aligned sentence the extractor considers, and a limit on rule span constrains the rules derived from those regions. Others concern what remains once parts of a phrase are replaced by slots. The extractor can restrict the number of nonterminals, require a minimum number of aligned terminals, and decide whether the source pattern may have adjacent nonterminals. It can also permit or forbid unaligned words at the edges of a consistent phrase pair.

These choices affect what evidence survives. A span constraint can exclude a long expression even when its links satisfy the bilingual consistency check. A requirement for aligned terminals keeps a rule tied to some fixed paired material. An adjacency setting determines whether a source pattern can admit consecutive slots without a terminal between them. Each constraint applies before the rule is scored in the final grammar. This distinction becomes important because Thrax can also attach a feature that marks a property such as adjacency. An extraction restriction can remove rules with that property, while a feature gives retained rules a score component associated with it.

The authors give examples of earlier heuristic choices for Hiero. The prior work discussed in the paper supports a maximum rule span of 10, a maximum of 5 source-side symbols, and at most 2 nonterminals per rule. These three quantities govern different aspects of a rule. The covered span can be larger than the number of symbols left after a phrase becomes a variable, and the count of variables can be smaller than the count of all source-side symbols. The paper presents these values as examples from earlier work. It does not identify every setting in the reported WMT runs with those examples.

The workflow also separates the extractor's interface from the details of these particular grammars. In the Hiero and SAMT implementations, the input describes an aligned pair and any necessary parsing information. More generally, Thrax expects a function that takes a string and returns rules. A developer can supply an extraction function with different logic and reuse the stages for gathering counts and scoring the output, within the supported grammar formalism. This is how the paper connects a specific pair of built-in extractors to its claim of extensibility.

#### Counting once and scoring in parallel

Thrax runs extraction and scoring as dependent jobs in Hadoop. A MapReduce job begins by transforming input items into intermediate pairs of keys and values. The framework brings together values with the same key, and the reduce stage does the aggregation. For grammar extraction the key is a rule, so occurrences of the same rule from different inputs can be combined without requiring a single extraction process to accumulate the entire grammar in memory.

The map step processes word-aligned sentences and emits rules with occurrence counts. A reducer adds the counts for matching rules. At that point Thrax has a corpus-wide count for each distinct extracted rule. The count measures how often the extraction procedure produced the rule. It inherits the choices made by the alignment and by the configured constraints. A rule's count therefore concerns evidence available to the extractor under those conditions.

The resulting counted grammar is the common input to the feature jobs that need information across rules. Their dependencies run back to the extraction job. Once its output is ready, the separate feature jobs can be submitted together. A job can group and order the rules according to its own needs, then return the grammar annotated with that feature. A final job brings the separate feature outputs together. This rearranges the work compared with a workflow in which the calculation of one feature must finish before sorting for the next one can begin. It still entails work for every feature that requires a separate grouping.

Features that can be evaluated locally take a simpler path. Thrax computes those as it is about to write the final grammar. An indicator can mark a rule as entirely abstract when it contains no terminals, or entirely lexical when it contains no slots. Other indicators record whether the rule preserves order or reorders material and whether it has adjacent nonterminals on its source side. Thrax can also count unaligned words or target terminals, and supply a constant phrase penalty. These values can be determined from an individual rule, so their calculation does not require consulting competing rules.

The authors describe separate extension points for the two kinds of feature. To add a local feature, a developer defines a calculation from a rule to its score. For a feature that needs other rules, the implementation specifies the map and reduce operations as well as the ordering used for comparison. That extra obligation reflects what the scoring calculation actually needs. A count grouped by identical rules suffices for some functions. A conditional probability needs particular groups of related rules to recover its denominator.

The distributed layout is available even to someone preparing an experiment without a cluster. The paper describes standalone and pseudo-distributed modes on a single machine, as well as operation through Amazon Elastic MapReduce. These are ways of executing the extraction and scoring design. The paper's translation comparison does not measure their relative performance.

#### The features that depend on the training corpus

The two phrasal probabilities ask complementary questions about the extracted patterns. In one direction, the feature asks how much of the evidence for a target pattern comes from its pairing with a specific source pattern. In the other direction, it asks how much of the evidence for a source pattern supports a specific target pattern. Both use observed extraction counts. The scoring job needs to collect the appropriate comparison set, because the joint count alone says little about how frequently competing partners occurred.

```
p(α | γ) = C(α, γ) / C(γ)
```

`p` denotes a relative-frequency estimate. `α` is the source pattern and `γ` is the target pattern. The vertical bar `|` means that the probability is conditioned on the pattern to its right. `C(α, γ)` counts extractions of the paired patterns. `C(γ)` counts extractions of the target pattern across its source partners. The slash `/` divides the joint count by the target-side count. The equality defines the reported feature.

```
p(γ | α) = C(α, γ) / C(α)
```

Here `p` is the estimate for the reverse direction and `|` conditions on the source pattern `α`. The possible output pattern is `γ`. `C(α, γ)` is again the pair's extraction count, while `C(α)` counts the source pattern across its target partners. The slash divides these counts, and the equality defines the reverse feature. The numerator agrees across directions, but the denominator depends on which side is fixed. That is why the two calculations call for different groupings.

Lexical weighting gives a separate view of the evidence. An extracted phrase pair can be supported by counts of the full pairing while also containing individual word correspondences of varying plausibility. The lexical feature uses alignment links within the rule to consult word-level relative frequencies. If a given source word has several linked target words, the displayed calculation averages their relative frequencies before combining that position with other source positions. The paper credits the lexical weighting procedure to [Statistical Phrase-Based Translation](https://md.research.elamur.ai/free/en/papers/koehn-2003-statistical-phrase-based-translation/).

```
pₗₑₓ(γ | α, A) = ∏ᵢ₌₁ⁿ (Σⱼ: (i,j) ∈ A w(γⱼ | αᵢ)) /? 
```

In the expression as written in the paper, the normalisation belongs inside the product. In full, the feature is

```
pₗₑₓ(γ | α, A) = ∏ᵢ₌₁ⁿ [ (Σⱼ: (i,j) ∈ A w(γⱼ | αᵢ)) / |{j : (i,j) ∈ A}| ]
```

`pₗₑₓ` denotes a lexical weight for the target pattern `γ` given the source pattern `α` and their alignment `A`. The vertical bar in the arguments marks the conditioning information. `A` contains pairs `(i,j)` linking a source word position `i` to a target word position `j`. The membership sign `∈` indicates that the link is present. `αᵢ` and `γⱼ` are the words at those positions. The product sign `∏` ranges over source positions from `1` to `n`, where `n` is the number of source word positions in the expression. The sum `Σ` ranges over the target positions `j` linked to the current `i`. The colon in the index and in the set description means “such that.” `w(γⱼ | αᵢ)` is the relative frequency of the target word given the source word. This `w` is a word-level frequency, distinct from the earlier rule score. The braces enclose the set of linked target positions, and the bars around that set give its size. The slash divides the sum by that size. The brackets keep this average inside the product, and the equality defines the lexical weight. The paper names a lexical score in the converse direction as well. Its displayed expression leaves the handling of an empty set of links implicit.

The rarity feature depends on how often the entire rule was extracted. It decreases as extraction evidence accumulates. The size of that feature is distinct from the influence it finally has on competing translations, which depends on its weight and the other scores used in decoding.

```
exp(1 − C(X → ⟨α, γ⟩))
```

`exp` is the exponential function. The constant `1` is the starting value from which the rule count is subtracted using `−`. `C` is the extraction count of the rule whose left-hand category is `X`, with `→` introducing the source pattern `α` and target pattern `γ` in angle brackets. The alignment of nonterminal slots remains implicit in this notation. The parentheses indicate the argument of the function or count. The formula returns a larger value for a less often extracted rule.

The framework lets the user enable features through the configuration. This matters for the experiment because the authors can specify the same kinds of evidence for both grammar families. The resulting feature values can still differ. Counts are drawn from the rules each grammar admits, and distinctions that keep occurrences separate in one grammar can pool them in the other. Holding the feature definitions fixed gives the comparison a common scoring procedure while preserving these consequences of the grammar choice.

#### Preparing runs and reusing their stages

The released Joshua toolkit includes Thrax and a parameterized script that takes an experiment from data preparation through evaluation. The authors used word-aligned parallel training sentences for grammar extraction and English parse trees for the syntax-augmented setup. They also needed training for the target-word sequence scores, weight tuning on translated news sentences, and a procedure for selecting and recasing the final output. These tasks produce intermediate results that can be reused across runs when their dependencies remain stable.

CachePipe wraps a command and receives a name for its pipeline step, the command invocation, and a list of files on which the step depends. It computes SHA-1 hashes of the command invocation and dependency contents and records them for comparison with earlier runs. A hash acts as a compact fingerprint of its input for this comparison. If the command or a declared file dependency changes, the changed fingerprint provides a reason to run the step again. If the recorded fingerprints agree, the wrapper can skip the command.

The command itself is part of the check because the same files can be processed in different ways. An investigator might change a parameter while leaving the training corpus untouched. Conversely, a command can stay the same while its input data change. Looking at command and file contents addresses both cases. The paper describes a shell interface and a Perl application interface for CachePipe, and makes it available with Joshua or separately. Its role is to decide when to reuse a pipeline result. The scoring rules and the search for translations remain the work of the translation pipeline.

### Experiments and results

#### Training data and evaluation conditions

The authors built systems for Czech, German and French paired with English, with translation in both directions. They used the Europarl and news commentary parallel data provided for the WMT 2011 shared task. For the Czech directions, they also drew on sections of CzEng. The experiments evaluate translations on the complete WMT 2011 test set. The weight tuning set was the news test set identified as `news-test2008`, so the paper distinguishes the material used to choose weights from the material used to report the final scores.

The authors used Joshua's subsampler to keep parallel sentences with word sequences relevant to the tuning and test sets. A contiguous sequence of words of a specified length is an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/).

The training sizes refer to the parallel data after sub-sampling. A direction identifies the source language first and the output language second. The paper's notation `K` expresses counts in thousands of sentences, and `M` expresses counts in millions of words. The table describes the data volumes for grammar training. It does not count grammar rules or entries in the additional English text used for target-side scoring.

| Translation direction | Subsampled training sentences (K) | Subsampled training words (M) |
| --- | --- | --- |
| Czech to English | 332 | 4.7 |
| English to Czech | 487 | 6.9 |
| German to English | 279 | 5.5 |
| English to German | 359 | 7.2 |
| French to English | 792 | 14.4 |
| English to French | 682 | 12.5 |

The figures are directional, so reversing a language pair does not mean that the table describes the same amount of selected training material. French to English has the largest sub-sampled training volume in both columns. English to French also uses more sentences and words than the reported Czech or German directions. These volumes give context for the difficulty the authors encountered with the French syntax-augmented runs, though the table gives no direct measure of the resulting grammar sizes.

Before extraction, the authors used the supplied Perl scripts to normalize the parallel text and tokenize it, dividing it into the units the system treats as words or other symbols. They filtered out sentences longer than 50 tokens after that operation. For SAMT they parsed the English training material, using the Berkeley Parser with its supplied Treebank-trained grammar. The parser supplied constituent boundaries and labels used in the extraction process. The paper identifies the underlying parser work as [Learning Accurate, Compact, and Interpretable Tree Annotation](https://md.research.elamur.ai/free/en/papers/petrov-2006-learning-accurate-compact-interpretable-tree/).

Using SRILM, the authors trained a 5-gram predictor with Kneser-Ney smoothing for target-language scoring. In the WMT systems this training used the appropriate side of the parallel data. English scoring also drew on English Gigaword Fourth Edition. The predictor supplies evidence about word sequences on the output side, giving the decoder a way to weigh strings in addition to the evidence attached to extracted translation rules. Smoothing affects its estimates where a sequence has limited direct evidence.

The authors tuned the feature weights with Z-MERT on `news-test2008`. Z-MERT implements minimum error-rate training. In this setup the weights govern the influence of the features available to the decoder, and the tuning translations serve to fit those weights before the final evaluation. A common feature inventory therefore does not imply that the different grammar configurations must attach the same fitted importance to every feature.

#### From decoding to a scored test translation

Joshua decoded the test sentences to obtain a 300-best list of unique translations for each input. This gives the selection stage a collection of complete target strings assembled by the grammar and scored by the decoder. The candidate list is also a boundary on that stage. A string outside the list cannot be picked by the following procedure.

The authors then used Minimum Bayes Risk reranking to choose one candidate per sentence. A decision of this kind uses the candidate set to assess the expected loss of selecting a translation. It can therefore choose a final output using evidence from alternatives in the list, after the initial decoder has generated them. The paper attributes the selection method to [Minimum Bayes-Risk Decoding for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/kumar-2004-minimum-bayes-risk-decoding-statistical/).

The final processing step restored letter case. The authors trained a true-case 5-gram predictor using the same language data as before and used a separate synchronous grammar to convert lower-cased output into true-case output. These rules were limited to five tokens in length, with no hierarchical rules. The grammar served a narrower purpose than the bilingual rules. It chose between forms with different casing after the translation had been selected.

The reported metric is single-reference BLEU-4 on the complete WMT 2011 test set. BLEU measures agreement between the system output and a reference translation using word sequences. Single-reference evaluation means that one reference supplies the comparison for each sentence. This is a metric for the completed output after the translation pipeline, so a reported score reflects the consequences of the grammar together with tuning, candidate selection and output processing.

#### The grammar comparison

Hiero is the baseline. Its scores are present for every direction the authors entered. The comparison with SAMT uses the same feature inventory, so the two systems have access to the same kinds of scoring evidence even as their extracted rules change. The plots put the reported systems side by side within the directions where both were scored.

Hiero and SAMT on WMT 2011 Czech–English test translations SAMT scores higher in both directions, with the larger gain toward English.

**The numbers**

| System or setting | Single-reference BLEU-4 |
| --- | --- |
| Czech to English — Hiero | 21.1 |
| Czech to English — SAMT (this paper) | 21.7 |
| English to Czech — Hiero | 16.8 |
| English to Czech — SAMT | 16.9 |

For Czech to English, Hiero scored 21.1 and SAMT scored 21.7. The paper reports an improvement of +0.6 single-reference BLEU-4 on the test set. English to Czech had a smaller reported change, from 16.8 with Hiero to 16.9 with SAMT, with an improvement of +0.1 on the same metric. The grammar family yields the same ordering in these directions, while the size of the change differs.

Hiero and SAMT on WMT 2011 German–English test translations SAMT scores higher than Hiero by the same reported margin in both directions.

**The numbers**

| System or setting | Single-reference BLEU-4 |
| --- | --- |
| German to English — Hiero | 18.9 |
| German to English — SAMT (this paper) | 19.5 |
| English to German — Hiero | 14.3 |
| English to German — SAMT | 14.9 |

For German to English, the scores were 18.9 for Hiero and 19.5 for SAMT. For English to German, they were 14.3 for Hiero and 14.9 for SAMT. The reported improvement is +0.6 single-reference BLEU-4 in each direction. Taken with the Czech results, these scores show a consistent direction of change for the observed matchups. They leave the stability of each margin under a repeat run unresolved.

The French to English Hiero score is 28.0 and the English to French Hiero score is 30.4, both on single-reference BLEU-4 for the complete WMT 2011 test set. The authors attribute the missing SAMT scores in those directions to difficulty decoding with the large grammars. They say they subsequently resolved the difficulty. The scores in the paper's results table establish the performance of Hiero in those directions, while the French comparison remains without a reported outcome.

### What the ablations show

The paper reports no component-by-component ablation. Its controlled comparison changes the grammar family while using the same inventory of features, and its rule examples and example derivation show what that change means inside the system.

Using Thrax for both grammar families reduces the risk that a result reflects incidental differences between independent extractors. Giving both systems the same phrasal, lexical or structural kinds of features also makes it harder to explain the outcome by saying that one had an extra type of score available. The differences visible in the output are for each full grammar system under the shared procedure. That is a meaningful comparison even though it leaves several mechanisms bundled together.

The worked rules make the package of changes concrete. When Hiero and SAMT translate `sehr` as `very much`, the lexical pair can appear in both grammars. SAMT adds a category to the pairing. In the larger reordering example, it also requires an appropriately labeled filling fragment. A category can change which rules combine. It can also separate counts that would have been pooled under a common label. The comparison does not measure those effects independently. It changes the grammar used to produce the rules, the groupings made available to scoring, and the category constraints encountered during decoding.

The distinction applies to the extended categories too. The paper shows how SAMT can give a structured description to a phrase spanning adjacent constituents or missing material at an edge. That widens the kinds of alignment-supported phrases to which a syntactic label can be assigned. An experiment isolating that design would compare the reported grammar to a version that changed only its treatment of those spans. The reported Hiero baseline changes the entire category scheme. The improvement therefore supports the syntax-augmented configuration as used, without measuring the separate contribution of extended labels.

Direction gives the paper its principal comparison across settings. Both German directions show the same reported improvement, while the Czech directions show different improvements. English output alone cannot account for that pattern, because a positive change also appears from English into Czech and German. The results also leave open why the Czech improvement was smaller when Czech was the output language. The direction changes the selected corpus and the scoring of target strings, among other conditions. The paper gives no comparison that holds those factors fixed while testing an explanation for the asymmetry.

The analysis of earlier extractors explains another advantage of the design without quantifying it. The example of the omitted reverse phrasal probability shows how the cost of another sorting pass can influence the features an extractor supplies. Thrax's independent scoring jobs address that implementation obstacle. The WMT scores are evidence about the grammar comparison, and the description of the jobs is evidence about how the work is organised. The paper gives no timing or feature-removal experiment from which to infer the speed benefit or the BLEU contribution of those jobs.

### Limitations

#### Limits the authors identify

The authors give a direct account of an incomplete part of the evaluation. They could build Hiero systems for the French directions, but the SAMT grammars were too large for the corresponding decoding runs. They report having resolved the problem afterward, without giving French SAMT results in the table. This matters for the scope of the engineering claim. Extracting rules and decoding sentences with those rules are separate operations. Hadoop can distribute extraction and scoring, while the decoder must still search with the grammar that emerges. Success at the former does not on its own establish that the latter will work at the same scale.

The authors describe Thrax as limited to synchronous context-free grammars. They point toward future extensions to GHKM extraction and to tree-to-tree approaches, which would give tree structure a different role in the translation rules. These are proposed directions in the paper. The reported implementation and scores concern Hiero and SAMT extraction. One of the works they name when describing that wider direction is [Learning to Translate with Source and Target Syntax](https://md.research.elamur.ai/free/en/papers/chiang-2010-learning-translate-source-target-syntax/).

The authors also treat the range of available feature functions as something that can grow. They provide ways to add features to the shared extractor, but a feature that compares a rule with other rules still needs a suitable mapping, reduction and comparison order. A common architecture gives those calculations a place to run. It leaves the design of each additional calculation to its implementer.

#### Limits visible in the experiments

The measured quality gains concern the available Czech and German comparisons on the WMT 2011 news test set. French Hiero scores enlarge the set of reported systems without enlarging the set of observed SAMT comparisons. The authors do not report another test domain, so the evidence concerns the supplied corpora, tuning set, news evaluation and associated preprocessing choices. Generalising the performance ordering to another language pair or to a different style of text would require more observations.

There is also no quantified uncertainty for the test scores. The reported precision is particularly important for the +0.1 single-reference BLEU-4 improvement on English to Czech. The table establishes the order of those reported scores. It does not establish how consistently the same order would return under different training samples, tuning runs or sets of test sentences. The larger reported margins are still individual test-set comparisons. The paper supplies no intervals or significance tests to attach a measure of confidence to them.

Single-reference BLEU-4 has a narrower purpose than an error analysis. It lets the authors compare entire systems on a common automatic measure. It gives no direct count of translations improved by more appropriate reordering, better lexical choice or more grammatical slot filling. The derivation shows that a syntax-augmented rule can enforce a category during assembly. It cannot establish how frequently that restriction improves a translation, how often it excludes a good candidate, or whether the reported gains are concentrated in sentences with a particular kind of structure.

The descriptions of parsing and labeling also leave an implementation detail unresolved. The extraction discussion explains SAMT labeling through the relationship between target spans and constituents, while also referring to labels derived from parses on either side. The experimental account names English as the parsed training data. English is the source in some evaluated directions and the target in others. The paper gives no direction-by-direction account resolving all of those statements into a complete description of the extraction configuration. The evidence is enough to identify the parse material used and to explain the intended labeling mechanism, with side-specific details left open.

The tables describe the amount of selected training text and the quality of the final output. They do not report extraction throughput, disk use, memory use or elapsed time as the amount of text grows. Parallel jobs and local execution options establish the design of the system. Measurements of jobs at different scales would be needed to establish how much elapsed time the design saves, how it scales with available processors, and whether a bottleneck moves to merging scores or loading the final grammar. The French decoding failure shows why the practical limits of an end-to-end system cannot be inferred from the extraction design alone.

A similar distinction applies to CachePipe. The paper explains the content-based check and gives an example of a step reused when its dependencies agree. The check is only as complete as the dependency information available to it. If a command's result depends on an unlisted file or an external setting, a change in that input may be invisible to the comparison the paper describes. No timing or troubleshooting study estimates how much of the authors' experimental work the cache saved. Its supported contribution is a more explicit basis for deciding whether to rerun a step.

Finally, the shared feature inventory improves the experimental comparison while leaving room for differences in how the features behave. A count-based score can change when a syntactic label splits what Hiero considered a single rule into several rules. A different grammar can also lead the decoder to supply a different candidate list to reranking. These are potential pathways from grammar choice to test score, and the paper does not distinguish them empirically. That limitation is compatible with the primary result. It fixes the scope of the claim at the level of the complete grammar configurations.

### What came after

The later citations connect Joshua 3.0 to work on the toolkit itself, the granularity of syntactic labels, and language-processing tasks beyond translation between languages. The nature of the connection is clearest when a later title names the toolkit or the grammar formalism. For papers whose titles identify a broader task, the citation establishes a relationship to the work, while leaving the particular software or experimental dependency unspecified.

The next named Joshua release is a continuation of the toolkit line. Its title brings together packing, PRO and paraphrases. Packing is especially relevant to the problem exposed by the large French SAMT grammars. Thrax addresses how rules are collected and scored, while the reported French difficulty occurs when using a resulting grammar to decode. That makes the representation of a large rule collection a distinct concern within the same toolkit. The citation and release title support that connection, while leaving any specific claim about French results or resource savings open. [Joshua 4.0: Packing, PRO, and Paraphrases](https://md.research.elamur.ai/free/en/papers/ganitkevitch-2012-joshua-4-0-packing-pro/).

The work on coarsening the label set follows up most directly on the grammatical choice in Joshua 3.0. The original comparison placed a shared label and a richer set of syntax-derived labels at opposite ends of a design choice. Coarsening asks what happens when a syntax-augmented grammar retains categories but uses fewer distinctions among them. Merging categories can permit rule combinations that finer labels would separate. It can also pool extraction evidence, at the cost of losing some information about the fragment a slot expects. Those consequences explain the question the later title addresses. The citation does not supply a result for any particular coarsening strategy. [Improving Syntax-Augmented Machine Translation by Coarsening the Label Set](https://md.research.elamur.ai/free/en/papers/hanneman-2013-improving-syntax-augmented-machine-translation/).

The multilingual paraphrase database takes up a related problem of finding useful correspondences between linguistic expressions. In bilingual extraction, linked spans provide evidence that pieces of text correspond across languages. Paraphrase resources concern alternative expressions, so the relationship to Joshua 3.0 is at the level of the correspondence information that can be extracted and organised. The two tasks have different outputs. Joshua's decoder assembles a translation of an input sentence, while the later title identifies a database of paraphrases. The citation gives no basis for specifying which extractor settings produced any entries in that database. [The Multilingual Paraphrase Database](https://md.research.elamur.ai/free/en/papers/ganitkevitch-2014-multilingual-paraphrase-database/).

The text simplification paper names a more direct transfer of the translation approach to another goal. A translation system learns correspondences between an input and a desired output. When that formulation is used for simplification, the goal becomes expressing the content in simpler text. This shifts the question of what makes an output good. A procedure for gathering rewrites and a procedure for choosing among them can still be distinguished, much as Thrax's extraction and Joshua's scoring are distinct. The later title establishes that the work optimizes statistical machine translation for simplification. It leaves open which grammar, features or search procedure it inherits from Joshua 3.0. [Optimizing Statistical Machine Translation for Text Simplification](https://md.research.elamur.ai/free/en/papers/xu-2016-optimizing-statistical-machine-translation-text/).

The workshop findings provide the shared-task context for the evaluation. Joshua 3.0 describes how its authors built their systems and compares its own grammar configurations. The findings paper addresses the 2011 Workshop on Statistical Machine Translation, the event for which those systems were built. Its connection is therefore to the common evaluation in which the system paper's test results belong. The citation alone does not give additional standings or comparisons with other participants. [Findings of the 2011 Workshop on Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/burch-2011-findings-2011-workshop-statistical-machine/).

The paper on politically relevant event data carries the citation into an application organised around producing event data. That context is farther from Joshua 3.0's comparison of grammar formalisms. The later title identifies the application, and the citation links it to Joshua 3.0. They leave the role of the decoder, Thrax and the grammar features unresolved. This is a case where the citation can document the reach of the work without showing a direct experimental follow-up to its grammar comparison. [Generating Politically-Relevant Event Data](https://md.research.elamur.ai/free/en/papers/beieler-2016-generating-politically-relevant-event-data/).

## Cite

Cite as Jonathan Weese, Juri Ganitkevitch, Chris Callison-Burch, Matt Post and Adam Lopez. 2011. Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor. Proceedings of the Sixth Workshop on Statistical Machine Translation.

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

```bibtex
@inproceedings{weese2011joshua,
  title = {{Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor}},
  author = {Jonathan Weese, Juri Ganitkevitch, Chris Callison-Burch, Matt Post and Adam Lopez},
  booktitle = {Proceedings of the Sixth Workshop on Statistical Machine Translation},
  year = {2011},
  url = {https://aclanthology.org/W11-2160/}
}
```

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