Elamur Research

Translation Rules with Right-Hand Side Lattices

Paper · 2014 · Fabien Cromières and Sadao Kurohashi

Summary

A translation rule learned from a bilingual example can leave important choices unresolved. An English article may be needed even when no word in the Japanese input corresponds to it. A verb form that fits one subject may clash with another. A translated phrase may have several plausible positions relative to the word it depends on. In corpus-based machine translation, committing to these details during rule extraction can remove a good translation before the system has enough context to recognize it. Listing every combination can preserve the choices, at the cost of making the decoder process many rules that share most of their words.

Fabien Cromières and Sadao Kurohashi give each rule a graph on its right-hand side, where an ordinary rule has a single sequence of words and placeholders. A complete path through the graph, called a lattice, specifies one such sequence. A branch can offer alternative words, an empty edge can let the decoder skip a word, and different paths can put a placeholder in different positions. The decoder scores these choices alongside the surrounding English, using a language model to evaluate word sequences. The authors also describe how to merge redundant parts of a lattice before decoding while retaining the alternatives and their scores.

On the 1800 Japanese-to-English patent development sentences, the authors ran their decoder on the original lattices, on optimized lattices, and on rules that explicitly enumerated the paths. The original form took 6.13s per sentence on average, the optimized form took 3.31s, and the expanded form took 9.95s. The optimized representation also used the least peak memory. A separate comparison with a strong decoder that read expanded rules yielded similar average search times and much lower peak memory for the lattice system. The timing definitions differ in that comparison because the flat-rule decoder’s time includes loading its input files.

The paper also asks whether preserving choices improves the translations themselves. On the Japanese-to-English patent task, the flexible rules scored 29.43 BLEU, a measure of overlap with reference translations, and rules that committed to one form during extraction scored 28.91. That comparison changes which translations are available. The speed and memory experiments instead change how an equivalent set of candidates is represented. Together they show how a translation system can defer decisions that need context and search the resulting alternatives in a compact form.

Deep dive: Translation Rules with Right-Hand Side Lattices

Translation rules with right-hand side lattices let a decoder choose among word forms and orders while sharing the work of searching them. · about 33 minutes to read

The problem and its context

Finding a translation inside a set of possibilities

The paper starts from a division of labor in corpus-based translation. Given an input sentence, one part of the system specifies the translations it can produce and how each is scored. Another part, the decoder, searches for the highest-scoring candidate. The specification is implicit because the number of possible complete sentences can grow exponentially with the length of the input. A description based on reusable pieces lets the system say how to construct those sentences without first writing them all down.

A common description uses a cycle-free context-free grammar. A rule pairs a symbol on the left with a sequence on the right. The right-hand sequence may contain actual output words and nonterminals, which are placeholders to be expanded by other rules. A sentence is obtained by starting with the designated top-level nonterminal and continuing until the placeholders have all been replaced. A single target-side rule is therefore a recipe for a fragment of a candidate. Its contribution to the whole sentence depends on the recipes chosen for its placeholders and on where the resulting fragment is used.

In the translation setting of the paper, the source sentence has already constrained the grammar under consideration. For example, a system can match or parse the source using bilingual rules and take the target halves of the rules that apply. These target halves describe ways to translate that particular sentence. Hierarchical phrase-based and syntax-based systems give rise to such descriptions naturally. The paper also observes that phrase-based translation can be expressed in this framework. Its proposal concerns the form of the target-side search space independently of which of these routes produced it.

If every rule carried a fixed score and the total were just the sum of those scores, decoding could save the best expansion of a placeholder and reuse it wherever that placeholder appeared. The outside words would never change which expansion was best. Word-sequence scoring changes that relationship. A fragment beginning with a particular article or ending with a particular verb contributes differently when joined to different neighbors. It may earn a good score as a fragment and a weaker score once its boundary is joined to another fragment. Keeping a single best expansion would discard precisely the alternatives whose value depends on that join.

The search thus has to distinguish partial translations by the context they present to the rest of the sentence. Keeping every distinct history would make the search expensive, so decoders summarize histories and limit the number of alternatives they extend. The paper situates its algorithm in this tradition. It describes stack-based search in statistical phrase-based translation and gives a central role to cube pruning, introduced in hierarchical phrase-based translation. Cube pruning limits which combinations of promising partial translations are tried. The paper also discusses an exact decoding method based on Lagrangian relaxation, which it characterizes as slow in practice.

What the bilingual example leaves open

The system that motivated the paper translates from one dependency tree to another. In such a tree, a governor is a word to which another word or phrase is attached. The translation system matches portions of the input against aligned bilingual examples and uses the alignment and dependency structure to construct target-side rules. An example can provide good evidence for part of a rule while leaving another decision uncertain. The alignment may suggest what a certain verb means or where a dependent attaches without settling every word that should appear when the rule is used in a new sentence.

