To Lemmatize or Not to Lemmatize: How Word Normalisation Affects ELMo Performance in Word Sense Disambiguation

Andrey Kutuzov, Elizaveta Kuzmenko

Abstract

In this paper, we critically evaluate the widespread assumption that deep learning NLP models do not require lemmatized input. To test this, we trained versions of contextualised word embedding ELMo models on raw tokenized corpora and on the corpora with word tokens replaced by their lemmas. Then, these models were evaluated on the word sense disambiguation task. This was done for the English and Russian languages. The experiments showed that while lemmatization is indeed not necessary for English, the situation is different for Russian. It seems that for rich-morphology languages, using lemmatized training and testing data yields small but consistent improvements: at least for word sense disambiguation. This means that the decisions about text pre-processing before training ELMo should consider the linguistic nature of the language in question.

Introduction: Challenging the "No Pre-processing" Dogma

In contemporary NLP, there is a widespread belief that "minimal pre-processing is best." Advanced neural architectures like ELMo or BERT use character-level inputs or sub-word units, which are theoretically supposed to learn morphology and spelling variations autonomously. This "just add more layers" philosophy suggests that manual lemmatization—the process of reducing a word to its dictionary base form—is a relic of the past.

However, most of these assumptions are tested on English, a language with relatively simple morphology. This paper investigates whether this rule holds for morphologically rich languages like Russian, where a single noun can have a dozen different forms. The authors focus on Word Sense Disambiguation (WSD): the ability of a model to determine which "sense" of a word is being used based on its context (e.g., "bank" as a river edge vs. "bank" as a financial institution).

Methodology

The authors conducted a controlled experiment by training ELMo models from scratch under two conditions:

  1. Token-based: Trained on raw, tokenized text.
  2. Lemma-based: Trained on text where every word was replaced by its lemma.

Technical Implementation

The study used the original ELMo architecture (a convolutional layer followed by two BiLSTM layers), with LSTM dimensionality reduced from 4096 to 2048 to optimize training speed. ELMo was used as a fixed feature extractor; vectors from the top layer were fed into a simple Logistic Regression classifier to predict word senses. These were compared against "static" embeddings (Skip-gram with Negative Sampling or SGNS) to determine if lemmatization benefits were unique to contextualized models.

Datasets

  • English: Wikipedia dump (~2.1 billion tokens), evaluated on Senseval-3 (20 target nouns).
  • Russian: Wikipedia + Russian National Corpus (~1 billion tokens), evaluated on RUSSE’18 (18 target nouns).

Results and Analysis

The primary metric used was the averaged macro-F1 score for the WSD task. The results revealed a stark contrast between the two languages.

WSD performance for English showing that lemmatization provides no significant benefit for ELMo.

For English, the difference between token-based and lemma-based ELMo was negligible, with a slight preference for raw tokens (0.463 vs 0.452). This confirms the standard assumption for English-centric NLP.

WSD performance for Russian demonstrating a clear performance boost when using lemmatized input for ELMo.

However, for Russian, using lemmas instead of tokens resulted in a statistically significant improvement for ELMo, moving from 0.875 to 0.907. This suggests that for morphologically complex languages, the "minimal pre-processing" mantra may be suboptimal.

Why Lemmatization Helps

The authors argue that while ELMo can learn morphology via its character-level CNN, its capacity is finite. By providing lemmatized input, the "burden" of understanding word forms is offloaded to a pre-processor. This allows the model to dedicate more of its internal parameters to learning complex lexical semantic structures. While English nouns typically have only two forms, Russian nouns have twelve (6 cases × 2 numbers), making this offloading much more valuable for the latter.

Conclusion and Future Directions

The "Aha" moment of this research is that the optimal pre-processing pipeline is language-dependent rather than model-dependent. Lemmatization helps stabilize context representations, particularly for homonyms where unrelated senses share the same form.

Limitations: * Language Scope: Future work should include highly inflected languages like Finnish or Turkish. * Model Variety: Testing Transformer-based models like BERT would confirm if these findings generalize beyond ELMo. * Task Specificity: Lemmatization is beneficial for WSD but might be detrimental for tasks where inflectional information is vital, such as Part-of-Speech tagging. * Lemmatizer Quality: Performance is ultimately capped by the accuracy of the normalization tool (UDPipe).

Summary updated

BibTeX
@inproceedings{kutuzov2019lemmatize,
  author = {Andrey Kutuzov and Elizaveta Kuzmenko},
  title = {{To Lemmatize or Not to Lemmatize: How Word Normalisation Affects ELMo Performance in Word Sense Disambiguation}},
  booktitle = {DSpace},
  year = {2019},
}
Figure