Skip to main content
QUICK REVIEW

[Paper Review] Revisiting Automated Topic Model Evaluation with Large Language Models

Dominik Stammbach, Vilém Zouhar|arXiv (Cornell University)|May 20, 2023
Topic ModelingComputer Science4 citations
TL;DR

This paper proposes using large language models (LLMs) to automate topic model evaluation and hyperparameter tuning, demonstrating that LLMs correlate more strongly with human judgments than traditional metrics on coherence tasks. LLMs effectively assess topic quality and guide selection of optimal topic counts by incorporating research questions into prompts.

ABSTRACT

Topic models are used to make sense of large text collections. However, automatically evaluating topic model output and determining the optimal number of topics both have been longstanding challenges, with no effective automated solutions to date. This paper proposes using large language models to evaluate such output. We find that large language models appropriately assess the resulting topics, correlating more strongly with human judgments than existing automated metrics. We then investigate whether we can use large language models to automatically determine the optimal number of topics. We automatically assign labels to documents and choosing configurations with the most pure labels returns reasonable values for the optimal number of topics.

Motivation & Objective

  • Address the longstanding challenge of automating topic model evaluation and hyperparameter selection.
  • Overcome the poor correlation of traditional automated metrics (e.g., NPMI, Cv) with human judgments of topic coherence.
  • Explore whether LLMs can serve as reliable, scalable alternatives to human evaluation for topic model quality and topic count selection.
  • Integrate research questions into LLM prompts to guide selection of optimal topic numbers in real-world applications.

Proposed method

  • Use LLMs (primarily ChatGPT) to perform two standard topic coherence evaluation tasks: word intrusion detection and topic coherence rating.
  • Generate LLM-based scores for topic coherence by prompting the model to rate topic word sets on a 1–3 scale or identify an intruder word.
  • Propose a novel method to determine optimal topic count by prompting the LLM to assign labels to documents in each topic cluster and measuring label purity.
  • Compare LLM-assigned labels to ground-truth labels to evaluate clustering quality and identify the topic configuration with the purest label assignments.
  • Incorporate the research question into the LLM prompt to guide topic count selection, enhancing relevance to real-world use cases.
  • Use bootstrap resampling (1000 episodes) to compute Spearman correlation between LLM scores and human annotations, with significance testing.

Experimental results

Research questions

  • RQ1Can LLMs produce coherence judgments that correlate more strongly with human evaluations than existing automated metrics like NPMI and Cv?
  • RQ2Does the type of evaluation task (rating vs. intrusion detection) affect the correlation between LLM judgments and human assessments?
  • RQ3Can LLMs be used to automatically determine a reasonable number of topics by assessing label purity in document clusters?
  • RQ4How does incorporating the research question into the LLM prompt affect the selection of optimal topic counts?
  • RQ5To what extent do LLM-assigned labels overlap with ground-truth labels in real-world datasets?

Key findings

  • LLM coherence scores showed significantly higher Spearman correlation with human ratings (0.64 on the 'Both' dataset) than NPMI (0.40) and Cv (0.40), with statistical significance (p < 0.05).
  • LLM performance was stronger on the topic rating task (0.64) than on the intrusion detection task (0.36), indicating better alignment with human coherence judgments on rating tasks.
  • The LLM-based method for topic count selection identified configurations with label purity that closely matched ground-truth label distributions, even when assigning 10× more unique labels than ground-truth.
  • In the Bills dataset, the most suitable configuration had a mean LLM-assigned label purity of 3.0 (on a 1–3 scale), while the least suitable had a mean of 2.0, indicating clear differentiation.
  • Qualitative analysis confirmed that LLM-assigned labels often matched ground-truth labels and reflected topic coherence, with high purity in the best-performing configurations.
  • Incorporating the research question into the prompt improved the relevance and accuracy of topic count selection, making the method applicable to real-world use cases.

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.