Elamur Research

Demonstration of Joshua: An Open Source Toolkit for Parsing-based Machine Translation

Paper · 2009 · Zhifei Li, Chris Callison-Burch, Chris Dyer et al.

Summary

A translation system can learn useful patterns from bilingual text and still face a difficult search problem. A sentence may admit several ways of dividing it into parts, translating those parts, and arranging them in the target language. Researchers who wanted to work on this kind of machine translation faced an additional problem. Much of the software behind published parsing-based systems was built for individual projects and unavailable to others. The Joshua demonstration paper presents an open-source Java toolkit that puts the main stages of such a system together so researchers can run the whole process and work on individual stages.

Joshua uses a paired grammar to describe how pieces of a sentence in one language correspond to pieces in another. The rules can contain slots for smaller translations, so the system can reuse a pattern across sentences with different wording inside those slots. Joshua can extract rules from bilingual training text, tune the weights used to score candidate translations on development data, and search for a translation of a new sentence. The decoder keeps a compact record of competing analyses and can use that record to recover high-scoring alternatives. The paper also describes ways to reduce the amount of training text processed, retrieve rules relevant to the input, and distribute decoding work.

In the WMT-09 French–English task, Joshua ranked 4th out of 16 systems in both automatic and human evaluation, according to the authors. The automatic comparison gives Joshua 26.52 on BLEU-4, a score based on overlap with reference translations. The workshop ranking establishes how the submitted system performed against competing entries. A separate report in the paper says that selecting training sentences for a particular test set reduced training corpus size by 90% while preserving what the authors describe as state-of-the-art performance.

The proposed demonstration gives different readers ways to inspect the same system. Visitors could enter a sentence in a web form, watch rule extraction, tuning, and decoding run separately, or trace parts of a translation back to the bilingual text from which their rules were learned. The paper explains how those capabilities fit together and reports the performance of the complete workshop submission. It leaves the contribution of each component to that submission’s score open.

Deep dive: Demonstration of Joshua: An Open Source Toolkit for Parsing-based Machine Translation

Joshua brings grammar extraction, tuning, and decoding into an open toolkit for machine translation and shows how it performed at WMT-09. · about 32 minutes to read

The problem and its context

Learning reusable patterns from bilingual text

A phrase can translate differently depending on the expression in which it appears, and expressions that convey the same thing can arrange their parts differently across languages. A translation system therefore has to decide which pieces of its input belong together and how to put their translations in order. Earlier work cited in the paper had already made progress on this problem with systems that used structure. The Joshua paper takes that line of research as its starting point and asks what it would take to make the necessary software available as a general-purpose toolkit.

The paper draws a comparison with Moses, an open toolkit for regular phrase-based translation. A phrase-based system works with translations of word sequences. In a hierarchical system, the rules can themselves refer to other pieces that still have to be translated. Once those pieces are filled in, a rule describes how to assemble their translations with any fixed words it contains. This makes it possible to reuse an arrangement across inputs whose embedded pieces differ. The paper identifies Hierarchical Phrase-Based Translation, the work associated with Hiero, as the source of the kind of rules Joshua’s decoder is designed to handle.

A rule that contains slots makes some choices depend on other choices. To apply it, the decoder needs to find material that can fill the slots, consider translations of that material, and decide how the resulting pieces work together. It may encounter different rules for the same source span. It may also encounter different ways to divide a larger span into smaller ones. Parsing gives the decoder a way to organize these possibilities by the input material they cover and the structures they build. In this setting, discovering a structure for the source and building a candidate target sentence belong to the same search.

Hiero is the nearest point of comparison in the paper, but the introduction describes a broader line of work. It points to research on dependency treelets, context-rich syntactic translation, and mappings from trees to strings. These examples establish that the software problem arose across several approaches to translation with structure. They did not all use the same representation or require the same decoder. Joshua commits to a grammar formalism that supports Hiero-style translation and makes room in its design for research on related formalisms.

Making experiments easier to reproduce and extend

The authors describe much of the software used in earlier parsing-based research as purpose-built and closed. A published algorithm may specify how a search proceeds without giving a reader the rest of the system needed to run the same experiment. A researcher who wants to change the search must still obtain bilingual rules, arrange for the decoder to score them, and tune the system. If the original components are unavailable, differences introduced while rebuilding the pipeline make it harder to tell whether a result comes from the intended change.

