Abstract
Weak topic correlation across document collections with different numbers of topics in individual collections presents challenges for existing cross-collection topic models. This paper introduces two probabilistic topic models, Correlated LDA (C-LDA) and Correlated HDP (C-HDP). These address problems that can arise when analyzing large, asymmetric, and potentially weakly-related collections. Topic correlations in weakly-related collections typically lie in the tail of the topic distribution, where they would be overlooked by models unable to fit large numbers of topics. To efficiently model this long tail for large-scale analysis, our models implement a parallel sampling algorithm based on the Metropolis-Hastings and alias methods (Yuan et al., 2015). The models are evaluated on synthetic data simulating various collection-level asymmetries and a case study of over 300k documents from JSTOR.
Introduction
Traditional topic models like Latent Dirichlet Allocation (LDA) are effective for thematic discovery within a single corpus. However, cross-collection mining—comparing different datasets—introduces significant challenges. Existing models, such as ccLDA, often operate under the rigid assumption that every topic must be present in every collection.
This assumption fails when collections are "weakly related." For instance, comparing biology papers with history papers might reveal a shared topic like "evolution," but history papers lack topics on "molecular sequencing." Forcing models to find identical topic sets across such disparate collections results in "junk" topics—noisy, mixed representations that are difficult to interpret. Furthermore, standard models often struggle to scale, making the analysis of rare but significant "long-tail" topics computationally prohibitive.
Proposed Models: C-LDA and C-HDP
To address these collection-level asymmetries, we propose two new probabilistic models:
- Correlated LDA (C-LDA): An extension of ccLDA that permits each collection to maintain its own set of unique ("non-common") topics alongside shared ones. It utilizes an asymmetric Dirichlet prior ($\alpha$) to distinguish between dominant and niche topics.
- Correlated HDP (C-HDP): A non-parametric approach based on the Hierarchical Dirichlet Process. Unlike C-LDA, it does not require a pre-specified number of topics, allowing the model to automatically discover the optimal number of shared and unique topics.
Scalable Inference
To enable practical application on massive datasets, we implemented a parallel sampling framework adapted from LightLDA. By integrating Metropolis-Hastings steps with alias tables, the models achieve $O(1)$ amortized sampling time per token. This efficiency allows the models to scale to thousands of topics across hundreds of thousands of documents, reducing processing time from days to hours. Additionally, a "unit-value" adjustment in the Gibbs sampler prevents larger collections from numerically dominating smaller ones, ensuring balanced topic representation.
Experimental Evaluation
The models were evaluated using both synthetic data and a large-scale real-world dataset:
- Synthetic Data: Designed to simulate varying degrees of asymmetry, such as differences in the number of shared versus unique topics.
- JSTOR Corpus: A dataset of over 310,000 documents from two distinct fields: Sciences (~160,000 documents) and Humanities (~150,000 documents).
Key Results
Our evaluation demonstrates that C-LDA and C-HDP offer superior performance in several dimensions:
- Predictive Performance: On asymmetric synthetic data, both models consistently achieved lower perplexity than standard ccLDA, indicating a better fit to the data.
- Topic Distinguishability: C-LDA effectively separates shared topics from collection-specific ones, avoiding the "blurring" effect seen in older models.
- Semantic Coherence: In the JSTOR case study, C-LDA produced more human-readable and semantically consistent topics compared to ccLDA.
- Computational Efficiency: Utilizing 8 threads, C-LDA achieved a 12x speedup over standard ccLDA implementations.
Conclusion
C-LDA and C-HDP treat collection-level differences as informative features rather than noise. This perspective allows for a more nuanced understanding of how concepts are articulated across different domains. By efficiently modeling the "long tail" of topic distributions, these models provide a powerful tool for large-scale, automated cross-collection analysis in fields ranging from sociology to linguistics.
Summary updated