The authors identify uncertainty from imperfect evidence and uncertainty that originates in context. A target word with no alignment gives an extractor an ownership problem. The word was present in the example, yet the alignment gives no direct evidence of which source material should bring it into a new translation. English articles in Japanese-to-English translation illustrate the issue. Sometimes the output needs an article, and the local bilingual match can leave its inclusion unresolved. A heuristic that commits to inclusion or omission at extraction time has only the evidence available at that point.

A context-sensitive choice can remain open even when the alignment clearly identifies the word being translated. An English form of to be can depend on the subject in the eventual translation. A rule covering a large piece of the Japanese sentence can still lack the subject context needed to choose the appropriate English form. The authors describe a similar gap between grammatical attachment and order. The system can have evidence about which English word governs a placeholder while remaining uncertain about where to put that placeholder among the governor’s other dependents. Attachment supplies part of the answer and leaves the linear arrangement to be decided.

An ordinary grammar can express all of these alternatives by adding rules. The difficulty becomes visible when choices occur together. Each complete right-hand sequence repeats the material shared with other sequences, and every permitted combination needs its own entry. A decoder presented with those entries has to discover during search where the work is equivalent. A graph can express common material directly. Its branches localize decisions about a word, an omission, or an ordering, and its joins mark places where the remaining sequence can be shared. This turns the internal structure of a rule into something the decoder can use.

Where the proposal sits among finite-state approaches

The paper places lattices within earlier work on weighted finite-state representations. It cites the broader account of finite-state transducers in language and speech processing and gives examples of translation systems that used transducers. These include work on decoding IBM translation systems, machine translation with inferred stochastic finite-state transducers, and work on tree transducers for syntactic translation. In the account given here, much of that research uses a transducer as the main device describing the translation process. Cromières and Kurohashi retain rules with nonterminals and use a finite-state graph inside each rule.

The closest approach discussed in the paper also combines hierarchical rules with finite-state representations. De Gispert and colleagues take the target-side grammar and assemble a lattice for the whole sentence from the bottom up, minimizing it as they go. Once the full candidate space is in one graph, equivalent pieces can potentially be merged across the boundaries of individual rules. That scope comes with a construction cost. The authors explain that a large grammar can produce a top-level graph so big that vertices have to be pruned while it is being built. Expanding reusable lower-level graphs into that larger graph can also repeat work when word-sequence scores are applied.

Cromières and Kurohashi keep the individual lattices and refer to them by nonterminal. This gives their decoder a place to reuse the work of translating a child fragment, even when that child appears in several rules. Their lattice optimization is likewise local to each right-hand side. Global minimization and local reuse are distinct opportunities, and the choice of where to put the graph determines which opportunity is readily available. The paper also mentions related phrase-based work by Heafield and colleagues that groups partial hypotheses in a trie to make use of shared prefixes. That work concerns the hypotheses accumulated by the decoder. Here the sharing can already be present in the rules supplied to it.

The method, step by step

From an aligned example to a rule with alternatives

The authors worked with the KyotoEBMT dependency-to-dependency translation system. It builds rules from aligned bilingual examples and uses them where the input has a matching structure. The original system translates between trees, but the decoding procedure described in the paper operates on flattened target rules. A target tree gives rise to a sequence of English words and nonterminals. The tree-to-tree system can retain dependency information in state features, while the algorithm presented here concentrates on the string and its word-sequence score. This setup makes the procedure applicable to the kind of target fragments found in tree-to-string translation as well.

Consider a flat right-hand side first. Its words are emitted in the order written, and each nonterminal is replaced by a translation found through its own rule. An occurrence of a nonterminal can therefore stand for a long or short phrase even though it occupies a single position in the rule. In a lattice right-hand side, the sequence is determined by the path taken through a graph. Traversing an edge labeled with a word contributes that word. Traversing an edge labeled with a nonterminal contributes a translation of the corresponding fragment. An epsilon edge contributes an empty string, so it can connect two parts of the graph without adding anything to the output.

This makes several decisions easy to represent where they arise. For a target word with questionable alignment, the authors offer a route through the word and a parallel route through an epsilon edge. Their example lattice allows for and the to be skipped in this way. For ordering ambiguity, the same example offers different paths for the placement of bus and the nonterminal X₂. The child represented by X₂ can still be translated through the same child rule whichever position it occupies. For surface variation, parallel edges can offer is and are at the same position. The authors apply the same idea to a and an.

A surface variant can affect more than the quality of the final wording. If the decoder sees only an ill-fitting verb form, it can rank the whole candidate poorly and discard it before that form could be repaired. Making the choice available during decoding lets the candidate compete with a different form from the start. The corresponding observation holds for an optional word. A route that skips an article can have its own penalty, so the system can weigh the evidence from the surrounding words against a learned preference about omissions. A branch has both a linguistic interpretation and a role in the score.

Building and decoding translation rules with lattices

The steps in order.

