Elamur Research

Travatar: A Forest-to-String Machine Translation Engine based on Tree Transducers

Paper · 2013 · Graham Neubig

Summary

Translating a sentence frequently requires changing its structure as well as replacing its words. A phrase that appears near the beginning in one language may belong near the end in another, and deciding what to move depends on understanding which words belong together. Travatar addresses this problem in machine translation by making the source sentence’s syntactic structure available during translation. Instead of asking a translator to recover every structural relationship from a flat sequence, it supplies a parse tree, or a compact collection of alternative parses, and uses rules that connect pieces of that structure to target-language text.

The paper introduces an open-source C++ toolkit covering the practical translation pipeline: preparing parsed input, extracting and scoring translation rules, adjusting their weights, decoding new sentences, and evaluating the output. Its central representational choice is a tree transducer. A transducer rule can inspect a structured fragment of the source tree and produce a target string containing translated words and placeholders for translated subtrees. This matters because the arrangement inside a tree fragment can distinguish interpretations that look identical when represented only as a sequence of phrase categories. The paper illustrates the issue with a prepositional phrase attached to a verb in one analysis and to a noun in another. Keeping the internal tree structure lets a translation rule respond to that distinction.

Travatar also supports forest-to-string translation. A parse forest packs competing syntactic analyses into a shared representation, allowing translation to consider alternatives instead of accepting the parser’s preferred tree in advance. This does not eliminate parsing errors: it gives the translation search access to more than the initial choice. The toolkit combines this representation with bottom-up decoding, approximate search controlled through cube pruning, compact rule lookup, and target-language scoring through KenLM. Its training workflow deliberately resembles Moses, so familiarity with an established translation toolkit can carry over to the new system.

The evaluation concerns English-to-Japanese translation of Wikipedia articles in the Kyoto Free Translation Task, or KFTT. The strongest Travatar configuration, using forests, obtains BLEU 23.97 and RIBES 73.27 on the test set. The Moses phrase-based baseline records BLEU 22.27 and RIBES 68.37; its hierarchical phrase-based counterpart records BLEU 22.04 and RIBES 70.29. Comparison with syntax-based Moses is closer: that system reaches BLEU 23.81 and RIBES 72.01. Travatar using a single tree has BLEU 23.15 and RIBES 72.32, so the results do not establish that every Travatar configuration surpasses every alternative on every measure. Forest decoding provides the strongest overall accuracy in the reported comparison, while single-tree decoding offers a different balance of accuracy and speed.

The auxiliary experiments show that the surrounding pipeline matters substantially. Changing the parser changes translation quality, and improved word alignments help the syntax-driven systems more consistently than the systems without syntactic input. These findings make the contribution broader than a decoder implementation: the paper presents a usable research environment and demonstrates why representation, parsing, alignment, extraction decisions, search, and evaluation must be considered together. Its evidence remains specific to the reported English–Japanese task and settings. Planned improvements to extraction, target-side syntax, and parallel execution are development directions, rather than accomplishments demonstrated by these experiments.

Interesting ideas

Preserve distinctions that later decisions need. A representation can retain category names while discarding the relationships that make those categories useful. Travatar’s tree fragments preserve internal attachment structure, allowing downstream translation to distinguish analyses that a flatter rule representation may merge. The reusable lesson is to inspect an interface for lost information: a compact intermediate form is valuable only if it preserves distinctions required by the next component. This applies to semantic interpretation, program transformation, document processing, and rule-based extraction.

Keep uncertainty available across stages. A pipeline becomes brittle when an early component must make an irreversible choice before later evidence becomes available. A packed forest offers a way to preserve competing analyses without treating every complete tree as an unrelated object. Translation can then contribute evidence about which analysis is useful. Similar reasoning applies wherever recognition feeds interpretation: retain a bounded set of plausible structures, share their common parts, and let downstream constraints help resolve the ambiguity.

Choose interacting decisions together. Source-word order and target-word choice influence each other. Travatar’s architecture allows translation and reordering to be considered within the same decoding process, whereas a separate pre-ordering stage commits to a rearrangement before translation. The broader idea is to identify decisions whose consequences depend on one another and expose them to a shared search procedure. This can help in structured extraction, symbolic planning, or sentence interpretation, provided the extra search remains controlled.

Evaluate components through their final use. A better alignment score does not automatically imply better translation, and a parser’s usefulness cannot be established solely from its reputation elsewhere. The paper compares upstream choices through the translations they enable. This encourages a practical evaluation discipline: measure the component itself when suitable labels exist, but also measure the downstream task that justifies using it. Improvements should survive that second test before becoming conclusions about the whole pipeline.

Treat resource use as part of the result. Translation quality is reported alongside rule-table size and decoding speed. This exposes choices that an accuracy-only comparison would hide, including the larger grammar associated with more permissive extraction and the slower search associated with forests. The same principle applies to indexes, grammars, knowledge stores, and reasoning engines. A useful system comparison should show what is gained, what must be stored, and what the search costs under the tested conditions.

Use complementary measures to expose tradeoffs. BLEU and RIBES do not always rank the configurations identically. Reporting both makes it harder to turn a narrow advantage into a general claim. The transferable idea is to select measures that reveal different relevant properties, then examine disagreements rather than averaging them away rhetorically. This is particularly useful when output quality depends on several aspects of structure or correctness and no single automatic score captures them all.

Make a new capability fit a familiar workflow. Travatar changes the translation formalism while retaining a training organization recognizable to Moses users. Its documentation, scripts, and separated stages reduce the work required to try the new representation. This is an engineering contribution with research consequences: an unfamiliar core becomes easier to investigate when preparation, training, tuning, and evaluation have clear interfaces. The same strategy helps introduce new parsers, symbolic components, or storage engines into existing experimental practice.

Deep dive: Travatar: A Forest-to-String Machine Translation Engine based on Tree Transducers

How Travatar uses syntax trees and parse forests for English–Japanese translation, with its architecture, results, and practical limits. · about 37 minutes to read

How Mova uses it

Mova is a small, transparent language system written in Rust. Its native language pipeline constructs dependency trees, reads them into frames, and maintains a world from which it can answer questions with reasons. Travatar works with source-side syntactic trees for translation, so transferring its ideas requires care: shared use of syntax does not make the representations or tasks interchangeable. The connections below are proposals assessed against Mova’s documented mechanisms. The status marks describe that comparison; they do not establish that Travatar caused an implementation or that a proposed transfer has already improved Mova.

