Interactive Topic Modeling with Anchor Words

Sanjoy Dasgupta, Stefanos Poulis, Christopher TosharXiv 2019

TL;DR

Standard unsupervised topic modeling often fails to align with a user's desired granularity or thematic goals. This paper introduces an interactive protocol where users group geometrically valid "anchor words" to easily guide topic creation, resulting in models that are both highly interpretable and mathematically sound compared to prior interactive approaches.

What Problem Does This Paper Address?

Topic models (like Latent Dirichlet Allocation) are widely used to summarize massive text corpora into distinct themes. However, because they are purely unsupervised, they often struggle with granularity. For example, should an algorithm separate articles into "football," "basketball," and "the Olympics," or group them into a single "sports" topic?

To fix this, researchers use interactive topic modeling to inject user preferences. However, existing methods either require tedious word-by-word feedback or violate the underlying geometry of the data. Specifically, a recent popular approach called "anchor facets" allows users to create topics by averaging words together into artificial "pseudo-anchors." The authors demonstrate that this mathematically breaks the core assumptions of anchor-based topic recovery by dragging these points away from the corners of the data simplex, leading to unpredictable topic assignments.

Methods

The authors introduce a subtopic view of document generation. They assume that real-world data is generated by a large number of fine-grained, statistically distinct subtopics (e.g., hurricane weather vs. blizzard weather) that a human user would naturally want to aggregate into a single idealized topic (e.g., weather).

To bridge this gap without breaking the underlying geometry, they propose the following interactive protocol:

  1. Candidate Identification: Run a standard unsupervised anchor-finding algorithm to generate an "overcomplete" list of candidate anchor words (words that uniquely appear in only one subtopic).
  2. User Interaction: Present these single anchor words to the user. Users act as curators, grouping related anchors together into high-level topics and discarding irrelevant ones.
  3. Topic Recovery: The paper introduces two ways to reconstruct the final topics:
  4. Full Interactive Recovery: Estimate all subtopic vectors using all anchor words, then average the vectors within each user-defined group.
  5. Partial Interactive Recovery: Re-run the topic recovery algorithm using only the anchor words selected by the user. This effectively filters out noisy or "spurious" anchors caused by data undersampling.

Datasets

The authors evaluated their approach using two datasets:

  • 20 Newsgroups: A classic benchmark consisting of approximately 18,000 forum posts across 20 distinct categories. This was used for quantitative document representation experiments.
  • CNN News Dataset: A dataset of roughly 10,000 crawled articles spanning a year (2016–2017), featuring diverse real-world events like the Brexit referendum and the 2016 U.S. presidential debates. This was used for the human user study.

Key Insights and Ideas

  • Preserving the Geometry: Anchor-based topic modeling relies on anchor words sitting at the extreme corners of a geometric simplex. Averaging word co-occurrences to create "pseudo-anchors" forces the algorithm to operate from the middle of the simplex, destroying provable guarantees (illustrated in the paper's geometric breakdown). Illustration of anchor facet shortcoming
  • Anchors as Cognitive Proxies: Evaluating 500 automatically generated topics by reading their top 10 words requires a user to wade through 5,000 words—an overwhelming cognitive load. By using single anchor words as proxies for entire subtopics, users can scan and group themes incredibly fast.
  • The Subtopic Bias: The authors mathematically prove (Lemma 1) that fine-grained subtopics inherently bias the data's co-occurrence matrix away from a user's idealized model. This explains why purely unsupervised methods are fundamentally mathematically misaligned with human intuition.
Figure 2. Illustration of anchor facet shortcoming. Here the user combines anchor words ‘computer’ and ’games’ which results in a point ‘computer-games’ somewhere in the middle of the simplex spanned by s1, s2 and s3.

Key Results

  • Superior Document Representations: When evaluating the quality of the generated topics using a $k$-nearest neighbor ($k$-NN) classifier on the 20 Newsgroups dataset, the proposed Partial Interactive Recovery method achieved an accuracy of 0.337 (at $k=10$). This significantly outperformed prior interactive methods like Lund et al. (0.236) and Hu et al. (0.221), as well as vanilla unsupervised models (0.144). Accuracy of k-NN classifiers
  • Improved Human Interpretability: In a 5-user study on the CNN dataset, the interactive models yielded higher log-likelihood per token and lower entropy (meaning topics were cleaner and more concentrated).
  • Word Intrusion Success: In word intrusion tests—where humans must identify a stray word inserted into a topic's top-10 list—users consistently achieved higher precision on the interactive models compared to unsupervised counterparts, proving the generated topics were much more semantically coherent. Quantitative metrics and word intrusion precision
Accuracy of k-NN classifiers
Figure 4. Comparison of models built using user interaction with their non-interactive counterparts. Left: Log-likelihood per token, coherence, % unique words, and average entropy of topics. Right: Per-user performance on word intrusion task. Users were tested on all user-created topics, not just their own.

Limitations and Future Work

  • User Study Scale: The user study was small-scale, consisting of only 5 participants, all of whom were computer science doctoral students. Testing with a broader, non-technical audience remains an open step.
  • Dependence on Initial Anchors: The protocol's success still hinges on the initial unsupervised algorithm's ability to find a high-quality overcomplete set of anchor words. If a dataset is too noisy or heavily undersampled, the candidate list might miss crucial subtopics entirely.

Summary updated

BibTeX
@misc{dasgupta2019interactive,
  author = {Sanjoy Dasgupta and Stefanos Poulis and Christopher Tosh},
  title = {{Interactive Topic Modeling with Anchor Words}},
  year = {2019},
  eprint = {1907.04919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04919},
}
Figure