Building and decoding translation rules with latticesStep 1: Extract target fragments from aligned bilingual examples1. Extract target fragments from aligned bilingual examplesStep 2: Flatten target trees into words and nonterminals2. Flatten target trees into words and nonterminalsStep 3: Encode omissions, orderings, and forms as paths3. Encode omissions, orderings, and forms as pathsStep 4: Merge redundant vertices within each lattice4. Merge redundant vertices within each latticeStep 5: Extend partial translations in topological order5. Extend partial translations in topological orderStep 6: Combine child translations and prune scored states6. Combine child translations and prune scored statesStep 7: Recover the best retained sentence7. Recover the best retained sentence

What a lattice rule denotes

The graph is directed and acyclic. Its vertices have identifiers, and its edges carry labels and may also carry scores and feature values. The designated start can reach every vertex, and every vertex can reach the designated end. A complete path from start to end spells a right-hand sequence if its epsilon labels are read as empty strings. The edge scores along that path add together, as do the edge feature values. The same lattice can therefore describe many scored rules, even if a large fraction of those rules contain the same stretches of words or the same placeholders.

e : v₁ → v₂

Here e is an edge of a lattice, v₁ is its source vertex, and v₂ is its destination vertex. The arrow shows the permitted direction of traversal. The edge’s label specifies what to emit or expand along that traversal, and its score and feature values can affect the decision independently of the label.

RHS(X)

X is a nonterminal. RHS means right-hand side, and RHS(X) denotes the lattice for expanding X. The paper uses one lattice for each left-hand nonterminal. If extraction yields several separate right-hand lattices for the same symbol, their starts and ends can be identified to form a single lattice whose branches contain the alternatives. Choices from different examples and choices introduced inside an example can then coexist within the same representation.

Rₜ

Here T is the weighted set of candidate translations for a particular input. Rₜ denotes a rule representation of that set, with the subscript identifying the set being represented. The distinction matters because a weighted set of candidates can have several representations. One can list every path as a separate flat rule or preserve the same paths in a graph. The decoder’s data structures and pruning decisions can respond differently to the two forms even when the available translations and complete scores agree.

The acyclic structure matters at two levels. Within a lattice, it lets the decoder process vertices in topological order, so an edge always goes from a vertex processed earlier to one processed later. Between lattices, the translation grammar is cycle-free, so a nonterminal can be expanded by following its dependencies down to rules that emit words or empty strings. A path through the parent graph is therefore a sequence of decisions at its own level, with each nonterminal edge referring to a smaller decoding problem. It need not contain a separate copy of the child graph.

The meaning of the representation comes from those paths and their expansions. If the lattice were unfolded into flat rules, the same word and nonterminal sequences would be available. The graph’s advantage is visible when paths branch and rejoin. A shared suffix appears only once in the graph even when several prefixes lead to it. Equally, a shared prefix can lead to different continuations without being processed separately for each continuation. This is how a graph of modest size can describe a much larger family of right-hand sides.

Sharing equivalent parts before scoring sentences

The authors optimize each lattice before running the search. Their procedure is adapted from finite-automaton minimization and has a backward pass followed by a forward pass. In the forward pass, a vertex becomes eligible for examination when the vertices feeding into it have already been processed. The procedure removes duplicate incoming edges and looks for eligible vertices with the same incoming alternatives. If two vertices can be reached from exactly the same predecessors with matching edge labels and weights, either of their continuations could already follow each of those incoming alternatives. Their outgoing edges can therefore be collected at a single vertex.

incoming(v₃) = incoming(v₁) = incoming(v₂)

incoming denotes the set of edges entering a vertex, compared by where they come from and what they carry, with the destination being the vertex under comparison. v₁ and v₂ are the original vertices. v₃ is the merged vertex. The equality says that the merged vertex retains the incoming alternatives common to the originals.

outgoing(v₃) = outgoing(v₁) ∪ outgoing(v₂)

outgoing denotes the edges leaving a vertex. The sources of the retained edges become v₃, and the union symbol ∪ collects the continuations from both v₁ and v₂. A path through the new vertex can use a continuation from either original vertex. Every entrance that now reaches such a continuation could already reach the relevant original vertex, which is why the operation preserves the alternatives.

The order of examination is part of the procedure. The forward pass begins with the start vertex. It marks outgoing edges as it processes a set of candidates and forms the next candidate set from unprocessed vertices whose incoming edges have all been marked. A merge among earlier vertices can make edges into a later vertex duplicates. Removing these duplicates before comparing incoming edge sets can reveal another opportunity to merge. The backward pass applies the same reasoning from the end of the lattice, interchanging incoming and outgoing edges. It discovers vertices with equivalent continuations and combines their entrances.

Both passes work without knowing what the rest of an English sentence will look like. Their comparisons concern the alternatives the rule already defines. An apparent match between two words on edges is insufficient if the edges record different feature values. For instance, an epsilon edge that explicitly skips a word carries a feature with value 1 for that event. If another route emits the same surface sequence with a different omission count, the system may want to distinguish the routes for parameter tuning. Keeping the feature values in the comparison preserves what the decoder can report about a derivation and how a change in feature weights can affect it.

