NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Human-Centric Topic Modeling with Goal-Prompted Contrastive Learning and Optimal Transport

Rui Wang, Yi Zheng, Dongxin Wang, Haiping Huang, Yuanzhi Yao, Yuxiang Zhou, Jialin Yu, Philip TorrarXiv 2026

TL;DR

Traditional topic models excel at finding statistically coherent word patterns, but they often fail to align with a user's specific analytical objectives. This paper introduces Human-centric Topic Modeling (Human-TM) and proposes GCTM-OT, a novel framework that integrates human-provided goals directly into the topic discovery process using Large Language Model (LLM) prompting, contrastive learning, and optimal transport. The result is a set of highly interpretable, diverse, and goal-aligned topics that significantly outperform existing state-of-the-art methods.

What Problem Does This Paper Address?

Whether using classic Latent Dirichlet Allocation (LDA) or modern neural approaches, traditional topic modeling operates unsupervised, optimizing purely for statistical coherence. However, when a researcher approaches a corpus with a specific question—such as "What specific issues are bothering users in this support forum?"—standard models fall short. They often output redundant or off-target topics (e.g., grouping words like "house," "sister," and "father" simply because they co-occur frequently) while completely missing the underlying human intent (e.g., identifying "breakup struggles" or "academic stress").

To bridge this gap, the authors formalize the Human-TM task. Given a text corpus and a human-provided free-text goal description, the objective is to automatically generate a set of topics that are explicitly goal-oriented, highly interpretable, and diverse enough to cover the corpus without redundancy.

Figure 1: Key differences between Traditional Topic Modeling and Human-Centric Topic Modeling (with human’s goal).

Methods

The authors introduce the Goal-prompted Contrastive Topic Model with Optimal Transport (GCTM-OT), which consists of five core components:

  1. Goal-oriented Summary Generation: An LLM (GPT-3.5-turbo) processes each document using a specialized prompt ($P_s$) to extract phrase-style "goal candidates" relevant to the user's objective. These are aggregated into a corpus-level goal set.
  2. Text Augmentation and Representation: To facilitate contrastive learning, documents are rephrased using an augmentation prompt ($P_a$) to create positive pairs. A pretrained transformer (MPNet) then generates contextualized representations, dynamically weighting words based on their maximum cosine similarity to the extracted goal candidates.
  3. Topic Inference and Prior Matching: The model infers document-topic distributions using a trainable topic representation matrix. To ensure interpretability, these distributions are matched to a Dirichlet prior using Maximum Mean Discrepancy (MMD).
  4. Semantic-aware Contrastive Learning: The topic representations are optimized by pulling semantically similar document pairs closer together while pushing unrelated pairs apart in the learned topic space.
  5. Goal-oriented Optimal Transport Alignment: The corpus-level goal candidates are clustered to form a goal representation matrix. The model then employs Optimal Transport (via Sinkhorn iterations) to geometrically align the inferred document-topic distributions with the document-goal distributions, directly injecting the goal structure into the topic learning process.
Figure 2: The framework of GCTM-OT (a) and details of Goal-oriented Text Representation Mechanism (b).

Datasets

The framework was evaluated on three public subreddit datasets sourced from Pushshift's Reddit data dumps:

  • Bothering (r/whatsbotheringyou): Posts detailing personal concerns. (Goal: "What's the thing that's bothering you?")
  • TeslaModel3 (r/TeslaModel3): User discussions centered on electric vehicles. (Goal: "What is the specific aspect of TeslaModel3?")
  • AskAcademia (r/AskAcademia): Discussions regarding academic life and career challenges. (Goal: "What is the specific concern about academia?")

The datasets were filtered to remove low-engagement and duplicate posts, and preprocessed using the SpaCy library for stemming and stop-word removal.

Key Insights and Ideas

  • LLMs as Semantic Anchors: Instead of relying purely on end-to-end neural clustering, GCTM-OT uses LLMs during preprocessing to extract discrete goal candidates. This anchors the downstream mathematical optimization directly to human intent.
  • Geometry Matching via Optimal Transport: Rather than applying simple distance regularizers, the authors use Optimal Transport to align the probability space of the discovered topics with the probability space of the human goals. This preserves both the relevance and the structural diversity of the topics.
  • Maximum Operation for Attention: When weighting word importance against goal candidates, the model uses a max operation rather than an average. This ensures that words strongly aligned with even a single goal candidate are highlighted, preventing semantic dilution from weaker associations.

Key Results

The authors evaluated GCTM-OT against ten baselines (including classic LDA, neural models like vONT, and LLM-based approaches like LLM-TE) using standard coherence metrics ($C_P, C_A, NPMI, UCI$) and a diversity metric (Unique Terms, $UT$). They also introduced three new metrics to measure goal alignment: Goal Similarity ($GS$), Goal-relevant Topic Rate ($GTR$), and Goal Coverage Rate ($GCR$).

  • Superior Coherence and Diversity: GCTM-OT consistently outperformed all baselines. For example, on the Bothering dataset, GCTM-OT achieved a $C_P$ score of 0.3326, significantly higher than the competitive baseline CAST (0.2097) and traditional LDA (0.1214). It also achieved a near-perfect diversity score ($UT = 0.9800$).
  • Enhanced Goal Alignment: On the novel $GS$ metric, GCTM-OT outperformed the closest baseline by a wide margin across all datasets, proving that its discovered topics were much closer semantically to the ground-truth human goals.
  • Automated Summarization: Qualitatively, GCTM-OT successfully generated clean, distinct topic word clusters (e.g., "cheat, breakup, girlfriend...") accompanied by accurate, human-readable topic summaries (e.g., "Breakup Struggles"), a feature completely absent in traditional baselines.

Limitations and Future Work

While GCTM-OT represents a major step forward for targeted text analysis, it currently operates on a flat topic structure. The authors note that real-world human goals are often complex and multi-layered. Consequently, they highlight hierarchical extensions of the Human-TM task—enabling the automatic generation of goal-aligned topic trees—as a primary direction for future research. Additionally, the framework's heavy reliance on LLM API calls for preprocessing introduces computational overhead that could be optimized in future iterations.

Summary updated

BibTeX
@misc{wang2026human,
  author = {Rui Wang and Yi Zheng and Dongxin Wang and Haiping Huang and Yuanzhi Yao and Yuxiang Zhou and Jialin Yu and Philip Torr},
  title = {{Human-Centric Topic Modeling with Goal-Prompted Contrastive Learning and Optimal Transport}},
  year = {2026},
  eprint = {2604.12663},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.12663},
}

Loading related content...

Figure