Idea: Preserve internal structural distinctions. Where: Section 2.1 and Figure 1. Area: syntax and representation. Mova: вже є (en, prag, and world). Mova already passes structured analyses into frame interpretation rather than treating sentences as unordered word collections. Travatar supplies a useful review question for those interfaces: do they retain the attachment differences required by later decisions? The proposed application is to inspect cases where distinct dependency configurations become the same frame. This is a design audit of an existing mechanism; any improvement from changing that mapping remains unmeasured.

Idea: Express reusable transformations over structured fragments. Where: Section 2.1 and Figure 1. Area: syntax and rules. Mova: частково є (en/src/french_rules.rs and en/seeds/french-parse). Mova’s French overrides already combine lexical, morphological, and constructional evidence in closed rule domains. A related proposal is to make the structural conditions of such rules especially explicit and inspectable, preserving which relationship justified a change. Travatar’s rules concern translation rather than dependency repair, so its results do not validate a repair design. The connection is the value of matching an informative structure before applying a transformation.

Idea: Separate general structural rules from particular vocabulary. Where: Section 2.1 and Figure 1. Area: syntax and abstraction. Mova: частково є (global verb classes and prag frame readers). Travatar includes rules that express ordering relations through placeholders rather than requiring every participating word to be fixed. Mova already generalizes through typed classes and frame roles. It could examine whether additional reader rules can be stated over those roles while leaving lexical exceptions explicit. Such a transfer should preserve the current distinction between a licensed generalization and an unsupported assumption about an unfamiliar word.

Idea: Preserve alternative parses for downstream interpretation. Where: Section 2.1 and Section 3.3. Area: parsing and uncertainty. Mova: нове. A candidate extension would let selected readers inspect a bounded collection of native parse alternatives when the preferred tree produces an unresolved interpretation. The digest does not establish a packed-forest interface for this purpose, and absence from the digest is not proof that no related work exists. Why Mova: a later frame or world constraint might identify a useful analysis that an early parser decision discarded. This remains a proposal requiring both accuracy and resource measurements.

Idea: Share common structure among alternatives. Where: Section 2.1. Area: data structures and efficiency. Mova: нове. If Mova retains competing analyses, a packed representation could avoid storing every shared subtree repeatedly. This is distinct from merely keeping several full parses: the research question concerns how alternatives are represented and traversed. Why Mova: shared structure could make bounded ambiguity practical for a small system whose readers need explicit evidence. Neither memory savings nor downstream gains are established for Mova, and the appropriate representation would have to fit dependency structures rather than assume Travatar’s tree format.

Idea: Resolve interacting decisions within a shared search. Where: Introduction and Section 2.1. Area: reasoning and task composition. Mova: частково є (math::steps, deduct, and the maths student’s top-K judge). Mova already considers candidate steps and checks quantitative interpretations. Travatar suggests examining other places where an early interpretation determines which later operations remain possible. A proposed reader could compare a bounded combination of parse and frame choices before admitting an answer. This is not evidence for general automatic composition, which remains direction in Mova; it is a hypothesis about a narrowly defined decision boundary.

Idea: Build larger rules from smaller licensed pieces. Where: Section 3.2 and Section 4.1. Area: rule composition. Mova: частково є (source-bound groupants and combinatorial tooling). Travatar supports rule composition and constrains the resulting rules in its experiment. Mova could use an analogous discipline when exploring combinations of existing operations: record the constituent rules, the admitted composition, and the conditions under which it can run. The digest explicitly limits current automatic composition, so this proposal concerns a testable extension instead of an existing general capability. A successful composition would still need evidence beyond the validity of its parts.

Idea: Bound structural complexity explicitly. Where: Section 4.1. Area: search control. Mova: вже є (bounded native deputy planning and explicit recursive capability interfaces). Travatar constrains rule size and decoding search; Mova likewise places bounds around supported operations and nested calls. The useful transfer is to keep each bound visible in diagnostic output and evaluate what it excludes. A bounded failure should remain distinguishable from a demonstrated absence of a valid answer. Travatar’s settings are task-specific and offer no numerical prescription for Mova’s budgets.

Idea: Examine tree reshaping as a substantive choice. Where: Section 3.2, Section 4.1, and Section 5. Area: syntax and preprocessing. Mova: нове. Travatar supports alternative binarization directions, uses right binarization in the reported experiment, and identifies further selection methods as future work. Mova could investigate whether any normalization of an intermediate structure changes which native rules become expressible or reachable. Why Mova: preprocessing that appears merely mechanical may alter later reasoning opportunities. This does not imply that Mova should binarize dependency trees; the proposed borrowing is a controlled investigation of representation changes.

Idea: Keep unattached material visible during extraction. Where: Section 3.2 and Section 4.2. Area: data preparation. Mova: частково є (treeagree gates and retained rejection evidence). Travatar exposes choices about where target words lacking alignments enter a rule, and relates those choices to grammar size and translation behavior. Mova could apply the same accounting discipline to tokens or observations that do not fit a selected frame. Rather than silently dropping them, a reader could retain their status and test alternative attachment policies. This would complement existing gap reporting without treating an unassigned element as automatically meaningful.

Idea: Distinguish richer input search from richer training extraction. Where: Section 3.2, Section 4.1, and Section 5. Area: experimental design. Mova: частково є (separate corpus preparation, review, training, and assessment paths). Travatar’s main forest-decoding experiment still extracts rules from preferred trees. Mova should likewise describe separately whether alternatives entered training, inference, or both. This matters when evaluating a new reader: a gain from considering more analyses at answer time does not establish a gain from changing the supervision. Existing admission boundaries provide a foundation for keeping those claims separate.

Idea: Use prefix-oriented indexes for structured rule lookup. Where: Section 3.3. Area: indexing and efficient execution. Mova: нове. Travatar stores source-side rule representations in a trie and traverses trees in an order compatible with prefix lookup. A Mova experiment could serialize a carefully chosen family of structural patterns and compare indexed matching with its existing lookup path. Why Mova: larger transparent rule collections may benefit from sharing common matching prefixes. The appropriate encoding and any speed improvement are unknown; the paper does not establish that this approach suits every rule family.