Even with components available, connecting them can take substantial work. The paper describes translation pipelines assembled from programs made by different groups, each with its own formats and ways of exchanging information. A script that converts the output of one program into the input of another becomes part of the experiment. The more such connections a project relies on, the more local details a second group needs to reconstruct. Joshua’s aim is to make the critical stages work together within a single toolkit while allowing a researcher to run a stage by itself.

Those two uses place different demands on the software. A newcomer benefits from following the process all the way from training text to translation. Someone investigating weight tuning may already have a decoder and want to bring only the tuning program into that work. A researcher changing grammar extraction needs a clear way to hand the resulting rules to the search procedure. If each change requires understanding how the entire system is implemented, releasing the source leaves a substantial barrier in place. The authors address that problem through Java packages and interfaces that give major parts of the toolkit explicit boundaries.

The paper describes an interface as a way to state what a component must provide to its callers. Where the authors see a likely starting point for extensions, they also supply an abstract class with basic behavior. A researcher can then supply the behavior specific to an experiment and begin with some of the supporting machinery already in place. The technical motivation is to keep dependencies visible. In a translation system, that matters when a change in search, scoring, or rule access ought to be evaluated with the rest of the pipeline working as before.

Keeping the search and the data manageable

Opening a codebase addresses access to the software. The same code also has to run on grammars and training collections of practical size. A bilingual corpus can give rise to more rules than fit comfortably in memory. A particular source sentence, however, can use only rules that match some part of it. The paper treats this difference between the size of the available grammar and the needs of the current input as a reason to retrieve rules selectively.

Search presents a separate difficulty. Even when a sentence calls for a small part of a much larger grammar, its words may combine with one another in many ways. Each partial translation may in turn have competing target expressions. The decoder needs a representation that shares work across possibilities, and it needs a policy for deciding which possibilities deserve further attention. The Joshua design combines a chart for storing partial analyses with pruning methods that limit the search. The point of the pruning is to make the search feasible with large grammars, where storing a useful representation of alternatives is only part of the problem.

A third source of work comes from checking how target-language words fit together. The search may need to compare alternatives that look similar on the source side but differ in their target wording. Every such comparison can call for scoring target word sequences. The authors offer several ways to supply that scoring and describe support for both local and distributed operation. They treat the rule collection, the space of translation hypotheses, and access to scoring data as distinct problems within the same system.

The demonstration paper thus describes two kinds of access. The toolkit gives researchers access to code they can inspect, run, and extend. Its data structures and search procedures give the running system access to the portion of its learned material that it needs for a translation. The companion paper, Joshua: An Open Source Toolkit for Parsing-Based Machine Translation, is where the authors direct readers for a fuller treatment of the toolkit’s design and algorithms. The demonstration account concentrates on the parts an attendee could see working and the relationship between those parts.

The method, step by step

From bilingual sentences to a grammar

Joshua begins with a parallel corpus, a collection of sentences paired with their translations. This is where the system obtains evidence that a source expression can be translated with a particular target expression. The resulting rules can preserve specific words and leave some parts to be filled by other rules. The fixed material makes a rule applicable to a recognizable pattern. The slots let the same pattern work with different translations inside it.

Joshua’s rules belong to a probabilistic synchronous context-free grammar, abbreviated SCFG. In a context-free grammar, an expandable symbol can be rewritten using a rule for that symbol. A synchronous rule coordinates expansions on the source and target sides. A slot on the source side corresponds to a slot on the target side, even when their positions differ. Filling a slot therefore supplies both the source material matched there and the target material to be placed in the corresponding position. “Probabilistic” refers to weighing the available derivations so the decoder can choose among them.

Consider the operation of a paired rule in abstract terms. Its source side may require a fixed expression with expandable material beside it. The decoder can use the rule once it has found an analysis of the expandable material as well as a match for the fixed words. On the target side, the rule places the translated material where its paired slot occurs and supplies the fixed target wording. The result can itself be used as a piece of a larger translation. A derivation is the record of the rule applications and combinations that ultimately yield the target sentence.

The grammar allows different rules to account for the same span. A particular stretch of text could be covered by a rule that supplies all its target wording directly. It might also be covered by a larger pattern whose slots are filled by smaller rules. Both routes can matter during decoding, and under some circumstances they can produce identical target words. That possibility becomes important when the paper distinguishes the score of a derivation from the support for the string it produces.

The decoder handles Hiero-style SCFGs. The authors also present their grammar machinery as a basis for extensions to more general synchronous grammars and to synchronous tree substitution grammars, which pair tree fragments. The grammatical objects in those extensions would matter to how searches are carried out. The demonstration describes the scope for extending the toolkit and gives its operational account in terms of the grammar that Joshua already handles.