In the paper’s setting, features can record the use of a rule, the choice of a word variant, the count of words skipped, or the word-sequence score. Features attached to particular choices travel through the graph with those choices. The authors discuss how feature distinctions can block merges that the surface strings alone would permit. They mention weight pushing generalized to multiple values as a way to make more vertices eligible for merging. The reported optimization retains the edge features. It changes the structure inside the lattice and keeps the inventory of nonterminals fixed.

Once constructed, the compact graph can be searched repeatedly. The authors point to parameter tuning as a setting in which the same input sentences may be decoded many times. The alternatives can be retained as a graph while feature weights are adjusted. This separates work done on the shape of the rules from work done to rank translations under particular weights. An equivalent representation can still lead an approximate search to different intermediate decisions because the places where hypotheses meet, compete, or get pruned can change with the graph.

How the decoder scores a path in context

The complete translation score combines additive edge scores with a word-sequence score. The latter is based on an n-gram, which makes the probability assigned to a word depend on a bounded amount of neighboring history. With a fixed order, a partial translation can carry the information needed at its boundaries instead of exposing every interior word during each future comparison.

score(t) = λ · lm(t) + ∑ₑ score(e)

t is the completed translation along the derivation being scored. score(t) is its total score. lm(t) is its word-sequence log-probability, and λ is the weight given to that term. The dot denotes multiplication. The summation sign ∑ adds score(e), the score contributed by each traversed edge e, including edges in the expansions of nonterminals. A route can affect both parts of the total. Choosing an epsilon edge changes the edge scores and can also make two words neighbors that would have been separated if the omitted word had appeared.

The score of a fragment cannot be finalized for every possible placement while that fragment is still in isolation. Some of its word probabilities depend on words just outside it. During search, the decoder retains a state describing what can matter when a fragment is joined to another fragment. It also retains a partial score, including an estimate for score contributions that cannot yet be completed. The estimates, called rest costs, help order partial hypotheses for pruning. The paper draws on earlier techniques for reducing equivalent boundary states, including left language model state for syntactic machine translation.

(l, r, s)

l is the left boundary state, representing the leading words relevant when something is placed before the fragment. r is the right boundary state, representing the trailing context relevant when something follows it. s is the partial score, including the rest-cost estimate. The order n of the word-sequence scorer bounds the context under consideration. State reduction can represent some boundaries in less space than a literal list of n words and identify additional histories that have equivalent effects on future scores.

At a fixed lattice vertex, two hypotheses with equivalent left and right states have the same continuation possibilities and the same relevant boundary behavior. A continuation that helps one helps the other by the same amount, so the decoder retains the hypothesis with the higher score. This is hypothesis recombination. It operates during decoding, after the words chosen along a partial path have determined the state. The earlier lattice merging relies on the structure and features of the graph itself. Both exploit equivalence, but they have different evidence available and take place at different times.

Joining fragments and extending edges

To extend a partial translation with the expansion of a nonterminal, the decoder joins two scored states. The left fragment provides the words before the join, and the child supplies the words after it. The score for their concatenation incorporates the interaction across that boundary.

(l₁, r₁, s₁) ⊕ (l₂, r₂, s₂) = (l₃, r₃, s₃)

The symbol ⊕ means ordered concatenation of scored states. The subscripts ₁ and ₂ identify the first and second fragments. The subscript ₃ identifies their combination. In each triple, l and r are the left and right boundary states and s is the partial score. l₃ and r₃ are computed for the combined fragment and reduced when equivalent context can be represented more compactly.

s₃ = s₁ + s₂ + λ · lm(r₁, l₂)

s₁ and s₂ are the partial scores already associated with the fragments, and s₃ is the new partial score. λ is the weight on the word-sequence term. lm(r₁, l₂) evaluates the leading context l₂ of the second fragment with the trailing context r₁ of the first, adjusting the rest costs carried in the separate scores. This is the part of the evaluation that requires the two fragments to meet. Their interior contributions can be carried into the join through their existing scores.

A word-labeled edge has a simpler effect. It contributes its own score and appends a known word. That word can be scored given the right state already at the source vertex. The boundary state is then updated for the extended fragment.

(l₁, r₁, s₁) ⊕ e = (l₂, r₂, s₂)

The triple with subscript ₁ is the state before crossing edge e, and the triple with subscript ₂ is the state afterwards. Here ⊕ means extending the partial fragment along the edge instead of joining it with a separately decoded child. l and r again describe the boundaries, and s records the partial score.

s₂ = s₁ + score(e) + λ · lm(word(e) | r₁)