Idea: Retain boundary information when composing partial outputs. Where: Section 3.3. Area: compositional scoring. Mova: нове. Travatar uses KenLM support that preserves language-scoring information at the edges of partial translations. A broader Mova proposal is to identify the minimal state a subresult must expose so that a parent operation can evaluate its composition correctly. Why Mova: explicit boundary contracts could help combine bounded operations without repeatedly inspecting all their internal material. This is an architectural analogy, not a claim that target-language scoring should replace Mova’s native semantic checks.

Idea: Store extensible evidence in sparse feature structures. Where: Section 3.2. Area: statistical representation. Mova: частково є (learned school features and role parameters). Travatar’s sparse score representation allows additional feature functions without requiring every rule to carry a dense collection of values. Mova could examine sparse, named evidence for bounded readers where only a small subset of possible observations applies. The benefit would need to be assessed against its current compiled types and storage choices. The proposal concerns inspectable statistical evidence, consistent with Mova’s use of rules and learned parameters.

Idea: Measure alignments before relying on them. Where: Section 4.3. Area: multilingual data quality. Mova: частково є (tools/dictindex parallel-source adapter). Mova’s dictionary index explicitly treats counterpart lemmas as sentence co-occurrence rather than word alignment or confirmed translation. Travatar reinforces the importance of that distinction by measuring word alignment separately from translation. A future aligned lexical evidence path should have its own validation instead of promoting co-occurrence into an alignment claim. This proposal extends an existing evidence boundary; it does not authorize dictionary admission from statistical association alone.

Idea: Test whether improved upstream evidence helps the actual task. Where: Section 4.3. Area: evaluation. Mova: вже є (tools/enrich same-question comparisons and regression-gated changes). Mova already requires more than an increase in intermediate observations to claim learning progress. Travatar provides a concrete parallel: improved alignment quality has different downstream effects across translation architectures. Mova could retain this discipline when comparing parser repairs, richer frames, or dictionary additions. Each upstream improvement should be followed through the same reader or task, with unchanged assessment items where the evaluation design requires them.

Idea: Evaluate parser choices through downstream behavior. Where: Section 4.3. Area: syntax evaluation. Mova: частково є (native parsing, reader assessments, and separate GPU approximant measurements). Travatar compares parsers through translation even though it lacks labeled parse data for the relevant evaluation. Mova could add paired analyses connecting a parse change to an altered frame and answer. That would complement attachment scores with evidence about practical consequences. It must not replace direct syntactic evaluation when suitable gold data exists, nor turn a downstream gain into proof that every changed parse is linguistically correct.

Idea: Order preprocessing to preserve useful evidence. Where: Section 4.1. Area: data processing. Mova: частково є (native annotation and versioned corpus preparation). Travatar parses before applying lowercasing in the experimental pipeline. The general proposal is to document which preprocessing operations remove information and when each consumer receives the richer form. Mova’s dictionary normalization, parser input, and evidence records may have different requirements. A clear order could prevent accidental loss of distinctions needed by one component while still allowing another to use normalized keys. No benefit from changing Mova’s current order is established here.

Idea: Tune decisions against their eventual evaluation objective. Where: Section 3.4 and Section 4.1. Area: learning and evaluation. Mova: вже є (world selfplay and held-out gates). Travatar adjusts scoring weights using translation evaluation measures rather than treating initial feature values as final. Mova already tests candidate rule or parameter changes against held-out behavior. The reusable proposal is to preserve that connection when adding a new capability: specify which outcome its parameters are meant to improve and prevent a convenient intermediate score from silently becoming the objective.

Idea: Explore tuning over structured candidate spaces. Where: Section 3.4. Area: structured optimization. Mova: нове. Travatar supports hypergraph MERT as well as ordinary MERT, although the main experiment uses candidate lists. Mova could investigate structured candidate representations for a narrowly defined reader or mathematical decision procedure. Why Mova: shared alternatives might expose useful competing decisions without repeatedly materializing complete outputs. The optimization method, compatibility with deterministic execution, and practical value are unknown. This should begin as an isolated experiment instead of a claim about general self-improvement.

Idea: Keep experimental learning methods visibly provisional. Where: Section 3.4. Area: learning infrastructure. Mova: вже є (teacher review, staged drafts, and separately admitted training). Travatar distinguishes preliminary online-learning support from the procedures used in its main results. Mova has a related separation between a generated proposal, reviewed material, admitted knowledge, and trained parameters. The connection is a reporting rule: availability in software should never be mistaken for experimental validation. A new learner would require its own retained artifacts and assessment, even if it runs successfully through an existing interface.

Idea: Compare complementary output measures. Where: Section 4.1 and Table 1. Area: evaluation. Mova: вже є (school controls, traces, parser agreement measurements, and task-specific reports). Travatar’s BLEU and RIBES results reveal a tradeoff hidden by either measure alone. Mova can apply the same reasoning when a change improves answer accuracy but alters coverage, explanation completeness, or abstention behavior. The proposal is to report relevant dimensions separately and investigate disagreement. It does not supply a ready-made combined score or establish that every existing Mova metric captures an independent property.

Idea: Report uncertainty in system comparisons. Where: Section 3.4 and Table 1. Area: statistics. Mova: частково є (paired tests and significant-gain gates in documented self-play). Travatar includes bootstrap resampling for comparison of translation outputs. Mova could make the chosen sampling unit, pairing, and decision rule explicit wherever a similar comparison is appropriate. This would support transparent judgments about small gains. The transfer is methodological; the paper’s caption has a significance-threshold ambiguity, so its printed convention should not be copied without scrutiny.

Idea: Measure accuracy, storage, and throughput together. Where: Table 1 and Section 4.2. Area: systems evaluation. Mova: частково є (tools/twin, jobs logs, and dictionary-index measurements). Mova already records costs and measurements in several bounded settings. Travatar suggests presenting the same configuration’s task quality beside its representation size and execution rate. This could make a proposed rule expansion easier to assess: more coverage may require more storage or slower search. Such comparisons must retain hardware and workload scope; the paper provides no universal resource bound for a Mova implementation.