Selecting training sentences and retrieving rules

The toolkit can induce a grammar from a selected part of the training corpus. The selection is driven by the sentences the system is going to translate. Its purpose is to keep bilingual training examples useful for that set of inputs, so that grammar induction can work from a smaller collection. The selected material still comes from the training corpus. What guides the selection is the translation demand represented by the test inputs. The demonstration paper credits Kishore Papineni for the procedure and points to the companion toolkit paper for details.

Training corpus selection and rule retrieval act on different objects. Selection decides which bilingual sentence pairs participate in building the grammar. Rule retrieval addresses what happens when an extractor has access to a large corpus and must find the rules pertinent to an input. Both can reduce work in a translation run. A smaller training collection reduces the material available to the extractor, while targeted retrieval limits the rule material brought into the current job. The paper describes both capabilities without making one a prerequisite for the other.

For targeted rule extraction, Joshua uses a suffix array on the source-language side. A suffix is the sequence starting at a position and continuing onward. A suffix array stores positions in an order determined by those sequences. When several positions begin with the same expression, this ordering groups them so the extractor can find occurrences by searching the index. The bilingual examples associated with those occurrences give the extractor material for rules whose source sides match the current translation needs.

Locating occurrences is one part of grammar extraction. The matching source text can be evidence for different target expressions depending on what appears in its paired sentence. The extractor’s job is to turn suitable bilingual evidence into usable grammar rules. This distinction helps explain the proposed visualization in which a user could see alternatives for translating a source phrase and where they were learned. An entry in the index identifies training material, whereas an extracted rule is an object the decoder can apply. The paper explains their connection through the extraction module and the demonstration it proposes.

Joshua supports different arrangements for when the extraction happens. A standalone preprocessing run can retrieve rules for a set of sentences in advance. The decoder can also access the index directly and obtain rules for each sentence as it processes that sentence. In the first arrangement, the resulting grammar can be inspected as the product of a separate stage. In the second, extraction sits closer to search and responds to the input at hand. The choice concerns how the same extraction capability is used within a translation job.

The diagram follows the data and decisions that connect training and translation. The stage for retrieving rules can run ahead of scoring and search or as part of handling an individual input. Weight tuning itself uses candidate translations from development data, so the decoder also participates during preparation.

From bilingual training text to a ranked translation

The steps in order.

From bilingual training text to a ranked translationStep 1: Select relevant training sentences when sub-sampling1. Select relevant training sentences when sub-samplingStep 2: Index the source side of the corpus2. Index the source side of the corpusStep 3: Extract synchronous rules for the input3. Extract synchronous rules for the inputStep 4: Tune scoring weights on development translations4. Tune scoring weights on development translationsStep 5: Build partial derivations in a chart5. Build partial derivations in a chartStep 6: Prune weak hypotheses during search6. Prune weak hypotheses during searchStep 7: Recover ranked derivations from the hypergraph7. Recover ranked derivations from the hypergraph

Building translations in the chart

The decoder’s basic unit of work is an analysis of part of the input. A span identifies the source words that the analysis covers. The chart holds partial analyses associated with those spans so the decoder can use them again when considering larger structures. A rule that matches a stretch of input directly can start a partial analysis. A rule with slots can combine analyses that supply its subparts. The process builds from the possibilities available within the sentence towards derivations that cover the whole input.

The chart is an application of dynamic programming. A larger decision can reuse results already obtained for smaller problems. In a translation search, several larger rules may need a translation of the same source span. The decoder can store the relevant partial work and share it among those larger rules. Whether two partial analyses can be treated as interchangeable depends on what surrounding rules and scoring operations need to know about them. A chart entry is useful because it organizes the state that later combinations will use.

The resulting search structure is a hypergraph. An ordinary edge joins a pair of points. In a translation hypergraph, a rule application can depend on several component analyses together, and a hyperedge expresses that joint dependency. Following the choices for a complete analysis through the graph establishes which rules supplied all the pieces. Compatible derivations can share portions of the graph. The paper describes this representation as covering an exponentially large space of derivations, a property that matters when the decoder keeps more than its immediate top choice.

Packing derivations into a hypergraph makes it possible to retain alternatives after sharing their common parts. There is still work in considering which combinations deserve a place in the graph. A rule with several slots may combine high-ranking choices in one slot with lower-ranking choices in another. Multiplying out all those alternatives can consume the resources saved by sharing chart state. Joshua incorporates beam pruning and cube pruning to control how far the search pursues such possibilities.

