Active Learning with Constrained Topic Model

Yi Yang, Shimei Pan, Doug Downey, Kunpeng Zhang2014

Abstract

Latent Dirichlet Allocation (LDA) is a topic modeling tool that automatically discovers topics from a large collection of documents. It is one of the most popular text analysis tools currently in use. In practice, however, the topics discovered by LDA do not always make sense to end users. In this extended abstract, we propose an active learning framework that interactively and iteratively acquires user feedback to improve the quality of learned topics. We conduct experiments to demonstrate its effectiveness with simulated user input on a benchmark dataset.

Introduction

Latent Dirichlet Allocation (LDA) has long been considered the "gold standard" for automatically discovering themes in large text collections. However, a significant gap exists between mathematical optimization and human interpretability. Topics generated by standard LDA often fail the human "sanity check," frequently mixing unrelated words or splitting a single coherent concept across multiple categories.

Previous attempts to address this issue focused on word-level constraints (e.g., "must-links" between specific terms). However, these methods are often tedious for users and struggle with polysemy—where a single word has multiple meanings depending on context. For instance, linking "pound" to "currency" may inadvertently corrupt a topic related to "weight." This paper proposes that document-level constraints are more intuitive and provide the necessary context to resolve such ambiguities.

The cLDA Framework

To bridge the gap between model output and human intuition, we introduce cLDA (Constrained LDA) integrated into an active learning loop. This framework allows the model to incorporate pairwise document constraints: must-links (indicating two documents share a topic) and cannot-links (indicating they do not).

The active learning framework for Constrained LDA.

As illustrated in the framework above, the process begins with an initial LDA "burn-in" period. The active learning loop then proceeds through several stages:

  1. Target Selection: The system identifies a "Target Document" that the model is currently most uncertain about. We evaluated three strategies: Random, MinLikelihood, and MaxEntropy. The MaxEntropy strategy, which selects documents with the most uncertain topic distributions, proved most effective.
  2. Anchor Selection: The system identifies "Anchor Documents" that serve as the best representatives of existing topics.
  3. User Interaction: The user provides feedback by associating the target document with an appropriate anchor.
  4. Constraint Propagation: To maximize efficiency, a single user action generates multiple constraints. If a user links Document A to Anchor B, the system automatically infers "cannot-links" between Document A and all other anchors.

Experimental Evaluation

We evaluated the approach using a subset of the 20 Newsgroups dataset, specifically a "Mix3" sub-dataset. This subset included two highly similar topics (rec.sport.hockey and rec.sport.baseball) and one distinct topic (sci.space). This configuration specifically tests the model's ability to distinguish between closely related subjects with minimal human intervention.

Results and Discussion

Our experiments demonstrate that active learning with cLDA significantly improves Topic Coherence, a metric that correlates strongly with human judgment. Quantitatively, the MaxEntropy selection strategy reached a superior model state much faster than offline methods ($p = 0.05$).

Top words for three topics before (top) and after (bottom) active learning.

Qualitatively, the transformation is stark. As shown in the table above, initial topics often consist of generic, non-thematic verbs and common words (e.g., "writes," "like," "think"). After just a few iterations of feedback, these topics transform into crisp, thematic clusters. For example, Topic 1 evolves from a generic word cloud into a specific "baseball" theme featuring terms like "hit," "pitching," and "yankee."

Conclusion

By focusing on document-level context rather than isolated words, cLDA naturally handles polysemy and aligns more closely with human thematic understanding. While current results rely on simulated users, they demonstrate that a "human-in-the-loop" approach can drastically improve the utility of topic models. Future work will focus on expanding the system to support multi-topic document links and optimizing the computational overhead for massive datasets.

Summary updated

BibTeX
@misc{yang2014active,
  author = {Yi Yang and Shimei Pan and Doug Downey and Kunpeng Zhang},
  title = {{Active Learning with Constrained Topic Model}},
  year = {2014},
  doi = {10.3115/v1/w14-3104},
}
Figure