Idea: Isolate an inference change with a shared rule inventory. Where: Section 4.1 and Table 1. Area: controlled comparison. Mova: вже є (deterministic repeated runs and held-out comparison discipline). Travatar’s single-tree and forest configurations use the same reported rule-table size, helping distinguish a change in decoding input from a larger grammar. Mova can similarly hold admitted knowledge and parameters fixed while changing how alternatives are explored. This narrows the interpretation of a result, though it does not eliminate every interaction among settings or prove that the search procedure alone explains the difference.

Idea: Keep the new core behind familiar stage interfaces. Where: Introduction and Sections 3.1–3.4. Area: software architecture. Mova: вже є (crate boundaries, explicit worker protocols, and capability interfaces). Travatar makes its different translation formalism accessible through recognizable preparation, training, tuning, and evaluation stages. Mova already separates language processing, knowledge, mathematical work, and execution. The proposed use is to preserve those contracts when introducing a new internal representation, allowing users and tests to adopt it without conflating changes across the entire workflow.

Idea: Automate orchestration while preserving component choice. Where: Section 3.2. Area: reproducible data pipelines. Mova: вже є (tools/cycle, treeagree, and tools/enrich). Travatar offers a unified training script while allowing externally produced alignments and separately trained target-language scoring resources. Mova’s existing pipelines likewise coordinate distinct tools and review boundaries. The useful design principle is that convenience should retain the identity and configuration of each input-producing component. An automated pass should produce inspectable stage results rather than erase the distinctions needed to diagnose a failure.

Idea: Make evaluation interfaces extensible. Where: Section 3.4. Area: evaluation infrastructure. Mova: частково є (separate students, readers, and task reports). Travatar allows additional evaluation measures through an extension interface. Mova could standardize how a bounded capability registers its assessment, output evidence, and failure interpretation while retaining task-specific semantics. The benefit would be easier comparison and less duplicated orchestration. This is not a proposal to treat every capability as interchangeable: a mathematical proof check, a dictionary witness, and a reader’s answer remain different forms of evidence.

Idea: Distinguish current target-side constraints from future development. Where: Section 5. Area: semantic constraints and reporting. Mova: вже є (explicit implementation limits in docs/hybrid-system.md and docs/architecture.md). Travatar describes preliminary target-side syntax support and further development plans separately from the main evaluation. Mova can use the same discipline when discussing logical modules, automatic composition, or broader task understanding. A promising interface or experimental path should be described at its actual scope. Its existence does not establish general capability or measured reliability.

Idea: Treat documentation as part of an executable research contribution. Where: Introduction and Section 3.1. Area: reproducibility and usability. Mova: вже є (training guides, benchmark documentation, and source-bound tool descriptions). Travatar lowers the entry cost of syntax-based translation through documented stages and parser integration scripts. Mova already provides comparable guides for native components and tools. The transferable improvement is to keep documentation aligned with admitted inputs, configuration limits, and reproducible measurements, so a reader can distinguish a supported workflow from a research direction without inferring capability from a broad architectural description.

The problem and its context

Reordering requires more than local substitution

The paper’s starting point is long-distance reordering. A translation system must determine not only which target words correspond to source material, but also how those words should be arranged. The authors place syntax-based translation in this context because a parse identifies larger units and relationships that can guide movement. When languages organize clauses differently, a rule over syntactic constituents can express a recurring rearrangement more naturally than a collection of unrelated local substitutions.

The example contrasting English SVO order with Japanese SOV order makes this motivation concrete. SVO places the verb between subject and object; SOV places it after them. A structural rule can preserve the identities of the participating phrases while changing their order in the output. The rule need not specify every possible subject, verb, or object. It expresses an ordering relationship that can be reused when appropriate subtrees fill its placeholders.

The authors distinguish pre-ordering from tree-based decoding. Pre-ordering parses a source sentence and rearranges it before a conventional translator operates. Its practical advantage is compatibility with an established phrase-based pipeline. A system can gain syntactic guidance without replacing the final decoder. Its limitation, as presented in the paper, is that reordering and translation are not chosen jointly: the reordered input has already constrained the later stage.

Tree-based decoding instead accepts a tree or forest and selects translation and rearrangement during the same search. That creates an opportunity to use translation evidence when choosing structural actions. It also creates an infrastructure requirement. A conventional decoder cannot simply be assumed to support the necessary input and operations. Researchers need an implementation of the relevant formalism before they can investigate it effectively.

Why the rule formalism matters

The paper situates Travatar alongside earlier syntax-driven translation work, including Yamada and Knight’s syntax-based approach, tree-to-string alignment templates, and syntax-directed translation with an extended locality domain. Its argument is not that source syntax had previously been ignored. The missing piece concerns open-source support for a particular representational approach across the translation pipeline.

A synchronous context-free grammar, abbreviated SCFG, connects source and target productions. In the syntax-based comparison illustrated by the paper, source-side placeholders carry syntactic categories, while corresponding target placeholders identify translated material without requiring the same category annotation. This supports useful rearrangement rules. However, the illustrated rule representation does not preserve all of the internal tree structure that a tree transducer can inspect.

The prepositional-phrase example exposes the consequence. The same sequence of broad components can arise when a phrase modifies the verb and when it modifies a noun. Those interpretations differ structurally even if a flattened sequence of categories looks unchanged. If the translation rule’s source representation merges them, it cannot condition its action on the attachment distinction. The authors argue that this throws away information the parser was intended to supply.

This is a focused representational claim. It explains why a richer tree fragment can be useful for translation. It should not be read as proof that every system using an SCFG must ignore all relevant attachment information, or that greater representational richness automatically produces better output. The paper’s comparison concerns the rule forms it illustrates and the implemented systems it evaluates.

The software gap

Existing software already covered several neighboring approaches. Moses and NiuTrans supported syntax-annotated source rules, with tree input and, for NiuTrans, forest input. The cdec toolkit offered another framework connecting context-free reordering with finite-state translation. Akamon supported an approach using head-driven phrase structure grammars. The paper also acknowledges a general tool for tree automata.

Against that background, the authors identify the absence, to their knowledge, of an open toolkit providing the statistical translation workflow in the tree-transducer framework. Travatar addresses that implementation gap. Its value includes making extraction, scoring, tuning, decoding, and evaluation available together, instead of leaving researchers to assemble the entire chain around a formal idea.