Beam pruning limits what the decoder keeps among the hypotheses under consideration. It uses their scores to concentrate on a portion of the search that looks promising at that point. Cube pruning addresses the combinations that arise when rules can draw from several lists of alternatives. It gives the decoder a way to explore promising combinations without first expanding the entire set. The paper places both methods in the tradition of Hiero and presents them as important to decoding with large SCFGs. It describes their roles without specifying the actual beam settings used in the workshop run.

A score assigned during search can have consequences beyond ordering a finished list. If a partial hypothesis is pruned, later combinations involving it can be lost. A different score or a different pruning decision could therefore change the set of outputs the decoder is able to return. This distinction matters for interpreting the hypergraph. It is a compact record of the alternatives the configured search retained, shaped by the available grammar and the decisions made during decoding.

Scoring target wording

A target-language language model supplies scores for sequences of target words. Joshua uses n-grams, sequences consisting of a fixed number of words in order. The value of integrating this information into the decoder is easiest to see at a join. Two pieces can each have acceptable wording on their own. When the decoder combines them, the words at the end of one piece and the beginning of the next create sequences that did not occur inside either piece. Target-language scoring can help the search distinguish alternatives at precisely those points.

For the decoder to account for such sequences, it needs information about the target wording of partial analyses while it builds larger ones. The significance of a partial translation can change when its neighboring words become known. That is one reason the paper treats n-gram integration as part of the search algorithm. Scoring only the words inside each rule would leave out some of the evidence created by combining rules. The chart must retain the distinctions that the scoring procedure needs to evaluate those combinations.

The authors describe several local implementations. The basic Java scorer reads standard ARPA backoff data. Backoff allows a scorer to use shorter word sequences when the requested longer sequence has insufficient information in the data. The Java option provides a direct route to running Joshua without installing SRILM. Another implementation uses a native-code bridge to let the decoder obtain n-gram information through SRILM. The paper states that the basic Java implementation is less scalable than this bridge.

Joshua also offers a local implementation based on a Bloom filter, following earlier work cited in the paper. A Bloom filter is a compact probabilistic structure for checking membership. Its place here is in the machinery supporting target-language scoring. The demonstration paper identifies it as a way the toolkit addresses scale, alongside the Java and SRILM options. It gives no error measurements for the filter and no comparison of the translations produced using the different local implementations.

Parallel and distributed computing address two distinct parts of the workload. Parallel decoding can use multiple processing resources for translation search. Distributed target-language scoring gives the decoder access to scoring information through distributed computing. The paper presents these as supported facilities. Their presence means that a researcher can consider how to arrange a larger run within the toolkit. The relative usefulness of those arrangements would depend on which part of a given run needs resources, and the demonstration paper supplies no measurements that separate those costs.

Tuning the scoring weights

The decoder’s scores depend on parameter weights. A weight affects how much the corresponding kind of evidence influences the preference between candidate translations. A rule can supply bilingual evidence in favor of a wording, while the resulting target sequence can receive its own score. The weights determine how such quantities contribute to the decoder’s preference. The toolkit’s training procedure addresses the choice of weights after the components that generate and score candidates are available.

Joshua uses minimum error rate training, or MERT. It tunes the weights on a development set, a set of inputs with reference translations used to guide configuration. The training objective is performance on an automatic translation metric such as BLEU. As weights change, the ordering of candidates can change. Selecting a different candidate for an input can then change the score obtained against its reference. This connects numerical changes in the parameters to the translation outputs on which the development objective is measured.

The paper describes the optimization as a succession of line searches using the method of Och. A line search restricts the weight changes under consideration to a particular direction. Within that search, a movement in the weights matters to the development result when it changes the output the system selects. Considering when competing candidates exchange rank gives a way to understand why the line search can focus on changes in the selected translations. The paper proposes illustrating that procedure visually. It gives the objective and the form of the optimization in words, without equations or a worked weight update.

The authors also make the tuning component available separately as Z-MERT. Its role as a standalone program illustrates the distinction between integration and dependence. Joshua can use it in its own pipeline, and other translation systems can use it to optimize their weights. The underlying operation is still the same kind of development-set optimization. The choice of metric specifies what counts as a better result during tuning, while the decoder supplies the translation decisions that those weights influence.

Development and evaluation have different roles in this setup. The development set is where the tuning procedure can choose weights using reference quality as feedback. The workshop comparison measures the performance of the resulting submissions on the shared evaluation task. A reader can understand this separation from the module’s role even though the demonstration paper gives neither the composition of Joshua’s development set nor the final weights for its workshop system.

