---
title: "Neural Morphological Tagging of Lemma Sequences for Machine"
description: "A German tagging study shows how much grammar a system can recover from lemmas alone and where that approach falls short in translation."
canonical: "https://research.elamur.ai/free/en/papers/conforti-2018-neural-morphological-tagging-lemma-sequences/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/conforti-2018-neural-morphological-tagging-lemma-sequences/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Neural Morphological Tagging of Lemma Sequences for Machine Translation

# Neural Morphological Tagging of Lemma Sequences for Machine Translation

Paper · 2018 · Costanza Conforti, Matthias Huck and Alexander Fraser

**Authors:** [Costanza Conforti](https://md.research.elamur.ai/free/en/authors/costanza-conforti/), [Matthias Huck](https://md.research.elamur.ai/free/en/authors/matthias-huck/) and [Alexander Fraser](https://md.research.elamur.ai/free/en/authors/alexander-fraser/) · **Year:** 2018 · **Venue:** Proceedings of the 13th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **7** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/conforti-2018-neural-morphological-tagging-lemma-sequences/cited-by/) · Proceedings of the 13th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W18-1805/)
- [PDF](https://aclanthology.org/W18-1805.pdf)

## Summary

Translating into German requires choices about word endings and grammatical agreement that may be only partly signaled by an English sentence. A translation system has to choose the right words and put them into the right forms. Conforti, Huck, and Fraser ask how much of that second job can be done after the first. They give a neural tagger a sequence of dictionary forms, each called a [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), and ask it to recover the grammatical information needed to inflect the words. A German noun, for instance, may need a label that specifies its case, number, and gender. The tagger has the whole German sequence to work with, while the English sentence is outside its input.

The authors train the tagger on German Europarl sentences that have been automatically annotated. At each position, it looks at the lemma, its capitalization, and its final characters. It reads the sentence in both directions and predicts a complete label for each position. On the Europarl test2007 split, it achieves 91.34% accuracy when the label contains only [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) and 90.92% when it also contains the part of speech. Both results exceed those of a contextual statistical baseline trained on the same kind of input. A separate experiment uses the predicted labels to look up inflected words and reaches 95.54% reinflection accuracy on the test set. Using the reference labels in that same procedure yields 99.22%.

The paper then tests the full pipeline for English–German [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). A translator outputs German lemmas, the tagger supplies their grammatical labels, and a lookup procedure turns those pairs into inflected words. The pipeline improves the scores obtained when the translation and reference are compared as lemmas. Its scores are lower when the evaluation compares complete, inflected translations. On Europarl test2007, the pipeline scores 24.8 case-sensitive BLEU, while direct translation scores 25.8. The same ordering holds on test2008.

The difference between the tagging and translation results comes into focus when a lemma sequence permits several coherent readings. A German quantifier can signal that a nearby noun and its verb should be plural. A definite article, noun, and verb can also form a sequence whose lemmas fit either singular or plural. In that case, a tagger can produce a grammatical sentence while changing what the source says. The experiment establishes that target-side context supplies much of the information needed for inflection on this corpus. It also shows where that context leaves a translation decision unresolved.

## Deep dive: Neural Morphological Tagging of Lemma Sequences for Machine Translation

A German tagging study shows how much grammar a system can recover from lemmas alone and where that approach falls short in translation. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why inflection is a separate problem for translation

A [word form](https://md.research.elamur.ai/free/en/concepts/word-form/) is the shape a word takes in a sentence. A dictionary form groups related forms under a common identity. In a language where word shapes express distinctions such as case, number, tense, and mood, the dictionary form is only part of what a translator needs. The form that appears in the finished sentence must also fit the sentence’s grammatical structure and preserve the intended reading. For a German noun, case concerns its grammatical use, number distinguishes singular from plural, and gender identifies a grammatical class that can affect surrounding words.

Word choice and inflection therefore create different demands on the training data. A system may have seen a word often while having little experience with the particular form required in a new sentence. The authors describe this as a sparsity problem, especially when training resources are limited. If occurrences are distributed across many forms, evidence for each individual form can be scarce. Grouping those occurrences under lemmas pools some of the evidence. A subsequent step must then determine how each of those lemmas should appear in context.

The direction of translation changes what the system can afford to simplify. When a morphologically rich language is the input, earlier work sometimes used analysis to remove distinctions before translation. The system can work with an altered input as long as that representation retains the evidence it needs for the intended output. The paper describes Arabic as a prominent case of substantial preprocessing and discusses related work on using morphological analysis to reduce sparsity. [Arabic Preprocessing Schemes for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/habash-2006-arabic-preprocessing-schemes-statistical-machine/), [Morphological Analysis for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/lee-2004-morphological-analysis-statistical-machine-translation/), [Improving Statistical MT through Morphological Analysis](https://md.research.elamur.ai/free/en/papers/goldwater-2005-improving-statistical-mt-through-morphological/)

When the richer language is the output, simplifying its representation creates a reconstruction problem. English may express a distinction through its syntax or lexical choices that German expresses in the shape of a word. Once translation has produced an underspecified German sequence, a later component must recover enough information to realize the distinction in German. The difficulty extends beyond choosing a plausible ending for an isolated word. A single choice about number can affect the article, the noun, and the verb, sometimes across intervening words.

#### Earlier ways to divide the work

The paper describes several approaches developed for phrase-based statistical translation, which builds translations from pieces of a sentence. Factored translation represents a word through several pieces of information, such as a lemma and its grammatical features. A generation step can then recover the inflected form. The paper notes that adding alternative paths for these factors can make the search expensive. Earlier work used backoff, which falls back to less specific evidence, or added information about lemmas and annotations as supplementary features in a simpler search procedure. [Factored Translation Models](https://md.research.elamur.ai/free/en/papers/koehn-2007-factored-translation-models/), [Effects of Morphological Analysis in Translation between German and English](https://md.research.elamur.ai/free/en/papers/stymne-2008-effects-morphological-analysis-translation-between/)

The problem of agreement prompted other designs. A phrase-based system accompanied by a predictor that scores short strings of adjacent words has a limited view of dependencies beyond those strings. The authors describe syntax-based translation as a setting in which explicit agreement constraints are easier to incorporate. Other work predicted information about target inflection from the source sentence ahead of translation or added synthetic phrases to provide inflected variants that were missing from the training material. These approaches place the evidence for morphology in different parts of the process. A system can consult the source early, enforce agreement during search, or expand the set of forms available to the decoder. [Agreement Constraints for Statistical Machine Translation into German](https://md.research.elamur.ai/free/en/papers/williams-2011-agreement-constraints-statistical-machine-translation/)

Several earlier systems put morphology after the main translation step. The translator output a simplified target sentence, and a separate component predicted the information that had been omitted. Choosing which features to omit required linguistic judgment. Removing a distinction can make the translation vocabulary easier to learn from the available data. The same choice can make restoration harder if the simplified sentence offers little evidence about that distinction. In the Chinese–Spanish work discussed by the authors, translators produced Spanish with number and gender omitted, separate classifiers supplied those features, and a generation stage reconstructed the full forms. Other features remained available in the simplified Spanish. [Applying Morphology Generation Models to Machine Translation](https://md.research.elamur.ai/free/en/papers/toutanova-2008-applying-morphology-generation-models-machine/)

Another route is [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/), which breaks words into smaller units that can be shared across different forms. The paper describes linguistic segmentations that separate stems and affixes, as well as byte-pair encoding, a method used to shrink the vocabulary in neural translation. Sub-word translation still has to put its output pieces back together. The authors discuss it alongside systems that make the grammatical distinctions explicit by translating into a sequence in which each lemma is followed by its tag. In that design, the translator predicts both pieces of information before a second component realizes the final forms. [Neural Machine Translation of Rare Words with Subword Units](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/), [Word Representations in Factored Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/burlot-2017-word-representations-factored-neural-machine/)

#### What changes when the input consists of lemmas

In ordinary [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), the system marks words with categories such as noun or verb. Fine-grained tagging also identifies the grammatical distinctions relevant to their inflection. On input that already contains inflected words, part of the task is to interpret evidence visible in those words. An ending might help the system recognize a grammatical value, and the shapes of nearby words might provide additional evidence through agreement. The paper describes earlier fine-grained taggers that use characters to find regularities in those shapes. [Non-lexical neural architecture for fine-grained POS Tagging](https://md.research.elamur.ai/free/en/papers/labeau-2015-non-lexical-neural-architecture-fine/)

A tagger that reads lemmas faces a different inference problem. Through [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/), distinct inflected forms are mapped to a shared base form. The context still contains words in an order and retains the identities of those words. It can therefore carry strong evidence even after inflection is removed. An indefinite article or a quantifier can help decide the number of nearby words. A noun’s gender may be associated with its lexical identity, and its derivational ending can sometimes help identify its class. What disappears is the evidence provided by the original inflected forms themselves. Some of the lost information can be inferred from what remains. Some decisions are compatible with more than one reading of that remaining input.

The closest earlier study identified by the authors is the work of Minkov and colleagues on generating complex morphology for translation. That work used a Maximum Entropy Markov approach and aimed to predict surface forms. Conforti and colleagues use a neural sequence tagger and make the intermediate grammatical label the prediction target. This lets them ask whether the target sequence contains enough evidence to recover its annotations before asking whether those annotations can be turned into words. It also lets them examine individual features even though the tagger predicts them together. The paper uses German for the case study because the language has been widely studied and resources for preparing and evaluating the data are available.

### The method, step by step

#### From a German sentence to a tagging example

The tagger learns from sentences that already have both lemmas and grammatical labels. Begin with a German sentence as it occurs in the corpus. Each token has a surface form. An automatic annotator identifies its lemma and supplies a label, and the authors keep the labels as the targets for training. The tagger sees a sentence made up of the lemmas. It has to predict the corresponding labels from those lemmas in context. This setup gives the authors input and output sequences that line up position by position.

Here, [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) supplies the examples from which the tagger learns. The annotations are synthetic in the sense that an existing system assigns them to genuine corpus sentences. The authors use Europarl v7 and prepare it with scripts from the Moses toolkit. The scripts perform [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), which establishes the token boundaries, and frequent-casing, the casing procedure used in preparing this data. The pretrained German annotator in MarMoT then supplies parts of speech and morphological labels. MarMoT uses Lemming to supply the lemmas. The reason for making the data this way is practical. A translation project can have a task-specific corpus without having manual fine-grained annotations for it. Automatic annotation allows the tagger to train on that corpus. [Joint Lemmatization and Morphological Tagging with Lemming](https://md.research.elamur.ai/free/en/papers/muller-2015-joint-lemmatization-morphological-tagging-lemming/)

The positions in a prepared sentence can be represented as follows.

```
x = (x₁, x₂, …, xₙ, …, xₙ′)
```

Here `x` would denote the input and the subscripts would denote positions. More directly, the paper writes the length as `N` and describes the sequence using its first, second, and last positions.

```
x = (x₁, x₂, …, x_N)
```

`x` is the input sequence and `x₁` and `x₂` are its opening lemmas. `x_N` is the last lemma, with `N` the total number of positions. The subscripts identify positions in sentence order, the ellipsis stands for intervening entries, and the parentheses collect the entries in order.

```
y = (y₁, y₂, …, y_N)
```

`y` is the output sequence. `y₁` and `y₂` are the labels at the opening positions and `y_N` is the label at the last position. As for `x`, the ellipsis stands for intervening positions and the parentheses give the order. The shared `N` means that the tagger attaches a label to each input token. Each `y` entry belongs to a pre-defined tagset called `T`. In training, the entries in `y` are the supplied annotations. At prediction time, the tagger estimates them.

#### What goes into a label

The authors train separate versions of the tagger for the `morph` and `POS+morph` tagsets. In `morph`, a label collects the applicable inflectional features. `POS+morph` adds the part of speech to that collection. For the lemma *Parlament* after *im*, the example in the paper identifies the word as a noun and assigns dative case, singular number, and neuter gender. The first of those pieces specifies the word class. The others specify the values relevant to the word’s use in that sentence. Under `morph`, the target contains the dative, singular, and neuter information. Under `POS+morph`, the noun category is also part of the target.

A description of this kind can be split back into individual features. The label inventory includes gender, case, number, person, degree, tense, and mood. Degree distinguishes forms such as comparative and superlative. Mood applies to certain verb forms, and case and gender occur on several kinds of nominal words. Accordingly, a label for one word class can contain a different selection of fields from a label for another. Some fields allow an undefined value. A field that is present with an undefined value is treated differently from one that is absent altogether, a distinction the authors preserve in their feature-level evaluation.

Although the labels contain parts, the tagger learns to choose a complete label at a position. It can choose the bundle that includes dative, singular, and neuter, for instance, without running a separate classifier for each of those values. This makes the observed combinations part of the classification problem. It also means the choice is confined to the inventory of learned classes. The `morph` tagset has 255 labels. The `POS+morph` tagset has 678. The paper reports an average of 3.96 labels per stem for `morph` and 4.00 for `POS+morph`. At the most ambiguous stem, the corresponding counts are 96 and 128. These figures describe the candidate labels encountered across occurrences of a stem and help explain why a fixed label for each lemma can be inadequate.

#### What the tagger can see

Each input position contributes the lemma itself, a capitalization category, and a suffix. The lemma tells the system which lexical item has been supplied and gives it access to patterns associated with that item in training. Capitalization groups together tokens that share a visible casing pattern. The implementation distinguishes all-uppercase and all-lowercase forms, a capitalized form, a pattern with an upper-case character away from the first position, and a residual category. This channel can provide information when the full lemma is outside the vocabulary. The authors draw on earlier work for this part of the representation. [Natural Language Processing (almost) from Scratch](https://md.research.elamur.ai/free/en/papers/collobert-2011-natural-language-processing-almost-scratch/)

The suffix for this system is a fixed-length string taken from the end of the lemma. The paper uses the term in that operational sense. The procedure can extract the suffix directly from the token, even in cases where a linguist would divide the word differently. Its value lies in shared patterns at word endings. A pattern that occurs on many members of a word class can help when the full lemma has little training evidence. Since classes differ in which grammatical features they carry, evidence about a class can narrow the plausible labels. The selected suffix length is expressed by the following setting.

```
n = 4
```

In this setting, `n` is the length of the suffix and `4` is the number of final characters the authors choose after preliminary experiments. The lemma vocabulary is restricted to the 40K most frequent entries to speed up training. The reported out-of-vocabulary rate is 0.016 for the training corpus and 0.019 for the test sets. The suffix vocabulary undergoes no corresponding frequency reduction. The suffix and capitalization channels can thus supply information even when the full lemma lacks its own vocabulary entry.

#### How information moves through the network

A token’s three input channels start as categorical values. The tagger represents each value by a one-hot vector, whose active entry identifies the category, then maps it to a dense vector of learned numbers. These dense representations are called [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) when they represent words or lemmas. The tagger learns analogous embeddings for casing categories and suffixes. It joins the three vectors into one representation for the position. The dimensions are 128 for the lemma embedding, 40 for the suffix embedding, and 10 for the capitalization embedding.

Predicting grammatical labels from a lemma sentence The steps in order.

The joined representations pass through three stacked bidirectional recurrent layers. A recurrent layer processes positions in sequence, carrying a representation forward from one position to the next. Bidirectionality applies this operation in both sentence orders. The representation at a token can therefore depend on material before and after it. For the morphology task, the relevant word may be a determiner on the left, a verb farther to the right, or another part of the sentence altogether. A recurrent cell called a gated recurrent unit, or GRU, governs the passage of information from one position to the next. The authors cite simpler internal structure and faster training as reasons for choosing GRUs over long short-term memory units, with comparable results in their preliminary experiments. They also point to the earlier use of bidirectional layers in [Neural Architectures for Named Entity Recognition](https://md.research.elamur.ai/free/en/papers/lample-2016-neural-architectures-named-entity-recognition/).

The first recurrent layer also connects directly to the third. This skip connection gives information from the first layer a route that bypasses the intervening layer. The resulting contextual representation passes to a dense scoring layer applied at every position. It returns a score vector with one entry per available label.

```
|T|
```

`T` is the selected tagset and the vertical bars denote the size of that set. Thus `|T|` is both the number of candidate labels and the length of the score vector at each token. A softmax operation converts those scores into probabilities over the candidates at that position. The whole sentence can influence the probabilities through the recurrent layers. The paper’s output procedure chooses labels at individual positions, so any agreement across those decisions comes from the information learned in the network.

#### How the tagger learns

The network’s parameters are trained together. The same training objective shapes the embeddings, the recurrent computation, and the output scores. In the paper’s notation, the objective for a sentence is the negative conditional log-likelihood.

```
F(θ) = −∑ₙ₌₁ᴺ log pθ(yₙ | x₁, …, x_N)
```

`F` is the objective to minimize and `θ` denotes the trainable parameters. The sum `∑` runs over position index `n`, beginning at `1` and ending at sentence length `N`. At each position, `yₙ` is the supplied target label and `pθ` is the probability assigned to it by the network with parameters `θ`. The conditioning bar `|` says that this probability is computed given the input sequence, from `x₁` through `x_N`, with the ellipsis standing for all intervening lemmas. `log` takes the logarithm of the assigned probability. The minus sign makes lower probability on the supplied label correspond to a larger penalty. Training can improve the objective by placing more probability on the annotated labels.

The taggers share a batch size of 32, the Adadelta optimizer, dropout of 0.3, and a recurrent layer size of 256. Batches group training examples for parameter updates, and dropout is used during training to reduce reliance on particular activations. During training, the authors pad shorter inputs or cut longer inputs to fit a length of 70 tokens for `morph` and 60 for `POS+morph`. At evaluation time, the padding length is the longest sentence in the dataset being evaluated. The paper reports around one week to train for 15 epochs on an Nvidia GeForce GTX 750. An epoch is a pass through the training data.

#### How predicted labels become words

For the reinflection experiment, the authors build a generator that looks up forms in the training corpus. The most specific lookup uses the current lemma, its full grammatical label, and the label at the next position. If the combination has no entry, the generator tries a less specific key. All the keys refer to observed associations with a current word form. The count used by the generator is the number of training occurrences that support an association, and the highest-count form wins within the first applicable lookup.

```
argmax_{wᵢ} count((lᵢ, tᵢ, tᵢ₊₁) → wᵢ)
```

`i` is the current position, `lᵢ` its lemma, `tᵢ` its predicted `POS+morph` label, and `tᵢ₊₁` the label at the next position, `i + 1`. The parentheses collect the lookup key. The arrow relates that key to a candidate form `wᵢ` for the current position. `count` gives the frequency of the association in training, and `argmax` returns the candidate `wᵢ` with the greatest count. This form of the paper’s maximization makes explicit that the selected output is the word form.

```
argmax_{wᵢ} count((lᵢ, tᵢ) → wᵢ)
```

Here `i` again denotes the current position, `lᵢ` its lemma, `tᵢ` its label, and `wᵢ` a candidate form. The key in parentheses now contains information from the current position only. The arrow represents its association with the form. `count` tallies that association in training, and `argmax` selects the `wᵢ` with the highest tally.

```
argmax_{wᵢ} count((lᵢ, lᵢ₊₁) → wᵢ)
```

`lᵢ` is the current lemma, `lᵢ₊₁` is the next lemma, and the parentheses enclose this pair as the lookup key. The subscript `i + 1` moves one position forward from `i`. The arrow links the pair to `wᵢ`, a possible form at the current position. `count` measures how frequently the association occurs in training, and `argmax` returns the most frequent form. This lookup uses adjacent lexical information without consulting a tag.

```
argmax_{wᵢ} count(lᵢ → wᵢ)
```

`lᵢ` is the lemma at position `i` and `wᵢ` is a possible form at that same position. The arrow represents an association between them, `count` tallies its training occurrences, and `argmax` returns the `wᵢ` for which that count is highest. This fallback uses the current lemma by itself.

```
lᵢ → lᵢ
```

`lᵢ` denotes the lemma at position `i` on both sides. The arrow indicates that an unseen lemma is copied to the output unchanged. In a sentence, some positions can obtain their forms from a highly specific lookup while others back off to a more common form or the copied lemma. Accordingly, the generator can produce a form even when its preferred combination is missing. In the reinflection evaluation, the authors can supply either reference tags or tags predicted by the neural system while keeping this generation procedure fixed.

#### How the tagging and translation stages connect

For English–German translation, one system is trained to output fully inflected German, and the other is trained on parallel sentences whose German side has been lemmatized. The latter system provides the first stage of the pipeline. At evaluation time it translates English into a German lemma sequence. The tagger supplies a grammatical label for each lemma, and the lookup generator turns those pairs into German word forms. Only the translator reads the English sentence. Once the lemma sequence has been decided, downstream stages can use the distinctions that survive in that sequence and the patterns learned from their training material.

Both translation systems use the Nematus encoder and decoder with attention and GRUs. The encoder reads the source, and attention gives the decoder access to relevant source representations as it produces the target sequence. The authors use tokenization and frequent-casing before byte-pair encoding. They apply 50K merge operations for segmentation. For the lemma translator, the merges are learned from the lemmatized data. The translation embeddings have dimension 500 and the hidden layer has dimension 1024. The authors use Adam, a learning rate of 0.0001, a batch size of 50, and hidden-layer dropout with probability 0.2. These are settings for the translation engines. The tagging network has its own training objective and settings. [Nematus](https://md.research.elamur.ai/free/en/papers/sennrich-2017-nematus-toolkit-neural-machine-translation/)

### Experiments and results

#### Measuring the tagger against simple and contextual baselines

The German Europarl v7 tagging corpus has 1.9M training sentences. The test2006 development split and the main test2007 tagging split contain 2,000 sentences each. The paper also uses test2008 in the translation evaluation. The numerical results for tagging compare the predictions with annotations produced for the corpus by the preprocessing procedure. An exact label is the unit of success in the main tagging table. For a `POS+morph` label, this requires a match on the part of speech and the attached morphological bundle. A partially correct bundle can still provide evidence about individual features, which the paper measures separately.

The comparison starts with a maximum-frequency rule that gives every token the most common label in the relevant tagset. A frequency-lookup rule takes the lemma into account and chooses the label most often associated with it in training. It measures how far lexical preferences can take the task before context enters the decision. The strongest baseline is a conditional random field, or CRF, trained on the lemmatized Europarl corpus with MarMoT’s defaults. This is a statistical tagging approach that can use contextual evidence. Although the same toolkit also supplied annotations, the baseline serves a different role. It is trained for the lemma-input task, while the pretrained German annotator was used to create the training and evaluation material.

Exact morphological label accuracy on German Europarl test2007 The neural tagger leads the contextual baseline and both frequency rules on exact morphological labels.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Maximum frequency | 38.92 |
| Frequency lookup | 60.32 |
| CRF | 87.91 |
| Neural tagger (this paper) | 91.34 |

Exact part-of-speech and morphology label accuracy on German Europarl test2007 The neural tagger leads the baselines when the label includes the part of speech.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Maximum frequency | 7.47 |
| Frequency lookup | 56.78 |
| CRF | 86.78 |
| Neural tagger (this paper) | 90.92 |

On test2006, the `morph` accuracies are 39.15% for maximum frequency, 59.97% for frequency lookup, 87.77% for the CRF, and 91.22% for the neural tagger. On the same development split, `POS+morph` accuracies are 7.65%, 56.52%, 86.96%, and 90.61%, respectively. The ordering is consistent across the development and test splits. Predicting a fixed label performs especially poorly when part of speech is included. Conditioning the frequency rule on the lemma substantially improves its accuracy, and the contextual baselines show how much additional information is available from the sequence.

The absolute scores also bear on the original research question. Clearing 90% on exact labels for both inventories means that the tagger frequently recovers the full bundle assigned to a token in this data. The strongest of the simpler comparisons already reaches 87.91% on test2007 with `morph`. The experiment therefore gives separate evidence about what the lemma sequence contains and what the proposed architecture can do with it. A conventional contextual tagger already extracts considerable information from lemma input. The neural architecture improves on that comparison in both labeling conditions.

#### Measuring the individual features

The authors separate the predicted bundles into their components and report two F1 scores for each feature. F1 combines precision and recall, which concern the correctness and coverage of the predicted values. In evaluation A, the authors examine positions whose reference labels carry the feature in question. Degree, for example, is examined where it applies to the adjective in the reference. Evaluation B includes every word class and represents an absent feature by the artificial class `NNN`. A system earns credit in B for correctly leaving gender out of a verb label, for instance. An undefined value, written `*` in the paper’s analysis, remains distinct from `NNN`.

In the German Europarl feature analysis, gender has the highest evaluation A score among the morphological features. It scores 96.57 with `morph` and 96.61 with `POS+morph`. Case scores 93.69 and 93.87, respectively. Number scores 95.12 with `morph` and 94.99 with `POS+morph`. Degree has evaluation A scores of 82.36 and 82.21, while tense scores 85.06 and 85.44. The `POS+morph` tagger also receives 98.45 F1 for the part of speech in both evaluation columns. The plain morphology tagger has no corresponding part-of-speech output.

Under evaluation B, the Europarl F1 scores with `POS+morph` are 96.52 for case, 97.94 for gender, and 96.57 for number. The same tagger obtains 99.63 for degree and 98.90 for tense under B. Consider degree alongside the training support figures. A degree value is defined in 8.42% of the training annotations, so evaluation across all word classes gives the system many opportunities to correctly predict that degree is absent. Tense has training support of 7.64%. Number has support of 58.05%. Support measures how frequently an annotation has a defined value for a feature in the training corpus. It differs from both the number of categories in the feature and the score for recovering its value.

The two F1 measures answer related questions about the same outputs. Evaluation A concentrates on how the tagger does when the reference provides a value. Evaluation B tests both selection of a value and recognition of where the feature belongs. Exact-bundle accuracy adds a third view. It requires the complete combination of features at a position to agree with the reference. A tagger can perform well on the most common individual decisions and still lose an exact match when one field of a more complex label is wrong.

#### Measuring whether the tags yield the original forms

The reinflection test moves from internal tags to their practical use. On the German Europarl test set, the lookup generator achieves 99.22% word-form accuracy when given reference tags and 95.54% when given the tagger’s predictions. Both conditions start with test-set lemmas. Consequently, the comparison measures what changes when predicted labels take the place of reference labels in the same generation system.

The first result shows that the corpus-derived lookup procedure can usually reconstruct a test form when its annotations are supplied. The second shows that the predicted tags retain enough information for the generator to recover many of the original forms. A match on the complete grammatical bundle and a match on the realized word are different events. Different grammatical analyses can share a surface form, and the lookup procedure can recover a frequent form after falling back to a key that uses less label information. Conversely, a missed training association can affect generation even when a label is right. The two accuracies measure the behavior of the complete lookup procedure under its respective inputs.

#### Measuring translation before and after inflection

For the full pipeline, the authors compare English–German translations by [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/), a measure based on overlap with reference translations. They first compare at the lemma level. The direct system’s German output is lemmatized with Lemming, as are the references, so the scores in this comparison concern sequences of base forms. On Europarl test2007, direct translation scores 28.9 Lemma-BLEU and translation trained to produce lemmas scores 29.3. On test2008, the corresponding scores are 28.7 and 29.2. The authors read this as a small improvement in lexical choice when the translator learns to generate lemmas directly.

The complete translation evaluation compares postprocessed, fully inflected German outputs using case-sensitive BLEU. The pipeline here includes both the neural tagger and the lookup generator. Its standing changes when the evaluation sees the forms that a reader would actually receive.

Case-sensitive BLEU for fully inflected German on Europarl test2007 Direct translation scores higher than the lemma translation pipeline after inflection.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Direct translation | 25.8 |
| Lemma translation with tagging and reinflection (this paper) | 24.8 |

On Europarl test2008, direct translation scores 25.7 case-sensitive BLEU and the pipeline scores 24.5. The authors’ inspection of translations finds generally coherent output with errors involving number, tense, and mood. Those distinctions can change the intended reading even when the generated words agree with each other. The lemma scores indicate that the pipeline has a good starting representation for lexical choice. The fully inflected scores show that, in the configuration tested, the later stages give up more in producing the finished translation than the lemma translator gains in that intermediate representation.

The conditions also differ from the reinflection experiment. In standalone reinflection, the lemmas come from the reference-side German sentences. In the translation pipeline, a translator generates the lemmas from English. The system must work with whatever lexical choices and word order that upstream stage supplies. A high reconstruction score on corpus lemmas establishes that the tagger and generator can work together on that input. The full translation comparison asks whether they can serve as the final stages of a translator whose own outputs become their inputs.

### What the ablations show

#### Comparing label inventories

The paper gives no systematic component ablation of the tagging network. Its evidence comes from comparisons between label inventories, preliminary architecture trials, a controlled change to the inflection input, and analyses of particular prediction errors and learned representations.

The `morph` and `POS+morph` comparison changes the target the classifier has to predict. Adding part of speech makes word class explicit in the label. That can help tie the choice of features to the class. A verb label, for instance, has a different range of plausible fields from an article label. At the same time, exact-match accuracy has a more demanding target in the larger inventory, and the training lengths differ between the conditions. The test scores for the two complete inventories therefore concern different classification tasks. The scores on shared features provide a more direct view of the effect of predicting the part of speech alongside them.

On those shared features, the direction of change depends on the feature and evaluation. Under evaluation A, case improves from 93.69 to 93.87 and gender improves from 96.57 to 96.61. Number moves from 95.12 to 94.99. Mood moves from 90.14 to 90.01, and degree from 82.36 to 82.21. Under evaluation B, number scores 96.63 with `morph` and 96.57 with `POS+morph`, while degree scores 99.63 in both. The authors suggest that jointly predicting the part of speech helps the network learn where features belong. The table supports improvements for some decisions, with similar or lower results for others.

The paper also describes preliminary comparisons that informed the design. GRUs gave results comparable to those of long short-term memory units and were chosen in part for training speed. A character-based alternative did not outperform the reported architecture in the preliminary trials. The authors connect this to the nature of the input. When word forms are already lemmatized, a character-based system has fewer opportunities to detect original inflectional endings, while a suffix channel still captures some shared patterns in the remaining lemma shapes. The trials have no reported scores for individual components. The architecture comparisons therefore explain the authors’ choices without estimating a separate contribution for capitalization, recurrence direction, or the skip connection.

#### What the errors say about the available clues

The confusion matrices locate errors within gender, case, number, and tense. With case, the authors find the greatest confusion between nominative and accusative, which can occur in similar distributions in German. Setting aside the undefined category, genitive is the least frequent case value considered and the hardest for the tagger. The profile suggests that the overall case score combines distinctions with different amounts of evidence. A broadly successful case prediction system can still have trouble recognizing particular uses.

Feminine is the easiest of the reported gender values. It is also the most frequent. The authors offer another possible explanation alongside frequency. Feminine nouns include many words with derivational patterns whose endings are visible in the lemma. A tagger with a suffix representation can associate those endings with the gender of nouns it encountered during training. Gender is a lexical attribute of a noun, while the gender marking on a nearby determiner or adjective can reflect agreement with that noun. The authors suggest that learning the noun’s gender can help with those surrounding positions as well.

The imbalances in number and tense show how a plausible default can interact with sparse evidence. The paper reports that singular appears approximately twice as often as plural and that errors tend to turn plural into singular. For tense, present accounts for nearly 85% of the training examples in the reported distribution, and the tagger assigns present to almost half of the past occurrences. These patterns help reconcile high aggregate scores with consequential mistakes. The system can often recognize the set of words that should carry a feature while falling back too readily on a frequent value within that set.

Individual sentences give concrete examples of what the network can use. In a passage with references to yesterday and today, the authors show the tagger recovering the required contrast between past and present verbs. The temporal words are present as lemmas and can supply evidence even though the lemmas of the verbs have lost their contextual inflection. In a budget example, a form of *viel*, meaning many in that context, gives evidence for the plural of the announcements being described. These are instances where a source reading can be recovered from lexical clues still visible on the target side.

The paper also shows a case where *hätten* and *müssen* in the reinflected output reflect a correct subjunctive decision across a span of 16 tokens separating the verbs. The authors identify the combination as evidence for subjunctive mood. The example establishes that the tagger can succeed when a relevant pattern extends well beyond neighboring words. Its distance alone gives no estimate of success across all such dependencies. The analysis reports selected examples alongside the corpus-level error patterns.

A contrasting example involves *Nachbarland*, meaning neighboring country. The reference sentence refers to a single country, while the system produces the plural. In the plural output, the determiner and verb change in ways that fit the noun. The authors attribute the choice to the frequency of plural for the lemma in the relevant training contexts, with little explicit evidence in the sentence to favor the intended singular. This is a case where learned context helps produce agreement even as the reconstruction changes meaning. The re-inflected examples make that distinction visible to a reader who would find a sequence of labels harder to interpret.

#### What the learned representations retain

The authors inspect the nearest neighbors of a small selection of suffixes and lemmas in the learned vector spaces. They use cosine similarity, which compares vector directions, and examine the 4 nearest neighbors after 15 epochs of training for `POS+morph`. The selected suffixes are `-isch`, `-rung`, and `-eren`. Their neighborhoods tend to contain suffixes associated with adjectives, feminine nouns, and verbs, respectively. This supplies examples of how a character ending can become a cue to word class without having been labeled separately as a grammatical ending during training.

The lemma neighbors illustrate what changes when the training objective rewards morphological prediction. The tagger gives *solidarisch* an adjective, *generell*, as its nearest neighbor. The comparison with LAMB, which the authors use as a semantic embedding reference, gives *Solidarität*, a related noun. For *Kooperation*, the neighbors in the tagger’s space are feminine nouns, whereas the LAMB neighbors are semantically related words whose genders differ. A neighbor can share the class relevant to the tagger even when it shares little of the lemma’s meaning.

These examples show what the authors can find in the learned representations. They do not measure how frequently the same patterns occur throughout the vocabulary or how much the tagger’s accuracy depends on a particular neighbor relationship. The representations make a plausible account of the errors more concrete. Suffixes associated with grammatical classes are available to the prediction layers, and task-trained lemma vectors can group words by properties that matter for their inflection.

#### What changes when the labels are supplied

The reference-label and predicted-label inflection runs make the most direct controlled comparison downstream of the tagger. Both use the same test lemmas and the same lookup generator. Replacing the reference labels with predictions lowers word-form accuracy from 99.22% to 95.54%. This shows that errors made in supplying tags matter to the reconstruction. It also shows that the supplied predictions are usable by a separate component, which was the reason for evaluating them beyond exact label accuracy.

The end-to-end translation comparison changes the target of the translation engine and introduces separate tagging and generation stages. It therefore measures a design choice as a whole. It does not isolate a contribution from any single stage. The disagreement between the lemma-level and fully inflected comparisons places the weakness after or outside what the lemma score captures. The qualitative inspection gives examples of grammatical features implicated in the weakness. The study does not supply a translation run with the same generated lemmas and independently verified inflection labels that would quantify how much of the gap those features account for.

### Limitations

#### Limits identified by the authors

Some information disappears when a target sentence is reduced to its lemmas. The authors illustrate this with the German article, noun, and verb for a sentence about flowers blossoming. The lemmas *der*, *Blume*, and *blühen* can correspond to a well-formed reading about one flower or a well-formed reading about several. A source sentence can specify which reading is intended. If the tagger sees the same sequence in both situations, it has no source evidence that would let it choose differently. The training distribution can make one reading a better default, but a default cannot reliably recover the distinction in each occurrence.

Other examples show why the authors still consider the prediction task worthwhile. If a sequence contains an indefinite article or a word meaning many, the target-side lexical material can determine the relevant number. Some grammatical values are regular enough to learn from the lemma’s identity, its shape, or its neighbors. The authors’ claim concerns strong recovery under these conditions. Their translation findings set a limit on strict separation when a decision about inflection must depend on meaning that the German lemma sequence does not express.

The authors also limit the aims of the lookup-based generation experiment. It is a test of whether their tags support useful reinflection. They mention learned reinflection and language-specific generation tools as ways the generator might be improved, without testing those alternatives in the reported pipeline. An improved generator could help with a missing lookup or an unreliable frequency choice. A generator that receives an incorrect number or tense label still faces a different problem. Better realization of the supplied label cannot by itself recover the intended reading.

#### Limits visible in the evaluation setup

The central tagging results are from German Europarl, with training and test annotations made by an existing tagging system. The authors report the German MarMoT annotator’s TIGER test-set accuracies of 97.94 for part of speech and 91.65 for morphological annotations, and they cite 98.10 accuracy for German lemmatization with Lemming. Those are reported figures for the annotation tools. They are separate from the accuracy of this paper’s tagger on lemmatized Europarl. There is no independent manual Europarl comparison in the tagging evaluation that would measure how frequently an apparent success or failure reflects an annotation decision by the preprocessing system.

The tagger’s input channels are designed to require no language-specific tool at prediction time, once lemmas are available. Preparing training examples still requires a source of lemmas, suitable labels, and a corpus in the language of interest. German is the only case study. The fact that the operations can be applied to sequences from other languages leaves open how well they work with different orthographies, different kinds of morphology, or less training material. Performance on the narrower Europarl test sets gives no direct measure of those transfers.

The way labels are represented also bounds what the system can output. Since each combination is a class in the tagset, the architecture does not explicitly assemble new feature bundles from separately predicted values. Input can be drawn from a fresh sentence, but the output must come from the given inventory. This approach makes exact-bundle prediction straightforward and gives the system experience with attested combinations. The study offers no dedicated test of how well that inventory covers new domains or of what happens when an appropriate bundle is absent.

The recurrent context provides evidence for compatible decisions at different positions. The objective and output layer do not enforce agreement as a grammatical constraint across the final labels. The paper shows cases where predictions cohere over a distance and describes outputs as generally coherent in its inspection. It gives no corpus-wide measure of grammatical agreement independent of the reference labels. An exact-label error can come from an incoherent combination or from an internally consistent alternative, as the neighboring-country example shows.

Finally, the translation experiment compares two whole systems using case-sensitive BLEU. That result establishes which system scored better on the reported English–German test sets. The design combines changes to target representation, segmentation learned on that representation, and the presence of tagging and lookup stages. A difference in the final score cannot be uniquely assigned to tag prediction. Conversely, the lemma-level score ignores distinctions that the final output must preserve. The two evaluations are most informative when read together with the reference-lemma reinflection test and the examples of lost distinctions.

### What came after

The paper’s research plan leaves open what happened after the pilot study. The authors propose a multitask translation system in which one task produces German lemmas and another predicts rich German tags. They relate the proposal to earlier multitask work by Niehues and Cho that produced coarse source-language parts of speech alongside target words. Their own proposal puts the fine-grained labels on the target side, where they are needed for inflection.

The proposed change is to let the tagger consult the source sentence when one is available. The flower example makes the purpose concrete. The German lexemes and their order can constrain the allowable patterns of agreement, while English can supply the number distinction that selects the intended pattern. Training would draw on parallel examples, which have a source sentence, and target-language monolingual examples, which can still teach the system how lemmas and labels fit together. The reported paper tests the target-only component and the strictly separated pipeline. It describes source-aware multitask training as the next experiment, with no results for that extension.

## Cite

Cite as Costanza Conforti, Matthias Huck and Alexander Fraser. 2018. Neural Morphological Tagging of Lemma Sequences for Machine Translation. Proceedings of the 13th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track).

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

```bibtex
@inproceedings{conforti2018neural,
  title = {{Neural Morphological Tagging of Lemma Sequences for Machine Translation}},
  author = {Costanza Conforti, Matthias Huck and Alexander Fraser},
  booktitle = {Proceedings of the 13th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track)},
  year = {2018},
  url = {https://aclanthology.org/W18-1805/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