The relationship to hierarchical phrase-based translation is therefore both conceptual and experimental. Hierarchical rules provide an established comparison point, while Travatar asks what is gained by giving source syntax a richer role. Its evaluation compares these alternatives on a task with substantial reordering demands, but its software contribution is intended to support further investigation beyond that particular test.

The method, step by step

From sentences to structured input

Travatar’s workflow begins with parallel text: source sentences paired with target translations. The source side is parsed, and the target side is tokenized into the units used for alignment and translation. Parsing assigns a structured analysis to a sentence. Tokenization determines the sequence of textual units that later stages manipulate. Their outputs must be compatible with alignment and rule extraction, because those stages connect source structure to target positions.

The toolkit accepts bracketed trees in Penn Treebank format and also accepts forests. Documentation and integration scripts cover parsers for English, Chinese, and Japanese. This describes supported preparation paths, not an experimental demonstration for every language named. The reported validation uses English source sentences and Japanese targets.

A tree gives a particular structural analysis. A forest preserves alternatives in a packed form, allowing shared pieces to participate in different analyses. This is important because the most useful translation may depend on a parse that was not the parser’s preferred complete output. Forest input exposes those alternatives to the translator, provided they survive the parser-side selection used to construct the forest.

Travatar’s translation workflow

The steps in order.

Travatar’s translation workflowStep 1: Parse source text and tokenize target text1. Parse source text and tokenize target textStep 2: Align words in paired sentences2. Align words in paired sentencesStep 3: Extract and score structured translation rules3. Extract and score structured translation rulesStep 4: Tune rule and output scoring weights4. Tune rule and output scoring weightsStep 5: Decode source trees or parse forests5. Decode source trees or parse forestsStep 6: Evaluate translations and compare systems6. Evaluate translations and compare systems

The diagram separates training activities from their eventual use in decoding. A new sentence is not aligned to its unknown translation during inference. Alignment belongs to preparation of the parallel training material, from which reusable rules are learned.

Aligning the parallel material

Word alignment links source positions with target positions judged to correspond. These links help determine which source tree fragments can be associated with which target strings. Because word order can differ, the links need not preserve linear order. Their purpose is to supply evidence about correspondence, which extraction then combines with the source tree.

The default training pipeline integrates GIZA++, but Travatar can consume alignments produced elsewhere. That flexibility matters experimentally: it permits the authors to change alignment while keeping the broader translation architecture recognizable. It also makes alignment a replaceable component instead of a hidden assumption built into the decoder.

In the experiments, Nile provides the alternative alignment route. The paper describes Nile as supervised and as using syntactic information. Its supervision comes from hand-aligned KFTT material. This makes the comparison informative about alignment quality and downstream consequences, but it is not a comparison in which both aligners receive identical kinds of evidence.

Extracting tree-to-string rules

Once parsing and alignment are available, extraction identifies source tree fragments associated with target sequences. Travatar uses GHKM extraction and includes an extension for extracting from forests, drawing on forest-based rule extraction. The important distinction is between the toolkit’s supported extraction options and the configuration used in the main experiment. The reported rules there come from preferred parse trees, even when decoding later uses forests.

A tree-transducer rule contains more than the leaves of a phrase. Its source pattern can specify internal nodes and relationships. Some material is lexical: a rule can recognize particular source words and produce their target equivalents. Other material is abstracted into placeholders that stand for subtrees whose translations will be supplied recursively.

The paper’s noun-phrase example illustrates lexical material, while its English-to-Japanese ordering example illustrates abstraction. A larger rule can rearrange translated constituents without spelling out their internal translations. The prepositional-phrase examples then show why internal topology matters: the rule can require attachment under the verb or under the noun, instead of treating both as the same flat sequence.

This gives the system a way to combine local translation knowledge with structural generalization. Lexical rules provide concrete target material; abstract rules organize the outputs of subordinate translations. The decoder chooses among compatible applications using the scoring information assigned during training and tuning.

Extraction choices change the available grammar

Travatar implements rule composition, which permits larger rules to be constructed from smaller extracted pieces. Larger rules can retain more context, but they also enlarge the inventory and alter the search space. The main experiment therefore places explicit limits on composition and rule contents rather than allowing unrestricted growth.

Another choice concerns target words with no source alignment. Such words still need to enter the translation rules somewhere. Travatar supports placing them at the highest available position or exploring all allowable positions. These policies can yield different rule inventories because attachment determines which fragments contain the target material.

The experiment uses top attachment. The paper contrasts this with the more expansive attachment procedure used by Moses in its comparison. That difference becomes relevant when interpreting the much larger Moses syntax-based rule table. It is an extraction-policy distinction alongside the difference in formalism, so it limits any attempt to attribute every observed effect to tree transducers alone.

Binarization is another preparation decision. Binarization restructures a representation that allows a syntactic node to have multiple children into smaller branching configurations suited to the procedures for extraction and decoding. Travatar offers left and right variants, while the reported experiment chooses right binarization. The paper later identifies more advanced selection of binarization direction as a development opportunity rather than an evaluated feature of the main setup.

Scoring rules and learning weights

Extracted rules receive several kinds of scores. The paper lists conditional translation probabilities in both directions, lexical translation probabilities, phrase-frequency information, and counts related to words and phrases. These provide different evidence about a rule’s suitability. A often observed mapping and a lexically plausible mapping need not be interchangeable signals, so the scoring representation keeps them distinguishable.

Rule scores use sparse vectors. A sparse representation stores the feature entries that apply instead of requiring every rule to carry an explicitly populated value for every possible feature. The authors present this as support for a large, extensible feature collection. It is a practical architectural choice that makes additional scoring evidence easier to incorporate.

The paper does not write mathematical formulas for the transduction, scoring, or tuning procedures. Its explanation is at the level of representations, algorithms, supported options, and experimental settings. As a consequence, a precise account should identify those procedures without inventing an equation and presenting it as part of the paper.

After initialization, tuning adjusts parameters according to translation quality on development material. Travatar supports minimum error rate training, or MERT, and a hypergraph version of that procedure. MERT searches for weights that improve the selected evaluation measure over translation candidates. Hypergraph support gives an additional structured representation for tuning alternatives, but the main experiment uses lists of candidates.

