TopicGPT: A Prompt-based Topic Modeling Framework
Preprint
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.Keywords
All Related Versions
This publication has 23 references indexed in Scilit:
- Abstractive Summarization of Large Document Collections Using GPTIEEE Transactions on Big Data, 2026
- Three Gaps in Computational Text Analysis Methods for Social Sciences: A Research AgendaCommunication Methods and Measures, 2021
- A Topic Coverage Approach to Evaluation of Topic ModelsIEEE Access, 2021
- Discriminative Topic Mining via Category-Name Guided Text Embedding2020
- Anchored Correlation Explanation: Topic Modeling with Minimal Domain KnowledgeTransactions of the Association for Computational Linguistics, 2017
- Nested Hierarchical Dirichlet ProcessesIEEE Transactions on Pattern Analysis and Machine Intelligence, 2014
- Partially labeled topic models for interpretable text mining2011
- A comparison of extrinsic clustering evaluation metrics based on formal constraintsInformation Retrieval Journal, 2008
- Comparing clusterings—an information based distanceJournal of Multivariate Analysis, 2007
- Comparing partitionsJournal of Classification, 1985