Human-Centric Topic Modeling with Goal-Prompted Contrastive Learning and Optimal Transport
Authors: Rui Wang, Yi Zheng, Dongxin Wang, Haiping Huang, Yuanzhi Yao, Yuxiang Zhou, Jialin Yu, Philip Torr
Organizations: School of Computer Science, Nanjing University of Posts and Telecommunications · School of Computer Science and Information Engineering, Hefei University of Technology · School of Electronic Engineering and Computer Science, Queen Mary University of London · Department of Engineering Science, University of Oxford
Existing topic modeling methods, from LDA to recent neural and LLM-based approaches, which focus mainly on statistical coherence, often produce redundant or off-target topics that miss the user's underlying intent. We introduce Human-centric Topic Modeling, Human-TM), a novel task formulation that integrates a human-provided goal directly into the topic modeling process to produce interpretable, diverse and goal-oriented topics. To tackle this challenge, we propose the Goal-prompted Contrastive Topic Model with Optimal Transport (GCTM-OT), which first uses LLM-based prompting to extract goal candidates from documents, then incorporates these into semantic-aware contrastive learning via optimal transport for topic discovery. Experimental results on three public subreddit datasets show that GCTM-OT outperforms state-of-the-art baselines in topic coherence and diversity while significantly improving alignment with human-provided goals, paving the way for more human-centric topic discovery systems.
Figures & tables
Figure 1. Key differences between Traditional Topic Modeling and Human-Centric Topic Modeling (with human’s goal).
Figure 2. The framework of GCTM-OT (a) and details of Goal-oriented Text Representation Mechanism (b).
Figure 3. Details of Goal Summarization Prompt Ps .
Figure 4. Details of Text Augmentation Prompt Pa .
Datasets
#Doc
#Vocab
Avg_Len
Bothering
1,483
7,700
56.48
TeslaModel3
1,991
5,634
32.82
AskAcademia
3,348
8,122
36.16
Table 1. The statistics of processed datasets.
Figure 5. The comparison of topic coherence values vs. different topic number settings [20, 30, 40, 50].
Dataset
Bothering
TeslaModel3
AskAcademia
Model
CP
CA
NPMI
UCI
CP
CA
NPMI
UCI
CP
CA
NPMI
UCI
LDA
0.1214
0.1286
0.0047
-0.3226
0.1143
0.1451
-0.0056
-0.6976
0.0997
0.1422
-0.0114
-0.6964
BAT
0.0127
0.1324
-0.0022
-0.8499
-0.0246
0.1441
-0.0058
-0.7193
-0.0786
0.1439
-0.0031
-0.6011
CTMNeg
-0.1319
0.1189
-0.0575
-1.9725
-0.1510
0.1195
-0.0611
-2.0211
-0.0156
0.1319
-0.0267
-1.2121
vONT
0.1535
0.1353
0.0020
-0.5920
0.0995
0.1363
-0.0093
-0.8079
0.0883
0.1187
-0.0018
-0.3956
CWTM
0.0175
0.1132
-0.0107
-0.6486
0.0417
0.1320
-0.0265
-1.0433
0.1039
0.1414
-0.0042
-0.6252
Table 2. Average topic coherence values with four topic number settings [20, 30, 40, 50].
Figure 8
Dataset
Human vs. Human
Human vs. LLM
JS
SMC
DSC
JS
SMC
DSC
Bothering
0.7579
0.7700
0.8623
0.7738
0.7750
0.8722
TeslaModel3
0.9192
0.9200
0.9579
0.8800
0.8800
0.9357
AskAcademia
0.9600
0.9600
0.9796
0.9196
0.9200
0.9581
Table 5. Coefficients between two experts’ annotation results.
Model
Topic Summary
Topic Words
LDA
—
completely, walk , girlfriend, hang , answer, finally, happy, honestly text couple
Traditional topic models are effective at uncovering latent themes in large text collections. However, due to their reliance on bag-of-words representations, they struggle to capture semantically abstract features. While some neural variants use richer representations, they are similarly constrained by expressing topics as word lists, which limits their ability to articulate complex topics. We introduce Mechanistic Topic Models (MTMs), a class of topic models that operate on interpretable features learned by sparse autoencoders (SAEs). By defining topics over this semantically rich space, MTMs can reveal deeper conceptual themes with expressive feature descriptions. Moreover, uniquely among topic models, MTMs enable controllable text generation using topic steering vectors. To properly evaluate MTM topics against word list approaches, we propose topic judge, an LLM-based pairwise comparison evaluation framework. Across eight datasets, MTMs match or exceed traditional and neural baselines on coherence metrics, are consistently preferred by topic judge, and enable effective LLM steering.
Carolina Zheng, Nicolas Beltran-Velez, Sweta Karlekar +5
Columbia University · Independent · Google Research
Traditional neural topic models are typically optimized by reconstructing the document's Bag-of-Words (BoW) representations, overlooking contextual information and struggling with data sparsity. In this work, we introduce a novel topic model training framework by Distilling Soft Labels (DSL) from Language Models (LMs). To construct the contextually enriched reconstruction signals, we project the next token probabilities, conditioned on a specialized prompt, onto a pre-defined vocabulary, and train the topic models to reconstruct the soft labels using the LM hidden states. This produces higher-quality topics that are more closely aligned with the underlying thematic structure of the corpus. Extensive experiments demonstrate that DSL achieves substantial improvements in topic coherence and assignment accuracy over existing baselines. Additionally, we also introduce a retrieval-based metric, which shows that our approach significantly outperforms existing methods in identifying semantically similar documents, highlighting its effectiveness for retrieval-oriented applications.
Raymond Li, Amirhossein Abaskohi, Chuyuan Li +2
University of British Columbia, Vancouver, Canada.
Recent topic models leverage pretrained embeddings, but neural architectures produce latent representations without grounding in specific texts, and clustering-based pipelines assign representative documents only post hoc, relying on absolute distances distorted by hubness and anisotropy in high-dimensional spaces. We introduce MARETopic, a training-free framework that casts topic discovery as rank-based prototype selection. After projecting embeddings onto a low-dimensional manifold, MARETopic builds ranked lists encoding ordinal neighborhood structure. A greedy algorithm selects exactly K exemplar documents, real corpus texts, whose neighborhoods cover the corpus. Two variants share this criterion. MARETopicCorr scores candidates with a query performance predictor and a rank correlation measure, leading Purity and NMI on the two benchmarks with the most categories, ahead of both neural and clustering-based topic models. MARETopicDiff scores them with a rank-based diffusion matrix, needs neither measure, and runs 1.7 to 1.9 times faster. Without a single gradient update, MARETopic leads topic coherence on two of three datasets. A novel inter-topic Maximal Marginal Relevance step raises vocabulary diversity at little cost in coherence. Our code is available at https://github.com/thcastilho/maretopic.
Thiago César Castilho Almeida, Daniel Carlos Guimarães Pedronette
Department of Statistics, Applied Mathematics and Computing State University of São Paulo (UNESP), Rio Claro, Brazil