The software can tune against BLEU or RIBES and has an interface for adding measures. It also includes preliminary online-learning implementations involving a structured perceptron and regularized structured support-vector learning with FOBOS. These are software capabilities described by the authors; the main comparison does not establish their effectiveness. Further methods, including MIRA and AROW, appear as plans.

Decoding a new sentence

Decoding searches for a target output compatible with the source structure and translation rules. Travatar follows the bottom-up forest-to-string procedure associated with Forest-Based Translation. Bottom-up processing builds translations for smaller structural units and combines them into translations for larger units.

With tree input, the structural alternatives are constrained by the selected parse. With forest input, alternative edges allow different derivations to participate. The translator can therefore choose among both translation options and the supplied syntactic alternatives. The forest does not contain every imaginable analysis: its usefulness depends on which alternatives the parser and forest-construction procedure retained.

The search is approximate. Travatar uses beam search implemented through cube pruning, allowing a balance between exploration and speed. Combining candidate translations can create many possible combinations. Cube pruning controls which combinations are explored rather than exhaustively materializing the full space. A search limit consequently forms part of the experimental configuration.

Rule lookup is organized to match this structured search. The source sides of rules are stored in a compact trie implemented through marisa-trie. A trie shares prefixes among stored keys. Travatar traverses the source structure depth-first from left to right in a way that supports prefix lookup, making the representation of rule patterns compatible with the indexing operation.

Target-language scoring uses KenLM. In particular, the implementation retains information about the left and right boundaries of partial translations, supporting their combination during syntax-based decoding. This complements source-side rules: structural compatibility identifies allowable constructions, while target-language scoring helps judge the fluency of the resulting sequence.

Evaluating and comparing outputs

The toolkit includes an evaluation program for translation scores and system comparisons. BLEU and RIBES are central to the experiment. Their separate use matters because the paper’s own results show that an advantage under one does not guarantee the same ranking under the other.

The evaluator also supports bootstrap resampling for significance assessment, following the cited work on statistical testing in translation evaluation. This moves comparison beyond reporting isolated point scores. However, the significance notation in the results caption requires caution, discussed below.

Taken together, the stages make Travatar a research pipeline rather than only a decoding executable. Researchers can vary alignments, parsers, extraction policies, scoring features, and search settings. That flexibility is valuable, but it also means a result must be attached to its full configuration. The name of the toolkit alone does not identify the conditions responsible for a translation score.

Experiments and results

Task, data, and shared settings

The validation task is translation from English into Japanese using Wikipedia articles from KFTT. Training uses 405k sentences selected with a length limit under 60. The development split supplies tuning data, and final quality is measured on the test split. The paper does not give separate development and test sentence counts in its experimental description.

English tokenization uses the Stanford tokenizer. Japanese segmentation uses KyTea, associated with the cited work on pointwise morphological analysis. These preparation choices establish the units on which training and evaluation operate. They should be understood as part of the reported setup rather than incidental implementation details.

Every system uses a 5-gram target-language scoring component with Kneser-Ney smoothing. An n-gram conditions scoring on a bounded local word history. Sharing this component’s order and smoothing approach reduces a potential source of variation across the compared systems, though it does not make their complete configurations identical.

Tuning maximizes BLEU using MERT over 200-best translation lists. The toolkit’s more advanced tuning capabilities are therefore not the basis of the headline experiment. This is an important distinction between what the software supports and what the reported numbers validate.

The main comparison includes phrase-based Moses and hierarchical phrase-based Moses, alongside a syntax-based Moses configuration and Travatar. Phrase-based and hierarchical training follow their tutorial defaults. Alignment can come from GIZA++ or Nile; the main results use the aligner selected through development performance. A separate experiment then exposes alignment-dependent results rather than leaving that choice entirely hidden.

Syntax and decoding settings

Egret supplies English parses for the main syntax-based systems. The authors chose it because they found it effective and because it readily supplies forest output. Rule extraction uses its preferred trees, reshaped through right binarization, with lowercasing applied after parsing.

Travatar’s composed rules have a size limit of 4. Each rule permits at most 2 non-terminals and 7 terminals. These settings bound the structural and lexical complexity of the learned inventory. Target words without source alignments attach at the top, and count normalization is not applied.

The Travatar tree configuration decodes the preferred parse. Its forest configuration uses edges appearing in the parser’s 200-best list. Cube pruning applies a pop limit of 1000 hypotheses. Thus, the forest experiment expands the structural alternatives available during decoding while retaining explicit limits on the search.

Main translation scores

The BLEU comparison places forest-based Travatar highest among the reported systems. Single-tree Travatar improves over the phrase-based and hierarchical baselines, but syntax-based Moses obtains a higher BLEU score than that single-tree configuration.

KFTT English–Japanese test translation, BLEU

Forest decoding gives Travatar the strongest BLEU result in this comparison.

KFTT English–Japanese test translation, BLEUMoses phrase-based: 22.27Moses phrase-based22.27Moses hierarchical: 22.04Moses hierarchical22.04Moses syntax-based: 23.81Moses syntax-based23.81Travatar tree-to-string: 23.15Travatar tree-to-string23.15Travatar forest-to-string (this paper): 23.97Travatar forest-to-string (this paper)23.97
The numbers
System or settingBLEU
Moses phrase-based22.27
Moses hierarchical22.04
Moses syntax-based23.81
Travatar tree-to-string23.15
Travatar forest-to-string (this paper)23.97

The RIBES comparison gives a somewhat different view. Single-tree Travatar already exceeds syntax-based Moses on this measure, and the forest configuration improves the reported result further. The paper cites RIBES’s evaluation work for distant language pairs as the basis for including this additional assessment.

KFTT English–Japanese test translation, RIBES

The forest configuration leads, while the single-tree comparison differs from the BLEU ranking.

KFTT English–Japanese test translation, RIBESMoses phrase-based: 68.37Moses phrase-based68.37Moses hierarchical: 70.29Moses hierarchical70.29Moses syntax-based: 72.01Moses syntax-based72.01Travatar tree-to-string: 72.32Travatar tree-to-string72.32Travatar forest-to-string (this paper): 73.27Travatar forest-to-string (this paper)73.27
The numbers
System or settingRIBES
Moses phrase-based68.37
Moses hierarchical70.29
Moses syntax-based72.01
Travatar tree-to-string72.32
Travatar forest-to-string (this paper)73.27

