Analysis of Morphology in Topic Modeling

Chandler May, Ryan Cotterell, Benjamin Van DurmearXiv 2016 · OpenReview

TL;DR

This paper investigates the impact of lemmatization on topic models for morphologically rich languages, specifically Russian. They found that lemmatization significantly improves topic interpretability when combined with vocabulary filtering, a finding that contrasts with previous work on English. This suggests that lemmatization is a beneficial preprocessing step for languages where word forms change extensively.

What Problem Does This Paper Address?

Topic models, like Latent Dirichlet Allocation (LDA), are powerful tools for uncovering hidden themes in large text collections. They typically represent topics as lists of the most frequent words associated with that theme. However, in morphologically rich languages like Russian, a single concept can be expressed by many different word forms (inflections). For example, the name "Putin" can appear as "Путин," "Путина," "Путину," etc., depending on its grammatical role in a sentence. This proliferation of word forms can weaken the co-occurrence signals that topic models rely on, potentially leading to less coherent and harder-to-interpret topics. While lemmatization (reducing words to their base or dictionary form) is a common preprocessing step to combat this, its actual effect on topic model interpretability, especially for morphologically rich languages, has not been systematically studied.

Methods

The authors employ Latent Dirichlet Allocation (LDA) as their topic modeling framework, using stochastic variational inference for parameter estimation. To evaluate the impact of lemmatization, they compare models with and without lemmatization applied to the corpus. They focus on a "word intrusion" evaluation metric, where human experts are presented with a topic's top words and an "intruder" word from another topic. The expert's ability to identify the intruder serves as a measure of topic interpretability. They also explore different preprocessing strategies, including:

  • Vocabulary Filtering: Removing high-frequency words (stop words) to focus on more informative terms.
  • Prior Specification: Using symmetric or asymmetric priors for document topic distributions.
  • Document Truncation: Limiting documents to their first 50 tokens to simulate data sparsity.

They use the TreeTagger lemmatizer for Russian, with parameters estimated from a Russian corpus.

Datasets

The primary dataset used is a dump of Russian Wikipedia articles from November 11, 2015. The XML formatting was stripped, and the text was then processed.

Key Insights and Ideas

  • Lemmatization Matters for Rich Morphology: Unlike previous studies on English that found little benefit from stemming, this work demonstrates that lemmatization can significantly improve topic interpretability for Russian. This highlights the crucial role of morphological richness in influencing the effectiveness of preprocessing.
  • The Power of Filtering: The most significant gains in interpretability were observed when lemmatization was combined with vocabulary filtering. This suggests that removing common, less informative words is essential for lemmatization to shine.
  • Truncation Hinders: Document truncation, which simulates data sparsity, generally led to lower interpretability and reduced the benefits of lemmatization. This implies that having more text per document is important for topic models, especially when dealing with complex morphology.
  • Redundancy in Non-Lemmatized Topics: The authors observed that topics from non-lemmatized models often contained multiple inflected forms of the same lemma, leading to redundancy and less diverse topic representations. Lemmatization helps to consolidate these forms, leading to more distinct and interpretable topics.

Key Results

The paper reports quantitative results using a "detection rate" from the word intrusion evaluation. The key finding is that on a filtered vocabulary and with a symmetric prior, lemmatization led to a significant increase in the detection rate. Specifically, the detection rate for the lemmatized model was higher than the non-lemmatized model, with a statistically significant p-value. While truncated documents showed lower overall performance, lemmatization still offered some benefit, though less pronounced.

Limitations and Future Work

The authors acknowledge that their study is distinct from prior work on English stemming due to differences in language, corpus, and evaluation metrics. They suggest that further investigation is needed to fully understand the interplay of these factors. Future work could explore other topic modeling approaches beyond LDA, investigate different lemmatization techniques, and conduct more extensive evaluations across various morphologically rich languages. They also recommend measuring the effects of lemmatization rather than assuming its benefit in new applications.

Summary updated

Abstract

Topic models are typically represented by top-$m$ word lists for human interpretation. The corpus is often pre-processed with lemmatization (or stemming) so that those representations are not undermined by a proliferation of words with similar meanings, but there is little public work on the effects of that pre-processing. Recent work studied the effect of stemming on topic models of English texts and found no supporting evidence for the practice. We study the effect of lemmatization on topic models of Russian Wikipedia articles, finding in one configuration that it significantly improves interpretability according to a word intrusion metric. We conclude that lemmatization may benefit topic models on morphologically rich languages, but that further investigation is needed.
BibTeX
@misc{may2016analysis,
  author = {Chandler May and Ryan Cotterell and Benjamin Van Durme},
  title = {{Analysis of Morphology in Topic Modeling}},
  year = {2016},
  eprint = {1608.03995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.03995},
}
Figure