s₁ is the old partial score and s₂ is the updated score. score(e) is the contribution of edge e, word(e) is its word label, and r₁ is the old right state. The vertical bar in lm(word(e) | r₁) means the word is evaluated conditional on that state. λ sets the weight of the conditional score. For an epsilon edge, traversal still contributes the edge’s score and features, while the visible word sequence and its boundaries stay the same. The authors use KenLM for operations that evaluate and combine word-sequence states.

Traversing a lattice and deciding what to keep

Every vertex has a list of scored states for partial translations reaching it. The list at the start is seeded with an empty state and no accumulated score. The decoder visits the vertices in topological order and extends the states on their outgoing edges. A word or epsilon edge takes a state directly to the destination after applying the edge operation. A nonterminal edge first requires the list of states returned by decoding the child’s right-hand side, then combines candidate states from that list with states reaching the edge’s source.

best[vₛ] = {(·, ·, 0)}

best stores the retained states at each vertex. vₛ is the start vertex, the brackets select its entry, and the braces denote the singleton collection used to initialize it. The dots inside the triple represent empty left and right states. 0 is the initial partial score in the paper’s prose description. The end vertex, written vₑ, is where completed states are collected. The printed pseudocode places the initialization at the end vertex, but the prose describes starting at vₛ, which is the initialization required by the forward traversal.

On a nonterminal edge, there may be many candidate prefixes and many child states. Trying every pair would recreate a combinatorial problem at each such edge. The paper uses a cube-pruning-style selection to try only the K most promising pairs according to the sum of their partial scores. K is a search limit. Once a pair is selected, the actual join accounts for the cross-boundary contribution described above. A pair that looks unpromising from the sum of its separate scores could do better after joining, which is one source of approximation.

For a word or epsilon edge, the paper uses a separate limit, K′. The decoration distinguishes this bound from K, which applies to pairs on a nonterminal edge. The decoder extends the highest-scoring states up to K′ from the source vertex of the word or epsilon edge. A newly produced state is inserted at the destination if its boundaries are new there. If a state with equivalent boundaries has already arrived, only the higher-scoring state is retained. The result at the end of a child lattice is a list of scored states that the parent can use under several surrounding contexts.

The decoder saves a child’s returned list so that later occurrences of the same nonterminal reuse it. For example, different routes that order X₂ relative to bus can consult the same child list and assess its joins in their respective positions. The child’s internal edges are processed in the child lattice, and each parent edge that uses it performs its own boundary combinations. The authors’ claim that a lattice edge is visited once concerns this traversal of the graph. The work at an edge can include extensions or combinations for many states.

Decoding the top-level nonterminal X₀ completes the sentence. In the paper’s description the final boundary markers are BOS and EOS, indicating the beginning and end of the sentence, with a score for the retained result. The algorithm is presented in terms of scores, but an implementation can retain the choices that produced a state and recover its words. The authors also point to a way to extend the procedure to a list of the highest-ranked translations. They describe their traversal as breadth-first in the sense that it systematically processes the lattice. They tried a best-first alternative with an A*-like search and report that it did not improve on the traversal they present.

Experiments and results

Data and what the comparisons measure

The evaluation uses Japanese-to-English patent data from the NTCIR-10 Patent MT task. The authors report that the training data contains 3 million parallel sentences. These are bilingual examples used by the translation system. For the representation experiment, the system generates lattice rules for each of the 1800 development sentences. The authors then derive optimized and expanded versions from those rules. The decoder comparison likewise uses files prepared for 1800 sentences. The translation-quality comparison reports results for the Japanese-to-English task, with no separate evaluation split identified in its account of that comparison.

The experiments ask different questions and use different measurements accordingly. Average search time describes the cost of decoding a sentence under a given representation or system. Peak memory describes the maximum memory used in a run. Counts of vertices and edges describe the search representation itself, both for a typical sentence as reflected in the average and for the largest reported case. The decoder’s internal score evaluates a candidate under the system’s scoring function. BLEU compares output with reference translations and is the paper’s measure of translation quality. A faster search, a better internal score, and a higher BLEU score are distinct findings.

One decoder, three representations

The original representation holds the rules in the form generated by the translation system. The optimized representation applies backward and forward merging to those lattices. The expanded representation writes out the paths as flat rules. The same lattice-rule decoder is used for the comparison, so the exercise examines how the structure of the input to search affects its cost. All three forms contain the alternatives introduced by the flexible rules.

Average search time by rule representation on the NTCIR-10 Japanese-to-English development set

The decoder searches the optimized lattices fastest and takes longest when the paths are listed as flat rules.

Average search time by rule representation on the NTCIR-10 Japanese-to-English development setOriginal lattices: 6.13Original lattices6.13Optimized lattices (this paper): 3.31Optimized lattices (this paper)3.31Expanded flat rules: 9.95Expanded flat rules9.95
The numbers
System or settingseconds
Original lattices6.13
Optimized lattices (this paper)3.31
Expanded flat rules9.95