The authors interpret the syntax-based systems as outperforming phrase-based and hierarchical translation on this task. They also report significant improvements when Travatar moves from a preferred tree to forest decoding. The conclusion is supported by the direction of the displayed scores, but exact significance interpretation must account for the caption issue discussed under limitations.

The result supports the usefulness of the evaluated forest configuration, not a universal ordering of translation architectures. In particular, the comparison between single-tree Travatar and syntax-based Moses is mixed across the measures. Keeping that mixed result visible is essential to understanding what the experiment establishes.

Rule inventory and decoding speed

The rule inventories vary substantially. Phrase-based Moses has 10.1M rules, while hierarchical Moses has 34.2M. Syntax-based Moses has 52.3M. Both Travatar configurations use an inventory reported as 9.57M rules.

The shared Travatar inventory helps interpret the forest comparison: the stronger forest result is not accompanied by a larger reported rule table. The changed decoding input and search provide additional opportunities to use the same inventory. This does not mean the search costs are unchanged.

Throughput is 5.69 sentences per second for phrase-based Moses and 1.36 for hierarchical Moses. Syntax-based Moses processes 1.71 sentences per second. Travatar’s preferred-tree configuration reaches 3.29, while its forest configuration reaches 1.11.

These figures reveal a practical tradeoff. The preferred-tree Travatar configuration combines a smaller reported grammar than syntax-based Moses with higher throughput, while the forest configuration spends more decoding effort to obtain stronger translation scores. The paper relates the larger Moses grammar in part to extraction policies, especially its more extensive handling of unaligned target words.

Rule counts should not be confused with measured memory in bytes. The authors discuss a larger memory footprint for the larger grammar, but the table supplies inventory sizes instead of a detailed memory profile. Similarly, the throughput values describe the tested configurations; the experiment does not establish a hardware-independent performance guarantee.

Alignment quality

The auxiliary alignment evaluation reserves 10% of the available manually aligned KFTT material. On that held-out portion, GIZA++ records alignment F-measure 58.32%, and Nile records 64.22%.

Held-out KFTT word alignment, F-measure

Nile produces stronger alignment scores in the reported held-out comparison.

Held-out KFTT word alignment, F-measureGIZA++: 58.32GIZA++58.32Nile, used by the strongest Travatar setting (this paper): 64.22Nile, used by the strongest Travatarsetting (this paper)64.22
The numbers
System or settingalignment F-measure %
GIZA++58.32
Nile, used by the strongest Travatar setting (this paper)64.22

Nile is an external alignment component, not a newly introduced Travatar algorithm. Its role in the strongest configuration should therefore remain distinct from the contribution of the translation engine. The experiment asks how choosing that component affects the translation systems that consume its output.

The later translation comparison shows that better alignment scores do not yield uniform gains across all architectures. That finding makes the auxiliary experiment especially useful: it provides evidence about the behavior of an entire pipeline rather than assuming that a stronger intermediate score must propagate unchanged to every downstream task.

What the ablations show

Forests versus the preferred parse

The paper does not present an exhaustive ablation study removing every component. It offers controlled configuration comparisons that illuminate particular choices, especially parse alternatives, parser selection, and alignment.

The clearest comparison is between Travatar with preferred-tree input and Travatar with forest input. Both have the same reported rule inventory. Forest decoding supplies additional structural alternatives, and the main results improve under both translation measures. This is evidence that committing to the preferred parse can leave useful translation opportunities unavailable.

The comparison also shows the cost of keeping those alternatives. Forest throughput is lower in the reported setup. The result therefore supports a quality–speed tradeoff under the chosen forest construction and search limit, rather than a free improvement.

It does not isolate every possible explanation for the gain. The experiment does not annotate which individual parsing errors were corrected by translation, how frequently the selected derivation departed from the preferred parse, or which ambiguity types contributed most. The representational account makes the improvement plausible, but the paper does not provide a detailed error taxonomy connecting each gain to a recovered attachment.

Parser choice changes downstream quality

The auxiliary experiment compares Stanford-parser input with Egret input for Travatar. With GIZA++ alignments, the Stanford tree configuration obtains BLEU 21.47 and RIBES 70.94. Egret tree input obtains BLEU 22.82 and RIBES 71.90.

With Nile alignments, the Stanford tree configuration obtains BLEU 22.44 and RIBES 72.02. Egret tree input obtains BLEU 23.15 and RIBES 72.32. The authors describe the Stanford configuration as significantly weaker than its Egret counterpart.

This supports the conclusion that parser selection matters to translation in this setup. It does not provide a direct parse-accuracy comparison on the evaluated source material. The paper explicitly states that labeled data needed for that calculation is unavailable. Its explanation refers to Egret’s relationship with the Berkeley parser and earlier parser findings, but the measured evidence here is translation quality.

That distinction is useful beyond this experiment. A downstream task can show that a parser is more useful for a particular pipeline without proving that all its structural decisions are more accurate. Translation rules, extraction choices, and parser conventions can interact. A careful conclusion stays attached to the tested combination.

Alignment improvements depend on the architecture

For phrase-based translation, the auxiliary GIZA++ condition obtains BLEU 22.28 and RIBES 68.37. With Nile, the corresponding scores are BLEU 22.37 and RIBES 68.43. The improvement is not a general pattern across the non-syntactic systems: the hierarchical configuration records BLEU 22.05 and RIBES 70.29 with GIZA++, compared with BLEU 21.77 and RIBES 69.31 with Nile.

This matters because the alignment F-measure comparison favors Nile. Better correspondence judgments at the alignment level do not force every translation architecture to improve. The authors connect this observation to earlier work questioning a simple relationship between alignment and translation quality.

The syntax-driven settings respond more consistently. For Stanford tree input, both reported measures are higher with Nile than with GIZA++. The same holds for Egret tree input. Egret forest decoding obtains BLEU 23.35 and RIBES 71.77 with GIZA++, compared with BLEU 23.97 and RIBES 73.27 with Nile.

