- Introduced by
- Jagarlamudi, Daume & Udupa; Gallagher et al. (CorEx)
- Year
- 2012–2017
- Type
- Weakly supervised probabilistic topic model
- Family
- Deep learning / NLP / CV
What does it do?
Weakly supervised topic modeling adds lightweight domain knowledge, typically seed words or anchor words, to a probabilistic or information-theoretic topic model so that the discovered topics are steered toward themes the researcher cares about.
It sits between fully unsupervised topic models such as LDA and supervised classifiers: it needs far less annotation than the latter, and it aims at topics better aligned with the researcher's domain than the former.
The intuition behind the method
Standard LDA discovers topics that statistically cohere but may not match what a researcher cares about. Weakly supervised topic modeling lets you nudge the model: you supply a handful of seed words per anticipated topic, and in Dirichlet-prior variants the seeds act as soft priors that bias the topic-word distributions without hard-coding them. Documents still drive the final result, but the seeds anchor the topics so that words for a theme such as 'economic policy' tend to group together rather than mixing with unrelated high-frequency terms. The supervision is weak because it consists of word lists, not labeled training documents, which is why annotation cost stays low.
History
Incorporating lexical priors into topic models is addressed by Jagarlamudi, Daumé and Udupa (2012). Gallagher et al. (2017) presented Anchored Correlation Explanation, which adds anchor words to the CorEx topic model; the abstract describes CorEx as an information-theoretic approach that does not assume an underlying generative model. The anchored extension is the 2017 contribution cited on this page.
When to use it
Use weakly supervised topic modeling when you have a moderate-to-large text corpus and prior hypotheses about which topics matter, but lack the labeled documents needed for supervised classification. It is often used in social science, political science, and health research, where topic labels are theoretically motivated. Very small corpora are a poor fit, because the seed priors can then dominate the estimated topics and results may be unstable. Do not use it when seed words are ambiguous or cover only sparse vocabulary, when full document labels are available (supervised classifiers are then the more suitable choice), or when the number of desired topics is completely unknown (unsupervised LDA with coherence-based selection is the safer starting point).
Limitations and considerations
- Quality is sensitive to seed word choice; poor seeds produce misleading anchored topics that can look coherent but are theoretically invalid.
- The number of topics must still be pre-specified, which requires either domain knowledge or a separate model-selection step.
- Constraint strength offers limited control: in Dirichlet-prior variants, if the corpus strongly contradicts a seed, the seed may be ignored or diluted.
- Evaluation remains partly subjective, because automated coherence metrics do not fully capture alignment with researcher intent.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Produces topics aligned with a researcher's themes using only a few seed words per topic, with no document-level annotation.
- In Dirichlet-prior variants, seeds enter as priors, so the same variational or Gibbs machinery used for LDA can be reused without labeled documents.
- In Dirichlet-prior variants, seeds act as priors rather than hard constraints, so corpus evidence can override a seed that the data strongly contradicts.
- Anchored CorEx accepts word-level domain knowledge. Gallagher et al. (2017) report that its topics are comparable in quality to those of unsupervised and semi-supervised LDA variants across a variety of datasets and metrics.
Applications
- Political science: guiding topics to match policy areas (immigration, healthcare, economy) in legislative text corpora.
- Health communication: anchoring topics to symptom categories or public health themes in social media data.
- Legal text analysis: seeding topics with legal concepts to organize case law or regulatory documents.
- Social science survey analysis: discovering theoretically motivated themes in open-ended survey responses.
- Media framing studies: anchoring topics to known framing dimensions to track their prevalence over time.
- Market research: guiding product-review topics toward known attribute dimensions (price, quality, service).
How it works
How it works
The researcher specifies a small set of seed words for each anticipated theme. A small number per topic is common in practice, but no established optimal count exists, so seed lists should be chosen to reflect the theme and then checked against the corpus. Seeds represent domain knowledge or hypotheses about the corpus and do not require document-level labels, which keeps annotation effort minimal.
In Dirichlet-prior variants (seeded LDA-style models), seed words are converted into informative priors on the topic-word distributions, so that a seed word receives a higher prior weight for its associated topic than a non-seed word. The exact parameterization depends on the implementation. In anchored Correlation Explanation (CorEx), anchor words are instead used to promote topic separability within an information-theoretic objective rather than a Dirichlet prior (Gallagher et al., 2017). In Dirichlet-prior variants the seeds are soft: the model can depart from them when corpus evidence is strong.
Dirichlet-prior variants typically use the same variational or Gibbs sampling routines as standard LDA, with the modified priors in place, so vocabulary outside the seeds is organized by corpus co-occurrence patterns. CorEx does not assume a generative model; it optimizes its information-theoretic objective (Gallagher et al., 2017), so the LDA inference description does not transfer to it directly.
In LDA-style variants, each document receives a mixture of topic proportions and each token receives a topic assignment. Each seeded topic is labeled by its seed list, which makes the intended theme explicit, and the seeds bias that topic's word distribution toward those terms. Topics without seeds can still emerge from purely data-driven co-occurrence patterns. Seeded and emergent topics should be compared: a seeded topic whose top words drift far from its seeds, or an emergent topic that absorbs a large share of documents, are both signals to inspect.
Model quality is assessed with topic coherence metrics (e.g., C_V, NPMI), perplexity on held-out text, and, crucially, qualitative review by domain experts. Higher coherence indicates that a topic's top words co-occur more often in the corpus. Coherence values are best compared across models or topic counts fitted to the same corpus rather than read against fixed thresholds. Perplexity measures held-out fit and does not by itself indicate whether topics are interpretable. Expert review should confirm that seeded topics match their intended themes and that seed-word guidance did not suppress important emergent topics.
Common pitfalls
- Selecting seed words from the corpus vocabulary list rather than from theory. This risks circular validation, where topics look coherent because the seeds were mined from the data.
- Running the method on a very small corpus, where the seed priors can have a disproportionate influence on the estimated topics and results may be unstable. Check stability across runs before interpreting the topics.
- Skipping expert review of topic-word lists and relying solely on automated coherence scores.
- Treating weakly supervised output as equivalent to supervised classification accuracy without acknowledging that the topics are model-derived and only partly steered by the seeds.
- Overlooking stopword removal and domain-specific preprocessing, which can let high-frequency noise words compete with seed priors.
Frequently asked questions
How many seed words do I need per topic?
A small number of seeds per topic is common in practice, and there is no established optimal count. More seeds strengthen the guidance but risk over-constraining the topic; fewer seeds give the corpus more freedom to shape the final word distribution. Choose seeds that clearly characterize the theme and check the resulting topic-word lists.
What happens if my seeds are wrong?
In Dirichlet-prior variants seeds act as soft priors, so the model can partly override them when corpus evidence is strong. However, poor seeds still bias results, so always validate topic-word lists with domain experts and inspect whether the anchored topics make theoretical sense.
How does this differ from supervised text classification?
Supervised classification requires document-level labels and learns a discriminative boundary between categories. Weakly supervised topic modeling requires only seed words and produces topic mixtures per document rather than hard category assignments.
Which implementation should I use?
Several open-source implementations exist, and their availability and interfaces change over time, so check the current documentation of any package before use. Seeded LDA-style variants follow a Dirichlet-prior generative model, while anchored CorEx follows the information-theoretic approach described by Gallagher et al. (2017). Choose according to whether you want a generative LDA-style model or an information-theoretic one.
Do I still need to choose the number of topics?
Yes. The number of topics is still a hyperparameter. Use coherence metrics (C_V or NPMI) over a range of topic counts and supplement them with expert judgment to select the number of topics alongside the seed configuration.
Related methods
Sources
Jagarlamudi, J., Daume III, H., & Udupa, R. (2012). Incorporating Lexical Priors into Topic Models. Proceedings of EACL 2012, 204–213.
Open publication referenceGallagher, R. J., Reing, K., Kale, D., & Ver Steeg, G. (2017). Anchored Correlation Explanation: Topic Modeling with Minimal Domain Knowledge. Transactions of the Association for Computational Linguistics, 5, 529–542.
Open DOI reference