Word Representations in Factored Neural Machine Translation
Paper · 2017 · Franck Burlot, Mercedes García-Martínez, Loïc Barrault et al.
Summary
An English sentence can leave details unstated that a Czech or Latvian translation has to express in its word endings. A translator must choose a word for the intended meaning and give it a form that fits the sentence. A neural machine translation system can learn to do both by predicting complete word forms, but the possible forms make for a large vocabulary and many of them occur rarely in training. Splitting words into reusable pieces makes that vocabulary easier to manage. Burlot and colleagues ask what happens when the system also gets a separate output for morphology, the grammatical structure and variation of words.
Their decoder predicts a pair of symbols at each step. One output carries the lexical material and, in some versions, a coarse indication of the grammatical forms it can take. The other supplies a detailed grammatical tag. The authors compare a representation that puts the whole word into a single stream with factored alternatives that use either a lemma, the base form of a word, or a partially normalized form. To build the latter, they group target-language forms whose English translations have similar distributions. They then test how these representations work with sub-words, how to keep the two predicted symbols compatible, and how to turn the resulting pairs back into ordinary text.
With official parallel training data, the Czech system using normalized sub-words and compatibility constraints reached 20.03 BLEU on Newstest-2016, compared with 18.24 for the fully inflected sub-word baseline. In Latvian, a normalized system that emitted the grammatical group as a separate symbol reached 12.35 BLEU on Newstest-2017, compared with 11.29 for the corresponding baseline. Adding back-translated training data improved the baselines substantially, and the factored systems needed more help at decoding time to stay competitive. Rescoring alternative word forms was especially helpful for Latvian, where the resource used to recover those forms was noisy.
The authors also translated sets of English sentences that differed by a synonym or antonym. On average, the factored systems varied their grammatical choices less across these sets. That result measures consistency across changes in vocabulary. The paper separately illustrates grammatical accuracy with a Czech translation in which the factored systems preserve both past tense and negation, while the fully inflected system preserves negation and switches to the present. Together, the experiments show where explicit grammatical information can complement sub-words and how much the result depends on turning the decoder’s separate predictions into usable word forms.
Deep dive: Word Representations in Factored Neural Machine Translation
How factored neural translation combines subwords and grammar tags to generate Czech and Latvian word forms from English. · about 32 minutes to read
The problem and its context
Why a larger vocabulary only goes so far
A translation system trained on sentence pairs learns from the forms it encounters in those pairs. New input can contain forms it has never encountered, and a correct translation can call for forms absent from the target side of training. Some of this comes from the ability to create new vocabulary. Some comes from variation within familiar vocabulary. A familiar noun may need a case or number marking that rarely occurs with that noun. A familiar verb may be needed in a combination of tense and polarity that received little direct evidence in training. In either situation, an output vocabulary organized around full words treats each surface form as a distinct choice.
Expanding the vocabulary addresses some gaps in coverage. It also asks the system to learn more word embeddings, the vectors used to represent words, from increasingly sparse evidence. On the output side, it enlarges the softmax, the operation that turns scores for alternatives into a probability distribution. The paper situates its proposal among efforts to manage those costs inside the translation architecture, for instance through a structured output layer or changes in how training and decoding handle a large vocabulary. On Using Very Large Target Vocabulary for Neural Machine Translation
The challenge is particularly clear when translating from English into a language with more inflection. The target sentence can require a distinction that is recoverable from the construction as a whole, although the corresponding English word carries little direct evidence for it. The paper gives Czech noun case as an example of something that may be difficult to predict from the English counterpart of the noun. In other instances, English expresses a grammatical distinction in a separate word. An auxiliary may carry tense information that the Czech translation has to express on the verb. Both cases make the context important. The decoder has to make a grammatical choice even when its most obvious lexical match on the source side supplies only part of the evidence.
How earlier systems divided the work
The paper describes approaches that postpone some inflection decisions until after an initial translation. In one line of work, translation produces stems and a classifier selects the appropriate form from the available inflections. Earlier English-to-Czech statistical systems used a related division of labor. The first stage produced Czech lemmas accompanied by information from the source, and a subsequent stage recovered a fully inflected sequence while preserving the established order. These approaches made word-form selection a distinct problem with its own evidence and decision procedure. Applying Morphology Generation Models to Machine Translation
The authors discuss a German example in which words were represented by lemmas and sequences of grammatical tags. Normalization removed selected tags. A separate predictor for each removed attribute supplied the missing information, and a dictionary returned the resulting forms. An extension used information about the grammatical constructions that verbs take to improve the predictions. This line of work matters to the paper because normalization has two consequences. It can give the first translation stage a smaller inventory of forms to learn, and it creates a later decision about how to restore the distinctions that the first stage set aside.
Earlier neural work had also tried linguistic factors. Some systems supplied them as extra features on the input side, giving the encoder more than the source word alone. The architecture extended in this paper had already used factors on the output side, separating lexical and morphological information. The authors also discuss guided alignment, multitask training and multilingual translation as other settings in which a neural system can learn from several objectives. Here the outputs describe the same target position and are emitted together. Their alignment is part of the representation, so the next decoding step can use the pair as its previous output. Linguistic Input Features Improve Neural Machine Translation
What subwords solve
Another line of work makes the basic units of translation smaller. The paper describes character-based alternatives as more costly to train and as stretching dependencies across more positions. Byte pair encoding, or BPE, offers an intermediate granularity. As a form of subword tokenization, it represents text using units of different lengths. Common words can remain intact, while rarer ones can be assembled from reusable pieces. The decoder can generate new combinations of familiar pieces without assigning a dedicated output entry to every possible word. Neural Machine Translation of Rare Words with Subword Units
A sub-word boundary and a grammatical distinction answer different questions about a word. A split can help a decoder reuse part of a rare form, even if the piece has no consistent grammatical interpretation. An explicit tag can identify a recurring distinction across words that share little spelling. The paper tests the two representations together. Its design varies how much grammatical information stays with the lexical output and how that output is segmented. This makes it possible to compare full words with sub-words even when both alternatives carry the same kind of grammatical annotation. It also makes it possible to compare factored and unfactored outputs that both use sub-words.
The method, step by step
From a source sentence to a pair of outputs
The starting point is a neural encoder and decoder with attention. The encoder reads the English sentence in both directions. At each source position, it combines the states from the two directions into a vector that represents the position in its sentence context. The decoder can draw on these vectors throughout generation. Attention assigns a weight to each source position at the current target step and uses those weights to make a context vector. The decoder can therefore change which parts of the input it emphasizes as it produces the translation. Neural Machine Translation by Jointly Learning to Align and Translate
The baseline uses that context to predict one target symbol at a time. A symbol can be a complete word or a sub-word, depending on the setup. In the factored system, the decoder has two output vocabularies. One supplies a lexical symbol and the other supplies a grammatical symbol. The decoder produces the same number of positions in both streams. When the lexical output uses sub-words, the grammatical stream supplies a corresponding symbol for every position, including a null symbol where the representation calls for one.
The system eventually needs to deliver a sentence written in ordinary Czech or Latvian. The lexical and grammatical streams are intermediate records of the translation. After decoding, the lexical pieces have to be joined where appropriate, and the resulting units have to be matched with the correct inflected forms. Thus factoring changes what the network predicts and adds a separate operation after prediction. The fully inflected baseline can recover the text by joining sub-words where necessary, since the decoder has already chosen the surface spelling.
Translation with two target factors
The steps in order.
The recurrent decoder and its output layers
The paper uses a bidirectional recurrent neural network for the encoder. The notation below spells out the vector operations described in the architecture. The encoder annotation is a concatenation of the states at a source position.
aᵢ = [h⃗ᵢ ; h⃖ᵢ]
Here i indexes a position in the source sequence, aᵢ is its annotation, and h⃗ᵢ and h⃖ᵢ are the hidden states from the forward and backward passes at that position. The arrows indicate the directions of the passes. Brackets with the separator denote concatenation, which puts the coordinates of the two vectors together. The equals sign identifies the resulting annotation.
At each target position the decoder builds a weighted combination of these annotations.
Cⱼ = ∑ᵢ αⱼᵢ aᵢ
Here j indexes the current target step, Cⱼ is the source context vector for that step, and i again indexes a source position. The summation sign adds a vector contribution from each position in the source. Each contribution is the annotation aᵢ scaled by αⱼᵢ, the attention weight assigned to position i at step j. The equals sign defines the context vector. A feed-forward network supplies the attention scores used to obtain these weights. The combination is convex, so the weights are non-negative and their total is one.
The decoder uses a conditional gated recurrent unit, or GRU, arranged as two recurrent units with attention between them. In the baseline, the first unit receives the embedding of the previously generated token. The attention operation supplies the context, and the second unit uses it in producing the decoder state for the current decision. The baseline then combines the previous token embedding with transformed versions of the context and the state in a nonlinear layer. The paper calls the linear transformations of the context and recurrent output L꜀ and Lᵣ. A softmax over the target vocabulary turns the output scores into probabilities. The encoder and decoder are trained jointly to give high conditional probability to the reference translation.
For the factored system, the encoder and attention mechanism stay in place. The feedback into the recurrent decoder changes. The embeddings for the two preceding symbols are concatenated and now passed to it. The new state can therefore reflect both the lexical sequence generated so far and the grammatical sequence that accompanied it. The two symbol predictions for the current step share that state and the same source context. Each prediction has its own softmax over its own vocabulary. This creates shared conditioning across the outputs while leaving the choice of the current grammatical symbol without a direct input from the current lexical choice.
The paper compares two designs for the layer between the recurrent decoder and the softmax, called the hidden-to-output layer, or h2o. In the shared design, a single layer takes the decoder state, the context and the concatenated embeddings of the preceding pair. Its output feeds both softmax layers. In the separate design, each softmax gets its own hidden-to-output transformation. The two transformations still have access to the shared state and context. Each one receives the previous embedding from its own output stream as its direct feedback input. This gives each transformation weights that can specialize for its particular prediction while the recurrent decoder continues to receive the history of both factors.
Choosing the contents of the two streams
The authors first vary what counts as a lexical unit. With fully inflected output, the single stream carries the spelling of the intended form, which already expresses its lexical and grammatical content together. The Czech example in the paper is kočky, used as a nominative plural in the illustration. Without segmentation, the decoder emits that form as one symbol. With BPE, the pieces of the same spelling occupy separate positions. In both versions, the output itself supplies the complete spelling after any necessary reassembly.
In the lemma representation, the lexical stream instead carries kočka. The grammatical stream supplies a tag for noun, plural and nominative. Although the paper calls this stream PoS, its tags convey more detail than the coarse categories used in ordinary part-of-speech tagging. In the example, the tag tells the reinflection procedure which number and case it should realize. The same lemma entry can be used for other inflected forms, with the grammar stream varying as the context requires. Much of the compression of the lexical vocabulary comes from bringing those forms together.
Normalized output retains an intermediate amount of grammatical information in the lexical stream. Each lexical unit contains the lemma plus a cluster identifier. This identifier includes the coarse part of speech and an arbitrary index for a group of grammatical analyses. The detailed tag is still emitted in the other stream. The index identifies a set and has no meaning as a quantity. The paper’s example attaches a noun cluster to kočka in the lexical stream and puts the complete nominative plural analysis in the grammatical stream. The cluster gives a decoder or search procedure information about which tags can plausibly accompany the lexical output.
These representations change how often training examples share the same lexical symbol. On unsegmented Czech training text, the paper reports a vocabulary of 2.1M fully inflected forms, 1.9M normalized units, 1.5M units for normalized output with lemmas and clusters split, and 1.4M lemmas. These are counts for the representations before sub-word segmentation. They describe the extent of sharing before BPE imposes its own inventory of pieces. They also show why vocabulary reduction and the placement of grammatical information need to be considered together. The smallest lexical inventory assigns the most responsibility for inflection to the separate tag stream.
Learning which grammatical distinctions to retain
The normalization procedure uses parallel text to decide which grammatical analyses to group. Its starting observation is that different forms of a target word can have similar translations in English. When that happens systematically, the forms are candidates for sharing part of their output representation. The paper uses automatic word alignments to estimate the English translations associated with target forms. Those estimates give distributions for comparing how the different forms translate.
The actual clustering is delexicalized. A target word is represented by its lemma, its coarse part of speech and a sequence of morphological tags. Evidence from word-level translation distributions is combined to compare tag sequences within a part of speech. As a result, the grouping can express a pattern shared across words. The cluster identifier attached to a noun can stand for a set of noun analyses that have similar English translation distributions in the training data. The lemma remains available to identify the particular noun.
The merge criterion uses conditional entropy, a measure of uncertainty in the estimated lexical translations given the target representation. The procedure accepts a merge when grouping its proposed members does not increase that uncertainty. Intuitively, if the English translation distributions offer little reason to keep the analyses separate, the lexical output can carry their shared cluster and leave the finer distinction for the tag predictor. The criterion concerns what the alignments and translation distributions preserve. The full target tag remains in the training representation, so grammatical distinctions grouped by normalization are still available as supervision for the second output.
The outcome includes a record of which detailed tags belong to each cluster. That record serves two purposes. It defines the normalized representation used to prepare training targets, and it supplies a compatibility map for decoding. In a normalized system, the map is already known once a candidate lexical symbol reveals its cluster. By comparison, a system that emits only a lemma needs a resource that says which analyses are possible for that lemma. The paper names the bilingual morphology normalizer implementation used to obtain the clusters.
Applying BPE to the lexical stream
The authors vary segmentation independently of the choice among full forms, normalized units and lemmas. In a factored setup where a word is split into several pieces, the streams still need to line up. The ordinary solution in the paper is to repeat the word’s full tag at every piece. A segmented lemma consequently provides several lexical positions with the same grammatical label. A segmented normalized word does the same, with an additional rule for the cluster identifier. The identifier is treated as indivisible so that BPE can leave it attached to a lexical piece without breaking it into meaningless fragments.
The split-cluster variant makes the cluster a position of its own. During generation, the positions used to spell the lemma take null tags. An actual tag is paired with the separate cluster symbol. In the Czech example, the sub-word positions for kočka therefore carry no detailed grammar in the second stream. The noun cluster that follows is the position paired with the nominative plural tag. The change gives the grammatical decision a designated step and puts the admissible set of tags on the lexical side of that step.
This organization also affects what the recurrent decoder sees over time. With repeated tags, the previous position can contain both a fragment of the lemma and the full word tag. With split clusters, there is a stretch of lemma positions carrying null tags, followed by a step that carries the grammatical pair. The latter representation lengthens the sequence by giving the cluster its own position. The authors accommodated this in training with a maximum length of 100 for the split-cluster setup. The maximum for the other setups was 50.
Preparing data and fitting the systems
The experiments follow the WMT’17 news translation task. The authors used in-house tools for English preprocessing. Czech text was tokenized and truecased with Moses, and its grammatical analyses came from Morphodita. Truecasing supplies the capitalization convention used in the processed text. Tilde supplied the Latvian preprocessing, and Latvian tags came from the LU MII Tagger. These analyses supply the lemmas and detailed tags needed to construct the factored targets. Open-Source Tools for Morphology, Lemmatization, POS Tagging and Named Entity Recognition, Morphological Analysis with Limited Resources: Latvian Example
The BPE inventories were learned on parallel text for each language pair and setup, using 90k merge operations. The vocabulary for the second factor contained 1.5k symbols for Czech and 376 for Latvian. The authors report a parameter increase of around 2.5% for the factored Czech systems and 7% for the factored Latvian systems. The architectures used embeddings of dimension 512 and hidden states of dimension 1024 in both the encoder and decoder. Dropout was applied to source embeddings, the context vector and the output layers. The authors used Xavier initialization at the start of training and ran the experiments with the NMTPY toolkit.
Training on the original parallel data used a learning rate of 0.0004, patience of 30 and validation at intervals of 20k updates. For the experiments with synthetic parallel data, the authors started from the parameters of the corresponding bitext-trained system. They retained its BPE vocabulary, set the learning rate to 0.0001 and validated every 5k updates. The selected training mixture included genuine parallel sentences alongside the synthetic ones. The authors used Adam for optimization and report training for approximately 1 month.
Back-translation creates synthetic parallel text from monolingual target-language text. In this study, an existing system translates Czech or Latvian sentences into English, and those English translations become the source side of new training pairs. The target side remains the original Czech or Latvian text. Genuine bitext is also included in the mixture, with extra copies for some corpora, to give the system continued exposure to a human-written English source. The reused vocabulary could leave unknown symbols in this stage. At decoding time, the authors disallowed the unknown output token in these experiments. Improving Neural Machine Translation Models with Monolingual Data
Keeping the factors compatible during decoding
Two softmax layers can rank incompatible symbols highly at the same step. A lexical output meaning cat and a tag for a preposition illustrate the problem. Sharing the source context, the decoder state and the history of the generated pair helps the two predictions coordinate. Still, the best alternatives in the separate distributions can disagree. Beam search, which carries several partial translations forward, can also consider mismatched pairs among the lower-ranked candidates it encounters.
Constrained decoding filters these pairings before selecting which hypotheses stay in the beam. For each eligible lexical candidate, the search retains the tags on its compatibility list. If the lexical unit has a cluster identifier, the list comes from the normalization procedure. For a complete lemma, it can be constructed from a dictionary. This operation affects the alternatives that survive search. The decoder still computes its factor predictions using the same output layers.
The distinctions are harder to enforce for a sub-word of a lemma. The same sub-word may occur in words belonging to several parts of speech. Its compatibility list can therefore become broad enough to provide little guidance. The authors used the filter with unsegmented lemmas and with both segmented and unsegmented normalized forms. Normalized output makes the constraint practical because the cluster identifier provides a way to recover the grammatical class, even when the lexical representation has been segmented. The separate cluster step goes further by assigning the full tag to the position that explicitly identifies its admissible set.
Restoring the surface sentence
The factored prediction leaves one final task. A lexical unit and detailed tag have to be converted into the spelling that belongs in the finished sentence. The authors call this reinflection. They obtain candidates through a lookup. For Czech, they used the Morphodita generator. For Latvian, they automatically tagged the monolingual WMT’17 data and collected the form and analysis combinations into a lookup table. The resulting Latvian resource contained nearly 2.5M forms, and the authors observed substantial noise in it.
A single lookup can return several forms for the same lexical unit and tag. The simplest selection procedure ranks the candidates using unigram frequencies, which count whole forms independently of their neighbors. The paper’s Czech example shows why this can leave an ambiguity unresolved. The preposition has the form s in s tebou and se in se mnou. The following word carries evidence that a frequency for the preposition alone cannot express. A global preference for one spelling can consequently choose poorly for a particular context.
The authors also retain multiple reinflection candidates. A beam over the words in a proposed factored translation keeps the best candidate surface sequences so far according to the unigram scores. A system that works directly with inflected words can then rescore those sequences. This is the paper’s k-best procedure, where k is the number of reinflection alternatives retained. It explores several ways to realize a particular factored prediction. The n-best procedure, where n is the number of translation alternatives considered, operates on a list of translation hypotheses. Rescoring that list can favor a different lexical or grammatical prediction from the factored decoder, as well as a different surface sentence. The distinction matters when interpreting gains from rescoring, because the two procedures can repair different kinds of decisions.
Experiments and results
Training corpora and evaluation
The English-to-Czech bitext consisted of nearly 20M sentences drawn from WMT data selected for relevance to news translation. It included News-commentary and Europarl, along with the news, paraweb, EU and fiction categories of Czeng. The authors validated on Newstest-2015 and tested on Newstest-2016 and Newstest-2017. To train the normalization, they used more than 10M parallel sentences from the translation training data, leaving out the Czeng paraweb and fiction portions. For the synthetic condition, they used Czech News-2016 back-translated into English with the University of Edinburgh’s best single WMT’16 system. The selected bitext mixture included repeated in-domain material and 5M Czeng EU sentences drawn after filtering.
For English to Latvian, the authors started with the WMT’17 parallel data. They used sentence alignment and domain filtering on DCEP, keeping its best 1M sentences under that procedure. The resulting parallel training collection had nearly 2M sentences. The normalization used this same bitext. A held-out set of 2k LETA sentences was used for validation, while the reported development and test results were on Newsdev-2017 and Newstest-2017. The synthetic condition used Edinburgh back-translations of the monolingual news data for 2015 and 2016. The training mixture also included 10 copies of LETA and 2 copies of Europarl and Rapid.
The principal baseline predicts fully inflected text. The paper reports a word-level version alongside the BPE version in the bitext condition. For the experiments with selected bitext and synthetic data, it reports both the single BPE baseline and an ensemble, which combines predictions from separately trained systems. This gives the factored setups a comparison at the same broad level of training resources, with an ensemble baseline for comparison when their own outputs are ensembled. Each reported score for a fully inflected system averages two independent runs, including the scores reported for ensembles. The Czech bitext results use a decoding beam size of 2, which worked better for those systems in the authors’ experiments. Stronger Baselines for Trustable Results in Neural Machine Translation
The paper reports BLEU, BEER and CharacTER, abbreviated CTER in the results. BLEU checks overlap with a reference through sequences of tokens. BEER combines features tuned for agreement with human sentence rankings. CharacTER measures the editing needed at the character level, where partial matches between inflected forms can be reflected in the score. Higher BLEU and BEER are better, and lower CTER is better. The multiple measures are useful because a system can improve on one score while moving in the other direction on another. Bleu: a Method for Automatic Evaluation of Machine Translation, CharacTer: Translation Edit Rate on Character Level
Results with official parallel text
With Czech official bitext, moving from whole words to BPE raised the fully inflected baseline from 15.74 to 18.24 BLEU on Newstest-2016 and from 12.76 to 15.08 on Newstest-2017. The normalized system with segmented units and constrained decoding improved on the stronger comparison in both years. It reached 20.03 BLEU on Newstest-2016 and 16.93 on Newstest-2017. The paper reports the gains over the BPE baseline as 1.79 and 1.85 BLEU points, respectively. For the same normalized setting, BEER rose from 52.29 to 53.96 on Newstest-2016 and from 49.54 to 51.14 on Newstest-2017. CTER fell from 60.05 to 58.90 and from 65.38 to 64.13 on those respective test sets.
English-to-Czech BLEU on Newstest-2016 with official bitext
The normalized subword system with compatibility filtering scores highest among these settings.
The numbers
| System or setting | BLEU |
|---|---|
| Fully inflected words | 15.74 |
| Fully inflected BPE | 18.24 |
| Normalized BPE | 18.59 |
| Split-cluster BPE | 19.74 |
| Normalized BPE with constrained decoding (this paper) | 20.03 |
The Czech word-level comparisons also show a benefit from factoring. With constrained decoding, normalized whole words scored 17.71 BLEU on Newstest-2016 and 14.88 on Newstest-2017. Whole lemmas with the shared hidden-to-output layer and constraints reached 17.42 and 14.93 on the same test sets. The rankings at word level depend on the split, and the strongest sub-word normalization scores higher than either of these word-level alternatives. At sub-word level, the lemma system with separate output transformations reached 17.34 and 14.73 BLEU. Its scores place it below the fully inflected BPE baseline on both Czech tests, even though separating the output transformations helped relative to the shared version of the segmented lemma system.
On Latvian official bitext, the whole-word baseline reached 15.15 BLEU on Newsdev-2017 and 10.61 on Newstest-2017. The BPE baseline increased those scores to 16.22 and 11.29. The split-cluster BPE setup with constrained decoding scored 17.00 on Newsdev-2017 and 12.35 on Newstest-2017. Those are the paper’s reported gains of 0.78 and 1.06 BLEU points over fully inflected BPE. On the development set, its BEER was 52.96 compared with 51.63 for the BPE baseline. Its CTER was 64.61 compared with the baseline’s 64.44. On the test set, it reached 48.65 BEER and 72.32 CTER, compared with 47.02 and 71.95. The higher BLEU and BEER on both splits show an advantage on those measures, while CTER favors the baseline in this particular comparison.
The Latvian bitext results also put the split-cluster choice in context. The normalized BPE system that keeps the cluster attached, with constrained decoding, reached 16.81 BLEU on Newsdev-2017 and 12.16 on Newstest-2017. It produced a lower development-set CTER of 64.02 than the split-cluster system with constraints. Whole normalized words with constrained decoding reached 15.57 and 11.38 BLEU. Thus the gains reported for Latvian depend on segmentation and on how the grammatical class is attached to the lexical material. The results support the combination of sub-words and normalization even though they favor different realizations of that combination in the two target languages.
Results with back-translated data
Adding synthetic parallel data and continuing training gave the fully inflected systems the largest increases. The paper reports baseline gains of +5.7 BLEU for Czech and +6.9 BLEU for Latvian. The relevant score comparisons are the Czech fully inflected BPE system on Newstest-2016, which goes from 18.24 to 23.94, and the Latvian system on Newsdev-2017, which goes from 16.22 to 22.05. The factored systems also improved in absolute performance. Their standing relative to the stronger baseline now depended more heavily on how the final candidate translations were selected.
On Czech Newstest-2016, the unrescored split-cluster system scored 23.37 BLEU. Rescoring its translation alternatives brought it to 24.19, and the ensembled version of that setup reached 24.55. The fully inflected single system scored 23.94 and the fully inflected ensemble scored 24.34. The corresponding Newstest-2017 scores show a similar progression for split clusters, from 19.77 without rescoring to 20.56 with translation alternatives rescored and 20.68 with ensembling. The fully inflected systems reached 20.00 as a single system and 20.16 in ensemble form.
English-to-Czech BLEU on Newstest-2017 with selected bitext and synthetic data
Translation rescoring moves split clusters ahead of the fully inflected systems shown.
The numbers
| System or setting | BLEU |
|---|---|
| Fully inflected BPE | 20.00 |
| Fully inflected BPE ensemble | 20.16 |
| Split-cluster BPE | 19.77 |
| Split clusters with translation rescoring | 20.56 |
| Split clusters with translation rescoring and ensembling (this paper) | 20.68 |
The Czech lemma setup illustrates a different payoff from the same sequence of procedures. Its segmented single system scored 22.30 BLEU on Newstest-2016 and 19.34 on Newstest-2017. Rescoring reinflections brought those values to 22.35 and 19.36. Rescoring translations moved them to 23.39 and 19.83, and ensembling brought them to 24.05 and 20.22. On Newstest-2017 the lemma ensemble also achieved 57.89 CTER, compared with 57.93 for the split-cluster ensemble and 58.22 for the fully inflected ensemble. BLEU favored the split-cluster ensemble on that test set, while character editing favored the lemma ensemble by the scores reported.
Latvian showed a larger effect from rescoring alternative reinflections. On Newsdev-2017, split clusters started at 20.85 BLEU and reached 22.89 after reinflection rescoring. This was the paper’s highest development BLEU without translation-list rescoring or ensembling. On Newstest-2017, the corresponding scores were 14.50 and 15.41. Rescoring translation alternatives reached 15.73, and the ensembled setup reached 16.04. Its test-set BEER of 52.99 and CTER of 61.41 also improved on the fully inflected ensemble’s 52.11 BEER and 62.64 CTER.
English-to-Latvian BLEU on Newstest-2017 with selected bitext and synthetic data
The split-cluster pipeline gains at each rescoring stage and finishes ahead of the fully inflected ensemble.
The numbers
| System or setting | BLEU |
|---|---|
| Fully inflected BPE | 14.84 |
| Fully inflected BPE ensemble | 15.12 |
| Split-cluster BPE | 14.50 |
| Split clusters with reinflection rescoring | 15.41 |
| Split clusters with translation rescoring | 15.73 |
| Split clusters with translation rescoring and ensembling (this paper) | 16.04 |
Latvian development and test scores favor different final combinations. The ensembled normalized split-cluster pipeline scored 22.69 BLEU on Newsdev-2017, below its own 22.89 after reinflection rescoring alone. On the test set, the ensembled normalized pipeline was the strongest setting in the table. The lemma ensemble reached 21.90 BLEU on the development set and 15.35 on the test set. Its development CTER was 52.38, compared with 52.91 for the normalized ensemble and 52.67 for the fully inflected ensemble. These differences matter because the paper evaluates a complete path from decoding to word realization. A setting can move up the BLEU ranking through better translation choices or better surface realization, and the reported BLEU score combines those effects.
What the ablations show
What changes when a lexical unit is segmented
The word-level and sub-word comparisons test whether supplying linguistic labels can do the work of an open vocabulary by itself. The normalized word systems recover a good deal of performance relative to the word-level fully inflected systems. The strongest normalized results in the bitext experiments still come from segmented output. For Czech, both BLEU and CTER favor constrained normalized BPE over constrained normalized whole words. For Latvian, the strongest segmented normalized systems also outperform their whole-word counterpart in BLEU on development and test. The consistent advantage of segmentation within normalized output indicates that the two devices address different parts of the problem.
The lemma comparisons clarify what can be lost when the lexical stream is made very compact. Lemmas give the largest reduction in the unsegmented Czech inventory, yet in the official bitext results the segmented lemma systems fall behind the best normalized systems. Normalization keeps a piece of grammatical evidence in the lexical output. That evidence supplies the membership of the candidate tag set. A plain sub-word of a lemma may instead occur across words with many possible tags. The comparison is consistent with the authors’ explanation that the cluster identifier helps coordinate the outputs. The experiment also changes the lexical units and the positions where tags occur, so the results measure the behavior of whole representations.
When a hard compatibility rule helps
The constrained and unconstrained rows offer a direct comparison of search behavior. On Czech Newstest-2016 with bitext, normalized BPE goes from 18.59 BLEU to 20.03 when the compatibility rule is applied. On Newstest-2017 it goes from 15.89 to 16.93. The related Latvian setup moves from 15.69 to 16.81 on Newsdev-2017 and from 10.94 to 12.16 on Newstest-2017. In each case the search can discard an impossible pair before it competes for space in the beam. Some metric changes run against the BLEU improvement, especially in word-level conditions, so the evidence for the rule is clearest when the specific representation and score are identified.
Split clusters respond quite differently. In the Czech bitext results, BLEU on Newstest-2016 is 19.74 without the extra filtering and 19.71 with it. On Newstest-2017 the corresponding scores are 16.31 and 16.38. For Latvian, they are 16.99 and 17.00 on Newsdev-2017 and 12.35 in both cases on Newstest-2017. This setup already places the detailed tag at the cluster position and requires null tags along the lemma. The authors interpret the small remaining effects as evidence that the system can learn to associate each member of the compact cluster inventory with a restricted set of tags. The further decoding rule has much less work to do when the representation organizes the decision that way.
For unsegmented lemmas, the compatibility rule depends on the available inventory of valid word and tag combinations. The authors point to the noisy Latvian lookup as a likely explanation for the smaller benefits they observe there compared with Czech. The normalized rows give a useful companion comparison. Their cluster-to-tag lists are learned during normalization and do not require a dictionary for decoding. The later operation of recovering surface forms still uses the language-specific resources. This separates the problems of admitting compatible pairs and choosing a spelling once a pair has been admitted.
What the output-layer comparison establishes
The shared and separate hidden-to-output transformations were compared for lemma-based output. The authors describe the results as mixed. At word level, the shared layer frequently has a slight advantage. With constraints on Czech Newstest-2017, for example, the shared layer scored 14.93 BLEU and the separate layers scored 14.66. On Czech Newstest-2016, the corresponding values were 17.42 and 17.56, so this comparison changes direction across test sets. The BPE lemma setup was the authors’ reason to carry the separate output layers forward to the synthetic-data experiments. On Czech Newstest-2017, the segmented lemma system scored 14.19 with the shared transformation and 14.73 with separate transformations. For Latvian, the separate transformations also gave higher test BLEU, with 10.69 compared with 10.45, while development BLEU slightly favored the shared version.
This comparison concerns specialization at the output layer. Both designs let the recurrent state incorporate the previous pair, and both produce current predictions from a shared source context. Separate transformations give the two softmax layers distinct views of those shared signals and of the preceding symbol in each stream. An improvement from separating them is evidence about the usefulness of that arrangement in a particular representation. The test does not isolate extra weights from the difference in what previous embeddings each transformation receives.
What the two rescoring procedures recover
Rescoring word realizations had little effect in the Czech experiments. With split clusters on Newstest-2016, BLEU is 23.37 before reinflection rescoring and 23.43 afterwards. On Newstest-2017, the same comparison is 19.77 and 19.79. The authors attribute the small changes to the quality of the Czech generator’s candidates and the effectiveness of the simple unigram choice in that setting. Their tests with 50-best and 100-best Czech reinflections also produced no improvement. The Czech results therefore leave more room for changing which translation hypothesis is selected than for changing the spelling realization of an already selected factored sequence.
For Latvian split clusters, the paper reports reinflection rescoring gains of +2.03 BLEU on Newsdev-2017 and +0.84 on Newstest-2017 for the settings compared in its discussion. The setup used 100-best reinflection hypotheses for its strongest result at this stage. Allowing more candidates through the lookup stage makes it more likely that the rescoring system gets to compare a useful form with one preferred by unigram counts. The explanation fits the observed noise in the automatically built table. The experiment did not swap dictionary quality while holding the target language fixed, so the explanation is supported indirectly by the different behavior of the two pipelines.
Rescoring translation hypotheses had a broader role in Czech. Once the candidate list could include different factored translations, the full-form system could influence lexical and grammatical choices as well. That gave a larger boost to the Czech lemma and normalized systems than reranking spellings alone. For Latvian normalized output, translation rescoring reduced the strong development BLEU achieved by reinflection rescoring, while the test set improved. For Latvian lemmas, the translation reranker helped on both reported splits. The availability of a broader candidate list therefore changes which decisions can be revisited, with the measured gain depending on the representation and evaluation split.
What attention and controlled lexical changes reveal
The attention visualization follows a single English-to-Czech example where the source has the auxiliary didn’t and the lexical verb begins with the sub-word shir@@. The fully inflected system produces nevyhýbá, a present-tense negative form. Attention connects a target sub-word expressing negation to the English auxiliary, but the Czech verb ending shows little connection to the auxiliary that also carries the past-tense cue. This example distinguishes two features associated with the same source word. The translation gets one of them right and misses the other.
The lemma-based system directs attention to both didn’t and shir@@ at the relevant prediction, and the output recovers the negative past analysis. The normalized split-cluster system exposes another division within the prediction sequence. The Czech lemma piece nevyhýbat@@ is strongly associated with the English lexical piece, while didn’t is closely associated with the separate cluster symbol V+20. That cluster groups negative past-tense tags. It gives the grammatical evidence a targeted output position. The case illustrates how the decoder can distribute lexical and grammatical decisions across steps and how that distribution is reflected in attention.
The consistency evaluation uses a test suite designed around controlled changes to source sentences. Starting with a base sentence, the authors use variants in which a selected word is replaced by a synonym or antonym. The alternatives change the vocabulary while preserving the grammatical distinction under examination. A set of verbs can, for instance, be expected to keep its tense across the replacements. The paper compares ensembled outputs using average normalized entropy of the target-language grammatical features. Lower entropy means that the predictions are distributed across fewer grammatical choices for the variants.
Mean entropy for Czech was .178 for the fully inflected system, .157 for factored normalization and .169 for factored lemmas. For Latvian, the corresponding means were .387, .340 and .346. The finer breakdown shows that the mean trend has exceptions. For Czech adjective gender, entropy was .295 with fully inflected output, .308 with normalized output and .278 with lemmas. For Czech noun case, the corresponding values were .208, .165 and .206. For Latvian noun case, they were .263, .220 and .213. The full picture is that factoring reduced average variation in the selected features, and the representation with the lowest entropy depended on the feature. The measure tracks how steadily a choice carries across lexical variants. An unchanged but incorrect feature assignment can also produce low entropy.
Limitations
Limits identified by the authors
The authors caution that the standard automatic scores may miss changes in lexical or grammatical choices. The paper’s attention example and consistency experiment examine part of that gap. The attention example gives a concrete case involving tense and polarity, and the variant sets test whether the systems keep selected features stable as words change. Broader claims about grammatical quality would require evidence covering more types of construction and more examples of which features the translations should express. The paper’s detailed evaluation is focused on the particular grammatical phenomena and sentence sets it examines.
The authors also flag uncertainty in the ensemble comparisons. They suspect that the degree of independence between the two component systems differs across setups. This matters because an ensemble can benefit from the components making different errors. The reported ensemble differences can therefore reflect both the underlying representation and how much diversity the training runs produced. The authors say that conducting independent runs specifically for this comparison would have made the results easier to interpret, and that the computational cost prevented them from doing so.
Reinflection depends on resources with meaningfully different quality. The Latvian table contains noisy candidates, and the more extensive rescoring used in that condition takes additional computation. The authors suggest that the choice among inflected realizations might be handled using the target context alone, with a target-language predictor, and explicitly leave that possibility to empirical verification. Their results establish the behavior of the rescoring systems they evaluated. The paper also identifies a prospective architectural change, namely a stronger direct dependency of the grammatical prediction on the current lexical output. Its decoding constraints show that enforcing compatibility can help, while the effects of learning that dependency inside the architecture remain open.
Limits visible in the comparisons
The experiments translate from English into Czech and Latvian in the WMT news setting. The learned normalization specifically uses the English translation distributions of Czech or Latvian forms. A different source language can make different distinctions explicit, changing the evidence for grouping target analyses. Other target languages can also differ in how readily a token vocabulary or a dictionary captures their inflection. The two tested language pairs establish that the method can be useful under more than one resource condition. Generalization to other directions, domains or kinds of morphology remains beyond these tests.
Several comparisons change more than the presence of a separate tag stream. Normalization changes the lexical inventory, introduces cluster identities and supplies compatibility information. Splitting the cluster creates new sequence positions, changes where the full tag is emitted and uses a different maximum length in training. The output-layer comparison changes both parameter specialization and the direct embedding inputs to each head. The paper’s controlled rows let the reader see some individual interventions, especially the addition of constrained decoding or rescoring. The strongest end-to-end setting combines multiple interventions, so its score measures the pipeline as a whole.
The synthetic-data experiments likewise compare complete training and decoding conditions. The systems keep their earlier BPE inventories, start from bitext-trained parameters and continue on a mixture of selected bitext and back-translated examples. These experiments show what happens when explicit morphology is added to a strong setup that already benefits from monolingual data. They provide less leverage for attributing an improvement to any single property of those additional examples. Similarly, a factored translation reranked by a fully inflected system is a joint result of candidate generation and selection. The final score cannot assign credit between them by itself.
Finally, attention and entropy answer different, limited questions. The attention illustration makes the distribution of weights visible in one sentence, where the decoded forms also reveal which features were expressed. It supplies a plausible account of that example. Entropy aggregates changes in predictions under a controlled lexical perturbation, and its clear interpretation is stability under that perturbation. A fuller assessment of correctness would need to establish the expected feature values and compare them with the output, including for groups of examples where a system predicts the same feature consistently. The paper’s analyses make it possible to discuss the observed behavior in more detail than BLEU alone allows.
What came after
The LIMSI WMT 17 paper cites this study. The citation establishes a connection to LIMSI’s WMT work. Which target representation the citing work used, how it handled compatibility and reinflection, and whether it measured their effects separately remain unspecified. Those details determine whether the connection was a reuse of the full translation pipeline, an adoption of a particular component, or a reference to the experimental findings.
Cite
Cite as Franck Burlot, Mercedes García-Martínez, Loïc Barrault, Fethi Bougares and François Yvon. 2017. Word Representations in Factored Neural Machine Translation. Proceedings of the Second Conference on Machine Translation.
@inproceedings{burlot2017word,
title = {{Word Representations in Factored Neural Machine Translation}},
author = {Franck Burlot, Mercedes García-Martínez, Loïc Barrault, Fethi Bougares and François Yvon},
booktitle = {Proceedings of the Second Conference on Machine Translation},
year = {2017},
doi = {10.18653/v1/w17-4703},
url = {https://doi.org/10.18653/v1/w17-4703}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/burlot-2017-word-representations-factored-neural-machine/