The authors report significant alignment-related translation gains across their tree-to-string configurations. This supports their conclusion that alignment quality is important for the syntax-driven setup they built. It should not be expanded into a claim that supervised alignment always improves all translation systems.

The GIZA++ Egret comparison also prevents an overly simple story about forests. Egret forest input has higher BLEU than Egret preferred-tree input under that aligner, but its RIBES is lower. Forests are therefore not uniformly better under every reported component choice and measure. Their strongest result emerges from a particular configuration, which is precisely why the alignment comparison belongs in the interpretation.

Extraction policy is an explanation, not a complete isolation

The authors relate syntax-based Moses’s larger grammar and its BLEU advantage over single-tree Travatar in part to a more permissive treatment of unaligned target words. This is a reasonable configuration-level explanation supported by the different extraction policies and inventory sizes.

However, the paper does not present a matched experiment changing only that attachment policy within an otherwise identical system. Count normalization also differs, and the underlying rule frameworks are different. The evidence therefore supports the existence of an extraction tradeoff, while leaving its exact causal contribution unresolved.

There is likewise no reported sweep over rule composition limits, terminal limits, binarization direction, or cube-pruning budgets. Those settings define the experiment; they are not individually validated as optimal. Travatar’s toolkit makes such investigations possible, but the demonstration paper does not perform them all.

Limitations

Limits acknowledged by the authors

Parsing remains a source of error. The motivation for forests is that a preferred tree may be wrong, but a forest only helps when a useful alternative is retained and the translator can select a productive derivation. The paper presents forest decoding as a way to reduce the consequences of early parsing mistakes, not as a guarantee of correct structural understanding.

The authors also acknowledge the lack of labeled parse data for their parser comparison. As a result, they cannot directly report attachment accuracy on the relevant evaluation material. They can compare translation outcomes, which are practically important, but cannot fully separate parser correctness from compatibility with the rest of the translation pipeline.

Several capabilities remain preliminary or planned. Online-learning methods are described as preliminary. Target-side syntactic information also has preliminary support, through either hard constraints or softer constraints related to syntax-augmented translation. The main experiment does not evaluate those extensions.

The conclusion identifies further work on extraction, count regularization, forest-based extraction support, and selection of attachments or binarization through EM. It also proposes decoding improvements and broader parallelization. These are the authors’ intended development paths. They should not be credited as measured achievements of the reported release merely because the architecture can accommodate them.

Limits visible in the experimental design

The empirical scope is a particular English-to-Japanese Wikipedia translation task. Documentation for other source languages and a generally extensible implementation do not establish comparable accuracy across languages, genres, or structural conventions. The experiment validates a useful configuration in its stated setting.

The tree-transducer and SCFG comparison is not a perfectly isolated test of representational expressiveness. Extraction policies differ, and those policies affect grammar size and possibly coverage. The internal-structure argument is clear, but the observed system differences cannot be assigned entirely to the formalism.

The paper’s numerical reporting contains minor inconsistencies that should remain visible. The headline table gives phrase-based BLEU 22.27, while the auxiliary GIZA++ entry gives 22.28. For hierarchical translation, the corresponding BLEU entries are 22.04 and 22.05. These are reported values from different tables; the paper does not explain the discrepancy, so they should not be silently reconciled.

The significance caption is also problematic. It associates statistical significance with a printed condition of p > 0.05, while the surrounding discussion identifies certain improvements as significant. The inequality makes the caption difficult to interpret as a conventional threshold statement. A careful account can report the authors’ significance claims while distinguishing them from an independently verified testing specification.

The evaluation relies on automatic measures. BLEU and RIBES provide complementary comparisons, but the paper does not report a human assessment of adequacy, fluency, or particular meaning errors. Stronger scores therefore support better measured translation under these metrics, rather than a complete account of translation quality.

Finally, the resource comparison is informative but incomplete. Rule counts and sentences per second expose important tradeoffs, yet they do not supply a full memory profile, training-cost study, or broad scaling analysis. The work establishes a functioning research toolkit with competitive results; it does not determine the best configuration for every deployment constraint.

What came after

The later citation record places Travatar in the background of work on neural translation, lexical information, and decoding. That establishes continued relevance as a cited research contribution. It does not, by itself, establish that those later systems adopted tree transducers, packed parse forests, or Travatar’s implementation.

Incorporating Discrete Translation Lexicons into Neural Machine Translation addresses a different failure point: attentional translation systems can mishandle rare content words, producing a contextually plausible substitute that changes the meaning. The stated example replaces Tunisia with Norway. Its connection to Travatar is usefully understood at the level of structured translation evidence: both research directions question whether an undifferentiated translation process has enough access to the information needed for faithful output. The available account does not specify which Travatar technique this later work reused, so a direct implementation lineage would be unsupported.

OpenNMT is identified as an open-source toolkit for neural machine translation. Its citation connects Travatar’s toolkit contribution with a later translation-software context. A relevant comparison is the role of reusable infrastructure: Travatar made a particular syntax-based workflow available for research, while the later title identifies another toolkit centered on a different translation approach. The citation information does not establish shared code, shared decoding algorithms, or a transfer of Travatar’s rule representation.

Quality-Aware Decoding for Neural Machine Translation returns, by its stated subject, to decisions made during decoding. That makes it thematically relevant to Travatar’s separation of candidate generation, scoring, and search. However, the available description supplies no details about its mechanism or experiments. Its citation should therefore be read as evidence of a later connection in the translation literature, without inventing a specific borrowing from forest-to-string decoding.

These later works broaden the context in which Travatar can be read, but the original paper’s contribution remains precise. It provided an accessible implementation of tree-transducer translation, demonstrated the usefulness of forest input in a defined experiment, and exposed how upstream syntax and alignment interact with downstream search. Those are concrete results and reusable research practices, even where later systems pursue different representations.

Cite

Cite as Graham Neubig. 2013. Travatar: A Forest-to-String Machine Translation Engine based on Tree Transducers. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics: System Demonstrations.

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

@inproceedings{graham2013travatar,
  title = {{Travatar: A Forest-to-String Machine Translation Engine based on Tree Transducers}},
  author = {Graham Neubig},
  booktitle = {Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics: System Demonstrations},
  year = {2013},
  url = {https://aclanthology.org/P13-4016/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/neubig-2013-travatar-forest-string-machine-translation/