Skip to main content
QUICK REVIEW

[Paper Review] A new evaluation framework for topic modeling algorithms based on synthetic corpora

Hanyu Shi, Martin Gerlach|arXiv (Cornell University)|Jan 28, 2019
Topic ModelingComputer Science16 citations
TL;DR

This paper introduces a novel evaluation framework for topic modeling algorithms using synthetic corpora with a precisely defined ground truth. By comparing token-level topic assignments between planted and inferred structures via normalized mutual information, the method provides an absolute, objective measure of accuracy—revealing, for the first time, an 'undetectable phase' where weak topic structures become invisible to algorithms, and demonstrating strong predictive power for real-world performance.

ABSTRACT

Topic models are in widespread use in natural language processing and beyond. Here, we propose a new framework for the evaluation of probabilistic topic modeling algorithms based on synthetic corpora containing an unambiguously defined ground truth topic structure. The major innovation of our approach is the ability to quantify the agreement between the planted and inferred topic structures by comparing the assigned topic labels at the level of the tokens. In experiments, our approach yields novel insights about the relative strengths of topic models as corpus characteristics vary, and the first evidence of an "undetectable phase" for topic models when the planted structure is weak. We also establish the practical relevance of the insights gained for synthetic corpora by predicting the performance of topic modeling algorithms in classification tasks in real-world corpora.

Motivation & Objective

  • To address the lack of objective, ground-truth-based evaluation for topic modeling algorithms.
  • To systematically isolate and quantify the impact of corpus characteristics (e.g., document length, stopwords, topic strength) on topic model performance.
  • To develop a method that measures agreement between planted and inferred topic assignments at the token level, eliminating reliance on heuristic topic matching.
  • To establish a predictive link between performance on synthetic corpora and performance on real-world classification tasks.
  • To uncover fundamental limitations in topic modeling, including an 'undetectable phase' for weak topic structures.

Proposed method

  • Synthetic corpora are generated with controlled, tunable parameters such as number of topics (K), topic strength (c), document length (md), and fraction of stopwords (Ps), enabling isolation of individual corpus characteristics.
  • A novel evaluation metric based on normalized mutual information is applied at the token level to compare the agreement between the true (planted) topic assignments and the inferred topic assignments.
  • The method avoids post-inference heuristics like topic matching by directly measuring per-token label agreement, providing an absolute accuracy score.
  • The framework is validated by comparing results on synthetic corpora with performance on real-world corpora in unsupervised document classification tasks.
  • Hyperparameters and algorithmic choices (e.g., LDAVB vs. LDAGS) are systematically varied to assess their impact on inference accuracy and bias.
  • The approach is extended to study complex features such as burstiness and non-bag-of-words structures, with flexibility for future enhancements.

Experimental results

Research questions

  • RQ1How does the performance of topic modeling algorithms vary with corpus characteristics such as document length, number of topics, and fraction of stopwords?
  • RQ2Can a token-level comparison of planted and inferred topic assignments provide a more accurate and objective measure of topic model performance than existing intrinsic or extrinsic metrics?
  • RQ3Does an 'undetectable phase' exist where topic structures become too weak for any algorithm to recover, and if so, under what conditions?
  • RQ4To what extent does the choice of hyperparameters or algorithm implementation (e.g., LDAVB vs. LDAGS) bias the inferred topic structure?
  • RQ5Can performance rankings on synthetic corpora reliably predict relative performance in real-world document classification tasks?

Key findings

  • An 'undetectable phase' exists for topic models when the topic strength (c) is too low, rendering the planted topic structure undetectable regardless of algorithm or hyperparameter choice.
  • Performance on synthetic corpora strongly predicts relative performance in real-world document classification tasks, validating the framework's practical relevance.
  • The fraction of stopwords significantly affects performance: reducing stopwords improves topic model accuracy, with LDAVB outperforming LDAGS in correctly identifying stopwords as background.
  • Document length has a monotonic positive effect on performance, but the relative ranking of algorithms remains stable across lengths, indicating consistent algorithmic strengths and weaknesses.
  • Default hyperparameter settings induce substantial bias in inferred topic structures, particularly in how uncertainty is distributed between topic-document and word-topic distributions.
  • The token-level normalized mutual information metric provides a more informative and objective evaluation than traditional coherence or likelihood metrics, especially in detecting subtle failures of topic inference.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.