The most direct output from the decoder is the translation associated with its highest-scoring derivation. Joshua also implements an algorithm by Huang and Chiang to retrieve a ranked list from the hypergraph. In k-best extraction, k is the number of top derivations requested. Because different derivations can share partial analyses, the extractor can work with the packed search structure. A user can thus inspect highly ranked alternatives along with the rules through which the decoder reached them.

A derivation and a target string represent different things. The derivation records a route through the grammar. The string is the sequence of target words yielded by that route. Different routes can yield the same words, a property the paper calls spurious ambiguity. For example, a sequence obtainable through a rule for a larger span may also be obtainable by assembling the translations of smaller spans. In that circumstance, a list of the best derivations need not yield the same number of distinct translations.

Spurious ambiguity matters if the goal is to rank output strings by the total probability assigned to each. A string’s support may be spread across multiple derivations, while a competing string may have a single especially strong route. Viterbi decoding uses the most probable derivation as its approximation to the best output. A decision based on the total for a string would have to account for all of its derivations. The authors describe that exact string-level decision as computationally intractable and implement a variational approximation that takes the derivations into account while allowing decoding to proceed tractably. The demonstration paper gives this motivation without specifying the variational objective in mathematical form.

Oracle extraction uses the hypergraph for a different purpose. An oracle in this setting is a diagnostic that has access to a desired translation, such as a reference. It looks for a retained translation that is closest to that target under a metric such as BLEU. Joshua implements a dynamic programming algorithm for this search. An ordinary decoder ranks the available alternatives through its own scoring procedure. The oracle search can reveal alternatives that are a better match to the reference than the one that procedure selects.

The diagnostic depends on the contents of the graph. If the desired wording cannot be built from the applicable grammar, or if the needed route was pruned, the oracle has to choose from the alternatives that remain. An oracle result can help distinguish a case where the desired kind of output is available but ranked poorly from a case where the available options are already limited. Finding which stage removed a missing option would require additional evidence about the rules and the search. The paper presents this as an inspection capability and gives no oracle scores for the workshop submission.

What a demonstration visitor could inspect

The proposed demonstration brings the pipeline and its intermediate results into view. Visitors could enter source text through a web form and receive translations from systems prepared for several language pairs. The prepared systems would run on a remote server. The web interface would give the audience an immediate view of the end product, with the training and search work explored separately. The paper gives no sample sentence or final translation from that interface.

For someone who wanted to see the system operate as software, the authors planned separate terminal views for rule extraction, weight tuning, and decoding. Each view would show what the corresponding program emits and let attendees observe its speed. The paper also describes a more detailed view of decoding through the search graph and the 1-best derivation, meaning the derivation ranked first. A visitor could follow the combination of rules that led to the displayed translation and inspect other options the system had considered for phrases in the source sentence.

The rule provenance display would connect those alternatives with instances in the parallel corpus. That connects two different explanations of a result. The extraction view can show where a rule came from, and the derivation can show how that rule contributed to a complete output. A separate visualization of the MERT line search would address how the system chooses its scoring weights. Together, the proposed views let the demonstration move from seeing a sentence translated to examining the decisions and data behind that translation.

The paper’s setup allows at most 3 machines, covering the live interface, the component and algorithm displays, and discussion of the code. Internet access is part of the proposal because the live interface depends on remote hosting. These are arrangements for presenting the system. The decoder’s support for parallel and distributed work is a separate engineering feature, described in terms of translation and scoring rather than in terms of the number of demonstration displays.

Experiments and results

The workshop task and its comparison systems

The paper’s main quantitative evidence comes from the French–English task at WMT-09. The entries are systems submitted to a shared translation evaluation. The demonstration paper reproduces scores for leading primary submissions and cites the workshop report for the evaluation. These entries provide a benchmark for the complete Joshua system. Their scores compare systems built and submitted by different teams, so the comparison includes differences in the systems as a whole. The paper does not designate a matched phrase-based baseline trained and tuned alongside Joshua. Findings of the 2009 Workshop on Statistical Machine Translation

The data roles described elsewhere in the paper help place this result. A bilingual training corpus is the source of grammar rules. Development translations serve to tune parameter weights. The WMT-09 French–English task supplies the evaluation on which the table ranks submissions. The account of the comparison identifies the task but gives no corpus names or sizes for Joshua’s entry, no development-set composition, and no configuration associating the reported score with a particular way of extracting or scoring rules. Those omissions limit the detail with which the workshop result can be reconstructed from this paper alone.