Peak memory on the Japanese-to-English development set followed the same ordering as search time. The paper’s results table gives 39 GB for the original lattices, 16GB for the optimized lattices, and 85GB for the expanded rules. The optimized representation reduces the memory needed for the search despite allowing the same paths as the original representation. Expanding those paths has the opposite effect. In that form the decoder must process the separately represented sequences even when many contain the same material.

The graph counts show what changes structurally. The original representation has an average of 65K vertices per development sentence and a maximum of 1300K. The optimized representation has an average of 32K and a maximum of 446K. The expanded representation has an average of 263K and a maximum of 5421K. For edges, the original has an average of 92K and a maximum of 1512K. The optimized form has an average of 83K and a maximum of 541K. The expanded form has an average of 263K and a maximum of 5421K.

These counts describe the submitted representation, whereas the time and memory measurements include the work of handling decoder states within it. A vertex can carry several live states. A merge gives states from previously separate parts of the graph a chance to meet, where equivalence can be recognized by the normal recombination operation. The paper reports the counts and resource measurements together, which lets the reader see that the effect extends to decoding. It does not measure how much time was saved by each particular merge or each kind of state operation.

The authors exclude the cost of representation optimization from their decoder time. They justify that accounting with repeated searches during parameter tuning, where preprocessing can be reused. The figures therefore give the average search cost after the corresponding representation is ready. This scope matters when interpreting the comparison for a setting that translates each input only once, because the cost of preparing that input’s representation would also contribute to the elapsed time.

A dedicated lattice decoder and a flat-rule decoder

The authors also compare their system with a decoder from Heafield and colleagues, which they call K-decoder. It is an open-source implementation that the paper treats as a strong baseline. To supply it with input, the authors expand the lattices produced by their system into flat rules and write the results in the required file format. In this experiment, file sizes vary by Japanese-to-English sentence, with a minimum of 20 MB and a maximum of 17 GB. Those sizes are properties of the materialized rule files. Peak memory during decoding is reported separately.

K-decoder uses a beam width of 10,000, a setting that controls the alternatives kept for search. The runs are single-threaded. The authors give consistency of the measurements and concern about K-decoder’s memory demands as reasons for that choice. The lattice decoder uses the compact representation, whereas K-decoder gets the corresponding flat rules. Both systems thus have access to equivalent candidate sets, with different representations, search procedures, and implementations.

Peak decoding memory on the NTCIR-10 Japanese-to-English decoder comparison

The lattice-rule decoder uses less peak memory on the same sentence set.

Peak decoding memory on the NTCIR-10 Japanese-to-English decoder comparisonK-decoder on expanded rules: 52K-decoder on expanded rules52Lattice-rule decoder (this paper): 16Lattice-rule decoder (this paper)16
The numbers
System or settingG
K-decoder on expanded rules52
Lattice-rule decoder (this paper)16

The table for this comparison reports peak memory as 52G for K-decoder and 16G for the lattice-rule decoder. Average search time on the same sentences is 3.47s for K-decoder and 3.31s for the lattice system. The timing includes rule-file loading for K-decoder and excludes representation optimization for the lattice system. The measured times are close under those definitions. They do not provide a matched measurement of time spent solely on each decoder’s search operations.

For the internal score, K-decoder averages -107.55 and the lattice-rule decoder averages -107.39 over the comparison set. The paper also counts strict wins, occasions on which a decoder returns a candidate with a higher score than its counterpart for the same input. K-decoder records 401 strict wins and the lattice-rule decoder records 579 out of 1800 searches. The average score and strict-win count describe performance under the scoring function. They do not determine which outputs a reader would prefer or which decoder would receive the higher BLEU score in a separate reference-based test.

The authors contextualize the comparison by looking back at their own decoder on the expanded representation. In that condition it uses more memory and takes longer than K-decoder on flat input. They note that K-decoder has advanced techniques for word-sequence scoring that their implementation lacks. The comparison therefore shows the value of enabling direct search over the compact input. It offers less support for attributing the resource results to an intrinsically stronger search implementation.

The quality effect of keeping the choices

The BLEU comparison starts from a different intervention. With the flexible rules, a null-aligned word may be bypassed, a nonterminal may occur in alternative positions near its governor, and certain word forms remain available until search. With the no-variations system, a heuristic settles each of those choices in the rule extracted from an individual example. The comparison therefore asks what happens when the decoder is allowed to see the choices. It does not compare the optimized graph with its flat expansion, which would expose equivalent alternatives.

BLEU on the NTCIR-10 Japanese-to-English patent task

Flexible lattice rules score higher than the same pipeline with choices fixed during rule extraction.

BLEU on the NTCIR-10 Japanese-to-English patent taskNo variations: 28.91No variations28.91Flexible lattice rules (this paper): 29.43Flexible lattice rules (this paper)29.43Moses, for scale: 28.86Moses, for scale28.86
The numbers
System or settingBLEU
No variations28.91
Flexible lattice rules (this paper)29.43
Moses, for scale28.86

