Abstract
Traditional topic modeling algorithms often produce results that lack semantic coherence or fail to capture specific niche interests of researchers. While human-in-the-loop (HITL) systems aim to rectify these issues, they frequently suffer from rigid linear workflows and a lack of grounding in the underlying data. This paper presents a novel HITL system centered on Query-Driven Topic Modeling (QD-TM). By introducing a non-linear "model tree" for exploration and an AI-powered keyword suggestion engine, the system enables users to steer topic discovery effectively. Experimental results demonstrate significant improvements in semantic coherence, user satisfaction, and precision in expert-led use cases.
Introduction
Topic modeling is an essential technique for synthesizing large-scale text datasets. However, standard unsupervised algorithms like Latent Dirichlet Allocation (LDA) often produce "noisy" topics—clusters of words that are statistically significant but semantically nonsensical to human observers. Furthermore, these models struggle with targeted analysis, where a researcher may only be interested in a specific sub-aspect of a corpus.
Existing human-in-the-loop systems attempt to bridge this gap by allowing users to refine models manually. However, these systems typically face three critical challenges: the "Undo" problem (sequential workflows that prevent backtracking), "Blind Steering" (users introducing words not present in the data), and a lack of focus on specific sub-corpora. This research introduces a system designed to overcome these hurdles through interactive, non-linear refinement.
System Architecture and Methodology
The core of the system is built upon Query-Driven Topic Modeling (QD-TM), a semi-supervised variant of the Hierarchical Dirichlet Process (HDP). The system introduces several technical innovations to improve the user experience and model quality:
Non-Linear Model History
Unlike traditional systems that follow a linear path of refinements, this system utilizes a tree structure to track model history. This allows users to branch off from any previous state, testing different refinement strategies—such as splitting a topic versus adding specific keywords—and comparing the outcomes side-by-side. This non-linear approach mitigates the risk of a single "bad" change ruining a model.
AI-Powered Keyword Expansion
To prevent "blind steering," where users attempt to force irrelevant terms into a topic, the system provides semantically grounded suggestions. It calculates scores for terms within relevant documents and uses cosine similarity between candidate word embeddings and the current topic embedding. This ensures that user-added words are both semantically relevant and statistically present in the corpus.
Interactive Refinement Operations
Users can manipulate the model through six core operations:
- Adding/Removing words to refine topic definitions.
- Swapping word order to adjust the importance of terms.
- Removing documents to clean the topic's source data.
- Merging topics that overlap semantically.
- Splitting topics that are too broad.
- Interactive Retraining via Gibbs sampling, which injects feedback into the probability distributions in real-time.
Experimental Evaluation
The system was evaluated across various benchmarks and real-world scenarios:
- Benchmarks: 20newsgroups (18k posts), TagMyNews (32k items), and SearchSnippets (12k snippets) were used to test keyword suggestions.
- User Studies: Participants explored a Reddit dataset (9,651 posts on online teaching) and a Twitter dataset (8,990 tweets regarding COP26).
- Expert Use Case: A researcher utilized a dataset of 2,607 USPTO patents related to synthetic biology to categorize documents into value categories.
Key Insights and Results
User Behavior and Preferences
User studies revealed that participants preferred pruning and reordering over building from scratch. The most frequent operations were "delete words" and "swap words," suggesting that users find it more intuitive to act as an editor for AI-generated content. The model tree was cited as a standout feature, as it allowed researchers to explore multiple "what-if" scenarios without losing progress.
Quantitative and Qualitative Performance
- Coherence: Models refined with keyword suggestions consistently achieved higher semantic coherence and Precision@K scores than the baseline QD-TM.
- User Satisfaction: On the Twitter dataset, user satisfaction scores rose from 3.2 in the baseline system to 4.0 in the new system, specifically due to the improved ability to track changes.
- Expert Validation: In the USPTO patent case study, the system enabled a researcher to increase the average precision of topics from 0.3 to 0.96, demonstrating high utility for professional, high-stakes research.
Discussion and Future Work
While the system represents a significant step forward, several challenges remain. Latency is a primary concern; Gibbs sampling is computationally intensive, leading to wait times of approximately 34 seconds for a 20,000-document dataset. Future iterations should focus on UI affordances, such as progress bars, to maintain engagement during processing.
Additionally, while the system includes automatic labeling, users often found these labels irrelevant. Improving the readability and automated description of topics remains a priority. Finally, the study noted an "expertise gap," where users with backgrounds in qualitative analysis were more effective at identifying valuable refinements, suggesting that future versions might benefit from more guided onboarding for non-experts.
Summary updated