For the automatic comparison, the table reports BLEU-4. BLEU compares the sequences of words in a system’s translations with those found in reference translations. The suffix in BLEU-4 indicates that the calculation considers word sequences up through length 4. A higher score indicates greater agreement by that measure. The reported value is a task score, so a score of 26.52 describes Joshua’s automatic result on the WMT-09 French–English task. It does not give the proportion of sentences that human evaluators judged correct.

Automatic and human evaluation

Joshua scored 26.52 on BLEU-4. The leading entry in the table, google, scored 31.14. The two entries directly ahead of Joshua were lium at 26.89 and dcu at 26.86. That group places Joshua next to entries with similar automatic scores, with a higher-scoring leader in the same task. The chart shows the leading primary submissions through Joshua’s position.

BLEU-4 for the leading WMT-09 French–English primary submissions

Google leads the displayed entries, with Joshua just behind lium and dcu.

BLEU-4 for the leading WMT-09 French–English primary submissionsgoogle: 31.14google31.14lium: 26.89lium26.89dcu: 26.86dcu26.86joshua (this paper): 26.52joshua (this paper)26.52
The numbers
System or settingBLEU-4
google31.14
lium26.89
dcu26.86
joshua (this paper)26.52

The table also gives scores for several entries below Joshua. The next primary submissions shown are uka with 25.96 and limsi with 25.51. For the entries below those, uedin scores 25.44, rwth scores 24.89, and cmu-statxfer scores 23.65. Each is a BLEU-4 score for the same WMT-09 French–English task. These values help locate the Joshua submission within the part of the workshop comparison reproduced in the paper.

The authors report a finish of 4th out of 16 systems under both automatic and human evaluation. The automatic finish is visible in the ordering of the scores. The human result is reported as a rank, with the workshop findings cited for the human evaluation. The paper gives no human scores, details of the judgments, or evidence that the two forms of evaluation ordered every competing system the same way. The shared rank establishes agreement about Joshua’s position at the level that the authors report.

The comparison shows that an integrated open toolkit could make a competitive submission to the task. That is relevant evidence for an engineering project whose stated purpose is to make parsing-based translation practical for other researchers. Each entry nevertheless represents its own combination of data, translation procedure, scoring, and tuning. When Joshua places ahead of another entry, the result establishes the relative score of the submissions on this evaluation. Explanations based on a particular difference in their implementations would need a comparison designed to isolate that difference.

The report on training corpus size

The paper gives another quantitative statement when introducing training corpus sub-sampling. It reports a 90% reduction in training corpus size with what the authors characterize as state-of-the-art performance maintained. The number measures the reduction in the corpus used for grammar induction. It is separate from the BLEU-4 scores and ranks in the workshop table. The authors relate it to selecting training sentences useful for translating a particular test set and direct readers to the companion paper for details of the procedure.

The result is consistent with the reasoning behind sub-sampling. If a run is concerned with a known set of source inputs, some of the bilingual training material is likely to be more relevant to rule extraction for those inputs. The reported reduction concerns using that relevance to restrict the training collection. The paper gives no full-corpus and reduced-corpus quality scores for this statement. It also supplies no named dataset or split sizes for the reduction. The magnitude can therefore be attached to corpus size, while the quality claim remains the qualitative one the authors give.

This distinction is important because there are two visible measurements in the paper of different kinds. The workshop table gives translation quality scores for actual entries in a named task. The sub-sampling statement gives the size reduction for a procedure and describes retained quality in broader terms. The paper does not say that sub-sampling caused Joshua to obtain 26.52, and the table contains no corresponding run from which to judge that possibility.

Observing operation during the demonstration

The planned demonstration was also meant to let people watch the components execute. Seeing a terminal produce rules, update weights, or return translations can show what a module accepts and emits. It can also give an audience an impression of how long the current run takes. The paper describes those observations in its outline of the event. It reports no timing series or benchmark configuration that would turn them into comparative measurements.

The live service likewise illustrates a use case for the toolkit. A visitor supplies an input to a previously prepared system rather than waiting for the system to train while the demonstration runs. Access to several prepared language pairs broadens the range of possible examples. The paper gives numerical quality results for the French–English workshop task and leaves the quality of the other prepared pairs unquantified. The planned interface and the workshop table supply evidence about different aspects of Joshua, one about how it can be used and the other about measured results for a named task.

What the ablations show