The Moses value of 28.86 BLEU comes from the official NTCIR-10 results. The authors include it to give a scale for the Japanese-to-English task, since Moses and their own system use different translation pipelines. The comparison that directly addresses flexible rule construction is between 29.43 BLEU for the lattice setting and 28.91 BLEU for their system with the choices fixed during extraction. The paper describes this improvement as significant and gives the aggregate scores. It does not specify a statistical test or uncertainty interval in the account of the comparison.

This result complements the resource measurements because it gives a reason to consider the richer candidate set in the first place. A system could preserve the same additions to the candidate set in a flat grammar, so the quality experiment alone does not establish a quality advantage for storing the alternatives as a graph. It establishes an advantage for giving the decoder the alternatives together in this pipeline. The representation experiment then shows what the lattice can contribute to the cost of keeping and searching them.

What the ablations show

Separating compact representation from candidate coverage

The strongest controlled comparison is between original lattices, merged lattices, and exhaustive flat expansions. The alternatives are held fixed and the authors use their decoder in each condition. Comparing the original and expanded versions isolates the practical benefit of retaining the graph structure in which alternatives were first expressed. Comparing the original with the optimized version isolates the effect of applying the pair of vertex-merging passes. The two comparisons address different sources of compactness. One comes from expressing alternatives as branches from the outset. The other discovers sharing beyond what the initial construction supplied.

Keeping scores and feature values intact is central to that control. If optimization had simply discarded uncommon paths or ignored distinctions in feature vectors, the smaller representation could have been obtained by simplifying the translation task. Instead, the merging procedure tests equivalence of the labeled, scored edges and retains the continuations available before merging. The experiment attributes observed resource savings to a change in representation. The same representational equivalence does not imply identical decisions by a pruned decoder, since the candidate states that compete at particular vertices can change.

The growth in the maximum vertex and edge counts when the paths are expanded also clarifies why enumerating alternatives can be expensive in practice. The difficulty is more than the number of independent linguistic phenomena described by the authors. A single sentence can yield rules where several choices combine and where many of the resulting sequences share material. With a flat expansion, that shared material appears in multiple entries. The maximum counts and wide range in flat-rule file sizes show that the expense varies substantially across inputs. The paper does not connect the most costly inputs to a particular class of ambiguity or sentence characteristic.

The merging experiment tests a combined procedure. Backward merging shares equivalent continuations, and forward merging shares equivalent ways of reaching vertices. The authors apply them in that order. There is no separate performance row for either pass alone or for the reverse order. The results show the effect of the prescribed preprocessing on these lattices. They leave the contribution of each pass, and the importance of their order, unresolved.

Reading the cross-decoder comparison as a system comparison

The K-decoder experiment holds the candidate space broadly fixed through the flat expansion and lets the representation and decoder change together. The peak-memory result shows how much memory the two tested configurations used for the same sentences. The runs of the authors’ decoder on its own expanded input help interpret that result. Once that decoder loses access to the compact representation, its timing and peak memory compare unfavorably with K-decoder’s. That additional condition points to the representation as the source of the favorable system comparison, even though implementation differences remain.

The score comparison sheds light on search behavior. An approximate decoder can emit a candidate with a lower score even when a higher-scoring sentence is available in its grammar. Since the flat expansion preserves available paths, differences in the scores found by the systems can arise from how search handles and prunes the alternatives. The mean scores indicate similar performance under the selected settings, and the strict-win counts show that each decoder finds a better result on some inputs. The authors do not establish the true optimum for those sentences. The experiment therefore gives a relative comparison of returned scores, with no measured gap to exact search.

The authors also report trying an A*-like alternative to their systematic lattice traversal. That observation concerns how a decoder might choose what to explore next. A best-first procedure depends on estimates good enough to focus effort on promising partial results, and its implementation can introduce overhead of its own. The authors mention both optimization issues and heuristic quality as possible explanations for the lack of improvement. They give no separate benchmark for that attempt. It records an alternative they explored, while leaving its costs and potential under other heuristics open.

What the translation-quality comparison can attribute

The quality comparison removes the flexibility bundle from the same translation pipeline. That creates a useful contrast with a heuristic decision made during extraction. A higher BLEU score with the bundle indicates that the decoder can make use of options left open in the rules. The experiment does not remove optional words, alternative orders, and word-form changes individually. Any of them could contribute to the aggregate result, and their interactions can matter because a word choice can change which ordering receives the best word-sequence score.

The authors’ examples explain why each option might help, but the examples do not identify which choices account for the measured BLEU result. A sentence-level analysis could reveal whether the system more often selects a fitting article, changes an awkward word order, or repairs agreement. The paper reports the combined task score and gives structural examples of all these mechanisms. Its evidence is sufficient to compare the rule-construction regimes in aggregate. It does not give a frequency breakdown of which branches were taken or a linguistic analysis of the resulting changes.

