TopicGPT: A Prompt-based Topic Modeling Framework

Chau Minh Pham, Alexander Hoyle, Simeng Sun, Philip Resnik, Mohit Iyyer
11/2/2023
cs.CL

No official code found. Best implementation: chtmp223/topicGPT (418 stars, last commit 2025-03-15).

Abstract

Topic modeling is a well-established technique for exploring text corpora. Conventional topic models (e.g., LDA) represent topics as bags of words that often require "reading the tea leaves" to interpret; additionally, they offer users minimal control over the formatting and specificity of resulting topics. To tackle these issues, we introduce TopicGPT, a prompt-based framework that uses large language models (LLMs) to uncover latent topics in a text collection. TopicGPT produces topics that align better with human categorizations compared to competing methods: it achieves a harmonic mean purity of 0.74 against human-annotated Wikipedia topics compared to 0.64 for the strongest baseline. Its topics are also interpretable, dispensing with ambiguous bags of words in favor of topics with natural language labels and associated free-form descriptions. Moreover, the framework is highly adaptable, allowing users to specify constraints and modify topics without the need for model retraining. By streamlining access to high-quality and interpretable topics, TopicGPT represents a compelling, human-centered approach to topic modeling.

View on arXivView PDF

Code Implementations(1)

chtmp223/topicGPTCommunity100%

TopicGPT: A Prompt-Based Framework for Topic Modeling (NAACL'24)

41865CSS, HTMLNov 2, 20231 years ago
llmnlpopenaipythontopic-modeling+1 more

Similar Papers

Cite this paper

@article{pham2023topicgpt,
  title  = {TopicGPT: A Prompt-based Topic Modeling Framework},
  author = {Chau Minh Pham and Alexander Hoyle and Simeng Sun and Philip Resnik and Mohit Iyyer},
  year   = {2023},
  eprint = {2311.01449},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.01449v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.01449.svg)](https://codeofpaper.com/paper/2311.01449)

Discussion