The paper reports no component ablations and instead offers a workshop comparison of complete systems, a corpus sub-sampling result, and diagnostic facilities for examining decoder output.

How far the corpus comparison goes

The sub-sampling statement comes closest to a comparison within a common translation procedure because it concerns a change in how much training material is used for extraction. The authors report that a selected corpus could be much smaller while still supporting competitive performance. The selection is directed at a particular test set, so the result bears on the value of relevance when assembling material for that translation job. It says less about the effect of discarding training sentences without using information about the intended inputs.

The outcome is reported at the level of the method. The paper supplies neither paired quality scores nor a comparison against equally small samples selected another way. A reader therefore cannot isolate the contribution of the selection strategy from the general ability of a smaller corpus to cover the inputs in that setting. Nor can the reported reduction be translated into a measured reduction in grammar memory, extraction time, or total decoding time. Those quantities intervene at different stages and would each need their own measurements.

What the search diagnostics could reveal

The 1-best derivation can provide a concrete explanation for a selected translation by showing how its component rules fit together. The grammar display can supply further context by connecting a phrase’s possible translations to the bilingual sentences they came from. These views are especially helpful when several alternatives share most of their construction. A reader can examine the choice that differs while following the surrounding derivation in the graph. The authors propose providing such views at the demonstration and give no worked case with a source sentence, competing derivations, and a final decision.

Oracle extraction addresses a related question through the target sentence. If the search graph contains a reference-like translation that ordinary scoring ranks lower, inspecting it can show that the retained search space had an option the system passed over. If the closest retained alternative still differs greatly from the reference, the oracle shows the limits of the current graph. The procedure alone cannot tell whether those limits arose during corpus selection, grammar extraction, or pruning. Tracking those earlier decisions would be needed to identify where the alternative ceased to be available.

The same distinction applies to the variational decoder. The paper describes a reason for considering multiple derivations of a string and explains why the best individual derivation can be a different decision criterion. It supplies no measured comparison between Viterbi and variational decoding for the reported submission. The presence of both procedures creates a way to study the effect of competing derivations, while the workshop results leave the size and direction of any such effect unspecified.

What the system comparison leaves open

The workshop comparison shows that Joshua’s collection of components worked well enough together to reach the reported rank. It cannot determine how much of that outcome came from hierarchical rules, efficient rule access, target-language scoring, weight tuning, or search. Even a substantial difference between competing entries would combine several changes. Controlled comparisons would require holding the task and relevant parts of the system fixed while changing the component under study.

Several implementation alternatives also have different intended benefits. A native scoring bridge can address the scale of the scoring data, while parallel decoding can address the amount of sentence-level work. Beam and cube pruning change the search work performed and can affect the alternatives that are retained. The demonstration paper gives a reason for including these options and describes how they fit into the decoder. It supplies no speed, memory, or output-quality measurements for varying them. The distinction between having an alternative available and measuring what it changes runs through the paper’s account of the toolkit.

Limitations

Limits identified by the authors

The authors note that grammars derived from large corpora can be too large to hold in available memory. The suffix-array extractor responds by retrieving rules relevant to the pending input. The claim concerns access to rules in a large training collection. It does not imply that arbitrary training collections and test sets will fit within a given memory budget. The space used by the index and the amount of material retrieved for a particular input remain relevant to any actual deployment.

The paper explicitly distinguishes the scalability of its local scoring implementations. The basic Java option makes the toolkit easier to try without SRILM, while the authors describe it as less scalable than the native bridge. A researcher choosing between them is therefore choosing between implementations with different stated operating characteristics. The paper gives no resource threshold at which the difference becomes important, so the practical significance of the choice depends on the scale of the intended use.

The authors also describe limitations of the decoder’s candidate space. A translation may be absent from the hypergraph because the grammar and scoring setup cannot express it in the search, or because pruning removed a route that could have produced it. The oracle search operates within that set. The closest alternative it returns can therefore still differ from the desired translation. This is a limit on what can be recovered from the graph and on what an oracle result can establish about the system as a whole.

A further limit arises when several derivations produce the same output. The authors describe exact decoding by total string probability as intractable in this setting. Viterbi decoding makes a decision using the strongest derivation. Variational decoding is offered as another tractable approximation. The algorithmic distinction matters because a score attached to one route and a score aggregating support for an output answer different questions. The demonstration paper does not derive either decision procedure mathematically or specify the precision of the variational approximation in the workshop setting.