Taken together, the comparisons support two levels of explanation. Flexibility changes which translations can be selected, and the BLEU result measures the consequence of that change in the tested pipeline. Sharing and merging change how the same possibilities are searched, and the development results measure the consequences for time and memory. Keeping those levels distinct lets the quality result motivate the extra choices without treating it as evidence for one storage format, and lets the resource results demonstrate a more efficient representation without attributing the quality gain to compression.

Limitations

Limits the authors identify

The presented decoder treats the word-sequence score as its only stateful non-local feature. The original tree-to-tree system can track dependency information in features, and the paper notes that governor-dependent evidence could help resolve some rule ambiguities. The algorithm is described for flattened target strings to focus on the lattice procedure. Features that require additional state can change which partial translations are equivalent. The reported algorithm and measurements thus give a direct account of the string-scoring case, with other feature sets depending on what the decoder must retain about the partial translation.

The optimization also stops at the boundaries of individual rules and keeps the number of nonterminals fixed. The authors point out that a repeated sequence in the middle of several right-hand sides may be factored out as a new subrule. This would create sharing of a kind that their passes cannot find. They also observe that a lattice can be expressed using flat rules by introducing enough nonterminals. Doing so would create a different search organization from enumerating every complete path as a flat rule. They leave the effects of such restructuring for further investigation.

Preserving edge features puts a practical limit on merging. Two paths may emit identical words and still record different derivational events, such as a skipped word or a chosen variant. If those events are available to weight tuning, the optimizer must preserve the difference. The authors discuss an alternative used elsewhere that discards feature information during decoding and re-estimates it afterward with constrained alignment. Their approach retains the information during search. The measured compactness is therefore achieved under the feature distinctions in this system, and the amount of sharing available under another set of distinctions can vary.

The authors flag the uneven timing definitions in the K-decoder comparison and the different translation pipeline behind the Moses score. They also note that their decoder lacks some of K-decoder’s optimizations and report the unsuccessful best-first attempt without isolating its cause. These qualifications narrow what can be inferred from the benchmarks. The observed memory difference belongs to the tested configurations, the recorded times include different preparation costs, and the BLEU value from Moses provides task context instead of a controlled comparison of the two pipelines.

Limits visible in the evaluation

The experiments establish the observed effects on one language direction and one patent translation task. The details of the rule construction are closely tied to that setting, from English articles with no straightforward Japanese alignment to the choice between English forms of to be. The graph can express a wider range of alternatives by definition, but the experiments do not establish how often useful alternatives arise in other corpora or how accurately they would be ranked. The ordering examples also come from a dependency-based system with evidence about governors. A different extraction pipeline may expose different kinds of uncertainty.

The resource measurements show decoding after optimization and give a plausible setting in which to reuse the preprocessing. A complete cost comparison for translating each input once would also need the time and memory spent constructing and optimizing the rules. Likewise, an application that repeatedly decodes the same sentences under different weights would need to account for how it stores and reuses the lattice and how it updates scores. The paper’s numbers answer the narrower question of search cost given the chosen representation. The large flat-file sizes help characterize the burden of expansion without supplying a complete build-to-output timing comparison.

The experiments also leave open how the search tradeoff changes with pruning limits. The method uses bounded combinations and bounded state lists, and the external decoder has its own beam setting. The measured internal scores are associated with the settings used for the comparison. The paper does not trace a curve of score, speed, and memory over different limits. Such a curve would show whether the systems retain their ordering at other resource budgets. In its absence, the best-supported claim is that the compact representation yields similar returned scores with lower peak memory in the benchmark as run.

Finally, the aggregate BLEU scores do not reveal an error distribution. There is no reported separation of gains for agreement, optional words, and ordering, and there is no uncertainty estimate accompanying the scores. The favorable aggregate result supports leaving the tested choices available in this system. It leaves questions about individual mechanisms and transfer to other settings open. The authors state that they intend to release their decoder under the GPL through the KyotoEBMT project. That statement describes a planned release.

What came after

No later work is documented here as extending the paper’s lattice-rule method. The authors themselves identify a direction that would take the proposal beyond the experiments: optimize sharing inside right-hand sides while also factoring recurring material into subrules that several nonterminals can use. They also propose investigating how the structure of the candidate representation affects search in phrase-based translation. These are directions set out by the paper. Its demonstrated results concern lattices kept at the level of individual rules, their optimization before decoding, and their use in the Japanese-to-English patent system.

Cite

Cite as Fabien Cromières and Sadao Kurohashi. 2014. Translation Rules with Right-Hand Side Lattices. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/d14-1063

@inproceedings{cromieres2014translation,
  title = {{Translation Rules with Right-Hand Side Lattices}},
  author = {Fabien Cromières and Sadao Kurohashi},
  booktitle = {Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
  year = {2014},
  doi = {10.3115/v1/d14-1063},
  url = {https://doi.org/10.3115/v1/d14-1063}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cromieres-2014-translation-rules-right-hand-side/