đ¤ AI Summary
This paper addresses the challenge of quantifying uncertainty in topicâmetadata relationships within topic modeling, proposing the first end-to-end fully Bayesian frameworkâreplacing conventional hybrid frequentist-Bayesian approaches. Methodologically, it innovatively integrates Beta regression into the method-of-composition framework of Structural Topic Models (STM) and implements full Bayesian inference via Monte Carlo sampling. The framework jointly estimates latent topic structure and robust statistical associations between topics and metadata (e.g., constituency-level demographic and economic variables), markedly improving the validity and interpretability of posterior uncertainty quantification. Empirical evaluation on German parliamentariansâ tweet data demonstrates the modelâs ability to uncover heterogeneous, geographically nuanced associations between issue distributions and regional characteristics. By enabling principled uncertainty propagation and coherent Bayesian inference, the approach provides a more reliable foundation for causal reasoning and policy analysis in the social sciences.
đ Abstract
The objective of advanced topic modeling is not only to explore latent topical structures, but also to estimate relationships between the discovered topics and theoretically relevant metadata. Methods used to estimate such relationships must take into account that the topical structure is not directly observed, but instead being estimated itself in an unsupervised fashion, usually by common topic models. A frequently used procedure to achieve this is the method of composition , a Monte Carlo sampling technique performing multiple repeated linear regressions of sampled topic proportions on metadata covariates. In this paper, we propose two modifications of this approach: First, we substantially refine the existing implementation of the method of composition from the R package stm by replacing linear regression with the more appropriate Beta regression. Second, we provide a fundamental enhancement of the entire estimation framework by substituting the current blending of frequentist and Bayesian methods with a fully Bayesian approach. This allows for a more appropriate quantification of uncertainty. We illustrate our improved methodology by investigating relationships between Twitter posts by German parliamentarians and different metadata covariates related to their electoral districts, using the structural topic model to estimate topic proportions.