The paper’s claim about extending the grammar formalism also has a defined scope. The authors identify Hiero-style rules as the form handled by the decoder and call out more general grammars and paired tree fragments as extension targets. That gives a reader a starting point for judging the intended generality of the code. The demonstration provides no run with those extensions and no comparison of the engineering effort involved. The reported evaluation belongs to Joshua as submitted on the workshop task.

Limits visible in the evaluation and demonstration

The workshop result covers a named translation direction in a shared evaluation. It is good evidence for the performance of that submission in those conditions. It gives limited evidence about what would happen in another language pair or with different amounts or types of bilingual text. The paper proposes making multiple language pairs available to visitors, but it reports no corresponding benchmark for them. A live translation example would establish that a particular input was processed and illustrate the output. The strength of a broader quality claim depends on evaluation data beyond such examples.

The automatic scores are presented as points in a ranking without uncertainty estimates or tests of statistical significance. Close scores show that nearby systems received similar values under BLEU-4 on this task. They leave the stability of that ordering across samples or settings unmeasured. The account of human evaluation provides Joshua’s rank and refers readers to the workshop study, with no accompanying judgment totals or description of evaluator agreement. Both results can be reported at the level the paper gives them, with the precision of the underlying comparison left open.

The paper names the principal stages and tools without specifying the details needed to recreate the workshop system from this account alone. A reconstruction would depend on knowing the training and development corpora, how the rules were obtained for the entry, the scoring implementation and data, the search settings, and the tuned weights. The authors make repeatability part of the motivation for releasing a coherent toolkit. Ease of running that toolkit and completeness of the configuration reported for a given benchmark are separate properties. The demonstration paper gives considerably more evidence about the former.

The corpus selection result is tied to the inputs it was designed to serve. Knowing the test source sentences is useful for deciding which training material to include. This rationale says little about how well the same selected corpus would serve newly arriving inputs. The paper does not report an evaluation that reuses a subset chosen for one input collection on another. Any extension of the reported size and quality outcome to less predictable input would therefore go beyond the experiment described.

The scalability claims are largely explanations of the design. Dynamic programming shares partial work. Pruning limits search, targeted extraction avoids loading all available rules into the decoder, and parallel and distributed execution give the system additional ways to use computing resources. The paper identifies these mechanisms and describes why they were included. It offers no measurements of throughput, latency, peak memory, or changes as more processing resources become available. A reader can identify the costs each feature addresses while leaving their quantitative effects unresolved.

Finally, the demonstration is written as a plan. The authors describe the equipment they would bring, the displays they would show, and the network connection the live system would require. The paper thereby specifies how interaction with the toolkit was meant to work. It supplies no record of what visitors entered, how the live translation service behaved under use, or what researchers learned from the visualizations. The planned observations are distinct from the automatic and human evaluations already reported for the workshop.

What came after

No later citing work is identified. The documented connections concern the research Joshua drew on and the ways the authors designed the toolkit to be used in further work. In particular, the companion toolkit description gives a fuller account of the components, and the paper identifies Z-MERT as a separately available program for tuning other translation systems. Both belong to the work surrounding the demonstration.

The authors also give a concrete account of where further research could meet the code. A grammar researcher could work at the boundary between extraction and decoding. Someone interested in approximate inference could inspect the hypergraph and compare ways of choosing from it. A researcher studying translation scoring could use the tuner with a different system. These are intended paths for work with Joshua. The demonstration documents the interfaces, algorithms, and diagnostic facilities that make those paths possible, while subsequent uses and their outcomes remain undocumented here.

Cite

Cite as Zhifei Li, Chris Callison-Burch, Chris Dyer, Juri Ganitkevitch, Sanjeev Khudanpur, Lane Schwartz, Wren N. G. Thornton, Jonathan Weese and Omar F. Zaidan. 2009. Demonstration of Joshua: An Open Source Toolkit for Parsing-based Machine Translation. Proceedings of the ACL-IJCNLP 2009 Software Demonstrations.

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

@inproceedings{li2009demonstration,
  title = {{Demonstration of Joshua: An Open Source Toolkit for Parsing-based Machine Translation}},
  author = {Zhifei Li, Chris Callison-Burch, Chris Dyer, Juri Ganitkevitch, Sanjeev Khudanpur, Lane Schwartz, Wren N. G. Thornton, Jonathan Weese and Omar F. Zaidan},
  booktitle = {Proceedings of the ACL-IJCNLP 2009 Software Demonstrations},
  year = {2009},
  doi = {10.3115/1626431.1626459},
  url = {https://doi.org/10.3115/1626431.1626459}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2009-demonstration-joshua-open-source-toolkit/